From 6768f7ded21b3ca89bc588db7ce84c150fd479f4 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Tue, 10 Dec 2024 23:04:43 +0800 Subject: [PATCH] release(crates): v0.40.0 (#7775) --- Cargo.lock | 44 ++++++------ Cargo.toml | 44 ++++++------ crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 27 ++++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 21 ++++++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/CHANGELOG.md | 10 +++ crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/CHANGELOG.md | 6 ++ crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 13 ++++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 7 ++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/CHANGELOG.md | 12 ++++ crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 24 +++++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 13 ++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 11 +++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 68 +++++++++++++++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 15 ++++ crates/oxc_traverse/Cargo.toml | 2 +- napi/transform/CHANGELOG.md | 16 +++++ napi/transform/Cargo.toml | 2 +- npm/oxc-parser/CHANGELOG.md | 6 ++ npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- npm/oxc-types/CHANGELOG.md | 18 +++++ npm/oxc-types/package.json | 2 +- wasm/parser/package.json | 2 +- 43 files changed, 337 insertions(+), 70 deletions(-) create mode 100644 crates/oxc_napi/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 6f9be2bf0e1f4..b85008ec5afe5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,7 +1373,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.39.0" +version = "0.40.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1435,7 +1435,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.39.0" +version = "0.40.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1445,7 +1445,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.39.0" +version = "0.40.0" dependencies = [ "bitflags 2.6.0", "cow-utils", @@ -1463,7 +1463,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.39.0" +version = "0.40.0" dependencies = [ "proc-macro2", "quote", @@ -1511,7 +1511,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.39.0" +version = "0.40.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1524,7 +1524,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.39.0" +version = "0.40.0" dependencies = [ "assert-unchecked", "base64", @@ -1585,7 +1585,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.39.0" +version = "0.40.0" dependencies = [ "assert-unchecked", "ropey", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.39.0" +version = "0.40.0" dependencies = [ "oxc-miette", "rustc-hash", @@ -1601,7 +1601,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.39.0" +version = "0.40.0" dependencies = [ "num-bigint", "num-traits", @@ -1612,7 +1612,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.39.0" +version = "0.40.0" dependencies = [ "serde", ] @@ -1637,7 +1637,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.39.0" +version = "0.40.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1736,7 +1736,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.39.0" +version = "0.40.0" dependencies = [ "itertools", "oxc_ast", @@ -1747,7 +1747,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.39.0" +version = "0.40.0" dependencies = [ "cow-utils", "insta", @@ -1795,7 +1795,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.39.0" +version = "0.40.0" dependencies = [ "napi", "napi-derive", @@ -1804,7 +1804,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.39.0" +version = "0.40.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1885,7 +1885,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.39.0" +version = "0.40.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1919,7 +1919,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.39.0" +version = "0.40.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1975,7 +1975,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.39.0" +version = "0.40.0" dependencies = [ "compact_str", "oxc-miette", @@ -1988,7 +1988,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.39.0" +version = "0.40.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2046,7 +2046,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.39.0" +version = "0.40.0" dependencies = [ "napi", "napi-build", @@ -2059,7 +2059,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.39.0" +version = "0.40.0" dependencies = [ "base64", "compact_str", @@ -2091,7 +2091,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.39.0" +version = "0.40.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index 5b27a6bf1c7a7..f4182df2a0f91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,28 +78,28 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.39.0", path = "crates/oxc" } -oxc_allocator = { version = "0.39.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.39.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.39.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.39.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.39.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.39.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.39.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.39.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.39.0", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.39.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.39.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.39.0", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.39.0", path = "crates/oxc_napi" } -oxc_parser = { version = "0.39.0", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.39.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.39.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.39.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.39.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.39.0", path = "napi/transform" } -oxc_transformer = { version = "0.39.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.39.0", path = "crates/oxc_traverse" } +oxc = { version = "0.40.0", path = "crates/oxc" } +oxc_allocator = { version = "0.40.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.40.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.40.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.40.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.40.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.40.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.40.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.40.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.40.0", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.40.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.40.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.40.0", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.40.0", path = "crates/oxc_napi" } +oxc_parser = { version = "0.40.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.40.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.40.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.40.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.40.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.40.0", path = "napi/transform" } +oxc_transformer = { version = "0.40.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.40.0", path = "crates/oxc_traverse" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 7926610e9fc67..a2f519ac4d31c 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index cb4d1b07065d0..b4f61f449f47e 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.39.0" +version = "0.40.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 47c88ea6a7186..4b66399865ca1 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,33 @@ 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.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- 7dcf6b4 ast, transformer: Add `AstBuilder::use_strict_directive` method (#7770) (overlookmotel) +- bd9d38a linter: Implement eslint:yoda (#7559) (tbashiyy) + +### Bug Fixes + +- 2179b93 estree: Make type of `BigIntLiteral::raw` prop in ESTree AST optional (#7663) (overlookmotel) +- cbba26c estree: `raw: null` in ESTree AST for generated `NullLiteral`s (#7662) (overlookmotel) +- 1d59fc8 estree: `raw: null` in ESTree AST for generated `BooleanLiteral`s (#7661) (overlookmotel) + +### Refactor + +- 98afe65 ast: `AstBuilder` extra methods use `SPAN` (#7769) (overlookmotel) +- 8993e89 ast: Shorten code (#7659) (overlookmotel) +- 746c8aa ast: Rename vars (#7658) (overlookmotel) + +### Styling + +- 0c9cc48 ast: Import `Atom` (#7657) (overlookmotel) + ## [0.39.0] - 2024-12-04 - b0e1c03 ast: [**BREAKING**] Add `StringLiteral::raw` field (#7393) (Boshen) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index f8d733e77cb83..52cdcccd2ad61 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index a57fd4b7f960c..da373b94012eb 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.39.0" +version = "0.40.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 d78e306966a22..d6c37fcaba02f 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.39.0" +version = "0.40.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 da29ca12c61b8..d826ee00f5e31 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/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.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- d0b78f7 codegen: Minify whitespace for some expressions (#7671) (Boshen) +- c523ccb codegen: Better whitespace minification for import / export statements (#7650) (Boshen) + +### Bug Fixes + +- a222f2b codegen: Print `delete 2e308` as `delete (0, Infinity)` (#7761) (Boshen) +- b701232 codegen: Print quote correctly for directive (#7735) (Boshen) +- 8c3a954 codegen: Missing parens for `in` in `for in` loop init (#7705) (Dunqing) +- 4afbe55 codegen: Missing parens for `in` in for loop init when it includes two binary expression (#7703) (Dunqing) + +### Refactor + + ## [0.39.0] - 2024-12-04 ### Bug Fixes diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index df6c02b1af304..01e0de64fc4cf 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.39.0" +version = "0.40.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 09846e6ea90b4..b10850bf9bbe3 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.40.0] - 2024-12-10 + +### Features + +- cf2ee06 data_structures: Add rope (#7764) (Boshen) + +### Styling + +- e97a954 data_structures: Line breaks (#7766) (overlookmotel) + ## [0.39.0] - 2024-12-04 ### Features diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 694705e4eae53..260a0410c9bd7 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.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/CHANGELOG.md b/crates/oxc_diagnostics/CHANGELOG.md index 6a352da1234c2..3d3e9db9c7492 100644 --- a/crates/oxc_diagnostics/CHANGELOG.md +++ b/crates/oxc_diagnostics/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.40.0] - 2024-12-10 + +### Features + +- 85eec3c napi/transform,napi/parser: Return structured error object (#7724) (Boshen) + ## [0.37.0] - 2024-11-21 ### Features diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index e5aa770d9bdf1..03a35e66e5a10 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 30c8a5d946ca3..b3cf5ca84d5c1 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 91db22e075848..c4f529261f7e4 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.39.0" +version = "0.40.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 45805b1acec64..5909a922afe99 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + + +### Refactor + +- 3c1b2bf isolated_declarations: Use `NONE` in AST builder calls (#7752) (overlookmotel) + ## [0.39.0] - 2024-12-04 - b0e1c03 ast: [**BREAKING**] Add `StringLiteral::raw` field (#7393) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 1a6272e429376..d2a03af2a35c2 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.39.0" +version = "0.40.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 019a1416d608e..3ad93b003a9cf 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.39.0" +version = "0.40.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 2cd488e25ff7c..b30983628413e 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,13 @@ 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.40.0] - 2024-12-10 + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Refactor + + ## [0.39.0] - 2024-12-04 - f2f31a8 traverse: [**BREAKING**] Remove unsound APIs (#7514) (overlookmotel) diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index e0dd97fe8ac19..195b51081583b 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/CHANGELOG.md b/crates/oxc_napi/CHANGELOG.md new file mode 100644 index 0000000000000..b553285b22de2 --- /dev/null +++ b/crates/oxc_napi/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.40.0] - 2024-12-10 + +### Features + +- 85eec3c napi/transform,napi/parser: Return structured error object (#7724) (Boshen) + diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 206f9e4797902..5f8b034a4a121 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.39.0" +version = "0.40.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 7f287cf33947e..d5e2622ed0f00 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/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.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- 00fea92 napi/parser: Expose span positions of `import.meta` (#7677) (Boshen) +- b8dc333 syntax: Add `ExportEntry::is_type` (#7676) (Boshen) + +### Bug Fixes + +- 8c0b0ee parser: Better diagnostic for invalid `for await` syntax (#7649) (Boshen) + +### Performance + +- d503a84 parser: Reorder `parse_statement` match conditions (#7645) (Boshen) +- e923e4e parser: Inline all token kind checks (#7644) (Boshen) + +### Refactor + +- 36d1493 parser: Use `ModuleRecord::has_module_syntax` for setting sourceType (#7646) (Boshen) + ## [0.39.0] - 2024-12-04 - c2ced15 parser,linter: [**BREAKING**] Use a different `ModuleRecord` for linter (#7554) (Boshen) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 848274eeec5c9..87f3768ff9aae 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 4f07bc0f1b015..e6416099e8e36 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.39.0" +version = "0.40.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 fe82279bda0c0..524f102e30124 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- 78dff7d semantic: Add `SymbolTable::symbol_is_mutated` method (#7755) (overlookmotel) + +### Refactor + + ## [0.39.0] - 2024-12-04 - 0be5233 semantic: [**BREAKING**] Remove `ModuleRecord` from `Semantic` (#7548) (Boshen) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 7c8f8733077a7..ecc030d41338b 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 49765b8e943d9..cf2362a1b9ffa 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.39.0" +version = "0.40.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 b41fdf3d21558..a1e476774b2aa 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.40.0] - 2024-12-10 + +### Features + +- 00fea92 napi/parser: Expose span positions of `import.meta` (#7677) (Boshen) +- b8dc333 syntax: Add `ExportEntry::is_type` (#7676) (Boshen) + +### Refactor + +- c6a19aa linter: Remove unused `serde` features (#7738) (Boshen) + ## [0.39.0] - 2024-12-04 - c2ced15 parser,linter: [**BREAKING**] Use a different `ModuleRecord` for linter (#7554) (Boshen) diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index a792ef06a6652..4c1bec55667a5 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.39.0" +version = "0.40.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 79e619eb6b0b7..169d570833fd3 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,74 @@ 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.40.0] - 2024-12-10 + +- 5913200 transformer/class-properties: [**BREAKING**] Rename `ClassPropertiesOptions::loose` (#7716) (overlookmotel) + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- 7dcf6b4 ast, transformer: Add `AstBuilder::use_strict_directive` method (#7770) (overlookmotel) +- cf2ee06 data_structures: Add rope (#7764) (Boshen) +- 2803aec napi/transform: Return helpers information (#7737) (Boshen) +- c98457d napi/transformer: Add runtime helper mode (#7727) (Boshen) +- 2e69720 transformer/class-properties: Support `private_fields_as_properties` assumption (#7717) (overlookmotel) +- 86d4c90 transformer/class-properties: Support for transforming `AssignmentTarget` (#7697) (Dunqing) +- c793d71 transformer/class-properties: Transform `ChainExpression` (#7575) (Dunqing) +- e010b6a transformer/logical-assignment-operators: No temp vars for literals (#7759) (overlookmotel) +- 8705a29 transformer/var-declaration: Add a series of `create_var*` methods (#7665) (Dunqing) +- e8518e9 transformer/var-declarations: Add `insert_var_with_init` method (#7667) (Dunqing) + +### Bug Fixes + +- f7d41dd oxc_transform: Overlap replacement (#7621) (IWANABETHATGUY) +- 245d7d9 oxc_transformer: Alias `es2015` to `es6` (#7673) (Kevin Deng 三咲智子) +- f42dbdf transformer/class-properties: Output is not the same with Babel when PrivateFieldExpression is optional (#7762) (Dunqing) +- f52b1db transformer/class-properties: Output is not the same with Babel when callee has optional (#7748) (Dunqing) +- 97e4185 transformer/class-properties: Fix `SymbolFlags` for `_super` function (#7709) (overlookmotel) +- de5b0b6 transformer/class-properties: Make `_super` function outside class strict mode (#7708) (overlookmotel) +- 72b5d58 transformer/class-properties: Create temp var for `this` in computed key (#7686) (overlookmotel) +- ad76d1d transformer/class-properties: Transform `delete` chain expression in static prop initializers (#7656) (overlookmotel) +- e48769a transformer/logic-assignment-operator: Always create `IdentifierReference`s with `ReferenceId` (#7745) (overlookmotel) + +### Performance + +- 6c82589 transformer/class-properties: Replace recursion with loop (#7652) (overlookmotel) +- 463fc5f transformer/logic-assignment-operator: Inline `enter_expression` visitor (#7744) (overlookmotel) + +### Documentation + +- 5806942 transformer/class-properties: Correct doc comment (#7741) (overlookmotel) +- 583b36b transformer/class-properties: Remove oudated todo (#7669) (Dunqing) + +### Refactor + +- 9c2a1b6 transformer: `duplicate_expression` do not produce temp var for `super` (#7757) (overlookmotel) +- a750ebc transformer: `duplicate_expression` take `mutated_symbol_needs_temp_var` param (#7756) (overlookmotel) +- b500f55 transformer: Introduce `TransformCtx::duplicate_expression` (#7754) (overlookmotel) +- 75ba4a9 transformer: Use `NONE` in AST builder calls (#7751) (overlookmotel) +- 1925ddc transformer: Rename `VarDeclarationsStore` methods (#7682) (overlookmotel) +- 0ca10e2 transformer: Use `ctx.var_declarations.create_var*` methods (#7666) (Dunqing) +- 016ae92 transformer/class-properties: Rename file (#7767) (overlookmotel) +- 9cacf64 transformer/class-properties: Transform the remaining PrivateFieldExpression in ChainExpression first (#7763) (Dunqing) +- 7e0f7eb transformer/class-properties: Prefer `contains` to `intersects` for bitflags (#7747) (overlookmotel) +- 7344d21 transformer/class-properties: TODO comments for future optimizations (#7711) (overlookmotel) +- dd55b84 transformer/class-properties: Shorten output when `_super` function (#7710) (overlookmotel) +- ac910ee transformer/class-properties: Move code out of `transform_assignment_target` (#7701) (overlookmotel) +- e67e981 transformer/class-properties: Shorten code (#7700) (overlookmotel) +- ab3e1c3 transformer/class-properties: Add TODO comments (#7702) (overlookmotel) +- 28ce187 transformer/class-properties: `duplicate_object_twice` method (#7685) (overlookmotel) +- 8883968 transformer/class-properties: Use `duplicate_object` in `transform_expression_to_wrap_nullish_check` (#7664) (Dunqing) +- 44fe854 transformer/class-properties: Move logic for handling `delete` of chain expression into `transform_unary_expression` (#7655) (overlookmotel) +- 3d593ec var-declarations: Remove unnecessary `init` parameter from `insert_var` (#7668) (Dunqing) + +### Styling + +- e5145b0 transformer/class-properties: Reformat doc comments (#7653) (overlookmotel) + ## [0.39.0] - 2024-12-04 - f2f31a8 traverse: [**BREAKING**] Remove unsound APIs (#7514) (overlookmotel) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index a83e3906fe558..682636f52f5b9 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.39.0" +version = "0.40.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 261080a66cf48..6c2e764a238e9 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.40.0] - 2024-12-10 + +- 5d6fa25 traverse: [**BREAKING**] Remove `TraverseCtx::is_static` (#7760) (overlookmotel) + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + +- ff73c7f traverse: Add `TraverseCtx::generate_uid_in_current_hoist_scope_based_on_node` (#7642) (Dunqing) + +### Refactor + + ## [0.39.0] - 2024-12-04 - f2f31a8 traverse: [**BREAKING**] Remove unsound APIs (#7514) (overlookmotel) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index a1dd33aceab50..d496fb6ecd62c 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index d7772718dff27..d237b877500ad 100644 --- a/napi/transform/CHANGELOG.md +++ b/napi/transform/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.40.0] - 2024-12-10 + +### Features + +- 2803aec napi/transform: Return helpers information (#7737) (Boshen) +- 85eec3c napi/transform,napi/parser: Return structured error object (#7724) (Boshen) +- c98457d napi/transformer: Add runtime helper mode (#7727) (Boshen) + +### Bug Fixes + +- 245d7d9 oxc_transformer: Alias `es2015` to `es6` (#7673) (Kevin Deng 三咲智子) + +### Testing + +- c254a5b napi/transform: Use the `expect` API instead of `assert` (#7739) (Boshen) + ## [0.39.0] - 2024-12-04 ### Features diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 49b7b33e5d057..136a45d47be07 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.39.0" +version = "0.40.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-parser/CHANGELOG.md b/npm/oxc-parser/CHANGELOG.md index 0ca27fb69c22e..465a5f18a54e0 100644 --- a/npm/oxc-parser/CHANGELOG.md +++ b/npm/oxc-parser/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.40.0] - 2024-12-10 + +### Features + +- 9157a0e napi/parser: Add `getUtf16ByteOffset` API; update README (#7772) (Boshen) + ## [0.39.0] - 2024-12-04 ### Refactor diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 44dfdcd941ab2..13d383522705a 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.39.0", + "version": "0.40.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 767741c1e47c7..48f180382513e 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.39.0", + "version": "0.40.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/CHANGELOG.md b/npm/oxc-types/CHANGELOG.md index a832720312621..3c0fd025b03ad 100644 --- a/npm/oxc-types/CHANGELOG.md +++ b/npm/oxc-types/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.40.0] - 2024-12-10 + +- 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) + +- ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) + +### Features + + +### Bug Fixes + +- 2179b93 estree: Make type of `BigIntLiteral::raw` prop in ESTree AST optional (#7663) (overlookmotel) +- cbba26c estree: `raw: null` in ESTree AST for generated `NullLiteral`s (#7662) (overlookmotel) +- 1d59fc8 estree: `raw: null` in ESTree AST for generated `BooleanLiteral`s (#7661) (overlookmotel) + +### Refactor + + ## [0.39.0] - 2024-12-04 - b0e1c03 ast: [**BREAKING**] Add `StringLiteral::raw` field (#7393) (Boshen) diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index 05fc7a85eafac..7792f0a79026a 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.39.0", + "version": "0.40.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 2f5607c6eb741..f2bc55441b159 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.39.0", + "version": "0.40.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",