diff --git a/Cargo.lock b/Cargo.lock index df4c89918758f..a843a3655f013 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1389,7 +1389,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.32.0" +version = "0.33.0" dependencies = [ "napi", "napi-derive", @@ -1431,7 +1431,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.32.0" +version = "0.33.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1441,7 +1441,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.32.0" +version = "0.33.0" dependencies = [ "bitflags 2.6.0", "num-bigint", @@ -1458,7 +1458,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.32.0" +version = "0.33.0" dependencies = [ "proc-macro2", "quote", @@ -1506,7 +1506,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.32.0" +version = "0.33.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1519,7 +1519,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.32.0" +version = "0.33.0" dependencies = [ "assert-unchecked", "base64", @@ -1568,14 +1568,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.32.0" +version = "0.33.0" dependencies = [ "assert-unchecked", ] [[package]] name = "oxc_diagnostics" -version = "0.32.0" +version = "0.33.0" dependencies = [ "miette", "owo-colors", @@ -1586,7 +1586,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.32.0" +version = "0.33.0" dependencies = [ "num-bigint", "num-traits", @@ -1597,11 +1597,11 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.32.0" +version = "0.33.0" [[package]] name = "oxc_index" -version = "0.32.0" +version = "0.33.0" dependencies = [ "rayon", "serde", @@ -1609,7 +1609,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.32.0" +version = "0.33.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1708,7 +1708,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.32.0" +version = "0.33.0" dependencies = [ "itertools", "oxc_ast", @@ -1719,7 +1719,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.32.0" +version = "0.33.0" dependencies = [ "cow-utils", "insta", @@ -1768,7 +1768,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.32.0" +version = "0.33.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1779,7 +1779,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.32.0" +version = "0.33.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1855,7 +1855,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.32.0" +version = "0.33.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1891,7 +1891,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.32.0" +version = "0.33.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1916,7 +1916,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.32.0" +version = "0.33.0" dependencies = [ "base64-simd", "cfg-if", @@ -1929,7 +1929,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.32.0" +version = "0.33.0" dependencies = [ "compact_str", "miette", @@ -1943,7 +1943,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.32.0" +version = "0.33.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2002,7 +2002,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.32.0" +version = "0.33.0" dependencies = [ "napi", "napi-build", @@ -2012,7 +2012,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.32.0" +version = "0.33.0" dependencies = [ "base64", "cow-utils", @@ -2042,7 +2042,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.32.0" +version = "0.33.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index be3b19194e23f..acd98be228381 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,30 +76,30 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.32.0", path = "crates/oxc" } -oxc_allocator = { version = "0.32.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.32.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.32.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.32.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.32.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.32.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.32.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.32.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.32.0", path = "crates/oxc_estree" } -oxc_index = { version = "0.32.0", path = "crates/oxc_index" } -oxc_isolated_declarations = { version = "0.32.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.32.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.32.0", path = "crates/oxc_minifier" } -oxc_module_lexer = { version = "0.32.0", path = "crates/oxc_module_lexer" } -oxc_parser = { version = "0.32.0", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.32.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.32.0", path = "crates/oxc_semantic" } -oxc_sourcemap = { version = "0.32.0", path = "crates/oxc_sourcemap" } -oxc_span = { version = "0.32.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.32.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.32.0", path = "napi/transform" } -oxc_transformer = { version = "0.32.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.32.0", path = "crates/oxc_traverse" } +oxc = { version = "0.33.0", path = "crates/oxc" } +oxc_allocator = { version = "0.33.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.33.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.33.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.33.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.33.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.33.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.33.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.33.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.33.0", path = "crates/oxc_estree" } +oxc_index = { version = "0.33.0", path = "crates/oxc_index" } +oxc_isolated_declarations = { version = "0.33.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.33.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.33.0", path = "crates/oxc_minifier" } +oxc_module_lexer = { version = "0.33.0", path = "crates/oxc_module_lexer" } +oxc_parser = { version = "0.33.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.33.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.33.0", path = "crates/oxc_semantic" } +oxc_sourcemap = { version = "0.33.0", path = "crates/oxc_sourcemap" } +oxc_span = { version = "0.33.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.33.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.33.0", path = "napi/transform" } +oxc_transformer = { version = "0.33.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.33.0", path = "crates/oxc_traverse" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 158ebf85e3439..e01aac0b95491 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/CHANGELOG.md b/crates/oxc_allocator/CHANGELOG.md index 54b6f355ff763..63295cc5a0e01 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- e1c2d30 allocator: [**BREAKING**] Make `Vec` non-drop (#6623) (overlookmotel) + +### Bug Fixes + + +### Refactor + +- ab8aa2f allocator: Move `GetAddress` trait into `oxc_allocator` (#6738) (overlookmotel) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 3580a6cf72723..20623c578f480 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index d2e74ce5d2e5d..fec9a0f1464cd 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,55 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- 718ccde ast: [**BREAKING**] Remove unused `new` methods (#6789) (overlookmotel) + +- 4d2d214 ast, transformer: [**BREAKING**] Remove `StringLiteral::new` method (#6788) (overlookmotel) + +- a1ca964 ast, parser: [**BREAKING**] Remove `NumericLiteral::new` method (#6787) (overlookmotel) + +- aeaa27a ast, parser, transformer, traverse: [**BREAKING**] Remove `BindingIdentifier::new` methods (#6786) (overlookmotel) + +- ecc9151 ast, parser, transformer, traverse: [**BREAKING**] Remove `IdentifierReference::new` methods (#6785) (overlookmotel) + +- c91ffbc ast, transformer: [**BREAKING**] Remove `IdentifierName::new` method (#6784) (overlookmotel) + +- 2bee4e2 ast, transformer: [**BREAKING**] Remove `BlockStatement::new` methods (#6783) (overlookmotel) + +- 1248557 ast: [**BREAKING**] Remove `AstKind::FinallyClause` (#6744) (Boshen) + +- 202c7f6 ast: [**BREAKING**] Remove `AstKind::ExpressionArrayElement` and `AstKind::ClassHeritage` (#6740) (Boshen) + +### Features + +- 78fee6e ast: Add `AstBuilder::*_with_scope_id` etc methods (#6760) (overlookmotel) +- b2f3040 ast: Add `GetAddress` trait (#6652) (Dunqing) + +### Bug Fixes + +- 53049fe wasm: Remove type defs for `ArrayExpressionElement` and `Elision` (#6683) (overlookmotel) + +### Documentation + +- 63ce9be ast: Enable crate-wide warnings on missing doc comments (#6716) (DonIsaac) +- 91651e0 ast: Fix comment for `ClassElement::r#static` (#6771) (overlookmotel) +- c916505 ast: Fix comment of `ClassElement::r#static` (#6731) (_Kerman) +- 46720be ast: Improve formatting of `AstBuilder` doc comments (#6756) (overlookmotel) +- a7dd5aa ast: Enforce doc comments on AST node methods (#6714) (DonIsaac) +- 8d27e2d ast: Enforce doc comments on generated ASTBuilder methods (#6713) (DonIsaac) +- bad8770 ast: Enforce doc comments on JSX nodes, literal nodes, and comments (#6712) (DonIsaac) + +### Refactor + +- ab8aa2f allocator: Move `GetAddress` trait into `oxc_allocator` (#6738) (overlookmotel) +- b66ae2e ast: Move `impl GetAddress for Statement` (#6742) (overlookmotel) +- 0e9b695 ast: Change `plain_function` to accept `FunctionBody` as a required parameter (#6709) (Dunqing) +- 85e69a1 ast_tools: Add line breaks to generated code for `ESTree` derive (#6680) (overlookmotel) +- ad8e293 ast_tools: Shorten generated code for `impl Serialize` (#6684) (overlookmotel) +- 9ba2b0e ast_tools: Move `#[allow]` attrs to top of generated files (#6679) (overlookmotel) +- 11458a5 ast_tools: Shorten generated code by avoiding `ref` in matches (#6675) (overlookmotel) + ## [0.32.0] - 2024-10-19 - 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 5a3752ebc68d5..1604510fe667a 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 61bcf54da34c0..a15aa4ec4556a 100644 --- a/crates/oxc_ast_macros/Cargo.toml +++ b/crates/oxc_ast_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast_macros" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 11b4511e8ffcb..97ff5fbbfc56b 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index 17cb990bb6159..1abd397396e1f 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Bug Fixes + +- 05ef03d codegen: Correct print `__proto__` shorthand (#6802) (Boshen) +- 1b7897c codegen: Print `#field in {} << 0;` correctly (#6799) (Boshen) +- 2f6ad42 codegen: Print negative bigint `1n- -1n` correctly after constant folding (#6798) (Boshen) +- 8f17953 coverage: Remove some broken cases (#6797) (Boshen) + +### Documentation + +- 374b972 codegen: Add `#![warn(missing_docs)]` to `oxc_codegen` (#6711) (DonIsaac) + ## [0.32.0] - 2024-10-19 - c0e9d7e codegen: [**BREAKING**] `Codegen::into_source_text` consume `Codegen` (#6539) (overlookmotel) diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 86677f280036e..d0c7b5238d9eb 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index cc08c30aa2c17..dd89d5d74ee06 100644 --- a/crates/oxc_data_structures/Cargo.toml +++ b/crates/oxc_data_structures/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_data_structures" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index eca9df371aca9..4fc6155404ff6 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/CHANGELOG.md b/crates/oxc_ecmascript/CHANGELOG.md index 6fcf1b7272ccd..8f500a3837d6d 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Refactor + +- 8b25131 minifier: Binary operations use `ConstantEvaluation` (#6700) (Boshen) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index b6f6382d98adb..300857a9bfd61 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 550e1fe25b002..dde9791e372f8 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 96991d86b2929..a4774170fa714 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_isolated_declarations/CHANGELOG.md b/crates/oxc_isolated_declarations/CHANGELOG.md index b39fc01a7ff5a..825a466d6aa80 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Refactor + +- 2e2b748 isolated-declarations: Protect internal transform methods (#6723) (DonIsaac) + ## [0.32.0] - 2024-10-19 - 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 4ebf89c20d145..72508bd88b0b6 100644 --- a/crates/oxc_isolated_declarations/Cargo.toml +++ b/crates/oxc_isolated_declarations/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_isolated_declarations" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/CHANGELOG.md b/crates/oxc_mangler/CHANGELOG.md index 8f96561825dba..8d9ca9d3e8195 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Refactor + +- e59b5d9 minifier: Dereference `SymbolId` as soon as possible (#6823) (overlookmotel) + ## [0.30.0] - 2024-09-23 ### Bug Fixes diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 2c49740a484a1..819ed77519ffe 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index 7965c8a468385..2a7411763f738 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,24 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Features + +- b4bc300 minifier: Improve folding block stmts (#6793) (camc314) +- 34fe7c0 minifier: Dce meaningless labeled statements (#6688) (7086cmd) + +### Bug Fixes + +- 2f6ad42 codegen: Print negative bigint `1n- -1n` correctly after constant folding (#6798) (Boshen) +- ca79993 minifier: Do not dce object literals yet (#6839) (Boshen) +- ec5a19b minifier: Do not remove binary expressions (#6829) (Boshen) +- 22355f7 minifier: Do not remove `undefined` for destructuring patterns (#6828) (Boshen) + +### Refactor + +- 8b25131 minifier: Binary operations use `ConstantEvaluation` (#6700) (Boshen) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 1b5916abc1b1d..7a255522a7d5c 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 69ea1b686046c..f1b27b23bf358 100644 --- a/crates/oxc_module_lexer/Cargo.toml +++ b/crates/oxc_module_lexer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_module_lexer" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index 850fad9691339..80b66f2705082 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,22 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- a1ca964 ast, parser: [**BREAKING**] Remove `NumericLiteral::new` method (#6787) (overlookmotel) + +- aeaa27a ast, parser, transformer, traverse: [**BREAKING**] Remove `BindingIdentifier::new` methods (#6786) (overlookmotel) + +- ecc9151 ast, parser, transformer, traverse: [**BREAKING**] Remove `IdentifierReference::new` methods (#6785) (overlookmotel) + +- 8032813 regular_expression: [**BREAKING**] Migrate to new regexp parser API (#6741) (leaysgur) + +### Bug Fixes + + +### Refactor + + ## [0.32.0] - 2024-10-19 - 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index b6b26f326b273..c2900d512dd10 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_regular_expression/CHANGELOG.md b/crates/oxc_regular_expression/CHANGELOG.md index a0cf56366ea9f..9f49cfe625f2b 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/CHANGELOG.md @@ -4,6 +4,24 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- 8032813 regular_expression: [**BREAKING**] Migrate to new regexp parser API (#6741) (leaysgur) + +### Features + +- f8e1907 regular_expression: Intro `ConstructorParser`(and `LiteralParser`) to handle escape sequence in RegExp('pat') (#6635) (leaysgur) + +### Bug Fixes + + +### Refactor + +- 85e69a1 ast_tools: Add line breaks to generated code for `ESTree` derive (#6680) (overlookmotel) +- ad8e293 ast_tools: Shorten generated code for `impl Serialize` (#6684) (overlookmotel) +- 9ba2b0e ast_tools: Move `#[allow]` attrs to top of generated files (#6679) (overlookmotel) +- 11458a5 ast_tools: Shorten generated code by avoiding `ref` in matches (#6675) (overlookmotel) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index efccb05be41b7..da2a6720ebb23 100644 --- a/crates/oxc_regular_expression/Cargo.toml +++ b/crates/oxc_regular_expression/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_regular_expression" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index 1fd9fe8d2f65c..f1ff32c651f8b 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,24 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- 1248557 ast: [**BREAKING**] Remove `AstKind::FinallyClause` (#6744) (Boshen) + +- 202c7f6 ast: [**BREAKING**] Remove `AstKind::ExpressionArrayElement` and `AstKind::ClassHeritage` (#6740) (Boshen) + +### Features + +- 5928f04 semantic: Add `move_binding` API in ` ScopeTree` (#6808) (Dunqing) +- e7e60da semantic: Add `change_parent_id` API in ScopeTree (#6807) (Dunqing) +- 10484cd transformer: Class static block transform (#6733) (overlookmotel) + +### Bug Fixes + + +### Refactor + + ## [0.32.0] - 2024-10-19 - 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index ad69263a85a13..fdac3afc0b256 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 6f738f1c01055..7a5828fc9c5aa 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/CHANGELOG.md b/crates/oxc_span/CHANGELOG.md index a2e17e71462cf..e329aa9be0d96 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/CHANGELOG.md @@ -4,6 +4,22 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Documentation + +- 85d5220 span: Enhance `Span` documentation (#6707) (DonIsaac) + +### Refactor + +- 85e69a1 ast_tools: Add line breaks to generated code for `ESTree` derive (#6680) (overlookmotel) +- ad8e293 ast_tools: Shorten generated code for `impl Serialize` (#6684) (overlookmotel) +- 9ba2b0e ast_tools: Move `#[allow]` attrs to top of generated files (#6679) (overlookmotel) + +### Testing + +- d4a2529 span: Add `Span::is_empty` unit tests (#6706) (Don Isaac) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 019e7f45c8ddb..c095b2e678292 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index 359f5aa479be1..629804860664f 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Refactor + +- 85e69a1 ast_tools: Add line breaks to generated code for `ESTree` derive (#6680) (overlookmotel) +- ad8e293 ast_tools: Shorten generated code for `impl Serialize` (#6684) (overlookmotel) +- 9ba2b0e ast_tools: Move `#[allow]` attrs to top of generated files (#6679) (overlookmotel) + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 6af4340111e17..ca17b124f2d7a 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index ce09955230828..eeffa8b55cc62 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,51 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- 4d2d214 ast, transformer: [**BREAKING**] Remove `StringLiteral::new` method (#6788) (overlookmotel) + +- aeaa27a ast, parser, transformer, traverse: [**BREAKING**] Remove `BindingIdentifier::new` methods (#6786) (overlookmotel) + +- ecc9151 ast, parser, transformer, traverse: [**BREAKING**] Remove `IdentifierReference::new` methods (#6785) (overlookmotel) + +- c91ffbc ast, transformer: [**BREAKING**] Remove `IdentifierName::new` method (#6784) (overlookmotel) + +- 2bee4e2 ast, transformer: [**BREAKING**] Remove `BlockStatement::new` methods (#6783) (overlookmotel) + +- 8032813 regular_expression: [**BREAKING**] Migrate to new regexp parser API (#6741) (leaysgur) + +### Features + +- 10484cd transformer: Class static block transform (#6733) (overlookmotel) +- 7fbca9d transformer: Introduce `StatementInjector` helper (#6653) (Dunqing) + +### Bug Fixes + +- 1107770 coverage: Inject babel helpers for transform (#6818) (Boshen) +- b711ee1 transformer: After using StatementInjector, some statements disappeared (#6778) (Dunqing) + +### Documentation + +- ab03535 transformer: Correct typos and reformat doc comments (#6758) (overlookmotel) + +### Refactor + +- ab8aa2f allocator: Move `GetAddress` trait into `oxc_allocator` (#6738) (overlookmotel) +- 0e9b695 ast: Change `plain_function` to accept `FunctionBody` as a required parameter (#6709) (Dunqing) +- b8dfa19 transformer: Shorten code (#6809) (overlookmotel) +- 759710a transformer: Methods only take `&TraverseCtx` where possible (#6812) (overlookmotel) +- 06e06e3 transformer: Rename `OxcVec` to `AVec` (#6737) (overlookmotel) +- e5f4b4a transformer/react-refresh: Dereference `ScopeId` as soon as possible (#6820) (overlookmotel) +- 57685b2 transformer/react-refresh: Unwrap `BindingIdentifier::symbol_id` (#6817) (overlookmotel) +- 4f6dc22 transformer/react-refresh: Avoid re-creating `Atom`s (#6816) (overlookmotel) +- 8316069 transformer/react-refresh: Shorten code by using `BoundIdentifier` (#6815) (overlookmotel) +- fdd69e4 transformer/typescript: Use `TraverseCtx::generate_binding` to create a symbol (#6806) (Dunqing) + +### Styling + +- 871b9f5 transformer/react-refresh: Fix whitespace (#6813) (overlookmotel) + ## [0.32.0] - 2024-10-19 - 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index b33d4560813bd..47d0971ca82b6 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index 9d53f39a54b3a..a921205df9298 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,29 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +- aeaa27a ast, parser, transformer, traverse: [**BREAKING**] Remove `BindingIdentifier::new` methods (#6786) (overlookmotel) + +- ecc9151 ast, parser, transformer, traverse: [**BREAKING**] Remove `IdentifierReference::new` methods (#6785) (overlookmotel) + +- 1248557 ast: [**BREAKING**] Remove `AstKind::FinallyClause` (#6744) (Boshen) + +### Features + +- 10484cd transformer: Class static block transform (#6733) (overlookmotel) +- c96e739 traverse: Add `generate_binding` and `generate_binding_current_scope` APIs in context (#6805) (Dunqing) +- ce1d8cf traverse: Add `BoundIdentifier::from_binding_ident` method (#6814) (overlookmotel) + +### Documentation + +- 55c07f2 traverse: Correct doc comment for `BoundIdentifier` (#6810) (overlookmotel) + +### Refactor + +- 47bc368 traverse: `BoundIdentifier` methods only take `&TraverseCtx` (#6811) (overlookmotel) +- 1370c2d traverse: Change `generate_uid_in_based_on_node` to accept a generic type parameter as node type (#6708) (Dunqing) + ## [0.32.0] - 2024-10-19 - 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 8858bede45212..c5af22b62857a 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index d38746238ac38..e55aa0345047e 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.32.0" +version = "0.33.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-parser/CHANGELOG.md b/npm/oxc-parser/CHANGELOG.md index 4881af7aea9d0..0676f760cbf88 100644 --- a/npm/oxc-parser/CHANGELOG.md +++ b/npm/oxc-parser/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.33.0] - 2024-10-24 + +### Documentation + +- d48e008 napi: Simplify + reformat README (#6834) (overlookmotel) + ## [0.28.0] - 2024-09-11 ### Styling diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 257842ee55929..8dcb1cf82bb3b 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.32.0", + "version": "0.33.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index f1e7dee3a2ad1..01e5ef1dc1610 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.32.0", + "version": "0.33.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 30c9397a0a52a..ba26f82b5c5ca 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.32.0", + "version": "0.33.0", "description": "Wasm target for the oxc parser.", "packageManager": "pnpm@9.12.1", "keywords": [