---
title: "cuid2 3.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each cuid2 release removed, renamed or changed: 9 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/cuid2
last_updated: 2026-12-04
---

# cuid2 breaking changes

cuid2 3.0.0 (November 9, 2026) is its newest release with breaking changes, 9 of them. The first: Removed cuid2.MAXIMUM_LENGTH. Every breaking API change we have recorded in cuid2 on PyPI: 9 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.1.0`, released November 22, 2026. [Source repository](https://github.com/gordon-code/cuid2)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## cuid2 3.0.0 breaking changes

cuid2 3.0.0, released November 9, 2026: 9 breaking changes.

- **Removed** `cuid2.MAXIMUM_LENGTH`  

MAXIMUM_LENGTH (98) is gone from cuid2, cuid2.generator and cuid2.utils. Use BIG_LENGTH (32) for the maximum specification length. [pypi.org](https://pypi.org/project/cuid2/3.0.0/)
- **Behavior changed**  

The cuid2 command-line tool now exits with code 2 for lengths outside 2..32. Use lengths between 2 and 32 in scripts. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Behavior changed** `create_id`  

Lengths outside the CUID2 spec range 2..32 used to warn and now raise ValueError. Update callers to use lengths between 2 and 32. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Behavior changed** `Cuid`  

Lengths outside the CUID2 spec range 2..32 used to warn and now raise ValueError when Cuid is constructed. Use lengths between 2 and 32. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Behavior changed** `cuid_wrapper`  

Lengths outside the CUID2 spec range 2..32 used to warn and now raise ValueError when cuid_wrapper is called. Use lengths between 2 and 32. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Behavior changed** `Cuid.generate`  

Lengths outside the CUID2 spec range 2..32 used to warn and now raise ValueError. Use lengths between 2 and 32. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Behavior changed** `is_cuid`  

is_cuid now caps max_length at 32, so IDs longer than 32 characters return False even with a larger max_length. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Default changed** `is_cuid`  

is_cuid now defaults max_length to 32 instead of 98, so longer IDs return False. Pass an explicit max_length if you need the old limit. [github.com](https://github.com/gordon-code/cuid2/releases/tag/v3.0.0)
- **Signature changed** `cuid2.is_cuid`  

Was def is_cuid(cuid_str: str, min_length: int = MIN_LENGTH, max_length: int = MAXIMUM_LENGTH) -> bool; now def is_cuid(cuid_str: str, min_length: int = MIN_LENGTH, max_length: int = BIG_LENGTH) -> bool. [pypi.org](https://pypi.org/project/cuid2/3.0.0/)

## 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. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

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

[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`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

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