333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
 
## 2.0.1
* Reduce npm package size.
* Mark package as not having side effects (by @xiaody).
 
## 2.0
* Use `-` instead of `~` in default alphabet to by file name safe.
* Add `nanoid/non-secure/generate`.
 
## 1.3.4
* Reduce `non-secure` size.
* Add `async` callback type check.
 
## 1.3.3
* Fix `nanoid/async` performance regression.
* Fix old Node.js `not seeded` issue in synchronous version too.
 
## 1.3.2
* Fix random generator `not seeded` issue of old Node.js.
 
## 1.3.1
* Reduce library size.
 
## 1.3
* Add `nanoid/async/format` and `nanoid/async/generate`.
* Improve synchronous API performance.
* Reduce `url` size (by Daniil Poroshin).
* Improve React Native docs (by joelgetaction).
 
## 1.2.6
* Reduce library size (by rqrqrqrq).
 
## 1.2.5
* Fix Node.js 6.11.1 support (by Andrey Belym).
 
## 1.2.4
* Speed up Node.js secure generators (by Dmitriy Tsvettsikh).
 
## 1.2.3
* Fix JSDoc (by Hendry Sadrak).
 
## 1.2.2
* Fix distribution in `nanoid/non-secure` (by Eatall).
 
## 1.2.1
* Fix old Node.js support.
 
## 1.2
* Add `nanoid/async`.
* Fix `nanoid/non-secure` JSDoc.
* Add Chinese documentation (by Wenliang Dai).
* Speed up and reduce size of `nanoid/non-secure` (by Ori Livni).
 
## 1.1.1
* Improve performance and reduce size of non-secure ID generator.
 
## 1.1
* Add non-secure ID generator.
* Suggest to use non-secure ID generator for React Native developers.
* Reduce size.
 
## 1.0.7
* Fix documentation.
 
## 1.0.6
* Fix documentation.
 
## 1.0.5
* Reduce `nanoid/index` size (by Anton Khlynovskiy).
 
## 1.0.4
* Reduce npm package size.
 
## 1.0.3
* Reduce npm package size.
 
## 1.0.2
* Fix Web Workers support (by Zachary Golba).
 
## 1.0.1
* Reduce `nanoid/index` size (by Anton Khlynovskiy).
 
## 1.0
* Use 21 symbols by default (by David Klebanoff).
 
## 0.2.2
* Reduce `nanoid/generate` size (by Anton Khlynovskiy).
* Speed up Node.js random generator.
 
## 0.2.1
* Fix documentation (by Piper Chester).
 
## 0.2
* Add `size` argument to `nanoid()`.
* Improve performance by 50%.
* Reduce library size by 26% (by Vsevolod Rodionov and Oleg Mokhov).
 
## 0.1.1
* Reduce library size by 5%.
 
## 0.1
* Initial release.