nanoid
6.0.2 · 5 Oct 2026MIT398.9M / weekRepositoryHomepagenpmAtom feed
Upgrading nanoid From 5.1.14 to 6.0.2
5 releases in betweenevery note read
Reading releases, release notes and advisories…
Other targets from 5.1.14Newest 5.x, Clears its advisory5.1.16
Before you upgrade
Tick each one off as you go- Breaking6.0.0
Security
Fixes 1 advisory affecting 5.1.14
- nanoid: non-secure generators can loop indefinitely with negative sizehigh · GHSA-28wg-ghj8-5hjv
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
2 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
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.