- Support a
max
parameter (based on rejection sampling) inrandomBuf
rng.
- Bump one-webcrypto to 1.0.3 for wider bundler support.
- Internally use the one-webcrypto library for referring to the webcrypto API
- Add
AES-GCM
to the list of valid symmetric algorithms (SymmAlg
) - Internally dynamically refer to either the NodeJS or Browser webcrypto API
Importing keystore-idb/lib/*
directly should now work as intended. This allows bundlers to use the "real" import paths (eg. import "keystore-idb/lib/utils.js"
) in addition to the "proxy" import paths (eg. import "keystore-idb/utils.js"
). One reason to do this could be that you want your library to support both new and old bundlers, ie. bundlers with or without exports
support in their package.json
file.
- Renamed read key to exchange key.
- Switched out
Buffer
usage withuint8arrays
library. - Built with esbuild instead of rollup.
Use the globalThis
global object instead of window
.