diff --git a/wnfs-wasm/CHANGELOG.md b/wnfs-wasm/CHANGELOG.md index b889ebc9..35fe7d33 100644 --- a/wnfs-wasm/CHANGELOG.md +++ b/wnfs-wasm/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.2.2 (2023-03-08) + +* Allow overwriting `putBlock` in the `BlockStore` interface ([#409](https://github.com/wnfs-wg/rs-wnfs/pull/409)) + ## 0.2.1 (2023-02-28) * Added `getSize` method to `PublicFile` and `PrivateFile` diff --git a/wnfs-wasm/Cargo.toml b/wnfs-wasm/Cargo.toml index 1d369ce9..fff2f115 100644 --- a/wnfs-wasm/Cargo.toml +++ b/wnfs-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs-wasm" -version = "0.2.1" +version = "0.2.2" description = "WebNative Filesystem API (WebAssembly)" keywords = ["wnfs", "wasm", "webnative", "ipfs", "decentralisation"] categories = [ @@ -30,7 +30,7 @@ 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.2.1" } +wnfs = { path = "../wnfs", version = "=0.2.2" } wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "=0.2.0" } [dev-dependencies] diff --git a/wnfs-wasm/package.json b/wnfs-wasm/package.json index 70b8ee77..b9120179 100644 --- a/wnfs-wasm/package.json +++ b/wnfs-wasm/package.json @@ -4,7 +4,7 @@ "The Fission Authors" ], "description": "WebNative Filesystem API (WebAssembly)", - "version": "0.2.1", + "version": "0.2.2", "license": "Apache-2.0", "homepage": "https://fission.codes", "repository": { diff --git a/wnfs-wasm/src/fs/blockstore.rs b/wnfs-wasm/src/fs/blockstore.rs index aeaf74b8..7d2ffc75 100644 --- a/wnfs-wasm/src/fs/blockstore.rs +++ b/wnfs-wasm/src/fs/blockstore.rs @@ -19,6 +19,7 @@ export interface BlockStore { putBlockKeyed(cid: Uint8Array, bytes: Uint8Array): Promise; getBlock(cid: Uint8Array): Promise; hasBlock(cid: Uint8Array): Promise; + putBlock?(bytes: Uint8Array, codec: number): Promise; } "#; diff --git a/wnfs/CHANGELOG.md b/wnfs/CHANGELOG.md index d30f4266..e3d6d007 100644 --- a/wnfs/CHANGELOG.md +++ b/wnfs/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.2.2 (2023-03-08) + +* Remove leftover println debugging ([#406](https://github.com/wnfs-wg/rs-wnfs/pull/406)) + ## 0.2.1 (2023-02-28) * Added `PublicFile::size` and `PrivateFile::size` functions diff --git a/wnfs/Cargo.toml b/wnfs/Cargo.toml index 15326588..08d5c1bd 100644 --- a/wnfs/Cargo.toml +++ b/wnfs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfs" -version = "0.2.1" +version = "0.2.2" description = "WebNative filesystem core implementation" keywords = ["wnfs", "webnative", "ipfs", "decentralisation"] categories = [