---
title: "nanoid Breaking Changes on npm | Since.dev"
description: "What each nanoid release removed, renamed or changed: 3 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/nanoid
last_updated: 2026-07-12
---

# nanoid breaking changes

Every breaking API change we have recorded in nanoid on npm: 3 breaking changes in 2 versions. Below are its newest 2 versions, removals and renames first, each with its source.

Newest change July 12, 2026

## 6.0.0

2 breaking changes, first published July 12, 2026.

- **Removed**  

The package no longer supports Node.js 18 and 20. Users on those Node.js versions must upgrade Node.js before upgrading to this release. [github.com](https://github.com/ai/nanoid/releases/tag/6.0.0)
- **Signature changed** `customRandom`  

Was function customRandom<Type extends string>(alphabet: string, size: number, random: (bytes: number) => Uint8Array): (size?: number) => Type; now function customRandom<Type extends string>(alphabet: string, defaultSize: number, random... [npmjs.com](https://www.npmjs.com/package/nanoid/v/6.0.0)

## 5.1.7

1 breaking change, first published March 15, 2026.

- **Signature changed** `customRandom`  

Was function customRandom<Type extends string>(alphabet: string, size: number, random: (bytes: number) => Uint8Array): () => Type; now function customRandom<Type extends string>(alphabet: string, size: number, random: (bytes: number) =>... [npmjs.com](https://www.npmjs.com/package/nanoid/v/5.1.7)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version, not only the newest. On Team and up, a fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous management.

Scan a public repository now, or give your agent one line.

### See how out of date your code is.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
