PackageTrack
Sign in Get early access

nanoid2

A tiny, secure, URL-friendly, unique string ID generator, nanoid with a pure Dart API.

2.0.1 52K downloads/mo #1444 most downloaded on pub.dev passsy/nanoid

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Too new to tell

only 2 dated releases

Nearly every release is documented

notes for 2 of 2 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

2 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

2 releases · Jul 2023 to Jul 2023
2024 2025 2026
Release Pre-release

Releases

latest 2
  1. 2.0.1 18 Jul 2023
    Release notes
    • Update pubspec topics description and repo link
    Open source →
  2. 2.0.0 18 Jul 2023
    Release notes

    Official Dart 3 support, breaking changes, and new Alphabet API.

    Breaking changes:

    • nanoid(10) is now nanoid(length: 10). The length parameter has been changed from an optional positional to an optional named parameter.
    • The async API import 'package:nanoid/async.dart'; has been removed. Call await Future(() {}); or before calling nanoid() to achieve the same effect.
    • Changed package name from import 'package:nanoid/nanoid.dart'; to import 'package:nanoid2/nanoid2.dart';
    • The insecure API import 'package:nanoid/non-secure.dart'; has been removed. Call nanoid(random: Random()); instead to force a non-secure (and faster) random number generator. nonoid() automatically uses Random() instead of Random.secure() on platforms that do not provide a cryptographically secure source of random numbers.
    • Removed the customAlphabet('custom', 10) API. Use nanoid(alphabet: 'custom', length: 10); instead.

    New APIs:

    • The Alphabet class provides a set of predefined alphabets for various use cases.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive