meilisearch-js
meilisearch-js copied to clipboard
Switch from Node.js crypto to Web Crypto
Pull Request
What does this PR do?
- It switches from Node.js crypto to Web Crypto, this way nullifying all problems related to node and browser compatibility issues we previously had
- Use of SubtleCrypto: importKey()
- Use of SubtleCrypto: sign()
- Use of btoa
- Use of TextEncoder
- As all of this is compatible with at least EOL Node.js 16 and quite old browsers, this is not a breaking change of any kind