Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
0
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
57
10Next

3.1.2

Diff

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).
ai
published 2.1.8 •

Changelog

Source

2.1.8

  • Improve React docs (by Nahum Zsilva).
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc