From 6111cf2c23c7287cd11747759236b5b72c90cb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kr=C3=BCger?= Date: Sun, 10 Sep 2023 17:32:54 +0200 Subject: [PATCH] chore: Remove release please & bump versions (#347) * chore: Remove release please & bump versions * refactor: Use version-fixed dependencies between workspace crates * chore: Write wnfs-hamt changelog --- .github/workflows/release.yml | 138 ---------------------------------- .release-please-manifest.json | 8 -- release-please-config.json | 14 ---- wnfs-common/CHANGELOG.md | 4 + wnfs-common/Cargo.toml | 2 +- wnfs-hamt/CHANGELOG.md | 9 +-- wnfs-hamt/Cargo.toml | 4 +- wnfs-wasm/Cargo.toml | 4 +- wnfs/CHANGELOG.md | 7 ++ wnfs/Cargo.toml | 8 +- 10 files changed, 24 insertions(+), 174 deletions(-) delete mode 100644 .github/workflows/release.yml delete mode 100644 .release-please-manifest.json delete mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 87fe890c..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,138 +0,0 @@ -name: ๐Œš Release - -on: - workflow_dispatch: - inputs: - force-publish: - required: true - type: boolean - description: Publish Releases at Anytime - - workflow_run: - workflows: [ ๐Ÿงช Tests and Checks ] - branches: [main] - types: [ completed ] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - release-please: - runs-on: ubuntu-latest - if: > - github.ref == 'refs/heads/main' && - github.repository_owner == 'wnfs-wg' && - github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' - - outputs: - releases_created: ${{ steps.release.outputs['wnfs--release_created'] || steps.release.outputs['wnfs-wasm--release_created'] }} - wasm_release_created: ${{ steps.release.outputs['wnfs-wasm--release_created'] }} - - steps: - - name: Run release-please - id: release - uses: google-github-actions/release-please-action@v3.7.10 - with: - token: ${{ secrets.GITHUB_TOKEN }} - default-branch: main - command: manifest - extra-files: | - Cargo.toml - - publish-release-crates: - if: ${{ needs.release-please.outputs.releases_created || github.event.inputs.force-publish }} - - runs-on: ubuntu-latest - needs: [ release-please ] - - permissions: - contents: write - pull-requests: write - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Cache Project - uses: Swatinem/rust-cache@v2 - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - override: true - profile: minimal - toolchain: stable - - - name: Install Cargo Workspaces - env: - RUSTFLAGS: '-Copt-level=1' - uses: actions-rs/cargo@v1 - with: - args: --force cargo-workspaces - command: install - - - name: Verify Publishing of crate - uses: katyo/publish-crates@v2 - with: - dry-run: true - - - name: Cargo Publish to crates.io - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: cargo workspaces publish --from-git - - publish-release-npm: - if: ${{ needs.release-please.outputs.wasm_release_created || github.event.inputs.force-publish }} - - runs-on: ubuntu-latest - needs: [ release-please ] - - permissions: - contents: write - pull-requests: write - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Cache Project - uses: Swatinem/rust-cache@v2 - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - override: true - target: wasm32-unknown-unknown - profile: minimal - toolchain: stable - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: '16.x' - registry-url: 'https://registry.npmjs.org' - - - name: Install Wasm Bindgen CLI - uses: "actions-rs/cargo@v1" - with: - args: "--force wasm-bindgen-cli" - command: install - - - name: Install Binaryen - run: sudo apt update && sudo apt install binaryen -y - - - name: Install Node Dependencies - run: yarn - working-directory: wnfs-wasm - - # Build and rename package.json name - - name: Build - run: ./scripts/rs-wnfs.sh build --wasm - shell: bash - - - name: Publish to npm - run: npm publish - working-directory: wnfs-wasm - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json deleted file mode 100644 index 8fd36543..00000000 --- a/.release-please-manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "wnfs": "0.1.25", - "wnfs-common": "0.1.24", - "wnfs-hamt": "0.1.24", - "wnfs-nameaccumulator": "0.1.25", - "wnfs-wasm": "0.1.26", - "wnfs-bench": "0.1.25" -} diff --git a/release-please-config.json b/release-please-config.json deleted file mode 100644 index 23be78e2..00000000 --- a/release-please-config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "plugins": ["cargo-workspace"], - "changelog-path": "CHANGELOG.md", - "release-type": "rust", - "bump-minor-pre-major": true, - "bump-patch-for-minor-pre-major": true, - "packages": { - "wnfs": {}, - "wnfs-wasm": {}, - "wnfs-common": {}, - "wnfs-hamt": {}, - "wnfs-nameaccumulator": {} - } -} diff --git a/wnfs-common/CHANGELOG.md b/wnfs-common/CHANGELOG.md index 3854a787..a263a814 100644 --- a/wnfs-common/CHANGELOG.md +++ b/wnfs-common/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.25 (2023-09-04) + +* Small documentation improvements + ## [0.1.23](https://github.com/wnfs-wg/rs-wnfs/compare/wnfs-common-v0.1.22...wnfs-common-v0.1.23) (2023-07-21) diff --git a/wnfs-common/Cargo.toml b/wnfs-common/Cargo.toml index 0af0c3ef..698b896d 100644 --- a/wnfs-common/Cargo.toml +++ b/wnfs-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs-common" -version = "0.1.24" +version = "0.1.25" description = "Common types for the Webnative Filesystem" keywords = ["wnfs", "webnative", "ipfs", "decentralisation"] categories = [ diff --git a/wnfs-hamt/CHANGELOG.md b/wnfs-hamt/CHANGELOG.md index 220837d4..074bb1e7 100644 --- a/wnfs-hamt/CHANGELOG.md +++ b/wnfs-hamt/CHANGELOG.md @@ -1,10 +1,9 @@ # Changelog -* The following workspace dependencies were updated - * dependencies - * wnfs-common bumped from 0.1.19 to 0.1.20 - * dev-dependencies - * wnfs-common bumped from 0.1.19 to 0.1.20 +## 0.1.25 (2023-09-04) + +* Fixed a bug causing dropped updates when doing serialization, then continuing writes, then serializing again and loading from that serialized state [#348](https://github.com/wnfs-wg/rs-wnfs/pull/348) +* Dependency wnfs-common bumped from 0.1.24 to 0.1.25 ## [0.1.23](https://github.com/wnfs-wg/rs-wnfs/compare/wnfs-hamt-v0.1.22...wnfs-hamt-v0.1.23) (2023-07-21) diff --git a/wnfs-hamt/Cargo.toml b/wnfs-hamt/Cargo.toml index dc46d138..b8f68f2f 100644 --- a/wnfs-hamt/Cargo.toml +++ b/wnfs-hamt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs-hamt" -version = "0.1.24" +version = "0.1.25" description = "IPLD HAMT implementation for Webnative Filesystem" keywords = ["wnfs", "webnative", "ipfs", "decentralisation"] categories = [ @@ -37,7 +37,7 @@ semver = { version = "1.0", features = ["serde"] } serde = { version = "1.0", features = ["rc"] } serde-byte-array = "0.1.2" thiserror = "1.0" -wnfs-common = { path = "../wnfs-common", version = "0.1.24" } +wnfs-common = { path = "../wnfs-common", version = "=0.1.25" } [dev-dependencies] async-std = { version = "1.11", features = ["attributes"] } diff --git a/wnfs-wasm/Cargo.toml b/wnfs-wasm/Cargo.toml index d5f4745b..8561b2f2 100644 --- a/wnfs-wasm/Cargo.toml +++ b/wnfs-wasm/Cargo.toml @@ -30,8 +30,8 @@ rand_core = "0.6" wasm-bindgen = { version = "0.2.87", optional = true, features = ["serde-serialize"] } wasm-bindgen-futures = { version = "0.4", optional = true } web-sys = { version = "0.3", optional = true } -wnfs = { path = "../wnfs", version = "0.1.25" } -wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "0.1.25" } +wnfs = { path = "../wnfs", version = "=0.1.26" } +wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "=0.1.25" } [dev-dependencies] wasm-bindgen-test = "0.3" diff --git a/wnfs/CHANGELOG.md b/wnfs/CHANGELOG.md index 24293d78..866efa2a 100644 --- a/wnfs/CHANGELOG.md +++ b/wnfs/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.1.26 (2023-09-04) + +* Added `PrivateForestContent` API for storing encrypted data in private file metadata +* Added `_rc` constructor variants +* Removed `Share` struct from the share API. We recommend using share and receive functions directly. +* Added some module documentation + ## [0.1.25](https://github.com/wnfs-wg/rs-wnfs/compare/wnfs-v0.1.24...wnfs-v0.1.25) (2023-08-30) diff --git a/wnfs/Cargo.toml b/wnfs/Cargo.toml index 09c73631..16f48610 100644 --- a/wnfs/Cargo.toml +++ b/wnfs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs" -version = "0.1.25" +version = "0.1.26" description = "WebNative filesystem core implementation" keywords = ["wnfs", "webnative", "ipfs", "decentralisation"] categories = [ @@ -43,9 +43,9 @@ serde_ipld_dagcbor = "0.4" sha3 = "0.10" skip_ratchet = { version = "0.3", features = ["serde"] } thiserror = "1.0" -wnfs-common = { path = "../wnfs-common", version = "0.1.24" } -wnfs-hamt = { path = "../wnfs-hamt", version = "0.1.24" } -wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "0.1.25" } +wnfs-common = { path = "../wnfs-common", version = "=0.1.25" } +wnfs-hamt = { path = "../wnfs-hamt", version = "=0.1.25" } +wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "=0.1.25" } [dev-dependencies] async-std = { version = "1.11", features = ["attributes"] }