From dd927a6851747b0eeea532e6f021911a5174613c Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Mon, 10 Feb 2025 23:12:03 +0800 Subject: [PATCH] release(crates): v0.49.0 (#9015) --- Cargo.lock | 46 ++++++------- Cargo.toml | 46 ++++++------- crates/oxc/CHANGELOG.md | 6 ++ crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/CHANGELOG.md | 6 ++ crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 67 +++++++++++++++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/CHANGELOG.md | 18 +++++ crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/CHANGELOG.md | 6 ++ crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 14 ++++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/CHANGELOG.md | 19 ++++++ crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/CHANGELOG.md | 40 +++++++++++ crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/CHANGELOG.md | 6 ++ crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 11 +++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/CHANGELOG.md | 6 ++ crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 63 +++++++++++++++++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/CHANGELOG.md | 6 ++ crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 15 +++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/CHANGELOG.md | 19 ++++++ crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 10 +++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/CHANGELOG.md | 23 +++++++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 22 ++++++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 21 ++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 6 ++ crates/oxc_traverse/Cargo.toml | 2 +- napi/parser/CHANGELOG.md | 16 +++++ napi/parser/Cargo.toml | 2 +- napi/transform/CHANGELOG.md | 11 +++ napi/transform/Cargo.toml | 2 +- npm/oxc-minify/package.json | 2 +- npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- npm/oxc-types/CHANGELOG.md | 30 +++++++++ npm/oxc-types/package.json | 2 +- npm/runtime/CHANGELOG.md | 12 ++++ npm/runtime/package.json | 2 +- wasm/parser/CHANGELOG.md | 6 ++ wasm/parser/package.json | 2 +- 56 files changed, 534 insertions(+), 75 deletions(-) create mode 100644 npm/runtime/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 1e6a8cfd884e5..4bf579c64eef7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1505,7 +1505,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.48.2" +version = "0.49.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1567,7 +1567,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.48.2" +version = "0.49.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1580,7 +1580,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.48.2" +version = "0.49.0" dependencies = [ "bitflags 2.8.0", "cow-utils", @@ -1599,7 +1599,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.48.2" +version = "0.49.0" dependencies = [ "proc-macro2", "quote", @@ -1653,7 +1653,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.48.2" +version = "0.49.0" dependencies = [ "bitflags 2.8.0", "itertools", @@ -1666,7 +1666,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.48.2" +version = "0.49.0" dependencies = [ "assert-unchecked", "base64", @@ -1730,7 +1730,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.48.2" +version = "0.49.0" dependencies = [ "assert-unchecked", "ropey", @@ -1738,7 +1738,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.48.2" +version = "0.49.0" dependencies = [ "cow-utils", "oxc-miette", @@ -1746,7 +1746,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.48.2" +version = "0.49.0" dependencies = [ "num-bigint", "num-traits", @@ -1757,7 +1757,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.48.2" +version = "0.49.0" dependencies = [ "serde", ] @@ -1774,7 +1774,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.48.2" +version = "0.49.0" dependencies = [ "bitflags 2.8.0", "insta", @@ -1872,7 +1872,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.48.2" +version = "0.49.0" dependencies = [ "fixedbitset", "itertools", @@ -1886,7 +1886,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.48.2" +version = "0.49.0" dependencies = [ "cow-utils", "insta", @@ -1942,7 +1942,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.48.2" +version = "0.49.0" dependencies = [ "napi", "napi-derive", @@ -1951,7 +1951,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.48.2" +version = "0.49.0" dependencies = [ "assert-unchecked", "bitflags 2.8.0", @@ -1974,7 +1974,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.48.2" +version = "0.49.0" dependencies = [ "napi", "napi-build", @@ -2035,7 +2035,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.48.2" +version = "0.49.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -2070,7 +2070,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.48.2" +version = "0.49.0" dependencies = [ "assert-unchecked", "insta", @@ -2110,7 +2110,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.48.2" +version = "0.49.0" dependencies = [ "compact_str", "oxc-miette", @@ -2123,7 +2123,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.48.2" +version = "0.49.0" dependencies = [ "assert-unchecked", "bitflags 2.8.0", @@ -2182,7 +2182,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.48.2" +version = "0.49.0" dependencies = [ "napi", "napi-build", @@ -2195,7 +2195,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.48.2" +version = "0.49.0" dependencies = [ "base64", "compact_str", @@ -2228,7 +2228,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.48.2" +version = "0.49.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index ba51786264881..d91affed19d34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.48.2", path = "crates/oxc" } -oxc_allocator = { version = "0.48.2", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.48.2", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.48.2", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.48.2", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.48.2", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.48.2", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.48.2", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.48.2", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.48.2", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.48.2", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.48.2", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.48.2", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.48.2", path = "crates/oxc_napi" } -oxc_parser = { version = "0.48.2", path = "crates/oxc_parser" } -oxc_parser_napi = { version = "0.48.2", path = "napi/parser" } -oxc_regular_expression = { version = "0.48.2", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.48.2", path = "crates/oxc_semantic" } -oxc_span = { version = "0.48.2", path = "crates/oxc_span" } -oxc_syntax = { version = "0.48.2", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.48.2", path = "napi/transform" } -oxc_transformer = { version = "0.48.2", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.48.2", path = "crates/oxc_traverse" } +oxc = { version = "0.49.0", path = "crates/oxc" } +oxc_allocator = { version = "0.49.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.49.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.49.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.49.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.49.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.49.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.49.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.49.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.49.0", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.49.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.49.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.49.0", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.49.0", path = "crates/oxc_napi" } +oxc_parser = { version = "0.49.0", path = "crates/oxc_parser" } +oxc_parser_napi = { version = "0.49.0", path = "napi/parser" } +oxc_regular_expression = { version = "0.49.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.49.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.49.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.49.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.49.0", path = "napi/transform" } +oxc_transformer = { version = "0.49.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.49.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 95897149d8bfb..9c657602bbb3d 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.49.0] - 2025-02-10 + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Refactor diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 6513a59349a34..b08b96b9d6b01 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.48.2" +version = "0.49.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 5b7bb7ff4fbcb..b6c73604652f8 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/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.49.0] - 2025-02-10 + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.0] - 2025-01-24 ### Features diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index e85776aab8151..c19731d092f91 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.48.2" +version = "0.49.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 ce7cbfcd36b32..10f599d109a30 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,73 @@ 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.49.0] - 2025-02-10 + +- bbb075d ast: [**BREAKING**] Name `AstBuilder` enum builders after variant name not type name (#8890) (overlookmotel) + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Features + +- c940826 ast_tools: Get extra params for visitor methods from `#[visit(args)]` attr (#8887) (overlookmotel) +- f2d28f3 transformer: Support for transforming legacy decorator (#8614) (Dunqing) + +### Bug Fixes + +- 1daa8fe ast: Estree compat `AssignmentTargetPropertyProperty` (#9005) (hi-ogawa) +- e0646d7 ast: Estree compat `ArrayAssignmentTarget` (#8998) (hi-ogawa) +- d7802a7 ast: Serialize `ArrowFunctionExpression.body: FunctionBody | Expression` (#8988) (Hiroshi Ogawa) +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) +- ec1d593 ast: Add missing estree props for `ArrowFunctionExpression` (#8980) (camchenry) +- 8eccdec ast: Estree compat `CatchClause` (#8975) (hi-ogawa) +- 2ee1d6c ast: Estree compat `Property` (#8974) (hi-ogawa) +- 801d78e ast: Estree compat `UnaryExpression` (#8973) (hi-ogawa) +- a2883b1 ast: Estree compat `Function` (#8972) (hi-ogawa) +- a520986 ast: Estree compat `Program.sourceType` (#8919) (Hiroshi Ogawa) +- e30cf6a ast: Estree compat `MemberExpression` (#8921) (Hiroshi Ogawa) +- 315fec6 ast: Fix lifetimes on custom `Serialize` impls (#8899) (overlookmotel) +- 0c55dd6 ast: Serialize `Function.params` like estree (#8772) (Hiroshi Ogawa) +- 9a5a926 ecmascript: Fix may_have_side_effects for binary expressions (#8991) (sapphi-red) + +### Performance + +- fcfc274 ast: Assume `serde_json` output is valid UTF8 string (#8928) (overlookmotel) + +### Documentation + +- 705208b ast: Do not include `r#` prefix in doc comments for `AstBuilder` methods (#8873) (overlookmotel) + +### Refactor + +- 0929320 ast: Add `NULL` value for serializing null types (#8987) (camchenry) +- a1ca2eb ast: Support `#[estree(ts_alias)]` attr on enums and use it on `RegExpPattern` and `RegExpFlags` (#8953) (overlookmotel) +- 515eb52 ast: Shorten code for `impl Serialize for Elision` (#8940) (overlookmotel) +- 640db88 ast: Introduce `#[estree(ts_alias)]` attr and use it on `Elision` (#8939) (overlookmotel) +- a6884e4 ast: Simplify serializing literal types (#8937) (overlookmotel) +- c58f785 ast: Simplify serializing `SourceType` (#8936) (overlookmotel) +- 647a288 ast: Rename `#[estree(add_entry)]` to `#[estree(add_fields)]` (#8926) (overlookmotel) +- cbb4e9c ast: Generated `Serialize` impls flatten struct fields (#8904) (overlookmotel) +- 5cb8466 ast: Estree `via` on struct fields implement `From` (#8898) (overlookmotel) +- 223eb8d ast: Override TS type defs with `#[estree(custom_ts_def)]` attribute on type (#8897) (overlookmotel) +- a36bc5f ast: Generate `Visit` methods in order of type definitions (#8891) (overlookmotel) +- 893339d ast: Record plural names in `#[plural]` attr (#8889) (overlookmotel) +- 5f5188c ast: Shorten generated code for `GetSpan` (#8883) (overlookmotel) +- 571fb70 ast: Derive `ContentEq` on literal types (#8880) (overlookmotel) +- 04786ac ast: Use `=` syntax for `#[scope]` attrs (#8878) (overlookmotel) +- 6628e1d ast: Move `#[estree(skip)]` to types (#8877) (overlookmotel) +- 3407d47 ast: Move `#[clone_in(default)]` to types (#8876) (overlookmotel) +- 6839433 ast: Communicate type of `RegExpFlags` to `oxc_ast_tools` with alias type (#8868) (overlookmotel) +- abfe5bf ast: Shorten generated code for numbers (#8864) (overlookmotel) +- f6f92db ast: Re-order generated code (#8863) (overlookmotel) +- f69de07 ast: Remove unneeded lint attrs from generated code (#8862) (overlookmotel) +- 6d1e1d8 ast: Make generated code consistent (#8872) (overlookmotel) +- a5bdf32 ast_tools: Re-vamp `oxc_ast_tools` (#8844) (overlookmotel) +- 768ad4f syntax: Add `#[ast]` attr to semantic ID types (#8867) (overlookmotel) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 2a354fa731837..825ddf64041b8 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.48.2" +version = "0.49.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 306c908981a74..3ff754a5971c5 100644 --- a/crates/oxc_ast_macros/CHANGELOG.md +++ b/crates/oxc_ast_macros/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.49.0] - 2025-02-10 + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Features + +- 8f0b865 ast_tools: Generate mapping of trait name to crate in `oxc_ast_macros` (#8870) (overlookmotel) +- e693ff3 ast_tools: Generate list of helper attributes in `oxc_ast_macros` crate (#8852) (overlookmotel) + +### Documentation + +- 4cabc16 ast_macros: Update docs (#8853) (overlookmotel) + +### Refactor + +- 893339d ast: Record plural names in `#[plural]` attr (#8889) (overlookmotel) +- caa651c ast: `#[content_eq(skip)]` attr (#8875) (overlookmotel) + ## [0.47.0] - 2025-01-18 - 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index b357ec8fa6e49..ccc7eb0d3252b 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.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/CHANGELOG.md b/crates/oxc_cfg/CHANGELOG.md index b11cad62fea85..4d759223382c9 100644 --- a/crates/oxc_cfg/CHANGELOG.md +++ b/crates/oxc_cfg/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.49.0] - 2025-02-10 + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.37.0] - 2024-11-21 ### Features diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 38457b07714f2..8f05069212a16 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.48.2" +version = "0.49.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 9045cda6e5ab4..9823cb3e1a876 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,20 @@ 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.49.0] - 2025-02-10 + +### Features + +- b4ee617 codegen: Prefer backquotes over double / single quotes (#8839) (sapphi-red) + +### Bug Fixes + +- be71b03 codegen: Parenthesis is lacking when a pure comment is placed before a function expression inside a call expression (#8968) (Dunqing) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Bug Fixes diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index bbf975448eb17..c7cb132241e3a 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.48.2" +version = "0.49.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 441bb99fb4720..9c7b1c01f077c 100644 --- a/crates/oxc_data_structures/CHANGELOG.md +++ b/crates/oxc_data_structures/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.49.0] - 2025-02-10 + +- bec8fee data_structures: [**BREAKING**] Rename `Stack::last_unchecked_mut` method (#8911) (overlookmotel) + +### Features + +- 0a74cf5 data_structures: Add `first` and `first_mut` methods to stack types (#8908) (overlookmotel) + +### Documentation + +- f6b6e70 data_structures: Correct doc comments for `SparseStack` (#8907) (overlookmotel) + +### Refactor + + +### Testing + +- 2d06260 data_structures: Add tests for `NonEmptyStack::as_slice` and `as_slice_mut` (#8912) (overlookmotel) + ## [0.45.0] - 2025-01-11 ### Documentation diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 054b75ae358d9..b1277d36c4170 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.48.2" +version = "0.49.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 7d849d4a38648..869a2ed14a135 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.48.2" +version = "0.49.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 97b7d8244460a..0fdd7361f17ae 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/CHANGELOG.md @@ -4,6 +4,46 @@ 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.49.0] - 2025-02-10 + +### Features + +- ad1a878 ecmascript: Support BigInt comparison (#9014) (sapphi-red) +- d515cfd ecmascript: Detect objects without overridden `toString`/`valueOf`/`Symbol.toPrimitive` (#8993) (sapphi-red) +- 2a10a99 ecmascript: Support arrays and objects for unary expression may_have_side_effects (#8990) (sapphi-red) +- dd383c0 ecmascript: `ValueType::from` for PrivateInExpression (#8964) (sapphi-red) +- c3eef2f ecmascript: `ValueType::from` for parenthesized expressions (#8962) (sapphi-red) +- 2c3a46d ecmascript: Support more simple expressions by `ValueType::from` (#8961) (sapphi-red) +- 4cec83f ecmascript: `ValueType::from` for bitwise not operator (#8955) (sapphi-red) +- e3e9999 ecmascript: Complete may_have_side_effects (#8855) (sapphi-red) +- ca4831b minifier: Fold `typeof class {}` to `'function'` (#8949) (sapphi-red) +- 9ffe9e9 minifier: Fold `typeof (() => {})` to `'function'` (#8948) (sapphi-red) +- 36007de minifier: Fold typeof `{ foo }` when `foo` is declared (#8947) (sapphi-red) +- 56575b2 minifier: Fold complicated array literals passed to unary `+` (#8944) (sapphi-red) +- 14462be minifier: Fold simple literals passed to unary `+` (#8943) (sapphi-red) +- d6d13dd minifier: Minimize `!!(boolean_expr)` -> `boolean_expr` (#8849) (Boshen) + +### Bug Fixes + +- 9a5a926 ecmascript: Fix may_have_side_effects for binary expressions (#8991) (sapphi-red) +- 660c314 ecmascript: Fix may_have_side_effects for unary expressions (#8989) (sapphi-red) +- 8ab7204 ecmascript: Fix `ValueType::from` for `AssignmentExpression` (#8959) (sapphi-red) +- aeb122d ecmascript: Fix `ValueType::from` for numeric binary operators (#8956) (sapphi-red) +- 1182c20 ecmascript: `ValueType::from` for unknown value should return Undetermined instead of Number (#8954) (sapphi-red) +- b5a7785 minifier: Fix comparison of strings with unicode characters (#8942) (sapphi-red) + +### Refactor + +- 9b5d800 minifier: Move equality comparison to ConstantEvaluation (#9009) (sapphi-red) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + +### Testing + +- cc7bb9c ecmascript: Add test for `ValueType` and update document (#8951) (sapphi-red) + ## [0.48.2] - 2025-02-02 ### Bug Fixes diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index b87ee655a4ae6..8c86da6ff49dc 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/CHANGELOG.md b/crates/oxc_estree/CHANGELOG.md index bef86b5d2859b..900c6b657c300 100644 --- a/crates/oxc_estree/CHANGELOG.md +++ b/crates/oxc_estree/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.49.0] - 2025-02-10 + +### Bug Fixes + +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) + ## [0.36.0] - 2024-11-09 - 092de67 types: [**BREAKING**] Append `rest` field into `elements` for objects and arrays to align with estree (#7212) (ottomated) diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 8f7f1d6f7a387..e56fece04b701 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.48.2" +version = "0.49.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 fa90e5f3d7eda..462b57d534fea 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/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.49.0] - 2025-02-10 + +- bbb075d ast: [**BREAKING**] Name `AstBuilder` enum builders after variant name not type name (#8890) (overlookmotel) + +### Refactor + + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Bug Fixes diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index c71fe6be8efb4..25f051cb22667 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.48.2" +version = "0.49.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 db6f3fa0e0775..e13a36b983190 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.49.0] - 2025-02-10 + +### Bug Fixes + +- f11dff0 mangler, prettier, ast_tools: Remove methods which are unstable in our MSRV (#8929) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Features diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index b5835ff64a034..4e2d77f9c49cc 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.48.2" +version = "0.49.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 1474b9d6a16de..1df932734c709 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,69 @@ 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.49.0] - 2025-02-10 + +- bbb075d ast: [**BREAKING**] Name `AstBuilder` enum builders after variant name not type name (#8890) (overlookmotel) + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Features + +- ad1a878 ecmascript: Support BigInt comparison (#9014) (sapphi-red) +- d515cfd ecmascript: Detect objects without overridden `toString`/`valueOf`/`Symbol.toPrimitive` (#8993) (sapphi-red) +- 2a10a99 ecmascript: Support arrays and objects for unary expression may_have_side_effects (#8990) (sapphi-red) +- dd383c0 ecmascript: `ValueType::from` for PrivateInExpression (#8964) (sapphi-red) +- c3eef2f ecmascript: `ValueType::from` for parenthesized expressions (#8962) (sapphi-red) +- 2c3a46d ecmascript: Support more simple expressions by `ValueType::from` (#8961) (sapphi-red) +- 4cec83f ecmascript: `ValueType::from` for bitwise not operator (#8955) (sapphi-red) +- e3e9999 ecmascript: Complete may_have_side_effects (#8855) (sapphi-red) +- cd84a05 minifier: Minimize expression statement `!x` -> `x` (#9012) (Boshen) +- b416334 minifier: Remove useless string addition (#9011) (sapphi-red) +- beeb2fb minifier: Implement `optimizeImplicitJump` (#8984) (Boshen) +- ce3b744 minifier: Remove name from function / class expressions (#8997) (sapphi-red) +- 3f7faed minifier: Remove unused function expression with name by remove_dead_code (#8996) (sapphi-red) +- ec601f2 minifier: Improve `mangleFor` (#8901) (Boshen) +- ca4831b minifier: Fold `typeof class {}` to `'function'` (#8949) (sapphi-red) +- 9ffe9e9 minifier: Fold `typeof (() => {})` to `'function'` (#8948) (sapphi-red) +- 36007de minifier: Fold typeof `{ foo }` when `foo` is declared (#8947) (sapphi-red) +- 56575b2 minifier: Fold complicated array literals passed to unary `+` (#8944) (sapphi-red) +- 14462be minifier: Fold simple literals passed to unary `+` (#8943) (sapphi-red) +- 4a86467 minifier: Remove unnecessary unary `+` inside numeric binary operators (#8957) (sapphi-red) +- 4b4d543 minifier: Minimize block statements (#8857) (Boshen) +- d6d13dd minifier: Minimize `!!(boolean_expr)` -> `boolean_expr` (#8849) (Boshen) +- 20f2c46 minifier: `for (;;) { var x }` -> `for (;;) var x;` (#8847) (Boshen) +- e623745 minifier: Minify `String::concat` into template literal (#8443) (sapphi-red) +- 84b62c7 minifier: Implement minimize for statement (#8846) (Boshen) + +### Bug Fixes + +- 9a5a926 ecmascript: Fix may_have_side_effects for binary expressions (#8991) (sapphi-red) +- 660c314 ecmascript: Fix may_have_side_effects for unary expressions (#8989) (sapphi-red) +- 8ab7204 ecmascript: Fix `ValueType::from` for `AssignmentExpression` (#8959) (sapphi-red) +- aeb122d ecmascript: Fix `ValueType::from` for numeric binary operators (#8956) (sapphi-red) +- 1182c20 ecmascript: `ValueType::from` for unknown value should return Undetermined instead of Number (#8954) (sapphi-red) +- b5a7785 minifier: Fix comparison of strings with unicode characters (#8942) (sapphi-red) +- 4a723f1 minifier: Should not merge conditional function calls if referencing the function has a side-effect (#8922) (sapphi-red) + +### Refactor + +- 9b5d800 minifier: Move equality comparison to ConstantEvaluation (#9009) (sapphi-red) +- 9193217 minifier: Remove duplicated `typeof` comparison to non-strict equality compression (#9010) (sapphi-red) +- 85b8ea4 minifier: Extract `symbols().symbol_is_used(symbol_id)` (#8995) (sapphi-red) +- 9c84c6d minifier: Break up methods into different files (#8843) (Boshen) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + +### Testing + +- e1fd3e8 ecmascript: Add tests for `ValueType` for undetermined cases (#8960) (sapphi-red) +- cc7bb9c ecmascript: Add test for `ValueType` and update document (#8951) (sapphi-red) +- cebb350 minfier: Clean up some esbuild tests (Boshen) +- 8495c21 minifier: Enable passed tests (Boshen) +- f6d43f5 minifier: Enable esbuild constant evaluation tests (#8941) (sapphi-red) + ## [0.48.2] - 2025-02-02 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 1472a4b936ade..0e7b5287df6a3 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/CHANGELOG.md b/crates/oxc_napi/CHANGELOG.md index 8f460178c1ba7..0a813b1909267 100644 --- a/crates/oxc_napi/CHANGELOG.md +++ b/crates/oxc_napi/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.49.0] - 2025-02-10 + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.42.0] - 2024-12-18 ### Refactor diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 28fb892427c90..861bebd35045c 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.48.2" +version = "0.49.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 54133e00ca377..984ff5baf42c5 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,21 @@ 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.49.0] - 2025-02-10 + +- bbb075d ast: [**BREAKING**] Name `AstBuilder` enum builders after variant name not type name (#8890) (overlookmotel) + +### Refactor + + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + +### Testing + +- cebb350 minfier: Clean up some esbuild tests (Boshen) + ## [0.48.1] - 2025-01-26 ### Features diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index e5f72f1234a57..a17163eed7986 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.48.2" +version = "0.49.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 2b656d128496f..3765c4ad9ad1c 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/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.49.0] - 2025-02-10 + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Bug Fixes + +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) + +### Refactor + +- cbb4e9c ast: Generated `Serialize` impls flatten struct fields (#8904) (overlookmotel) +- abfe5bf ast: Shorten generated code for numbers (#8864) (overlookmotel) +- f69de07 ast: Remove unneeded lint attrs from generated code (#8862) (overlookmotel) +- 6d1e1d8 ast: Make generated code consistent (#8872) (overlookmotel) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 251d2fa3bd338..5bfd412700d22 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.48.2" +version = "0.49.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 8ef12aaea3c02..8b6e33de6f5c4 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/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.49.0] - 2025-02-10 + +### Refactor + +- 85b8ea4 minifier: Extract `symbols().symbol_is_used(symbol_id)` (#8995) (sapphi-red) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Features diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 3af1cd812b3b2..d63cc86b3ab99 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.48.2" +version = "0.49.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 063c292292649..a9b8c81607229 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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.49.0] - 2025-02-10 + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Bug Fixes + +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) +- 81bed37 span: `f64::content_eq` return `false` for `0` and `-0` (#9007) (overlookmotel) + +### Refactor + +- c58f785 ast: Simplify serializing `SourceType` (#8936) (overlookmotel) +- cbb4e9c ast: Generated `Serialize` impls flatten struct fields (#8904) (overlookmotel) +- caa651c ast: `#[content_eq(skip)]` attr (#8875) (overlookmotel) +- 7ddd219 ast: Rename `#[estree(always_flatten)]` attr to `#[estree(flatten)]` (#8871) (overlookmotel) +- abfe5bf ast: Shorten generated code for numbers (#8864) (overlookmotel) +- f69de07 ast: Remove unneeded lint attrs from generated code (#8862) (overlookmotel) +- e930cae span: Combine `Span` type and impls in 1 file (#8900) (overlookmotel) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Refactor diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 13f7ed4dc6ee4..25e1a69ad2b76 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.48.2" +version = "0.49.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 3f059acd43f01..5d5d96d43f16b 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.49.0] - 2025-02-10 + +- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel) + +### Bug Fixes + +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) + +### Refactor + +- cbb4e9c ast: Generated `Serialize` impls flatten struct fields (#8904) (overlookmotel) +- 6628e1d ast: Move `#[estree(skip)]` to types (#8877) (overlookmotel) +- 3407d47 ast: Move `#[clone_in(default)]` to types (#8876) (overlookmotel) +- caa651c ast: `#[content_eq(skip)]` attr (#8875) (overlookmotel) +- abfe5bf ast: Shorten generated code for numbers (#8864) (overlookmotel) +- f69de07 ast: Remove unneeded lint attrs from generated code (#8862) (overlookmotel) +- 768ad4f syntax: Add `#[ast]` attr to semantic ID types (#8867) (overlookmotel) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Bug Fixes diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 1bcc1caa3e165..17daf061342f7 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.48.2" +version = "0.49.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 9fdc13c6ceb5d..ec76aa5f5a58c 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/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.49.0] - 2025-02-10 + +- bbb075d ast: [**BREAKING**] Name `AstBuilder` enum builders after variant name not type name (#8890) (overlookmotel) + +### Features + +- 0a74cf5 data_structures: Add `first` and `first_mut` methods to stack types (#8908) (overlookmotel) +- f2d28f3 transformer: Support for transforming legacy decorator (#8614) (Dunqing) + +### Bug Fixes + +- 1b89e75 oxc_transformer: Avoid const unwrap in base64 length calc (#8914) (碳苯 Carbon) +- 2c4f004 transformer/typescript: Typescript parameter properties disappear when there's two or more classes that uses that feature (#8969) (Dunqing) + +### Refactor + + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.48.2] - 2025-02-02 ### Features diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 4c2c543b41765..3a16d64c891c4 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.48.2" +version = "0.49.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 826f7b657318e..3a720a777ff58 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.49.0] - 2025-02-10 + +### Refactor + +- 04786ac ast: Use `=` syntax for `#[scope]` attrs (#8878) (overlookmotel) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 68017949e07de..3d1f37b9edf2d 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/CHANGELOG.md b/napi/parser/CHANGELOG.md index 4c774b8b82ea9..b71d12d8db6cc 100644 --- a/napi/parser/CHANGELOG.md +++ b/napi/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.49.0] - 2025-02-10 + +### Bug Fixes + +- a520986 ast: Estree compat `Program.sourceType` (#8919) (Hiroshi Ogawa) +- e30cf6a ast: Estree compat `MemberExpression` (#8921) (Hiroshi Ogawa) +- 0c55dd6 ast: Serialize `Function.params` like estree (#8772) (Hiroshi Ogawa) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + +### Testing + +- 4803059 ast: Remove old ast snapshot tests (#8976) (hi-ogawa) + ## [0.47.1] - 2025-01-19 ### Features diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 5ce6af0460e7d..d46201cfb5c3a 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index 5cc793730b621..4e48fd87008ad 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.49.0] - 2025-02-10 + +### Features + +- d6daa75 napi/transform: Support for enabling legacy decorator (#8927) (Dunqing) +- f2d28f3 transformer: Support for transforming legacy decorator (#8614) (Dunqing) + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.46.0] - 2025-01-14 ### Features diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index ff073aba5ba56..5911a6a187844 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.48.2" +version = "0.49.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-minify/package.json b/npm/oxc-minify/package.json index 591b0bff94fa4..0b155e6054e22 100644 --- a/npm/oxc-minify/package.json +++ b/npm/oxc-minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.48.2", + "version": "0.49.0", "description": "Oxc minify Node API", "keywords": [ "minify" diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 6c3cb3f1c5eb0..0983ec0dce073 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.48.2", + "version": "0.49.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 8daefc9cd639d..e5b22a2398b8a 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.48.2", + "version": "0.49.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/CHANGELOG.md b/npm/oxc-types/CHANGELOG.md index 729f1c1df0ea8..91e2ad045bac5 100644 --- a/npm/oxc-types/CHANGELOG.md +++ b/npm/oxc-types/CHANGELOG.md @@ -4,6 +4,36 @@ 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.49.0] - 2025-02-10 + +### Features + +- 53ee053 ast: Improve TS type definitions for appended fields (#8882) (overlookmotel) + +### Bug Fixes + +- 1daa8fe ast: Estree compat `AssignmentTargetPropertyProperty` (#9005) (hi-ogawa) +- e0646d7 ast: Estree compat `ArrayAssignmentTarget` (#8998) (hi-ogawa) +- d7802a7 ast: Serialize `ArrowFunctionExpression.body: FunctionBody | Expression` (#8988) (Hiroshi Ogawa) +- 7e6a537 ast: Include `directives` in `body` (#8981) (hi-ogawa) +- ec1d593 ast: Add missing estree props for `ArrowFunctionExpression` (#8980) (camchenry) +- 8eccdec ast: Estree compat `CatchClause` (#8975) (hi-ogawa) +- 2ee1d6c ast: Estree compat `Property` (#8974) (hi-ogawa) +- 801d78e ast: Estree compat `UnaryExpression` (#8973) (hi-ogawa) +- a2883b1 ast: Estree compat `Function` (#8972) (hi-ogawa) +- a520986 ast: Estree compat `Program.sourceType` (#8919) (Hiroshi Ogawa) +- e30cf6a ast: Estree compat `MemberExpression` (#8921) (Hiroshi Ogawa) +- 0c55dd6 ast: Serialize `Function.params` like estree (#8772) (Hiroshi Ogawa) + +### Refactor + +- 640db88 ast: Introduce `#[estree(ts_alias)]` attr and use it on `Elision` (#8939) (overlookmotel) +- 66f0afb ast: Shorten TS type definitions for enums (#8938) (overlookmotel) +- a6884e4 ast: Simplify serializing literal types (#8937) (overlookmotel) +- c58f785 ast: Simplify serializing `SourceType` (#8936) (overlookmotel) +- 223eb8d ast: Override TS type defs with `#[estree(custom_ts_def)]` attribute on type (#8897) (overlookmotel) +- f6f92db ast: Re-order generated code (#8863) (overlookmotel) + ## [0.47.0] - 2025-01-18 - 19d3677 ast: [**BREAKING**] Always return `Array` for `ImportDeclaration.specifiers` (#8560) (sapphi-red) diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index d0bfb5c23c610..5be02c67ee75b 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.48.2", + "version": "0.49.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/npm/runtime/CHANGELOG.md b/npm/runtime/CHANGELOG.md new file mode 100644 index 0000000000000..e0c7d8c054fe1 --- /dev/null +++ b/npm/runtime/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.49.0] - 2025-02-10 + +### Features + +- 951b2d5 npm/runtime: Add `@oxc-project/runtime` package (#8595) (Boshen) + diff --git a/npm/runtime/package.json b/npm/runtime/package.json index d26275ad5a134..c666c4a0cf028 100644 --- a/npm/runtime/package.json +++ b/npm/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/runtime", - "version": "0.47.1", + "version": "0.49.0", "description": "Oxc's modular runtime helpers", "license": "MIT", "repository": { diff --git a/wasm/parser/CHANGELOG.md b/wasm/parser/CHANGELOG.md index 4cac66482cdad..bcf657a77d9e2 100644 --- a/wasm/parser/CHANGELOG.md +++ b/wasm/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.49.0] - 2025-02-10 + +### Styling + +- a4a8e7d all: Replace `#[allow]` with `#[expect]` (#8930) (overlookmotel) + ## [0.42.0] - 2024-12-18 ### Refactor diff --git a/wasm/parser/package.json b/wasm/parser/package.json index a888a91563c7f..12282b1fec4bc 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.48.2", + "version": "0.49.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",