Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoid - npm Package Versions

1
11

3.1.3

Diff

Changelog

Source

3.1.3

  • Fix ES modules issue with CLI.
ai
published 3.1.2 •

Changelog

Source

3.1.2

  • Add shebang to CLI.
ai
published 3.1.1 •

Changelog

Source

3.1.1

  • Fix CLI.

3.1

  • Add npx nanoid CLI.
ai
published 3.1.0 •

ai
published 3.0.2 •

Changelog

Source

3.0.2

  • Fix docs (by Dylan Irlbeck ).
ai
published 3.0.1 •

Changelog

Source

3.0.1

  • Fix React Native warning on non-secure import (by Jia Huang).

3.0

Migration guide: https://github.com/ai/nanoid/releases/tag/3.0.0

  • Move to ES2016 syntax. You need to use Babel for IE 11.
  • Move to named exports import { nanoid } from 'nanoid'.
  • Move import url from 'nanoid/url' to import { urlAlphabet } from 'nanoid'.
  • Replace format() to customRandom().
  • Replace generate() to customAlphabet().
  • Remove async/format.
  • Remove React Native support for nanoid/async.
  • Add nanoid.js to use directly in browser from CDN.
  • Add TypeScript type definitions.
  • Add ES modules support for bundlers, Node.js, and React Native.
  • Fix React Native support.
  • Reduce size.
  • Improve docs (by Dair Aidarkhanov).
ai
published 3.0.0 •

ai
published 2.1.11 •

Changelog

Source

2.1.11

  • Reduce size (by Anton Evzhakov).
ai
published 2.1.10 •

Changelog

Source

2.1.10

  • Reduce size by 10% (by Anton Khlynovskiy).
ai
published 2.1.9 •

Changelog

Source

2.1.9

  • Reduce format and async/format size (by Dair Aidarkhanov).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc