Skip to content

Commit bf75d35

Browse files
Release wasm-v0.5.0-dev.5 (#747)
* changelog and versions * only release musl * changelog and versions * push public tag
1 parent 0db99bc commit bf75d35

File tree

9 files changed

+49
-40
lines changed

9 files changed

+49
-40
lines changed

.github/actions/publish/publish-stronghold-nodejs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ runs:
5454
# will publish 'latest' tag if no tag is passed
5555
run: |
5656
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
57-
npm run prepublishOnly
57+
npm run prepublishOnly --access public
5858
# npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public

.github/workflows/shared-build-and-test-stronghold-nodejs.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,6 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
settings:
43-
- host: macos-latest
44-
target: x86_64-apple-darwin
45-
architecture: x64
46-
build: |
47-
npm run build
48-
strip -x dist/*.node
49-
test: |
50-
npm run test
51-
- host: windows-latest
52-
target: x86_64-pc-windows-msvc
53-
architecture: x64
54-
build: |
55-
npm run build
56-
test: |
57-
npm run test
58-
- host: ubuntu-latest
59-
target: x86_64-unknown-linux-gnu
60-
architecture: x64
61-
build: |
62-
npm run build && strip dist/*.node
63-
test: |
64-
npm run test
6543
- host: ubuntu-latest
6644
target: x86_64-unknown-linux-musl
6745
architecture: x64
@@ -73,14 +51,6 @@ jobs:
7351
test-docker: |
7452
docker build -f .github/Dockerfile.alpine -t tester .
7553
docker run --rm -v $(pwd):/build -w /build/bindings/stronghold-nodejs tester sh -c "readelf -d dist/identity-stronghold-nodejs.linux-x64-musl.node && npm run test"
76-
- host: macos-latest
77-
target: aarch64-apple-darwin
78-
build: |
79-
export NPM_BUILD_NAPI_ARGS=--target=aarch64-apple-darwin
80-
npm run build && strip -x dist/*.node
81-
# we can't test this properly because the macos-latest runners don't have apple silicon / aarch64
82-
test: |
83-
echo "let's hope for the best"
8454
name: stable - ${{ matrix.settings.target }} - node@16
8555
runs-on: ${{ matrix.settings.host }}
8656
steps:

bindings/stronghold-nodejs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "identity-stronghold-nodejs"
3-
version = "0.0.0"
3+
version = "0.5.0-dev.5"
44
edition = "2021"
55
publish = false
66
[lib]

bindings/stronghold-nodejs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/stronghold-nodejs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iota/identity-stronghold-nodejs",
3-
"version": "0.0.0",
3+
"version": "0.5.0-dev.5",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"files": [
@@ -43,6 +43,6 @@
4343
"test": "ts-mocha ./examples/src/tests/*.ts --parallel --jobs 4 --retries 3 --timeout 180000 --exit"
4444
},
4545
"peerDependencies": {
46-
"@iota/identity-wasm": "^0.5.0-dev.4"
46+
"@iota/identity-wasm": "0.5.0-dev.5"
4747
}
4848
}

bindings/wasm/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Changelog
22

3+
## [wasm-v0.5.0-dev.5](https://github.com/iotaledger/identity.rs/tree/wasm-v0.5.0-dev.5) (2022-03-21)
4+
5+
[Full Changelog](https://github.com/iotaledger/identity.rs/compare/wasm-v0.5.0-dev.4...wasm-v0.5.0-dev.5)
6+
7+
This release introduces a breaking change to the proof field of DID Documents created by versions `v0.5.0-dev.1` through `v0.5.0-dev.4`, making all prior documents incompatible. The main feature of this release is the introduction of WebAssembly (Wasm) bindings for the high-level `Account` API for Javascript/Typescript in both Node.js and the browser. This includes Stronghold storage support but only for Node.js, as it was determined that compiling Stronghold to Wasm for private key storage in the browser would not be sufficiently secure.
8+
9+
### Changed
10+
11+
- Move DID Document proof outside metadata [\#728](https://github.com/iotaledger/identity.rs/pull/728)
12+
- Replace Wasm getters and setters with methods [\#706](https://github.com/iotaledger/identity.rs/pull/706)
13+
- Replace Wasm `Config` with `ClientConfig` interface [\#696](https://github.com/iotaledger/identity.rs/pull/696)
14+
- Change `IotaDocument::verify_document` from a static function to a method [\#675](https://github.com/iotaledger/identity.rs/pull/675)
15+
- Make Wasm support dependent on `target_arch` rather than feature [\#666](https://github.com/iotaledger/identity.rs/pull/666)
16+
- Refactor `CoreDocument`, `VerificationMethod`, `Service` to use generic DID [\#655](https://github.com/iotaledger/identity.rs/pull/655)
17+
- Overhaul `CredentialValidator`, add `PresentationValidator` [\#599](https://github.com/iotaledger/identity.rs/pull/599)
18+
- Replace `ClientMap` with new `Resolver` [\#594](https://github.com/iotaledger/identity.rs/pull/594)
19+
20+
### Added
21+
22+
- Add deep clone function in Wasm [\#705](https://github.com/iotaledger/identity.rs/pull/705)
23+
- Add `Duration` for `Timestamp` arithmetic [\#684](https://github.com/iotaledger/identity.rs/pull/684)
24+
- Add `Client` fallback to local PoW option [\#682](https://github.com/iotaledger/identity.rs/pull/682)
25+
- Add Wasm `Service` constructor and field getters [\#680](https://github.com/iotaledger/identity.rs/pull/680)
26+
- Complete `Document` Wasm bindings [\#679](https://github.com/iotaledger/identity.rs/pull/679)
27+
- Add `Document.signDocument` for Wasm [\#674](https://github.com/iotaledger/identity.rs/pull/674)
28+
- Add Wasm bindings for `set_controller` and `set_also_known_as` in the `Account` [\#668](https://github.com/iotaledger/identity.rs/pull/668)
29+
- Add NodeJs bindings for Stronghold `Storage` [\#660](https://github.com/iotaledger/identity.rs/pull/660)
30+
- Add Wasm `Account` `Storage` interface [\#597](https://github.com/iotaledger/identity.rs/pull/597)
31+
- Add Wasm bindings for the `Account` [\#574](https://github.com/iotaledger/identity.rs/pull/574)
32+
33+
### Patch
34+
35+
- Enable Wasm weak references for automatic garbage collection [\#694](https://github.com/iotaledger/identity.rs/pull/694)
36+
- Fix `WasmTimestamp` JSON serialization [\#688](https://github.com/iotaledger/identity.rs/pull/688)
37+
38+
### Removed
39+
40+
- Remove `publicKeyJwk` [\#732](https://github.com/iotaledger/identity.rs/pull/732)
41+
342
## [wasm-v0.5.0-dev.4](https://github.com/iotaledger/identity.rs/tree/wasm-v0.5.0-dev.4) (2022-02-14)
443

544
[Full Changelog](https://github.com/iotaledger/identity.rs/compare/wasm-v0.5.0-dev.3...wasm-v0.5.0-dev.4)

bindings/wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "identity-wasm"
3-
version = "0.5.0-dev.4"
3+
version = "0.5.0-dev.5"
44
authors = ["IOTA Stiftung"]
55
edition = "2021"
66
homepage = "https://www.iota.org"

bindings/wasm/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iota/identity-wasm",
3-
"version": "0.5.0-dev.4",
3+
"version": "0.5.0-dev.5",
44
"description": "WASM bindings for IOTA Identity - A Self Sovereign Identity Framework implementing the DID and VC standards from W3C. To be used in Javascript/Typescript",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)