Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: better error for missing web crypto #157

Merged
merged 2 commits into from
Aug 13, 2019

Conversation

alanshaw
Copy link
Member

This PR simply detects missing web crypto and throws an error with an appropriate message.

This is a stepping stone that will help users understand the problem until we have time to do a refactor of this module and of all the modules that use it to enable optionally passing your own crypto implementation.

refs #149
refs #150
refs #105
refs ipfs/js-ipfs#2153
refs ipfs/js-ipfs#2017

Copy link
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

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

We get this issue coming up constantly, I think this will save everyone a lot of time 👍 🎉

README.md Outdated Show resolved Hide resolved
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome!

Copy link
Member

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

This looks good!

alanshaw and others added 2 commits July 22, 2019 11:21
This PR simply detects missing web crypto and throws an error with an appropriate message.

This is a stepping stone that will help users understand the problem until we have time to do a refactor of this module and of all the modules that use it to enable optionally passing your own crypto implementation.

refs #149
refs #150
refs #105
refs ipfs/js-ipfs#2153
refs ipfs/js-ipfs#2017

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@jacobheun jacobheun force-pushed the fix/better-err-missing-webcrypto branch from 03e9260 to afe94de Compare July 22, 2019 10:22
@jacobheun
Copy link
Contributor

I rebased this with the latest master so we can include this and the error code update in the next release.

@alanshaw
Copy link
Member Author

@dignifiedquire 🙏 can we get a merge and release?

@dignifiedquire dignifiedquire merged commit b680603 into master Aug 13, 2019
@alanshaw alanshaw deleted the fix/better-err-missing-webcrypto branch August 14, 2019 14:46
@alanshaw
Copy link
Member Author

❤️ thanks @dignifiedquire

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants