libsodium 0.7.10 → 0.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2020
1
+ Copyright (c) 2015-2023
2
2
  Ahmad Ben Mrad <batikhsouri at gmail dot org>
3
3
  Frank Denis <j at pureftpd dot org>
4
4
  Ryan Lester <ryan at cyph dot com>
package/README.md CHANGED
@@ -20,6 +20,7 @@ Supported browsers/JS engines:
20
20
  * Firefox >= 21
21
21
  * Mobile Safari on iOS >= 8.0 (older versions produce incorrect results)
22
22
  * NodeJS
23
+ * Bun
23
24
  * Opera >= 15
24
25
  * Safari >= 6 (older versions produce incorrect results)
25
26
 
@@ -67,8 +68,8 @@ can be used.
67
68
  Example:
68
69
 
69
70
  ```js
70
- const _sodium = require('libsodium-wrappers');
71
- (async() => {
71
+ import _sodium from 'libsodium-wrappers';
72
+ await (async() => {
72
73
  await _sodium.ready;
73
74
  const sodium = _sodium;
74
75
 
@@ -199,10 +200,11 @@ Alternatively, the "sumo" version, available in the
199
200
  the symbols from the original library. This includes undocumented,
200
201
  untested, deprecated, low-level and easy to misuse functions.
201
202
 
202
- The `crypto_pwhash_*` function set is included in both versions.
203
+ The `crypto_pwhash_*` function set is only included in the sumo version.
203
204
 
204
- The sumo version is slightly larger than the standard version, and
205
- should be used only if you really need the extra symbols it provides.
205
+ The sumo version is slightly larger than the standard version, reserves
206
+ more memory, and should be used only if you really need the extra symbols
207
+ it provides.
206
208
 
207
209
  ### Compilation
208
210
 
@@ -219,6 +221,10 @@ Running `make` will install the dev dependencies, clone libsodium,
219
221
  build it, test it, build the wrapper, and create the modules and
220
222
  minified distribution files.
221
223
 
224
+ ## Related projects
225
+
226
+ * [react-native-libsodium](https://github.com/serenity-kit/react-native-libsodium): React Native bindings to Libsodium matching the libsodium-wrappers package API
227
+
222
228
  ## Authors
223
229
 
224
230
  Built by Ahmad Ben Mrad, Frank Denis and Ryan Lester.