Skip to content

Commit

Permalink
Release wasm-v0.5.0-dev.5 (#747)
Browse files Browse the repository at this point in the history
* changelog and versions

* only release musl

* changelog and versions

* push public tag
  • Loading branch information
github-actions[bot] authored Mar 21, 2022
1 parent 0db99bc commit bf75d35
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ runs:
# will publish 'latest' tag if no tag is passed
run: |
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
npm run prepublishOnly
npm run prepublishOnly --access public
# npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public
30 changes: 0 additions & 30 deletions .github/workflows/shared-build-and-test-stronghold-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,6 @@ jobs:
fail-fast: false
matrix:
settings:
- host: macos-latest
target: x86_64-apple-darwin
architecture: x64
build: |
npm run build
strip -x dist/*.node
test: |
npm run test
- host: windows-latest
target: x86_64-pc-windows-msvc
architecture: x64
build: |
npm run build
test: |
npm run test
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
architecture: x64
build: |
npm run build && strip dist/*.node
test: |
npm run test
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
architecture: x64
Expand All @@ -73,14 +51,6 @@ jobs:
test-docker: |
docker build -f .github/Dockerfile.alpine -t tester .
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"
- host: macos-latest
target: aarch64-apple-darwin
build: |
export NPM_BUILD_NAPI_ARGS=--target=aarch64-apple-darwin
npm run build && strip -x dist/*.node
# we can't test this properly because the macos-latest runners don't have apple silicon / aarch64
test: |
echo "let's hope for the best"
name: stable - ${{ matrix.settings.target }} - node@16
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion bindings/stronghold-nodejs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity-stronghold-nodejs"
version = "0.0.0"
version = "0.5.0-dev.5"
edition = "2021"
publish = false
[lib]
Expand Down
4 changes: 2 additions & 2 deletions bindings/stronghold-nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bindings/stronghold-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iota/identity-stronghold-nodejs",
"version": "0.0.0",
"version": "0.5.0-dev.5",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down Expand Up @@ -43,6 +43,6 @@
"test": "ts-mocha ./examples/src/tests/*.ts --parallel --jobs 4 --retries 3 --timeout 180000 --exit"
},
"peerDependencies": {
"@iota/identity-wasm": "^0.5.0-dev.4"
"@iota/identity-wasm": "0.5.0-dev.5"
}
}
39 changes: 39 additions & 0 deletions bindings/wasm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Changelog

## [wasm-v0.5.0-dev.5](https://github.com/iotaledger/identity.rs/tree/wasm-v0.5.0-dev.5) (2022-03-21)

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

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.

### Changed

- Move DID Document proof outside metadata [\#728](https://github.com/iotaledger/identity.rs/pull/728)
- Replace Wasm getters and setters with methods [\#706](https://github.com/iotaledger/identity.rs/pull/706)
- Replace Wasm `Config` with `ClientConfig` interface [\#696](https://github.com/iotaledger/identity.rs/pull/696)
- Change `IotaDocument::verify_document` from a static function to a method [\#675](https://github.com/iotaledger/identity.rs/pull/675)
- Make Wasm support dependent on `target_arch` rather than feature [\#666](https://github.com/iotaledger/identity.rs/pull/666)
- Refactor `CoreDocument`, `VerificationMethod`, `Service` to use generic DID [\#655](https://github.com/iotaledger/identity.rs/pull/655)
- Overhaul `CredentialValidator`, add `PresentationValidator` [\#599](https://github.com/iotaledger/identity.rs/pull/599)
- Replace `ClientMap` with new `Resolver` [\#594](https://github.com/iotaledger/identity.rs/pull/594)

### Added

- Add deep clone function in Wasm [\#705](https://github.com/iotaledger/identity.rs/pull/705)
- Add `Duration` for `Timestamp` arithmetic [\#684](https://github.com/iotaledger/identity.rs/pull/684)
- Add `Client` fallback to local PoW option [\#682](https://github.com/iotaledger/identity.rs/pull/682)
- Add Wasm `Service` constructor and field getters [\#680](https://github.com/iotaledger/identity.rs/pull/680)
- Complete `Document` Wasm bindings [\#679](https://github.com/iotaledger/identity.rs/pull/679)
- Add `Document.signDocument` for Wasm [\#674](https://github.com/iotaledger/identity.rs/pull/674)
- Add Wasm bindings for `set_controller` and `set_also_known_as` in the `Account` [\#668](https://github.com/iotaledger/identity.rs/pull/668)
- Add NodeJs bindings for Stronghold `Storage` [\#660](https://github.com/iotaledger/identity.rs/pull/660)
- Add Wasm `Account` `Storage` interface [\#597](https://github.com/iotaledger/identity.rs/pull/597)
- Add Wasm bindings for the `Account` [\#574](https://github.com/iotaledger/identity.rs/pull/574)

### Patch

- Enable Wasm weak references for automatic garbage collection [\#694](https://github.com/iotaledger/identity.rs/pull/694)
- Fix `WasmTimestamp` JSON serialization [\#688](https://github.com/iotaledger/identity.rs/pull/688)

### Removed

- Remove `publicKeyJwk` [\#732](https://github.com/iotaledger/identity.rs/pull/732)

## [wasm-v0.5.0-dev.4](https://github.com/iotaledger/identity.rs/tree/wasm-v0.5.0-dev.4) (2022-02-14)

[Full Changelog](https://github.com/iotaledger/identity.rs/compare/wasm-v0.5.0-dev.3...wasm-v0.5.0-dev.4)
Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "identity-wasm"
version = "0.5.0-dev.4"
version = "0.5.0-dev.5"
authors = ["IOTA Stiftung"]
edition = "2021"
homepage = "https://www.iota.org"
Expand Down
4 changes: 2 additions & 2 deletions bindings/wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iota/identity-wasm",
"version": "0.5.0-dev.4",
"version": "0.5.0-dev.5",
"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",
"repository": {
"type": "git",
Expand Down

0 comments on commit bf75d35

Please sign in to comment.