@@ -18,15 +18,14 @@ The cryptographic primitives included are:
18
18
** October 2021 update:** We're releasing ** experimental** version 0.2 of the package.
19
19
The module has been completely rewritten:
20
20
21
- - ~ 6x smaller: 4,000 lines of code incl. all deps instead of 22,438; 185KB of unpacked code instead of 755KB
21
+ - ~ 6x smaller: 4,000 lines of code instead of 22,438 (with all deps) ; 185KB of unpacked code instead of 755KB
22
22
- 3 dependencies (pending an audit) instead of 38
23
- - Same functionality, all old APIs are the same to simplify the upgrade path
24
- - ** Breaking:** we target runtimes with [ bigint] ( https://caniuse.com/bigint ) support,
25
- which is Chrome 67+, Edge 79+, Firefox 68+, Safari 14+, node.js 10+. If you need to support
26
- older runtimes, use
` [email protected] `
27
- - ** Breaking:** we return ` Uint8Array ` from all methods that worked with ` Buffer ` before.
23
+ - ** Same functionality** , all old APIs remain the same except for two breaking changes:
24
+ 1 . We return ` Uint8Array ` from all methods that worked with ` Buffer ` before.
28
25
` Buffer ` has never been supported in browsers, while ` Uint8Array ` s are supported natively in both
29
26
browsers and node.js. See [ Upgrading] ( #upgrading )
27
+ 2 . We target runtimes with [ bigint] ( https://caniuse.com/bigint ) support,
28
+ which is Chrome 67+, Edge 79+, Firefox 68+, Safari 14+, node.js 10+. If you need to support older runtimes, use
` [email protected] `
30
29
- The new module [ has not been audited yet] ( #security ) , but it's in the process of getting the audit. Use it at your own risk
31
30
32
31
## Usage
0 commit comments