Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master' into alpha
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/test.yml
#	CHANGELOG.md
#	esm/index.js
#	package.json
#	src/__tests__/nonce.test.ts
#	tsconfig.json
  • Loading branch information
mirceanis committed Sep 30, 2024
2 parents 80b681d + 61862ba commit d0bef9d
Show file tree
Hide file tree
Showing 29 changed files with 8,246 additions and 7,394 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
build-test-publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: "Setup node with cache"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18
cache: 'yarn'

- run: yarn install --frozen-lockfile
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
version: [ 14, 16, 18 ]
version: [ 18 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Setup node with cache"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: 'yarn'
Expand All @@ -23,6 +23,7 @@ jobs:
- run: yarn run test:ci

- name: "Upload coverage reports"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
183 changes: 183 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,186 @@
## [10.1.10](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.9...10.1.10) (2024-07-26)


### Bug Fixes

* **deps:** update dependency ethers to v6.13.2 ([c9d253f](https://github.com/decentralized-identity/ethr-did-resolver/commit/c9d253f58307f47363b67419f04fab721b25763d))

## [10.1.9](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.8...10.1.9) (2024-06-18)


### Bug Fixes

* **deps:** update dependency ethers to v6.13.1 ([e6885b9](https://github.com/decentralized-identity/ethr-did-resolver/commit/e6885b98d6c9cab9edbf79183e4b73672b076ea6))

## [10.1.8](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.7...10.1.8) (2024-06-13)


### Bug Fixes

* **deps:** update dependency ethers to v6.13.0 ([9c9d978](https://github.com/decentralized-identity/ethr-did-resolver/commit/9c9d9781039a8a800f4a024857537480c277eed9))

## [10.1.7](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.6...10.1.7) (2024-06-13)


### Bug Fixes

* **test:** remove the connection test for goerli network ([#201](https://github.com/decentralized-identity/ethr-did-resolver/issues/201)) ([c861026](https://github.com/decentralized-identity/ethr-did-resolver/commit/c861026d6d9fa4bb35cf3b6fd13d7d846e2cc728))

## [10.1.6](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.5...10.1.6) (2024-06-13)


### Bug Fixes

* consistent Encoding of `attrValue` on `createRevokeAttributeHash` ([#200](https://github.com/decentralized-identity/ethr-did-resolver/issues/200)) ([81363d0](https://github.com/decentralized-identity/ethr-did-resolver/commit/81363d0ca8ab1da2c0302442e166678433cd6e6c))

## [10.1.5](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.4...10.1.5) (2024-02-14)


### Bug Fixes

* **deps:** update dependency ethers to v6.11.1 ([d22fd46](https://github.com/decentralized-identity/ethr-did-resolver/commit/d22fd4658b64157d16c2ae994929859c45a80b60))

## [10.1.4](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.3...10.1.4) (2024-02-09)


### Bug Fixes

* **deps:** update dependency ethers to v6.11.0 ([35620c9](https://github.com/decentralized-identity/ethr-did-resolver/commit/35620c9aa58084ee73aa9d1678a3eb3d94aef851))

## [10.1.3](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.2...10.1.3) (2024-01-13)


### Bug Fixes

* **deps:** update dependency ethers to v6.10.0 ([435ae92](https://github.com/decentralized-identity/ethr-did-resolver/commit/435ae92b3349e48152b2c23ba995b0aeb620995f))

## [10.1.2](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.1...10.1.2) (2024-01-03)


### Bug Fixes

* **deps:** update dependency ethers to v6.9.2 ([0e69c5b](https://github.com/decentralized-identity/ethr-did-resolver/commit/0e69c5b6e1abd51474d051aef235bf2281d660c1))

## [10.1.1](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.1.0...10.1.1) (2023-12-20)


### Bug Fixes

* **deps:** update dependency ethers to v6.9.1 ([01e0006](https://github.com/decentralized-identity/ethr-did-resolver/commit/01e000624996138d7d3142c6f4c604b178684778))

# [10.1.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.0.1...10.1.0) (2023-12-05)


### Features

* add Sepolia deployment ([#195](https://github.com/decentralized-identity/ethr-did-resolver/issues/195)) ([94015bf](https://github.com/decentralized-identity/ethr-did-resolver/commit/94015bfaa277907b8691dffbc01690bd3e230c1e))

## [10.0.1](https://github.com/decentralized-identity/ethr-did-resolver/compare/10.0.0...10.0.1) (2023-11-27)


### Bug Fixes

* **deps:** update dependency ethers to v6.9.0 ([0ca70ec](https://github.com/decentralized-identity/ethr-did-resolver/commit/0ca70ec2fb60ab9ecf6a1a57ed046c84b8f81e11))

# [10.0.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/9.1.1...10.0.0) (2023-11-08)


### Features

* track signing keys independently ([#194](https://github.com/decentralized-identity/ethr-did-resolver/issues/194)) ([cc44100](https://github.com/decentralized-identity/ethr-did-resolver/commit/cc441006b617abb26325ac41ef6d93d2a34b1046)), closes [#184](https://github.com/decentralized-identity/ethr-did-resolver/issues/184)


### BREAKING CHANGES

* the keys in the `verificationMethod` array are no longer all referenced in the `assertionMethod` array. Only authentication (`sigAuth`) or signing keys (`veriKey`) are added.

## [9.1.1](https://github.com/decentralized-identity/ethr-did-resolver/compare/9.1.0...9.1.1) (2023-11-08)


### Bug Fixes

* **deps:** bump dependencies and adapt code ([#193](https://github.com/decentralized-identity/ethr-did-resolver/issues/193)) ([0a8da00](https://github.com/decentralized-identity/ethr-did-resolver/commit/0a8da00c248b89abcb644a4aa6b5f1d8c895cc02))

# [9.1.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/9.0.0...9.1.0) (2023-11-08)


### Features

* add JSON-LD contexts that define all the terms being used ([#192](https://github.com/decentralized-identity/ethr-did-resolver/issues/192)) ([cd49ab8](https://github.com/decentralized-identity/ethr-did-resolver/commit/cd49ab81e8a0269ec130271b534a109b35fa39f6))

# [9.0.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/8.1.2...9.0.0) (2023-09-27)


### Bug Fixes

* **deps:** update ethers to v6 ([#188](https://github.com/decentralized-identity/ethr-did-resolver/issues/188)) ([2785e61](https://github.com/decentralized-identity/ethr-did-resolver/commit/2785e615594a73693dcbec86506af666424184cd))


### BREAKING CHANGES

* **deps:** this update uses ethers v6 which has a sufficiently different API from v5 that will likely need attention. While the API of this library hasn't changed, it is likely that an update will need attention so this is marked as a breaking change and a new major version is released.

## [8.1.2](https://github.com/decentralized-identity/ethr-did-resolver/compare/8.1.1...8.1.2) (2023-07-13)


### Bug Fixes

* **deps:** update all non-major dependencies ([5d1be47](https://github.com/decentralized-identity/ethr-did-resolver/commit/5d1be475b6597c60e24bf0d6efa80cb058d68667))

## [8.1.1](https://github.com/decentralized-identity/ethr-did-resolver/compare/8.1.0...8.1.1) (2023-07-12)


### Bug Fixes

* **deps:** Update dependency did-resolver to v4.1.0 ([ea501e1](https://github.com/decentralized-identity/ethr-did-resolver/commit/ea501e19dd1c4af465eeb8761b31bb0fc4999124))

# [8.1.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/8.0.0...8.1.0) (2023-07-12)


### Features

* add linea:goerli deployment ([b7a36b3](https://github.com/decentralized-identity/ethr-did-resolver/commit/b7a36b3b4bc16f9d502ce2bec43b7d6f7dc1b4cc))

# [8.0.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/7.0.2...8.0.0) (2022-11-07)


### Bug Fixes

* **spec:** remove ambiguity around deletion ([#178](https://github.com/decentralized-identity/ethr-did-resolver/issues/178)) ([da8e22e](https://github.com/decentralized-identity/ethr-did-resolver/commit/da8e22e74449f81e18bf5b23202f9e2f98627f23)), closes [#177](https://github.com/decentralized-identity/ethr-did-resolver/issues/177)


### BREAKING CHANGES

* **spec:** This is a breaking change of the spec as "soft deletion" of non-updated DIDs is no longer considered valid.

## [7.0.2](https://github.com/decentralized-identity/ethr-did-resolver/compare/7.0.1...7.0.2) (2022-10-24)


### Bug Fixes

* **build:** add named exports to esm wrapper ([#176](https://github.com/decentralized-identity/ethr-did-resolver/issues/176)) ([725ed25](https://github.com/decentralized-identity/ethr-did-resolver/commit/725ed250074f19e5d18d8e2b55454391102d5401)), closes [#175](https://github.com/decentralized-identity/ethr-did-resolver/issues/175)

## [7.0.1](https://github.com/decentralized-identity/ethr-did-resolver/compare/7.0.0...7.0.1) (2022-10-17)


### Bug Fixes

* **deps:** update did-resolver to 4.0.1 ([#172](https://github.com/decentralized-identity/ethr-did-resolver/issues/172)) ([ce38d01](https://github.com/decentralized-identity/ethr-did-resolver/commit/ce38d01802344db76eae7f753a067fba4fd759de))

# [7.0.0](https://github.com/decentralized-identity/ethr-did-resolver/compare/6.2.3...7.0.0) (2022-10-17)


### Bug Fixes

* **build:** transpile for commonjs, use wrapper for esm ([#170](https://github.com/decentralized-identity/ethr-did-resolver/issues/170)) ([5eba679](https://github.com/decentralized-identity/ethr-did-resolver/commit/5eba679b159fc88cef6e4ac8a59e0c3553747443))


### BREAKING CHANGES

* **build:** previous versions (<7.0.0) would be transpiled twice by microbundle, but this seems to be [anti-pattern](https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1)

Please raise an issue on https://github.com/decentralized-identity/ethr-did-resolver if this change is incompatible with your tech stack and there are no workarounds.

# [7.0.0-alpha.3](https://github.com/decentralized-identity/ethr-did-resolver/compare/7.0.0-alpha.2...7.0.0-alpha.3) (2022-10-14)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ eg:
Multi-network DIDs are also supported, if the proper configuration is provided during setup.

For example:
`did:ethr:0x4:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` gets resolved on the rinkeby testnet (chainID=0x4), and
`did:ethr:0x5:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` gets resolved on the goerli testnet (chainID=0x5), and
represents a distinct identifier than the generic one, with different DID documents and different key rotation history.

## DID Document
Expand Down Expand Up @@ -114,7 +114,7 @@ network. An example configuration for multi-network DID resolving would look lik
const providerConfig = {
networks: [
{ name: "mainnet", provider: web3.currentProvider },
{ name: "0x4", rpcUrl: "https://rinkeby.infura.io/v3/<YOUR PROJECT ID>" },
{ name: "0x5", rpcUrl: "https://goerli.infura.io/v3/<YOUR PROJECT ID>" },
{ name: "rsk:testnet", chainId: "0x1f", rpcUrl: "https://did.testnet.rsk.co:4444" },
{ name: "development", rpcUrl: "http://localhost:7545", registry: "0xdca7ef03e98e0dc2b855be647c39abe984fcf21b" },
{ name: "myprivatenet", chainId: 123456, rpcUrl: "https://my.private.net.json.rpc.url" }
Expand All @@ -128,7 +128,7 @@ The configuration from above allows you to resolve ethr-did's of the following f

- `did:ethr:mainnet:0xabcabc03e98e0dc2b855be647c39abe984193675`
- `did:ethr:0xabcabc03e98e0dc2b855be647c39abe984193675` (defaults to mainnet configuration)
- `did:ethr:0x4:0xabcabc03e98e0dc2b855be647c39abe984193675` (refer to the rinkeby network by chainID)
- `did:ethr:0x5:0xabcabc03e98e0dc2b855be647c39abe984193675` (refer to the goerli network by chainID)
- `did:ethr:rsk:testnet:0xabcabc03e98e0dc2b855be647c39abe984193675`
- `did:ethr:0x1f:0xabcabc03e98e0dc2b855be647c39abe984193675` (refer to the rsk:testnet by chainID)
- `did:ethr:development:0xabcabc03e98e0dc2b855be647c39abe984193675`
Expand Down
Loading

0 comments on commit d0bef9d

Please sign in to comment.