nanoid
6.0.2 · 5 Oct 2026MIT398.9M / weekRepositoryHomepagenpmAtom feed
Upgrading nanoid From 3.0.2 to 6.0.2
88 releases in betweennotes for 83
Reading releases, release notes and advisories…
Counted from 83 of 88 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking3.1.13
Security
Fixes 5 advisories affecting 3.0.2
- nanoid: non-secure generators can loop indefinitely with negative sizehigh · GHSA-28wg-ghj8-5hjv
- nanoid: custom generators can loop indefinitely when size is zerohigh · GHSA-2v37-7h3g-55p8
- Predictable results in nanoid generation when given non-integer valuesmoderate · GHSA-mwcw-c2x4-8c55
- Exposure of Sensitive Information to an Unauthorized Actor in nanoidmoderate · GHSA-qrpm-p2h7-hrv2
- nanoid: Integer Overflow or Wraparoundhigh · GHSA-xwg4-73v4-xw9w
- 3.1.31
Fixed collision vulnerability on object in
size(by Artyom Arutyunyan).
Release by release
- Fixed
Fixed floats in size of
customRandom - Fixed
Fixed performance of
customRandomon changes size - Fixed
Fixed docs (by @Likio3000 & @lenamonj).
- Fixed
- Fixed
Fixed docs.
- Fixed
- Breaking
Removed Node.js 18 and 20 support.
- Breaking
- Fixed
Fixed forever loop on negative size
- Fixed
- Fixed
Fixed random pool corruption on big ID sizes.
- Fixed
- Fixed
Fixed npm package size regression.
- Fixed
5.1.12 – 5.1.132 releases, nothing new or fixed in the notes
- Fixed
Fixed breaking Nano ID by requesting big ID.
- Fixed
23 other lines we could not sort, mostly version bumps
- 6.0.2
Reduced JS bundle size
- 6.0.0
Made
nanoid()andcustomAlphabet()4 times faster - 5.1.12
Moved to npm Provenance and Staged Publishing.
- 5.1.8
Made
cusatomAlphabet75% faster - 5.1.7
Updated
nanoid.jsfor CDN - 5.0.8
Reduced
customAlphabetsize - 5.0.5
Make browser’s version faster by increasing size a little (by Samuel Elgozi).
- 4.0.1
Reduced npm package size
- 3.3.13
Reduced npm package size.
- 3.3.5
Backport funding information.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.