From de99391032c8f15083425ff5e560bf1ac137f559 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sat, 19 Oct 2024 23:09:35 +0800 Subject: [PATCH] release(crates): v0.32.0 (#6691) ## [0.32.0] - 2024-10-19 - c0e9d7e codegen: [**BREAKING**] `Codegen::into_source_text` consume `Codegen` (#6539) (overlookmotel) - 782f0a7 codegen: [**BREAKING**] Rename `print_char` method to `print_ascii_byte` (#6512) (overlookmotel) - 91c87dd codegen: [**BREAKING**] Remove `Codegen::enableSourceMap` API (#6452) (Boshen) - 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) - 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) - 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) ### Features - 5ee1ef3 allocator: Add `Vec::into_boxed_slice` (#6195) (DonIsaac) - d9718ad ast_tools: Support `#[scope(exit_before)]` (#6350) (DonIsaac) - e5ed6a5 codegen: Print negative numbers (#6624) (Boshen) - 15c04e5 ecmascript: Add feature flag for constant evaluation (Boshen) - d11770d ecmascript: Add `StringToNumber` (#6576) (Boshen) - e561880 ecmascript: Add constant_evaluation and side_effects code (#6550) (Boshen) - 3556062 ecmascript: Add `ConstantEvaluation` (#6549) (Boshen) - 39c2e66 ecmascript: Add `ToBigInt` and `StringToBigInt` (#6508) (Boshen) - 6f22538 ecmascript: Add `ToBoolean`, `ToNumber`, `ToString` (#6502) (Boshen) - 15dfc1d isolated-declarations: Impl `Default` for options (#6372) (DonIsaac) - 071e564 minifier: Finish implementing folding object expressions (#6586) (camc314) - 590925a minifier: Finish implementing folding array expressions (#6575) (camc314) - ef237cf minifier: Complete implementation of statement fusion (#6566) (camc314) - 97c8a36 minifier: Implement `collapse-variable-declarations` (#6464) (dalaoshu) - 096e590 minifier: Implement folding `charAt` string fns (#6436) (camc314) - e5a6f5d minifier: Implement converting template literals to strings (#6486) (camc314) - 14d0590 minifier: Implement folding of simple function calls (`Boolean`) (#6484) (camc314) - 7fbc7b6 minifier: Implement folding of simple function calls (`String`) (#6483) (camc314) - a4f57a4 minifier: Implement folding `indexOf` and `lastIndexOf` string fns (#6435) (camc314) - 3677ef8 minifier: Dce ExpressionStatements with no side effect (#6457) (7086cmd) - 06ea121 minifier: Fold for statement (#6450) (7086cmd) - a9544ae minifier: Partially implement minification for some known string methods (#6424) (camc314) - 9dc4ee9 minifier: Implement block stmt support for `StatementFusion` (#6422) (camc314) - ebbf77d minifier: Implement calculations for NumberValue (#6419) (7086cmd) - 97ac179 minifier: Arithmetic operations for infinity. (#6332) (7086cmd) - 13b0b0b minifier: Fold literal object constructors on window (#6379) (dalaoshu) - e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) - 58467a5 parser: Better handling of invalid modifiers (#6482) (DonIsaac) - 8ea6b72 parser: Better errors for reserved words used as identifier names (#6478) (DonIsaac) - b5b0af9 regular_expression: Support RegExp Modifiers (#6410) (leaysgur) - a01a5df transformer: Pass TransformerCtx to async-to-generator plugin (#6633) (Dunqing) - a9260cf transformer: `async-to-generator` plugin. (#5590) (Ethan Goh) - 8fe1b0a transformer: Support helper loader (#6162) (Dunqing) - ab51c2a transformer: Support `DefaultImport` in `ModuleImports` (#6434) (Dunqing) - a3dea9c transformer/async-to-generator: Handle arrow-function correctly (#6640) (Dunqing) - 41c8675 transformer/object-rest-spread: Using helper loader (#6449) (Dunqing) ### Bug Fixes - ba385fc codegen: Panic occurred when printing the comment of the right parenthesis (#6593) (Dunqing) - 02bfbfe codegen: Preserve parenthesis for `ChainExpression` (#6430) (Dunqing) - 2ade16e codegen: Invalid codegen when `in` inside bin expr in or loop (#6431) (camc314) - 6896efc codegen: Fix `in` in sequence expr in for loops (#6428) (camc314) - 7cc05f1 data_structures: Fix compilation failure on older Rust versions (#6526) (overlookmotel) - 2ce3e5f identifier: Add `ZWSP` to `is_irregular_whitespace` (#6662) (Boshen) - 2673397 isolated_declarations: Fix potential memory leak (#6622) (overlookmotel) - 389d261 minifier: `~~` operator should only work on numbers (#6598) (Boshen) - 16bea12 minifier: Use `to_js_string()` instead of `fs64::to_string` (#6597) (Boshen) - a71e8a0 minifier: Preserve init variable declarations when removing `for` statements during DCE (#6551) (magic-akari) - 721cf0f parser: Should be treated comments where after `(` as leading comments of next token (#6588) (Dunqing) - b1bf12c parser: Do not parse `as` and `satisfies` expression in javascript (#6442) (Boshen) - 9f9057b regular_expression: Fixed control Y regular expression (#6524) (Tapan Prakash) - c822b48 regular_expression: Fix CharacterClass negative codegen (#6415) (leaysgur) - 384d5be regular_expression: Flatten Spans on regex AST nodes (#6396) (ottomated) - 834ee2a semantic: `TSConditionalType` scope enter/exit locations (#6351) (DonIsaac) - 1d3d256 transformer: Correctly trim JSX (#6639) (magic-akari) - c6f2b5f transformer: `HelperLoader` common transform: do not assume `babelHelpers` is global (#6569) (overlookmotel) - 85d93ed transformer: Arrow function transform: correctly resolve `this` in class accessor properties (#6386) (overlookmotel) ### Performance - 77f3a1a codegen: Check last char with byte methods (#6509) (overlookmotel) - 18b68ff codegen: Optimize `CodeBuffer::print_ascii_byte` (#6516) (overlookmotel) - 4d8bc8c parser: Precompute `is_typescript` (#6443) (Boshen) - 7c20056 regex: Reduce string allocations in `Display` impls (#6528) (DonIsaac) - f70a413 transformer: Object spread transform: do not lookup `Object` binding if not needed (#6570) (overlookmotel) - ac77c87 traverse: Optimize `TraverseScoping::generate_uid_name` (#6663) (overlookmotel) ### Documentation - 9f555d7 allocator: Clarify docs for `Box` (#6625) (overlookmotel) - 06e75b0 allocator: Enable lint warnings on missing docs, and add missing doc comments (#6613) (DonIsaac) - 7e909a7 codegen: Fix example for `CodeBuffer::print_ascii_bytes` (#6535) (overlookmotel) - 235d357 codegen: Improve doc comments for `CodeBuffer` (#6511) (overlookmotel) - c8fa2eb codegen: Correct and reformat doc comments for `CodeBuffer` (#6504) (overlookmotel) - 40d1ee4 codegen: Fix and reformat `CodeBuffer` examples (#6499) (overlookmotel) - de22b81 data-structures: Enable lint warnings on missing docs, and add missing doc comments (#6612) (DonIsaac) - 9e9fa9e span: Enable lint warnings on missing docs (#6617) (overlookmotel) - 6a194f9 span: Document validity of `ModuleKind::Unambiguous` (#6423) (Boshen) - 335b7f2 syntax: Enable lint warnings on missing docs, and add a lot of documentation (#6611) (DonIsaac) - f3451d7 transformer/async-to-generator: Remove empty lines from doc comment (#6642) (overlookmotel) - 448388a transformer/module_imports: Update outdated comments (#6574) (Dunqing) ### Refactor - 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) - 458f8f3 ast_tools: Consistent comments on `AstBuilder` methods (#6664) (overlookmotel) - 51fc63d codegen: Rename `CodeBuffer::print_bytes_unchecked` method (#6517) (overlookmotel) - 05a2ebd codegen: Reorder dependencies in `Cargo.toml` (#6514) (overlookmotel) - e7f3e28 codegen: Rename var in `CodeBuffer` (#6510) (overlookmotel) - 1bbd383 codegen: Rename `CodeBuffer::print_ascii_bytes` method (#6507) (overlookmotel) - cd9fe9e codegen: Rename vars in `CodeBuffer` methods (#6506) (overlookmotel) - fc536a5 codegen: Inline `CodeBuffer` methods (#6501) (overlookmotel) - 7420620 codegen: Add `CodeBuffer::as_bytes` method (#6498) (overlookmotel) - 8ae174b codegen: Rename `CodeBuffer::print_byte_unchecked` method (#6496) (overlookmotel) - 5843e01 codegen: Shorten `CodeBuffer::take_source_text` (#6495) (overlookmotel) - 951def6 codegen: Clarify safety comments in `CodeBuffer` (#6494) (overlookmotel) - 84a51ee codegen: Rename vars in `CodeBuffer` (#6493) (overlookmotel) - 05bd616 codegen: Add line break (#6492) (overlookmotel) - 204bf55 codegen: Add `CodeBuffer` to fix soundness hole (#6148) (DonIsaac) - 702b574 codegen: Only print necessary parentheses in TSAsExpression (#6429) (Dunqing) - aa6ba24 ecmascript: Improve string to number conversion (#6577) (magic-akari) - 6d041fb ecmascript: Remove `NumberValue` (#6519) (Boshen) - 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) - 1ba2a24 ecmascript: Remove `HasProto` which is not part of the spec (#6470) (Boshen) - a504f96 isolated-declarations: Mark return struct as non exhaustive (#6374) (DonIsaac) - f4cdc56 minifier: Use constant folding unary expression from `oxc_ecmascript` (#6647) (Boshen) - 67ad08a minifier: Unify `ValueType` (#6545) (Boshen) - bbca743 minifier: Move string methods to `oxc_ecmascript` (#6472) (Boshen) - 702c049 minifier: Move compress block to dce (#6468) (7086cmd) - 46a38c6 minifier: Remove allow `clippy::unused_self` (#6441) (Boshen) - 994b60b minifier: Use builtin get_number_value. (#6335) (7086cmd) - 435a89c oxc: Remove useless `allocator.alloc(program)` calls (#6571) (Boshen) - c45723b parser: Fix typo in var name (#6500) (overlookmotel) - 1a90ec4 rust: Backport v1.82.0 changes to main branch first (#6690) (Boshen) - 3faee66 span: Remove unused `ContentHash::content_hash_slice` (#6609) (DonIsaac) - 9281234 transformer: Shorten imports (#6643) (overlookmotel) - 3af0840 transformer: `HelperLoader`: add import immediately (#6601) (overlookmotel) - f81aa7f transformer: `HelperLoader` common transform: comments (#6599) (overlookmotel) - 679cc68 transformer: `HelperLoader` common transform: construct string directly in arena (#6596) (overlookmotel) - c346ebb transformer: `HelperLoader` common transform: `Helper` enum (#6595) (overlookmotel) - 7a028b3 transformer: Remove unnecessary `#![warn]` attr (#6585) (overlookmotel) - 8c6afe0 transformer: Reorder imports (#6582) (overlookmotel) - 779ff46 transformer: `HelperLoader` common transform: `Helper` struct (#6568) (overlookmotel) - bc24a24 transformer: `HelperLoader` common transform: use hashmap `Entry` API (#6567) (overlookmotel) - 9f02fc7 transformer: `HelperLoader` common transform: re-order fields (#6565) (overlookmotel) - 50ecade transformer: `HelperLoader` common transform: remove `Rc`s (#6564) (overlookmotel) - 1c1e9fc transformer: `HelperLoader` common transform: reorder methods (#6563) (overlookmotel) - c9054c8 transformer: Rename `ImportKind` to `Import` (#6561) (overlookmotel) - 9542c4e transformer: Add more specific methods to `ModuleImportsStore` (#6560) (overlookmotel) - 7e57a1d transformer: `ImportKind` use `BoundIdentifier` (#6559) (overlookmotel) - 602df9d transformer: Re-order fields of `Common` and `TransformCtx` (#6562) (overlookmotel) - 390abca transformer/async-to-generator: Use `helper_call_expr` (#6634) (Dunqing) - 2ff917f transformer/async-to-generator: Move internal methods below entry points (#6632) (Dunqing) ### Styling - fb916b2 regular_expression: Re-order dependencies in `Cargo.toml` (#6672) (overlookmotel) - 9d43a11 transformer: Re-order dependencies (#6659) (overlookmotel) ### Testing - e7c89a5 codegen: Uncomment passed tests that are related to trailing comments (#6589) (Dunqing) - d816b0b codegen: Add test for `CodeBuffer::print_byte_unchecked` (#6497) (overlookmotel) - c5deb32 minifier: Port the rest of tests (#6420) (7086cmd) - e59da61 minifier: Add all test cases for `collapse_variable_declarations` (#6421) (dalaoshu) - 73d6a4a minifier: Port all replace_known_methods tests. (#6418) (7086cmd) --------- Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- Cargo.lock | 48 +++++++-------- Cargo.toml | 48 +++++++-------- crates/oxc/CHANGELOG.md | 11 ++++ crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/CHANGELOG.md | 11 ++++ crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 24 ++++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/CHANGELOG.md | 6 ++ crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 59 +++++++++++++++++++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/CHANGELOG.md | 10 ++++ crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/CHANGELOG.md | 22 +++++++ crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/CHANGELOG.md | 12 ++++ crates/oxc_estree/Cargo.toml | 3 +- crates/oxc_index/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 22 +++++++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 52 ++++++++++++++++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_module_lexer/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 25 ++++++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/CHANGELOG.md | 21 +++++++ crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 19 ++++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_sourcemap/Cargo.toml | 2 +- crates/oxc_span/CHANGELOG.md | 16 +++++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 19 ++++++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 56 ++++++++++++++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 20 +++++++ crates/oxc_traverse/Cargo.toml | 2 +- napi/transform/CHANGELOG.md | 11 ++++ napi/transform/Cargo.toml | 2 +- npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- wasm/parser/package.json | 2 +- 47 files changed, 492 insertions(+), 75 deletions(-) create mode 100644 crates/oxc_estree/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 20e0add46865b..e1d6183b362c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1389,7 +1389,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.31.0" +version = "0.32.0" dependencies = [ "napi", "napi-derive", @@ -1431,7 +1431,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.31.0" +version = "0.32.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1441,7 +1441,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.31.0" +version = "0.32.0" dependencies = [ "bitflags 2.6.0", "num-bigint", @@ -1458,7 +1458,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.31.0" +version = "0.32.0" dependencies = [ "proc-macro2", "quote", @@ -1506,7 +1506,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.31.0" +version = "0.32.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1519,7 +1519,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.31.0" +version = "0.32.0" dependencies = [ "assert-unchecked", "base64", @@ -1569,14 +1569,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.31.0" +version = "0.32.0" dependencies = [ "assert-unchecked", ] [[package]] name = "oxc_diagnostics" -version = "0.31.0" +version = "0.32.0" dependencies = [ "miette", "owo-colors", @@ -1587,7 +1587,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.31.0" +version = "0.32.0" dependencies = [ "num-bigint", "num-traits", @@ -1598,11 +1598,11 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.31.0" +version = "0.32.0" [[package]] name = "oxc_index" -version = "0.31.0" +version = "0.32.0" dependencies = [ "rayon", "serde", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.31.0" +version = "0.32.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1708,7 +1708,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.31.0" +version = "0.32.0" dependencies = [ "itertools", "oxc_ast", @@ -1719,7 +1719,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.31.0" +version = "0.32.0" dependencies = [ "cow-utils", "insta", @@ -1769,7 +1769,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.31.0" +version = "0.32.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1780,7 +1780,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.31.0" +version = "0.32.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1856,7 +1856,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.31.0" +version = "0.32.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1892,7 +1892,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.31.0" +version = "0.32.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1917,7 +1917,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.31.0" +version = "0.32.0" dependencies = [ "base64-simd", "cfg-if", @@ -1930,7 +1930,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.31.0" +version = "0.32.0" dependencies = [ "compact_str", "miette", @@ -1944,7 +1944,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.31.0" +version = "0.32.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.31.0" +version = "0.32.0" dependencies = [ "napi", "napi-build", @@ -2013,7 +2013,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.31.0" +version = "0.32.0" dependencies = [ "base64", "cow-utils", @@ -2042,7 +2042,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.31.0" +version = "0.32.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index a5dccdfe86c55..a32146996b273 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,30 +76,30 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.31.0", path = "crates/oxc" } -oxc_allocator = { version = "0.31.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.31.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.31.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.31.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.31.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.31.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.31.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.31.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.31.0", path = "crates/oxc_estree" } -oxc_index = { version = "0.31.0", path = "crates/oxc_index" } -oxc_isolated_declarations = { version = "0.31.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.31.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.31.0", path = "crates/oxc_minifier" } -oxc_module_lexer = { version = "0.31.0", path = "crates/oxc_module_lexer" } -oxc_parser = { version = "0.31.0", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.31.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.31.0", path = "crates/oxc_semantic" } -oxc_sourcemap = { version = "0.31.0", path = "crates/oxc_sourcemap" } -oxc_span = { version = "0.31.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.31.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.31.0", path = "napi/transform" } -oxc_transformer = { version = "0.31.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.31.0", path = "crates/oxc_traverse" } +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" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/CHANGELOG.md b/crates/oxc/CHANGELOG.md index 814969382827a..beeb3618d806c 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.32.0] - 2024-10-19 + +- 91c87dd codegen: [**BREAKING**] Remove `Codegen::enableSourceMap` API (#6452) (Boshen) + +- 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +### Refactor + + ## [0.31.0] - 2024-10-08 - 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 7cc5ec89a4c3e..158ebf85e3439 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.31.0" +version = "0.32.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 01d92b48beaf4..54b6f355ff763 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.32.0] - 2024-10-19 + +### Features + +- 5ee1ef3 allocator: Add `Vec::into_boxed_slice` (#6195) (DonIsaac) + +### Documentation + +- 9f555d7 allocator: Clarify docs for `Box` (#6625) (overlookmotel) +- 06e75b0 allocator: Enable lint warnings on missing docs, and add missing doc comments (#6613) (DonIsaac) + ## [0.31.0] - 2024-10-08 ### Performance diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index cf8d1284a5df9..3580a6cf72723 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.31.0" +version = "0.32.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 0e428acaeb070..d2e74ce5d2e5d 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,30 @@ 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.32.0] - 2024-10-19 + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +- 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) + +### Features + +- 6f22538 ecmascript: Add `ToBoolean`, `ToNumber`, `ToString` (#6502) (Boshen) +- 590925a minifier: Finish implementing folding array expressions (#6575) (camc314) +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) +- b5b0af9 regular_expression: Support RegExp Modifiers (#6410) (leaysgur) + +### Bug Fixes + +- 02bfbfe codegen: Preserve parenthesis for `ChainExpression` (#6430) (Dunqing) +- a71e8a0 minifier: Preserve init variable declarations when removing `for` statements during DCE (#6551) (magic-akari) +- 834ee2a semantic: `TSConditionalType` scope enter/exit locations (#6351) (DonIsaac) + +### Refactor + +- 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) +- 458f8f3 ast_tools: Consistent comments on `AstBuilder` methods (#6664) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 83887147130d8..5a3752ebc68d5 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/CHANGELOG.md b/crates/oxc_ast_macros/CHANGELOG.md index 6f9daff9860b8..5444086749ae9 100644 --- a/crates/oxc_ast_macros/CHANGELOG.md +++ b/crates/oxc_ast_macros/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.32.0] - 2024-10-19 + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) + ## [0.30.0] - 2024-09-23 ### Refactor diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 27cda301d9522..61bcf54da34c0 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.31.0" +version = "0.32.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 e4c072975bd9a..11b4511e8ffcb 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.31.0" +version = "0.32.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 217d4f57d7e28..17cb990bb6159 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,65 @@ 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.32.0] - 2024-10-19 + +- c0e9d7e codegen: [**BREAKING**] `Codegen::into_source_text` consume `Codegen` (#6539) (overlookmotel) + +- 782f0a7 codegen: [**BREAKING**] Rename `print_char` method to `print_ascii_byte` (#6512) (overlookmotel) + +- 91c87dd codegen: [**BREAKING**] Remove `Codegen::enableSourceMap` API (#6452) (Boshen) + +- 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +### Features + +- e5ed6a5 codegen: Print negative numbers (#6624) (Boshen) + +### Bug Fixes + +- ba385fc codegen: Panic occurred when printing the comment of the right parenthesis (#6593) (Dunqing) +- 02bfbfe codegen: Preserve parenthesis for `ChainExpression` (#6430) (Dunqing) +- 2ade16e codegen: Invalid codegen when `in` inside bin expr in or loop (#6431) (camc314) +- 6896efc codegen: Fix `in` in sequence expr in for loops (#6428) (camc314) + +### Performance + +- 77f3a1a codegen: Check last char with byte methods (#6509) (overlookmotel) +- 18b68ff codegen: Optimize `CodeBuffer::print_ascii_byte` (#6516) (overlookmotel) + +### Documentation + +- 7e909a7 codegen: Fix example for `CodeBuffer::print_ascii_bytes` (#6535) (overlookmotel) +- 235d357 codegen: Improve doc comments for `CodeBuffer` (#6511) (overlookmotel) +- c8fa2eb codegen: Correct and reformat doc comments for `CodeBuffer` (#6504) (overlookmotel) +- 40d1ee4 codegen: Fix and reformat `CodeBuffer` examples (#6499) (overlookmotel) + +### Refactor + +- 51fc63d codegen: Rename `CodeBuffer::print_bytes_unchecked` method (#6517) (overlookmotel) +- 05a2ebd codegen: Reorder dependencies in `Cargo.toml` (#6514) (overlookmotel) +- e7f3e28 codegen: Rename var in `CodeBuffer` (#6510) (overlookmotel) +- 1bbd383 codegen: Rename `CodeBuffer::print_ascii_bytes` method (#6507) (overlookmotel) +- cd9fe9e codegen: Rename vars in `CodeBuffer` methods (#6506) (overlookmotel) +- fc536a5 codegen: Inline `CodeBuffer` methods (#6501) (overlookmotel) +- 7420620 codegen: Add `CodeBuffer::as_bytes` method (#6498) (overlookmotel) +- 8ae174b codegen: Rename `CodeBuffer::print_byte_unchecked` method (#6496) (overlookmotel) +- 5843e01 codegen: Shorten `CodeBuffer::take_source_text` (#6495) (overlookmotel) +- 951def6 codegen: Clarify safety comments in `CodeBuffer` (#6494) (overlookmotel) +- 84a51ee codegen: Rename vars in `CodeBuffer` (#6493) (overlookmotel) +- 05bd616 codegen: Add line break (#6492) (overlookmotel) +- 204bf55 codegen: Add `CodeBuffer` to fix soundness hole (#6148) (DonIsaac) +- 702b574 codegen: Only print necessary parentheses in TSAsExpression (#6429) (Dunqing) +- f4cdc56 minifier: Use constant folding unary expression from `oxc_ecmascript` (#6647) (Boshen) +- 1a90ec4 rust: Backport v1.82.0 changes to main branch first (#6690) (Boshen) + +### Testing + +- e7c89a5 codegen: Uncomment passed tests that are related to trailing comments (#6589) (Dunqing) +- d816b0b codegen: Add test for `CodeBuffer::print_byte_unchecked` (#6497) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 1ba96c14f8414..86677f280036e 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_data_structures/CHANGELOG.md b/crates/oxc_data_structures/CHANGELOG.md index 0ceb2dd4bb11f..0ae9527395d30 100644 --- a/crates/oxc_data_structures/CHANGELOG.md +++ b/crates/oxc_data_structures/CHANGELOG.md @@ -4,6 +4,16 @@ 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.32.0] - 2024-10-19 + +### Bug Fixes + +- 7cc05f1 data_structures: Fix compilation failure on older Rust versions (#6526) (overlookmotel) + +### Documentation + +- de22b81 data-structures: Enable lint warnings on missing docs, and add missing doc comments (#6612) (DonIsaac) + ## [0.31.0] - 2024-10-08 ### Features diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 9f387c7889bce..cc08c30aa2c17 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.31.0" +version = "0.32.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 f5bf592cad930..eca9df371aca9 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.31.0" +version = "0.32.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 9cbef2906d6da..6fcf1b7272ccd 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/CHANGELOG.md @@ -4,6 +4,28 @@ 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.32.0] - 2024-10-19 + +### Features + +- 15c04e5 ecmascript: Add feature flag for constant evaluation (Boshen) +- d11770d ecmascript: Add `StringToNumber` (#6576) (Boshen) +- e561880 ecmascript: Add constant_evaluation and side_effects code (#6550) (Boshen) +- 3556062 ecmascript: Add `ConstantEvaluation` (#6549) (Boshen) +- 39c2e66 ecmascript: Add `ToBigInt` and `StringToBigInt` (#6508) (Boshen) +- 6f22538 ecmascript: Add `ToBoolean`, `ToNumber`, `ToString` (#6502) (Boshen) +- 071e564 minifier: Finish implementing folding object expressions (#6586) (camc314) +- 096e590 minifier: Implement folding `charAt` string fns (#6436) (camc314) + +### Refactor + +- aa6ba24 ecmascript: Improve string to number conversion (#6577) (magic-akari) +- 6d041fb ecmascript: Remove `NumberValue` (#6519) (Boshen) +- 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) +- 1ba2a24 ecmascript: Remove `HasProto` which is not part of the spec (#6470) (Boshen) +- f4cdc56 minifier: Use constant folding unary expression from `oxc_ecmascript` (#6647) (Boshen) +- bbca743 minifier: Move string methods to `oxc_ecmascript` (#6472) (Boshen) + ## [0.31.0] - 2024-10-08 ### Features diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 124e4672b9c49..b6f6382d98adb 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/CHANGELOG.md b/crates/oxc_estree/CHANGELOG.md new file mode 100644 index 0000000000000..b039cb23de975 --- /dev/null +++ b/crates/oxc_estree/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +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.32.0] - 2024-10-19 + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) + diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 405b1a1a970ca..550e1fe25b002 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "oxc_estree" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true homepage.workspace = true keywords.workspace = true license.workspace = true +publish = true repository.workspace = true rust-version.workspace = true description.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 3556f0cd46981..96991d86b2929 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.31.0" +version = "0.32.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 f9d05d4070677..b39fc01a7ff5a 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,28 @@ 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.32.0] - 2024-10-19 + +- 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +- 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) + +### Features + +- 15dfc1d isolated-declarations: Impl `Default` for options (#6372) (DonIsaac) + +### Bug Fixes + +- 2673397 isolated_declarations: Fix potential memory leak (#6622) (overlookmotel) + +### Refactor + +- 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) +- 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) +- a504f96 isolated-declarations: Mark return struct as non exhaustive (#6374) (DonIsaac) + ## [0.31.0] - 2024-10-08 - 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 481b30485bd5e..4ebf89c20d145 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.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 26d0e07f5f28c..2c49740a484a1 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.31.0" +version = "0.32.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 15343318a5196..7965c8a468385 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,58 @@ 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.32.0] - 2024-10-19 + +### Features + +- e5ed6a5 codegen: Print negative numbers (#6624) (Boshen) +- 15c04e5 ecmascript: Add feature flag for constant evaluation (Boshen) +- e561880 ecmascript: Add constant_evaluation and side_effects code (#6550) (Boshen) +- 3556062 ecmascript: Add `ConstantEvaluation` (#6549) (Boshen) +- 39c2e66 ecmascript: Add `ToBigInt` and `StringToBigInt` (#6508) (Boshen) +- 6f22538 ecmascript: Add `ToBoolean`, `ToNumber`, `ToString` (#6502) (Boshen) +- 071e564 minifier: Finish implementing folding object expressions (#6586) (camc314) +- 590925a minifier: Finish implementing folding array expressions (#6575) (camc314) +- ef237cf minifier: Complete implementation of statement fusion (#6566) (camc314) +- 97c8a36 minifier: Implement `collapse-variable-declarations` (#6464) (dalaoshu) +- 096e590 minifier: Implement folding `charAt` string fns (#6436) (camc314) +- e5a6f5d minifier: Implement converting template literals to strings (#6486) (camc314) +- 14d0590 minifier: Implement folding of simple function calls (`Boolean`) (#6484) (camc314) +- 7fbc7b6 minifier: Implement folding of simple function calls (`String`) (#6483) (camc314) +- a4f57a4 minifier: Implement folding `indexOf` and `lastIndexOf` string fns (#6435) (camc314) +- 3677ef8 minifier: Dce ExpressionStatements with no side effect (#6457) (7086cmd) +- 06ea121 minifier: Fold for statement (#6450) (7086cmd) +- a9544ae minifier: Partially implement minification for some known string methods (#6424) (camc314) +- 9dc4ee9 minifier: Implement block stmt support for `StatementFusion` (#6422) (camc314) +- ebbf77d minifier: Implement calculations for NumberValue (#6419) (7086cmd) +- 97ac179 minifier: Arithmetic operations for infinity. (#6332) (7086cmd) +- 13b0b0b minifier: Fold literal object constructors on window (#6379) (dalaoshu) + +### Bug Fixes + +- 389d261 minifier: `~~` operator should only work on numbers (#6598) (Boshen) +- 16bea12 minifier: Use `to_js_string()` instead of `fs64::to_string` (#6597) (Boshen) +- a71e8a0 minifier: Preserve init variable declarations when removing `for` statements during DCE (#6551) (magic-akari) + +### Refactor + +- 6d041fb ecmascript: Remove `NumberValue` (#6519) (Boshen) +- 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) +- f4cdc56 minifier: Use constant folding unary expression from `oxc_ecmascript` (#6647) (Boshen) +- 67ad08a minifier: Unify `ValueType` (#6545) (Boshen) +- bbca743 minifier: Move string methods to `oxc_ecmascript` (#6472) (Boshen) +- 702c049 minifier: Move compress block to dce (#6468) (7086cmd) +- 46a38c6 minifier: Remove allow `clippy::unused_self` (#6441) (Boshen) +- 994b60b minifier: Use builtin get_number_value. (#6335) (7086cmd) +- 435a89c oxc: Remove useless `allocator.alloc(program)` calls (#6571) (Boshen) +- 1a90ec4 rust: Backport v1.82.0 changes to main branch first (#6690) (Boshen) + +### Testing + +- c5deb32 minifier: Port the rest of tests (#6420) (7086cmd) +- e59da61 minifier: Add all test cases for `collapse_variable_declarations` (#6421) (dalaoshu) +- 73d6a4a minifier: Port all replace_known_methods tests. (#6418) (7086cmd) + ## [0.31.0] - 2024-10-08 - 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 06168b3d0358c..a944e6f3f0c6f 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.31.0" +version = "0.32.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 672286d3a14bd..69ea1b686046c 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.31.0" +version = "0.32.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 f48832b6bb3f2..850fad9691339 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,31 @@ 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.32.0] - 2024-10-19 + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +- 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) + +### Features + +- 58467a5 parser: Better handling of invalid modifiers (#6482) (DonIsaac) +- 8ea6b72 parser: Better errors for reserved words used as identifier names (#6478) (DonIsaac) + +### Bug Fixes + +- 721cf0f parser: Should be treated comments where after `(` as leading comments of next token (#6588) (Dunqing) +- b1bf12c parser: Do not parse `as` and `satisfies` expression in javascript (#6442) (Boshen) + +### Performance + +- 4d8bc8c parser: Precompute `is_typescript` (#6443) (Boshen) + +### Refactor + +- 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) +- c45723b parser: Fix typo in var name (#6500) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 003e3b5c6c804..b6b26f326b273 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.31.0" +version = "0.32.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 2bd9898a4fe5d..a0cf56366ea9f 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/CHANGELOG.md @@ -4,6 +4,27 @@ 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.32.0] - 2024-10-19 + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) +- b5b0af9 regular_expression: Support RegExp Modifiers (#6410) (leaysgur) + +### Bug Fixes + +- 9f9057b regular_expression: Fixed control Y regular expression (#6524) (Tapan Prakash) +- c822b48 regular_expression: Fix CharacterClass negative codegen (#6415) (leaysgur) +- 384d5be regular_expression: Flatten Spans on regex AST nodes (#6396) (ottomated) + +### Performance + +- 7c20056 regex: Reduce string allocations in `Display` impls (#6528) (DonIsaac) + +### Styling + +- fb916b2 regular_expression: Re-order dependencies in `Cargo.toml` (#6672) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 5a73a66 regular_expression: [**BREAKING**] Simplify public APIs (#6262) (leaysgur) diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 17a2691df5889..efccb05be41b7 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.31.0" +version = "0.32.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 7b1080650debc..1fd9fe8d2f65c 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,25 @@ 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.32.0] - 2024-10-19 + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +- 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) + +### Bug Fixes + +- 834ee2a semantic: `TSConditionalType` scope enter/exit locations (#6351) (DonIsaac) + +### Refactor + +- 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) +- 435a89c oxc: Remove useless `allocator.alloc(program)` calls (#6571) (Boshen) + ## [0.31.0] - 2024-10-08 - 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 4aab9f302e71e..ad69263a85a13 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.31.0" +version = "0.32.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 b9d45ec11660c..6f738f1c01055 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.31.0" +version = "0.32.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 003fb78f3d7fa..a2e17e71462cf 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.32.0] - 2024-10-19 + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) + +### Documentation + +- de22b81 data-structures: Enable lint warnings on missing docs, and add missing doc comments (#6612) (DonIsaac) +- 9e9fa9e span: Enable lint warnings on missing docs (#6617) (overlookmotel) +- 6a194f9 span: Document validity of `ModuleKind::Unambiguous` (#6423) (Boshen) + +### Refactor + +- 3faee66 span: Remove unused `ContentHash::content_hash_slice` (#6609) (DonIsaac) + ## [0.30.4] - 2024-09-28 ### Bug Fixes diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 11cc1f0314e82..019e7f45c8ddb 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.31.0" +version = "0.32.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 63002f14dfc4d..359f5aa479be1 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,25 @@ 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.32.0] - 2024-10-19 + +### Features + +- e310e52 parser: Generate `Serialize` impls in ast_tools (#6404) (ottomated) + +### Bug Fixes + +- 2ce3e5f identifier: Add `ZWSP` to `is_irregular_whitespace` (#6662) (Boshen) +- 1d3d256 transformer: Correctly trim JSX (#6639) (magic-akari) + +### Documentation + +- 335b7f2 syntax: Enable lint warnings on missing docs, and add a lot of documentation (#6611) (DonIsaac) + +### Refactor + +- 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) + ## [0.31.0] - 2024-10-08 ### Refactor diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 3a26101356bae..6af4340111e17 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.31.0" +version = "0.32.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 b685e6a047165..ce09955230828 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,62 @@ 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.32.0] - 2024-10-19 + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +### Features + +- a01a5df transformer: Pass TransformerCtx to async-to-generator plugin (#6633) (Dunqing) +- a9260cf transformer: `async-to-generator` plugin. (#5590) (Ethan Goh) +- 8fe1b0a transformer: Support helper loader (#6162) (Dunqing) +- ab51c2a transformer: Support `DefaultImport` in `ModuleImports` (#6434) (Dunqing) +- a3dea9c transformer/async-to-generator: Handle arrow-function correctly (#6640) (Dunqing) +- 41c8675 transformer/object-rest-spread: Using helper loader (#6449) (Dunqing) + +### Bug Fixes + +- 1d3d256 transformer: Correctly trim JSX (#6639) (magic-akari) +- c6f2b5f transformer: `HelperLoader` common transform: do not assume `babelHelpers` is global (#6569) (overlookmotel) +- 85d93ed transformer: Arrow function transform: correctly resolve `this` in class accessor properties (#6386) (overlookmotel) + +### Performance + +- f70a413 transformer: Object spread transform: do not lookup `Object` binding if not needed (#6570) (overlookmotel) + +### Documentation + +- f3451d7 transformer/async-to-generator: Remove empty lines from doc comment (#6642) (overlookmotel) +- 448388a transformer/module_imports: Update outdated comments (#6574) (Dunqing) + +### Refactor + +- 856cab5 ecmascript: Move ToInt32 from `oxc_syntax` to `oxc_ecmascript` (#6471) (Boshen) +- 1ba2a24 ecmascript: Remove `HasProto` which is not part of the spec (#6470) (Boshen) +- 435a89c oxc: Remove useless `allocator.alloc(program)` calls (#6571) (Boshen) +- 9281234 transformer: Shorten imports (#6643) (overlookmotel) +- 3af0840 transformer: `HelperLoader`: add import immediately (#6601) (overlookmotel) +- f81aa7f transformer: `HelperLoader` common transform: comments (#6599) (overlookmotel) +- 679cc68 transformer: `HelperLoader` common transform: construct string directly in arena (#6596) (overlookmotel) +- c346ebb transformer: `HelperLoader` common transform: `Helper` enum (#6595) (overlookmotel) +- 7a028b3 transformer: Remove unnecessary `#![warn]` attr (#6585) (overlookmotel) +- 8c6afe0 transformer: Reorder imports (#6582) (overlookmotel) +- 779ff46 transformer: `HelperLoader` common transform: `Helper` struct (#6568) (overlookmotel) +- bc24a24 transformer: `HelperLoader` common transform: use hashmap `Entry` API (#6567) (overlookmotel) +- 9f02fc7 transformer: `HelperLoader` common transform: re-order fields (#6565) (overlookmotel) +- 50ecade transformer: `HelperLoader` common transform: remove `Rc`s (#6564) (overlookmotel) +- 1c1e9fc transformer: `HelperLoader` common transform: reorder methods (#6563) (overlookmotel) +- c9054c8 transformer: Rename `ImportKind` to `Import` (#6561) (overlookmotel) +- 9542c4e transformer: Add more specific methods to `ModuleImportsStore` (#6560) (overlookmotel) +- 7e57a1d transformer: `ImportKind` use `BoundIdentifier` (#6559) (overlookmotel) +- 602df9d transformer: Re-order fields of `Common` and `TransformCtx` (#6562) (overlookmotel) +- 390abca transformer/async-to-generator: Use `helper_call_expr` (#6634) (Dunqing) +- 2ff917f transformer/async-to-generator: Move internal methods below entry points (#6632) (Dunqing) + +### Styling + +- 9d43a11 transformer: Re-order dependencies (#6659) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 168c5b2942d56..492b79a92c613 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.31.0" +version = "0.32.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 e390bf25966be..9d53f39a54b3a 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,26 @@ 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.32.0] - 2024-10-19 + +- 2808973 ast: [**BREAKING**] Add `Program::comments` (#6445) (Boshen) + +### Features + +- d9718ad ast_tools: Support `#[scope(exit_before)]` (#6350) (DonIsaac) + +### Bug Fixes + +- 834ee2a semantic: `TSConditionalType` scope enter/exit locations (#6351) (DonIsaac) + +### Performance + +- ac77c87 traverse: Optimize `TraverseScoping::generate_uid_name` (#6663) (overlookmotel) + +### Refactor + +- 073b02a ast: Type params field before params in TS function declaration types (#6391) (overlookmotel) + ## [0.31.0] - 2024-10-08 - 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 095cbab89d993..8858bede45212 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index 111a092b37f65..25fd40270a834 100644 --- a/napi/transform/CHANGELOG.md +++ b/napi/transform/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.32.0] - 2024-10-19 + +- 91c87dd codegen: [**BREAKING**] Remove `Codegen::enableSourceMap` API (#6452) (Boshen) + +- 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) + +- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) + +### Refactor + + ## [0.31.0] - 2024-10-08 - 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 7e87598cba26c..d38746238ac38 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.31.0" +version = "0.32.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 5ed04889a79e9..257842ee55929 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.31.0", + "version": "0.32.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 1cde24f6d844f..f1e7dee3a2ad1 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.31.0", + "version": "0.32.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 55b641e7696f7..30c9397a0a52a 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.31.0", + "version": "0.32.0", "description": "Wasm target for the oxc parser.", "packageManager": "pnpm@9.12.1", "keywords": [