Packages

nanoid

6.0.2 · 5 Oct 2026MIT398.9M / weekRepositoryHomepagenpmAtom feed

Upgrading nanoid From 2.1.11 to 3.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.1.11Clears its 4 advisories3.3.18Latest6.0.2
The note of 3.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 2.1.11yours
  2. 3.0.0target
?
changes to make
0
advisories fixed
3
new
0
fixes

Security

Release by release

  1. 3.0.0

    26 Mar 20203 new
    • New

      The size was decreased by 10% from 119 to 108 bytes.

    • New

      We got full TypeScript support. We use check-dts to test out .d.ts files.

    • New

      Nano ID now has out-of-the-box ES modules support and extra file to load Nano ID from jsDelivr (use it only for experiments, because of the bad loading performance). Dual ESM/CommonJS packaging is provided by dual-publish and will work in Node.js ≥12, webpack, Parcel, Rollup, and React Native.

3 other lines we could not sort, mostly version bumps
  • Only Create React App 4.0 supports dual ESM/CJS modules.

    3.0.0
  • Change polyfill for hardware random generator from expo-random to react-native-get-random-values.

    3.0.0
  • Use sync Nano ID instead of async.

    3.0.0

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.