nanoid 3.1.12 → 3.1.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.

Potentially problematic release.


This version of nanoid might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 3.1.13
5
+ * Remove Node.js 15.0.0 with `randomFillSync` regression from `engines.node`.
6
+
4
7
  ## 3.1.12
5
8
  * Improve IE 11 docs.
6
9
 
package/README.md CHANGED
@@ -46,6 +46,7 @@ Supports modern browsers, IE [with Babel], Node.js and React Native.
46
46
  * [React](#react)
47
47
  * [Create React App](#create-react-app)
48
48
  * [React Native](#react-native)
49
+ * [Rollup](#rollup)
49
50
  * [Expo](#expo)
50
51
  * [PouchDB and CouchDB](#pouchdb-and-couchdb)
51
52
  * [Mongoose](#mongoose)
@@ -226,12 +227,10 @@ with ES modules packages.
226
227
  TypeError: (0 , _nanoid.nanoid) is not a function
227
228
  ```
228
229
 
229
- If you have an error above, here is temporary fix:
230
+ [Pull request](https://github.com/facebook/create-react-app/pull/8768) was sent,
231
+ but it was still not released.
230
232
 
231
- 1. Use Nano ID 2 instead of 3: `npm i nanoid@^2.0.0`.
232
- 2. Vote for
233
- [pull request](https://github.com/facebook/create-react-app/pull/8768),
234
- that fix dual packages support.
233
+ Use Nano ID 2 `npm i nanoid@^2.0.0` until Create React App 4.0 release.
235
234
 
236
235
 
237
236
  ### React Native
@@ -251,6 +250,22 @@ For Expo framework see the next section.
251
250
  [`react-native-get-random-values`]: https://github.com/LinusU/react-native-get-random-values
252
251
 
253
252
 
253
+ ### Rollup
254
+
255
+ For Rollup you will need [`@rollup/plugin-replace`] to replace
256
+ `process.env.NODE_ENV`:
257
+
258
+ ```js
259
+ plugins: [
260
+ replace({
261
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE)
262
+ })
263
+ ]
264
+ ```
265
+
266
+ [`@rollup/plugin-replace`]: https://github.com/rollup/plugins/tree/master/packages/replace
267
+
268
+
254
269
  ### Expo
255
270
 
256
271
  If you use Expo in React Native, you need a different workaround.
@@ -400,7 +415,7 @@ async function createUser () {
400
415
  ```
401
416
 
402
417
  Unfortunately, you will lose Web Crypto API advantages in a browser
403
- if you the asynchronous API. So, currently, in the browser, you are limited
418
+ if you use the asynchronous API. So, currently, in the browser, you are limited
404
419
  with either security or asynchronous behavior.
405
420
 
406
421
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoid",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "description": "A tiny (108 bytes), secure URL-friendly unique string ID generator",
5
5
  "keywords": [
6
6
  "uuid",
@@ -9,7 +9,7 @@
9
9
  "url"
10
10
  ],
11
11
  "engines": {
12
- "node": "^10 || ^12 || >=13.7"
12
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
13
13
  },
14
14
  "author": "Andrey Sitnik <andrey@sitnik.ru>",
15
15
  "license": "MIT",