From ece6f98938ff0a84b652068afe780a0267f70fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Zwoli=C5=84ski?= Date: Thu, 3 Oct 2024 16:18:13 +0200 Subject: [PATCH] chore: release (#413) --- .github/workflows/release-plz.yml | 22 ++++++ Cargo.lock | 12 ++-- Cargo.toml | 10 +-- cli/CHANGELOG.md | 6 ++ cli/Cargo.toml | 2 +- node-wasm/CHANGELOG.md | 17 +++++ node-wasm/Cargo.toml | 2 +- node-wasm/js/README.md | 109 +++++++++++++++--------------- node-wasm/js/package.json | 4 +- node/CHANGELOG.md | 7 ++ node/Cargo.toml | 2 +- proto/CHANGELOG.md | 6 ++ proto/Cargo.toml | 2 +- rpc/CHANGELOG.md | 6 ++ rpc/Cargo.toml | 2 +- types/CHANGELOG.md | 7 ++ types/Cargo.toml | 2 +- 17 files changed, 143 insertions(+), 75 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index dbc7749d..731ad30e 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -118,6 +118,28 @@ jobs: echo "Version updated: ${node_wasm_version}" fi + release-npm: + name: Release-npm + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.RELEASE_PLZ_TOKEN }} + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.3" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install wasm-pack + uses: jetli/wasm-pack-action@v0.4.0 + - name: Release to npm env: NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index 4b256da5..a8e535fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -714,7 +714,7 @@ checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" [[package]] name = "celestia-proto" -version = "0.3.1" +version = "0.4.0" dependencies = [ "anyhow", "celestia-tendermint-proto", @@ -728,7 +728,7 @@ dependencies = [ [[package]] name = "celestia-rpc" -version = "0.4.1" +version = "0.5.0" dependencies = [ "anyhow", "async-trait", @@ -798,7 +798,7 @@ dependencies = [ [[package]] name = "celestia-types" -version = "0.5.0" +version = "0.6.0" dependencies = [ "base64", "bech32", @@ -3211,7 +3211,7 @@ dependencies = [ [[package]] name = "lumina-cli" -version = "0.3.1" +version = "0.4.0" dependencies = [ "anyhow", "axum", @@ -3235,7 +3235,7 @@ dependencies = [ [[package]] name = "lumina-node" -version = "0.4.0" +version = "0.5.0" dependencies = [ "async-trait", "backoff", @@ -3285,7 +3285,7 @@ dependencies = [ [[package]] name = "lumina-node-wasm" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "blockstore", diff --git a/Cargo.toml b/Cargo.toml index 0c63b9be..3dce5c97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,11 +4,11 @@ members = ["cli", "node", "node-wasm", "proto", "rpc", "types"] [workspace.dependencies] blockstore = "0.7.0" -lumina-node = { version = "0.4.0", path = "node" } -lumina-node-wasm = { version = "0.3.0", path = "node-wasm" } -celestia-proto = { version = "0.3.1", path = "proto" } -celestia-rpc = { version = "0.4.1", path = "rpc", default-features = false } -celestia-types = { version = "0.5.0", path = "types", default-features = false } +lumina-node = { version = "0.5.0", path = "node" } +lumina-node-wasm = { version = "0.5.0", path = "node-wasm" } +celestia-proto = { version = "0.4.0", path = "proto" } +celestia-rpc = { version = "0.5.0", path = "rpc", default-features = false } +celestia-types = { version = "0.6.0", path = "types", default-features = false } libp2p = "0.54.0" nmt-rs = "0.2.1" celestia-tendermint = { version = "0.32.2", default-features = false } diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 83d8c80f..26ce1ead 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0](https://github.com/eigerco/lumina/compare/lumina-cli-v0.3.1...lumina-cli-v0.4.0) - 2024-10-03 + +### Added + +- *(node,node-wasm)* [**breaking**] Integrate graceful shutdown in WASM ([#396](https://github.com/eigerco/lumina/pull/396)) + ## [0.3.1](https://github.com/eigerco/lumina/compare/lumina-cli-v0.3.0...lumina-cli-v0.3.1) - 2024-09-24 ### Other diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 5336e697..4d759657 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lumina-cli" -version = "0.3.1" +version = "0.4.0" edition = "2021" license = "Apache-2.0" description = "Celestia data availability node implementation in Rust" diff --git a/node-wasm/CHANGELOG.md b/node-wasm/CHANGELOG.md index c0cd4a7e..1a55ce3e 100644 --- a/node-wasm/CHANGELOG.md +++ b/node-wasm/CHANGELOG.md @@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.3.0...lumina-node-wasm-v0.5.0) - 2024-10-03 + +### Added + +- *(node,node-wasm)* [**breaking**] Integrate graceful shutdown in WASM ([#396](https://github.com/eigerco/lumina/pull/396)) + +### Other + +- *(node-wasm)* add automatic generation of the types file and README ([#408](https://github.com/eigerco/lumina/pull/408)) +- Include API in readme ([#409](https://github.com/eigerco/lumina/pull/409)) +- *(node-wasm)* Switch to bundler target for wasm-pack for manifest v3 ([#398](https://github.com/eigerco/lumina/pull/398)) +- *(node-wasm)* clarify edge case when polling worker on startup ([#390](https://github.com/eigerco/lumina/pull/390)) + +## 0.4.0 + +This version was skipped because by accident 0.3.0 was released to npmjs also as 0.3.1 and 0.4.0. + ## [0.3.0](https://github.com/eigerco/lumina/compare/lumina-node-wasm-v0.2.0...lumina-node-wasm-v0.3.0) - 2024-09-24 ### Added diff --git a/node-wasm/Cargo.toml b/node-wasm/Cargo.toml index c4c9a55b..a91e9c76 100644 --- a/node-wasm/Cargo.toml +++ b/node-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lumina-node-wasm" -version = "0.3.0" +version = "0.5.0" edition = "2021" license = "Apache-2.0" description = "Browser compatibility layer for the Lumina node" diff --git a/node-wasm/js/README.md b/node-wasm/js/README.md index f1c81528..509f23d3 100644 --- a/node-wasm/js/README.md +++ b/node-wasm/js/README.md @@ -450,23 +450,6 @@ lumina\_node\_wasm.d.ts:132 *** -#### close() - -> **close**(): `Promise`\<`void`\> - -Requests SharedWorker running lumina to close. Any events received afterwards wont -be processed and new NodeClient needs to be created to restart a node. - -##### Returns - -`Promise`\<`void`\> - -##### Defined in - -lumina\_node\_wasm.d.ts:295 - -*** - #### connectedPeers() > **connectedPeers**(): `Promise`\<`any`[]\> @@ -479,7 +462,7 @@ Get all the peers that node is connected to. ##### Defined in -lumina\_node\_wasm.d.ts:178 +lumina\_node\_wasm.d.ts:182 *** @@ -495,7 +478,7 @@ Returns a [`BroadcastChannel`] for events generated by [`Node`]. ##### Defined in -lumina\_node\_wasm.d.ts:300 +lumina\_node\_wasm.d.ts:298 *** @@ -532,7 +515,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:253 +lumina\_node\_wasm.d.ts:257 *** @@ -555,7 +538,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:262 +lumina\_node\_wasm.d.ts:266 *** @@ -588,7 +571,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:280 +lumina\_node\_wasm.d.ts:284 *** @@ -607,7 +590,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:244 +lumina\_node\_wasm.d.ts:248 *** @@ -626,7 +609,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:236 +lumina\_node\_wasm.d.ts:240 *** @@ -649,7 +632,7 @@ https://docs.rs/lumina-node/latest/lumina_node/store/struct.SamplingMetadata.htm ##### Defined in -lumina\_node\_wasm.d.ts:289 +lumina\_node\_wasm.d.ts:293 *** @@ -681,7 +664,7 @@ Get all the multiaddresses on which the node listens. ##### Defined in -lumina\_node\_wasm.d.ts:173 +lumina\_node\_wasm.d.ts:177 *** @@ -697,7 +680,7 @@ Get node's local peer ID. ##### Defined in -lumina\_node\_wasm.d.ts:148 +lumina\_node\_wasm.d.ts:152 *** @@ -713,7 +696,7 @@ Get current network info. ##### Defined in -lumina\_node\_wasm.d.ts:168 +lumina\_node\_wasm.d.ts:172 *** @@ -729,7 +712,7 @@ Get current [`PeerTracker`] info. ##### Defined in -lumina\_node\_wasm.d.ts:153 +lumina\_node\_wasm.d.ts:157 *** @@ -752,7 +735,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:202 +lumina\_node\_wasm.d.ts:206 *** @@ -775,7 +758,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:211 +lumina\_node\_wasm.d.ts:215 *** @@ -794,7 +777,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:193 +lumina\_node\_wasm.d.ts:197 *** @@ -821,7 +804,7 @@ https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html ##### Defined in -lumina\_node\_wasm.d.ts:223 +lumina\_node\_wasm.d.ts:227 *** @@ -843,7 +826,7 @@ Trust or untrust the peer with a given ID. ##### Defined in -lumina\_node\_wasm.d.ts:185 +lumina\_node\_wasm.d.ts:189 *** @@ -867,6 +850,20 @@ lumina\_node\_wasm.d.ts:143 *** +#### stop() + +> **stop**(): `Promise`\<`void`\> + +##### Returns + +`Promise`\<`void`\> + +##### Defined in + +lumina\_node\_wasm.d.ts:147 + +*** + #### syncerInfo() > **syncerInfo**(): `Promise`\<[`SyncingInfoSnapshot`](#classessyncinginfosnapshotmd)\> @@ -879,7 +876,7 @@ Get current header syncing info. ##### Defined in -lumina\_node\_wasm.d.ts:228 +lumina\_node\_wasm.d.ts:232 *** @@ -895,7 +892,7 @@ Wait until the node is connected to at least 1 peer. ##### Defined in -lumina\_node\_wasm.d.ts:158 +lumina\_node\_wasm.d.ts:162 *** @@ -911,7 +908,7 @@ Wait until the node is connected to at least 1 trusted peer. ##### Defined in -lumina\_node\_wasm.d.ts:163 +lumina\_node\_wasm.d.ts:167 @@ -946,7 +943,7 @@ A list of bootstrap peers to connect to. ##### Defined in -lumina\_node\_wasm.d.ts:324 +lumina\_node\_wasm.d.ts:322 *** @@ -958,7 +955,7 @@ A network to connect to. ##### Defined in -lumina\_node\_wasm.d.ts:328 +lumina\_node\_wasm.d.ts:326 ### Methods @@ -972,7 +969,7 @@ lumina\_node\_wasm.d.ts:328 ##### Defined in -lumina\_node\_wasm.d.ts:314 +lumina\_node\_wasm.d.ts:312 *** @@ -988,7 +985,7 @@ lumina\_node\_wasm.d.ts:314 ##### Defined in -lumina\_node\_wasm.d.ts:309 +lumina\_node\_wasm.d.ts:307 *** @@ -1004,7 +1001,7 @@ Return stringified version of self. ##### Defined in -lumina\_node\_wasm.d.ts:313 +lumina\_node\_wasm.d.ts:311 *** @@ -1024,7 +1021,7 @@ Get the configuration with default bootnodes for provided network ##### Defined in -lumina\_node\_wasm.d.ts:320 +lumina\_node\_wasm.d.ts:318 @@ -1053,7 +1050,7 @@ lumina\_node\_wasm.d.ts:320 ##### Defined in -lumina\_node\_wasm.d.ts:337 +lumina\_node\_wasm.d.ts:335 ### Methods @@ -1067,7 +1064,7 @@ lumina\_node\_wasm.d.ts:337 ##### Defined in -lumina\_node\_wasm.d.ts:333 +lumina\_node\_wasm.d.ts:331 *** @@ -1081,7 +1078,7 @@ lumina\_node\_wasm.d.ts:333 ##### Defined in -lumina\_node\_wasm.d.ts:341 +lumina\_node\_wasm.d.ts:339 @@ -1116,7 +1113,7 @@ Number of the connected peers. ##### Defined in -lumina\_node\_wasm.d.ts:359 +lumina\_node\_wasm.d.ts:357 *** @@ -1128,7 +1125,7 @@ Number of the connected trusted peers. ##### Defined in -lumina\_node\_wasm.d.ts:363 +lumina\_node\_wasm.d.ts:361 ### Methods @@ -1142,7 +1139,7 @@ lumina\_node\_wasm.d.ts:363 ##### Defined in -lumina\_node\_wasm.d.ts:355 +lumina\_node\_wasm.d.ts:353 *** @@ -1158,7 +1155,7 @@ lumina\_node\_wasm.d.ts:355 ##### Defined in -lumina\_node\_wasm.d.ts:350 +lumina\_node\_wasm.d.ts:348 *** @@ -1174,7 +1171,7 @@ Return stringified version of self. ##### Defined in -lumina\_node\_wasm.d.ts:354 +lumina\_node\_wasm.d.ts:352 @@ -1209,7 +1206,7 @@ Ranges of headers that are already synchronised ##### Defined in -lumina\_node\_wasm.d.ts:381 +lumina\_node\_wasm.d.ts:379 *** @@ -1221,7 +1218,7 @@ Syncing target. The latest height seen in the network that was successfully veri ##### Defined in -lumina\_node\_wasm.d.ts:385 +lumina\_node\_wasm.d.ts:383 ### Methods @@ -1235,7 +1232,7 @@ lumina\_node\_wasm.d.ts:385 ##### Defined in -lumina\_node\_wasm.d.ts:377 +lumina\_node\_wasm.d.ts:375 *** @@ -1251,7 +1248,7 @@ lumina\_node\_wasm.d.ts:377 ##### Defined in -lumina\_node\_wasm.d.ts:372 +lumina\_node\_wasm.d.ts:370 *** @@ -1267,7 +1264,7 @@ Return stringified version of self. ##### Defined in -lumina\_node\_wasm.d.ts:376 +lumina\_node\_wasm.d.ts:374 # Enumerations diff --git a/node-wasm/js/package.json b/node-wasm/js/package.json index 298a8dd4..00ef85cc 100644 --- a/node-wasm/js/package.json +++ b/node-wasm/js/package.json @@ -5,7 +5,7 @@ "Eiger " ], "description": "Lumina node for Celestia, running in browser", - "version": "0.3.0", + "version": "0.5.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -19,7 +19,7 @@ "main": "index.js", "homepage": "https://www.eiger.co", "dependencies": { - "lumina-node-wasm": "0.3.0" + "lumina-node-wasm": "0.5.0" }, "keywords": [ "blockchain", diff --git a/node/CHANGELOG.md b/node/CHANGELOG.md index 09b48ded..4c325e12 100644 --- a/node/CHANGELOG.md +++ b/node/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0](https://github.com/eigerco/lumina/compare/lumina-node-v0.4.0...lumina-node-v0.5.0) - 2024-10-03 + +### Added + +- [**breaking**] shwap protocol updates ([#369](https://github.com/eigerco/lumina/pull/369)) +- *(node,node-wasm)* [**breaking**] Integrate graceful shutdown in WASM ([#396](https://github.com/eigerco/lumina/pull/396)) + ## [0.4.0](https://github.com/eigerco/lumina/compare/lumina-node-v0.3.1...lumina-node-v0.4.0) - 2024-09-24 ### Added diff --git a/node/Cargo.toml b/node/Cargo.toml index 15eb8d5c..aaf810ef 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lumina-node" -version = "0.4.0" +version = "0.5.0" edition = "2021" license = "Apache-2.0" description = "Celestia data availability node implementation in Rust" diff --git a/proto/CHANGELOG.md b/proto/CHANGELOG.md index e4fcea44..d9e60f0f 100644 --- a/proto/CHANGELOG.md +++ b/proto/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0](https://github.com/eigerco/lumina/compare/celestia-proto-v0.3.1...celestia-proto-v0.4.0) - 2024-10-03 + +### Added + +- [**breaking**] shwap protocol updates ([#369](https://github.com/eigerco/lumina/pull/369)) + ## [0.3.1](https://github.com/eigerco/lumina/compare/celestia-proto-v0.3.0...celestia-proto-v0.3.1) - 2024-09-24 ### Other diff --git a/proto/Cargo.toml b/proto/Cargo.toml index 78e67267..671652b3 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "celestia-proto" -version = "0.3.1" +version = "0.4.0" edition = "2021" license = "Apache-2.0" description = "Rust implementation of proto structs used in celestia ecosystem" diff --git a/rpc/CHANGELOG.md b/rpc/CHANGELOG.md index 9f302d65..d9d31d9b 100644 --- a/rpc/CHANGELOG.md +++ b/rpc/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0](https://github.com/eigerco/lumina/compare/celestia-rpc-v0.4.1...celestia-rpc-v0.5.0) - 2024-10-03 + +### Added + +- [**breaking**] shwap protocol updates ([#369](https://github.com/eigerco/lumina/pull/369)) + ## [0.4.1](https://github.com/eigerco/lumina/compare/celestia-rpc-v0.4.0...celestia-rpc-v0.4.1) - 2024-09-24 ### Added diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 85959563..30e32102 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "celestia-rpc" -version = "0.4.1" +version = "0.5.0" edition = "2021" license = "Apache-2.0" description = "A collection of traits for interacting with Celestia data availability nodes RPC" diff --git a/types/CHANGELOG.md b/types/CHANGELOG.md index e44f2f8a..eab2c0db 100644 --- a/types/CHANGELOG.md +++ b/types/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.6.0](https://github.com/eigerco/lumina/compare/celestia-types-v0.5.0...celestia-types-v0.6.0) - 2024-10-03 + +### Added + +- [**breaking**] shwap protocol updates ([#369](https://github.com/eigerco/lumina/pull/369)) +- *(types)* align for building for riscv32 ([#393](https://github.com/eigerco/lumina/pull/393)) + ## [0.5.0](https://github.com/eigerco/lumina/compare/celestia-types-v0.4.0...celestia-types-v0.5.0) - 2024-09-24 ### Added diff --git a/types/Cargo.toml b/types/Cargo.toml index 97a02666..eaa72376 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "celestia-types" -version = "0.5.0" +version = "0.6.0" edition = "2021" license = "Apache-2.0" description = "Core types, traits and constants for working with the Celestia ecosystem"