Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return non-null DIDDocument on Resolver.resolve() #21

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

mirceanis
Copy link
Member

BREAKING CHANGE: The Resolver.resolve() will now Promise.reject() if the DID document returned by the registered method is null.

@mirceanis mirceanis changed the title fix: return non-nullable DIDDocument on resolver-test.ts fix: return non-nullable DIDDocument on Resolver.resolve() Jun 10, 2020
BREAKING CHANGE: The `Resolver.resolve()` method throws an error (rejects the promise) if the DID document returned by the respective method is `null`.
Also, `null` documents are not cached.
Copy link
Contributor

@simonas-notcat simonas-notcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mirceanis mirceanis changed the title fix: return non-nullable DIDDocument on Resolver.resolve() fix: return non-null DIDDocument on Resolver.resolve() Jun 10, 2020
@mirceanis mirceanis changed the title fix: return non-null DIDDocument on Resolver.resolve() fix: return non-null DIDDocument on Resolver.resolve() Jun 10, 2020
@mirceanis mirceanis merged commit 2753e3e into develop Jun 10, 2020
@mirceanis mirceanis deleted the bugfix/return-type branch June 10, 2020 12:53
uport-automation-bot pushed a commit that referenced this pull request Jun 10, 2020
# [2.0.0](1.1.0...2.0.0) (2020-06-10)

### Bug Fixes

* return non-nullable DIDDocument on `Resolver.resolve()` ([#21](#21)) ([2753e3e](2753e3e))

### BREAKING CHANGES

* The `Resolver.resolve()` method throws an error (rejects the promise) if the DID document returned by the respective method is `null`.
Also, `null` documents are not cached.
@uport-automation-bot
Copy link
Collaborator

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@uport-automation-bot uport-automation-bot added the spec more parties need to agree label Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec more parties need to agree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants