nanoid
Advanced tools
Comparing version 3.0.1 to 3.0.2
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 3.0.2 | ||
* Fix docs (by Dylan Irlbeck ). | ||
## 3.0.1 | ||
@@ -5,0 +8,0 @@ * Fix React Native warning on `non-secure` import (by Jia Huang). |
@@ -24,3 +24,3 @@ /** | ||
* @param alphabet Alphabet used to generate the ID. | ||
* @param size Size of the ID. The default size is 21. | ||
* @param size Size of the ID. | ||
* @returns A random string generator. | ||
@@ -27,0 +27,0 @@ * |
{ | ||
"name": "nanoid", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A tiny (108 bytes), secure URL-friendly unique string ID generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -187,3 +187,3 @@ # Nano ID | ||
const [id] = React.useState(nanoid) | ||
return <Item key={id}> | ||
return <Item key={id} /> | ||
} | ||
@@ -246,3 +246,3 @@ ``` | ||
Nano ID provides ES modules. You do not need to do anything to use Nano ID | ||
as ESM in webpack, Parcel, or Node.js. | ||
as ESM in webpack, Rollup, Parcel, or Node.js. | ||
@@ -312,4 +312,4 @@ ```js | ||
To generate hardware random bytes, CPU collects electromagnetic noise. | ||
In the synchronous API during the noise collection, | ||
the CPU does not do anything useful. | ||
In the synchronous API during the noise collection, the CPU is busy and | ||
cannot do anything useful in parallel. | ||
@@ -336,3 +336,3 @@ Using the asynchronous API of Nano ID, another code can run during | ||
and low collision probability. If you are not so concerned with security | ||
and more with performance, you can use the faster non-secure generator. | ||
and more concerned with performance, you can use the faster non-secure generator. | ||
@@ -339,0 +339,0 @@ ```js |
42826