diff --git a/CHANGELOG.md b/CHANGELOG.md index 86d9bd0..4257962 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This repository continues the `overflowdigital` `cuid2` package (`b02c8ca`); ver ## [Unreleased] +## [3.0.0] - 2026-11-08 + ### Changed - `Cuid`, `Cuid.generate`, `create_id`, and `cuid_wrapper` now enforce the CUID2 specification length bounds (`2..32`, i.e., `MIN_LENGTH`..`BIG_LENGTH`) and raise `ValueError` for length `1` and lengths `> 32` (previously a `FutureWarning` in 2.3.0 and `DeprecationWarning` in 2.0.3–2.2.1); the `cuid2` CLI likewise rejects lengths outside `2..32` with exit code 2. @@ -130,7 +132,8 @@ Spans 49 commits since 2.0.1 over 2.5 years; the Python 3.8 drop (#24, merged 20 - First release from this repository, refactored to the latest CUID2 spec (`1342a13`). - Internal: GitHub Actions workflow updates. -[Unreleased]: https://github.com/gordon-code/cuid2/compare/v2.3.0...HEAD +[Unreleased]: https://github.com/gordon-code/cuid2/compare/v3.0.0...HEAD +[3.0.0]: https://github.com/gordon-code/cuid2/compare/v2.3.0...v3.0.0 [2.3.0]: https://github.com/gordon-code/cuid2/compare/v2.2.1...v2.3.0 [2.2.1]: https://github.com/gordon-code/cuid2/compare/v2.2.0...v2.2.1 [2.2.0]: https://github.com/gordon-code/cuid2/compare/v2.1.0...v2.2.0 diff --git a/local/tests/test_verify_release.py b/local/tests/test_verify_release.py index 63279f4..d2ddda5 100644 --- a/local/tests/test_verify_release.py +++ b/local/tests/test_verify_release.py @@ -204,7 +204,7 @@ def test_cli_main_changelog_and_dist(self, tmp_path: Path, capsys: pytest.Captur == 0 ) assert notes_out.read_text(encoding="utf-8").startswith("### ") - assert gh_out.read_text(encoding="utf-8") == "version=2.3.0\n" + assert gh_out.read_text(encoding="utf-8") == "version=3.0.0\n" version = read_project_version(DEFAULT_PYPROJECT_PATH) _build_wheel(tmp_path / f"cuid2-{version}-py3-none-any.whl", expected_wheel_members(version)) diff --git a/pyproject.toml b/pyproject.toml index 9a360ca..6986c79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "uv_build" [project] name = "cuid2" -version = "2.3.0" +version = "3.0.0" authors = [ {name = "Will Gordon", email = "dev@gordoncode.dev"}, ] diff --git a/uv.lock b/uv.lock index be61ffc..1759df9 100644 --- a/uv.lock +++ b/uv.lock @@ -474,7 +474,7 @@ wheels = [ [[package]] name = "cuid2" -version = "2.3.0" +version = "3.0.0" source = { editable = "." } default-groups = ["build", "lint", "test", "typing"]