From 5a042d08318dab31216885bb1f996f1705f8190e Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 30 Sep 2025 14:27:08 +0800 Subject: [PATCH] chore: release v4.0.0 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44e865c..dd01a3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.0.0](https://github.com/oxc-project/oxc-index-vec/compare/v3.1.0...v4.0.0) - 2025-09-30 + +### Added + +- add const support to methods where possible ([#87](https://github.com/oxc-project/oxc-index-vec/pull/87)) +- add NonMaxU32 support via define_nonmax_index_type! macro ([#86](https://github.com/oxc-project/oxc-index-vec/pull/86)) + +### Fixed + +- reorder attributes in define_nonmax_index_type! for proc macro compatibility + +### Other + +- cargo fmt +- make serde and nonmax optional features +- make nonmax support always available and use crate's own nonmax +- make serde support always available and use crate's own serde +- add documentation to all public methods to fix missing_docs warnings +- remove backward compatibility alias for define_nonmax_index_type! +- rename define_nonmax_index_type! to define_nonmax_u32_index_type! +- apply tuple struct pattern to define_index_type! macro +- remove #[repr(transparent)] from define_nonmax_index_type! +- change define_nonmax_index_type! to use tuple struct pattern +- document custom attribute support in define_nonmax_index_type! +- remove bounds check from IndexVec::push ([#84](https://github.com/oxc-project/oxc-index-vec/pull/84)) + ## [3.1.0](https://github.com/oxc-project/oxc-index-vec/compare/v3.0.0...v3.1.0) - 2025-09-11 ### Added diff --git a/Cargo.lock b/Cargo.lock index 35481f7..a8b3955 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,7 +41,7 @@ checksum = "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51" [[package]] name = "oxc_index" -version = "3.1.0" +version = "4.0.0" dependencies = [ "nonmax", "rayon", diff --git a/Cargo.toml b/Cargo.toml index 930dc6d..529e559 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "3.1.0" +version = "4.0.0" publish = true authors = ["Boshen "] edition = "2024"