4.0.0
·
186 commits
to master
since this release
4.0.0 (2021-03-15)
Features
- upgrade to latest did core spec (#99) (#109) (#111) (2a023b1)
- feat: refactor configuration options, add
chainID
- fix: improve
kid
stability during attribute changes - chore: cleanup in tests and local dependencies
- test(coverage): improve test coverage
- refactor(style): enable linting using
eslint
- refactor: isolate some of the type definitions
- fix: test that checksum address resolves to identical DID document (#105)
- fix: setAttribute with sigAuth adds key to authentication section (#95)
- feat: enable base58 encoding for keys (#106)(#99)
- refactor: group types, defaults, and helper methods
- fix: add support for deactivated DIDs (#83)(#85)
- fix(deps): bump did-resolver version
- fix: update the default
@context
to be LD compatible (#99) - docs: update readme and spec to reflect reality and current DID spec compliance (#99)
- fix: rename
publicKey
toverificationMethod
(#99) - fix: rename
ethereumAddress
toblockchainAccountId
(#99) - feat: no more errors thrown during resolution.
BREAKING CHANGES
- The return type is
DIDResolutionResult
which wraps aDIDDocument
. - No errors are thrown during DID resolution. Please check
result.didResolutionMetadata.error
instead. - This DID core spec requirement will break for users expecting
publicKey
,ethereumAddress
,Secp256k1VerificationKey2018
entries in the DID document. They are replaced withverificationMethod
,blockchainAccountId
andEcdsaSecp256k1VerificationKey2019
andEcdsaSecp256k1RecoveryMethod2020
depending on the content.