1.0.0
1.0.0 (2022-07-10)
Bug Fixes
- change 'owner' to 'controller' to follow W3C Spec (#75) (#81) (af37b3f)
- ignore query string when interpreting identifiers (#123) (5508f8a), closes #122
- maintenance of dependencies, bots and build scripts (#136) (0d3fcf7)
- remove unused dependency (#4) (a97c826)
- removed redundant code (ca4d101)
- reverse events to have consistent order (#87) (08b9692), closes /github.com/decentralized-identity/ethr-did-resolver/issues/86#issuecomment-699961595
- strip milliseconds from dateTime strings (#129) (3e958af), closes #126
- use rpcUrl in controller config (#128) (5302536), closes #127
- deps: update dependency buffer to v6 (#93) (e1dc861)
- deps: update dependency did-resolver to v1.1.0 (ab47058)
- deps: update dependency did-resolver to v2 (#68) (831ec17)
- deps: update dependency did-resolver to v2.1.0 (b26d387)
- deps: update dependency did-resolver to v2.1.1 (1a4cbca)
- deps: update dependency did-resolver to v2.1.2 (8c2294e)
- deps: update dependency ethjs-contract to ^0.2.0 (b667ce6)
- deps: use Resolvable type from did-resolver (d213ae6)
- types: simplify type exports (#101) (90ca9b5)
- remove ejs module distribution (780ec08), closes #39
- require a configuration to be used when initializing the resolver (3adc029)
Features
- add
assertionMethod
by default to didDocument (#124) (11b2096), closes #117 #115 - add ability to use a compressed publicKey as identifier (#73) (e257eb3), closes #56
- add encryption key support for ethr-did-documents (dff7b0f), closes #52
- add encryption key support for ethr-did-documents (2f5825c), closes #52
- Add types declaration stubb (05944b1)
- export
EthrDidController
helper class (#120) (745100d) - import instead of require networks.json (50c0832)
- Initial version (#1) (d7a3cf8)
- upgrade to latest did core spec (#99) (#109) (d46eea3), closes #105 #95 #106 #83 #85 #83 #85 #95 #105 #106
- upgrade to latest did core spec (#99) (#109) (#111) (2a023b1), closes #105 #95 #106 #83 #85 #83 #85 #95 #105 #106
- use only named exports (#31) (a558e14)
- versioning (#121) (b794d69), closes #119 #118 #119 #118
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. - JWTs that refer to the
did:ethr:...#owner
key in their header may be considered invalid after this upgrade, as the key id is nowdid:ethr:...#controller
- this removes the fallback hardcoded RPC URLs and will fail early when a wrong configuration (or none) is provided to
getResolver()