1 | # Change Log
|
2 | This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
4 | ## 3.1.11
|
5 | * Fixed asynchronous `customAlphabet` in browser (by @LoneRifle).
|
6 |
|
7 | ## 3.1.10
|
8 | * Fix ES modules support.
|
9 |
|
10 | ## 3.1.9
|
11 | * Try to fix React Native Expo support.
|
12 |
|
13 | ## 3.1.8
|
14 | * Add React Native Expo support.
|
15 |
|
16 | ## 3.1.7
|
17 | * Clean up code.
|
18 |
|
19 | ## 3.1.6
|
20 | * Avoid `self` using.
|
21 |
|
22 | ## 3.1.5
|
23 | * Improve IE docs and warning.
|
24 |
|
25 | ## 3.1.4
|
26 | * Restrict old Node.js 13 by `engines.node` (by Cansin Yildiz).
|
27 |
|
28 | ## 3.1.3
|
29 | * Fix ES modules issue with CLI.
|
30 |
|
31 | ## 3.1.2
|
32 | * Add shebang to CLI.
|
33 |
|
34 | ## 3.1.1
|
35 | * Fix CLI.
|
36 |
|
37 | ## 3.1
|
38 | * Add `npx nanoid` CLI.
|
39 |
|
40 | ## 3.0.2
|
41 | * Fix docs (by Dylan Irlbeck ).
|
42 |
|
43 | ## 3.0.1
|
44 | * Fix React Native warning on `non-secure` import (by Jia Huang).
|
45 |
|
46 | ## 3.0
|
47 | **Migration guide:** <https://github.com/ai/nanoid/releases/tag/3.0.0>
|
48 | * Move to ES2016 syntax. You need to use Babel for IE 11.
|
49 | * Move to named exports `import { nanoid } from 'nanoid'`.
|
50 | * Move `import url from 'nanoid/url'` to `import { urlAlphabet } from 'nanoid'`.
|
51 | * Replace `format()` to `customRandom()`.
|
52 | * Replace `generate()` to `customAlphabet()`.
|
53 | * Remove `async/format`.
|
54 | * Remove React Native support for `nanoid/async`.
|
55 | * Add `nanoid.js` to use directly in browser from CDN.
|
56 | * Add TypeScript type definitions.
|
57 | * Add ES modules support for bundlers, Node.js, and React Native.
|
58 | * Fix React Native support.
|
59 | * Reduce size.
|
60 | * Improve docs (by Dair Aidarkhanov).
|
61 |
|
62 | ## 2.1.11
|
63 | * Reduce size (by Anton Evzhakov).
|
64 |
|
65 | ## 2.1.10
|
66 | * Reduce size by 10% (by Anton Khlynovskiy).
|
67 |
|
68 | ## 2.1.9
|
69 | * Reduce `format` and `async/format` size (by Dair Aidarkhanov).
|
70 |
|
71 | ## 2.1.8
|
72 | * Improve React docs (by Nahum Zsilva).
|
73 |
|
74 | ## 2.1.7
|
75 | * Reduce `index`, `async` and `non-secure` size (by @polemius).
|
76 |
|
77 | ## 2.1.6
|
78 | * Reduce size (by Stas Lashmanov).
|
79 | * Return fast mask for Node.js.
|
80 |
|
81 | ## 2.1.5
|
82 | * Reduce size (by Max Graey).
|
83 | * Fix IE support.
|
84 |
|
85 | ## 2.1.4
|
86 | * Reduce `generate` size (by Vsevolod Rodionov).
|
87 | * Reduce `format` and `format` size (by Victor).
|
88 | * Reduce `async`, `non-secure` and `non-secure/generate` size.
|
89 | * Speed up `format` and `async/format` (by Max Graey).
|
90 | * Improve development process on Windows (by Stanislav Lashmanov).
|
91 |
|
92 | ## 2.1.3
|
93 | * Improve performance (by Stephen Richardson).
|
94 | * Reduce size (by Stephen Richardson).
|
95 |
|
96 | ## 2.1.2
|
97 | * Improve docs.
|
98 |
|
99 | ## 2.1.1
|
100 | * Fix React Native support (by Shawn Hwei).
|
101 |
|
102 | ## 2.1
|
103 | * Improve React Native support (by Sebastian Werner).
|
104 |
|
105 | ## 2.0.4
|
106 | * Improve error text for React Native (by Sebastian Werner).
|
107 |
|
108 | ## 2.0.3
|
109 | * Fix freeze on string in ID length.
|
110 |
|
111 | ## 2.0.2
|
112 | * Improve docs (by Sylvanus Kateile and Mark Stosberg).
|
113 |
|
114 | ## 2.0.1
|
115 | * Reduce npm package size.
|
116 | * Mark package as not having side effects (by @xiaody).
|
117 |
|
118 | ## 2.0
|
119 | * Use `-` instead of `~` in default alphabet to by file name safe.
|
120 | * Add `nanoid/non-secure/generate`.
|
121 |
|
122 | ## 1.3.4
|
123 | * Reduce `non-secure` size.
|
124 | * Add `async` callback type check.
|
125 |
|
126 | ## 1.3.3
|
127 | * Fix `nanoid/async` performance regression.
|
128 | * Fix old Node.js `not seeded` issue in synchronous version too.
|
129 |
|
130 | ## 1.3.2
|
131 | * Fix random generator `not seeded` issue of old Node.js.
|
132 |
|
133 | ## 1.3.1
|
134 | * Reduce library size.
|
135 |
|
136 | ## 1.3
|
137 | * Add `nanoid/async/format` and `nanoid/async/generate`.
|
138 | * Improve synchronous API performance.
|
139 | * Reduce `url` size (by Daniil Poroshin).
|
140 | * Improve React Native docs (by joelgetaction).
|
141 |
|
142 | ## 1.2.6
|
143 | * Reduce library size (by rqrqrqrq).
|
144 |
|
145 | ## 1.2.5
|
146 | * Fix Node.js 6.11.1 support (by Andrey Belym).
|
147 |
|
148 | ## 1.2.4
|
149 | * Speed up Node.js secure generators (by Dmitriy Tsvettsikh).
|
150 |
|
151 | ## 1.2.3
|
152 | * Fix JSDoc (by Hendry Sadrak).
|
153 |
|
154 | ## 1.2.2
|
155 | * Fix distribution in `nanoid/non-secure` (by Eatall).
|
156 |
|
157 | ## 1.2.1
|
158 | * Fix old Node.js support.
|
159 |
|
160 | ## 1.2
|
161 | * Add `nanoid/async`.
|
162 | * Fix `nanoid/non-secure` JSDoc.
|
163 | * Add Chinese documentation (by Wenliang Dai).
|
164 | * Speed up and reduce size of `nanoid/non-secure` (by Ori Livni).
|
165 |
|
166 | ## 1.1.1
|
167 | * Improve performance and reduce size of non-secure ID generator.
|
168 |
|
169 | ## 1.1
|
170 | * Add non-secure ID generator.
|
171 | * Suggest to use non-secure ID generator for React Native developers.
|
172 | * Reduce size.
|
173 |
|
174 | ## 1.0.7
|
175 | * Fix documentation.
|
176 |
|
177 | ## 1.0.6
|
178 | * Fix documentation.
|
179 |
|
180 | ## 1.0.5
|
181 | * Reduce `nanoid/index` size (by Anton Khlynovskiy).
|
182 |
|
183 | ## 1.0.4
|
184 | * Reduce npm package size.
|
185 |
|
186 | ## 1.0.3
|
187 | * Reduce npm package size.
|
188 |
|
189 | ## 1.0.2
|
190 | * Fix Web Workers support (by Zachary Golba).
|
191 |
|
192 | ## 1.0.1
|
193 | * Reduce `nanoid/index` size (by Anton Khlynovskiy).
|
194 |
|
195 | ## 1.0
|
196 | * Use 21 symbols by default (by David Klebanoff).
|
197 |
|
198 | ## 0.2.2
|
199 | * Reduce `nanoid/generate` size (by Anton Khlynovskiy).
|
200 | * Speed up Node.js random generator.
|
201 |
|
202 | ## 0.2.1
|
203 | * Fix documentation (by Piper Chester).
|
204 |
|
205 | ## 0.2
|
206 | * Add `size` argument to `nanoid()`.
|
207 | * Improve performance by 50%.
|
208 | * Reduce library size by 26% (by Vsevolod Rodionov and Oleg Mokhov).
|
209 |
|
210 | ## 0.1.1
|
211 | * Reduce library size by 5%.
|
212 |
|
213 | ## 0.1
|
214 | * Initial release.
|