From de107246c8fb72d7156a44f01cfb82bd5901d944 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sun, 10 Nov 2024 00:31:14 +0800 Subject: [PATCH] release(crates): v0.36.0 (#7227) ## [0.36.0] - 2024-11-09 - b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) - 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) - 846711c transformer: [**BREAKING**] Change API to take a `&TransformOptions` instead of `TransformOptions` (#7213) (Boshen) - 092de67 types: [**BREAKING**] Append `rest` field into `elements` for objects and arrays to align with estree (#7212) (ottomated) - d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) - 843bce4 ast: [**BREAKING**] `IdentifierReference::reference_id` return `ReferenceId` (#7126) (overlookmotel) ### Features - cc8a191 ast: Methods on AST nodes to get `scope_id` etc (#7127) (overlookmotel) - dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) - 9d6cc9d estree: ESTree compatibility for all literals (#7152) (ottomated) - b74686c isolated-declarations: Support transform TSExportAssignment declaration (#7204) (Dunqing) - ad3a2f5 tasks/compat_data: Generate our own compat table (#7176) (Boshen) - b4258ee transformer: Add defaulted `Module::Preserve` option (#7225) (Boshen) - 324c3fe transformer: Add `TransformOptions::module` option (#7188) (Boshen) - a166a4a transformer: Add esbuild comma separated target API `--target=es2020,chrome58` (#7210) (Boshen) - 3a20b90 transformer: Add es target to `engineTargets` (#7193) (Boshen) - 22898c8 transformer: Warn BigInt when targeting < ES2020 (#7184) (Boshen) - a579011 transformer: Add features `ES2018NamedCapturingGroupsRegex` and `ES2018LookbehindRegex` (#7182) (Boshen) - 8573f79 transformer: Turn on async_to_generator and async_generator_functions plugins in enable_all (#7135) (Dunqing) - df77241 transformer: Enable `ArrowFunctionConverter` in `async-to-generator` and `async-generator-functions` plugins (#7113) (Dunqing) - b6a5750 transformer/arrow-function-converter: Move scope to changed scope for `this_var` if scope have changed (#7125) (Dunqing) - 1910227 transformer/async-to-generator: Support inferring the function name from the ObjectPropertyValue's key (#7201) (Dunqing) - ffa8604 transformer/async-to-generator: Do not transform await expression if is not inside async function (#7138) (Dunqing) - e536d47 transformer/babel: Add support for trying to get the `Module` from `BabelPlugins` (#7218) (Dunqing) - 5cfdc05 transformer/typescript: Support transform `export =` and `import = require(...)` when module is commonjs (#7206) (Dunqing) ### Bug Fixes - c82b273 transformer/async-generator-functions: Only transform object method in exit_function (#7200) (Dunqing) - b2a888d transformer/async-generator-functions: Incorrect transformation for `for await` if it's not placed in a block (#7148) (Dunqing) - 19892ed transformer/async-generator-functions: Transform incorrectly for `for await` if it's in LabeledStatement (#7147) (Dunqing) - ede10dc transformer/async-to-generator: Incorrect transform when super expression is inside async method (#7171) (Dunqing) - 293d072 transformer/async-to-generator: Only transform object method in exit_function (#7199) (Dunqing) - ae692d7 transformer/async_to_generator: Fix checking if function is class method (#7117) (overlookmotel) - eea4ab8 transformer/helper-loader: Incorrect `SymbolFlags` for default import when `SourceType` is script (#7226) (Dunqing) ### Refactor - d27e14f ast: `AstKind::as_*` methods take `self` (#5546) (overlookmotel) - fac5042 ast: Use `scope_id` etc methods (#7130) (overlookmotel) - a297765 minifier: Use `map` and `and_then` instead of let else (#7178) (7086cmd) - fc86703 napi/transform: Change test files to TypeScript (#7221) (Boshen) - c5485ae semantic: Add `ancestor_kinds` iterator function (#7217) (camchenry) - abf1602 semantic: Rename `iter_parents` to `ancestors` (#7216) (camchenry) - 42171eb semantic: Rename `ancestors` to `ancestor_ids` (#7215) (camchenry) - de56083 transformer: Add `impl TryFrom for EnvOptions` (#7191) (Boshen) - 0a43c64 transformer: Move `ESTarget` to its own file (#7189) (Boshen) - 0e1f12c transformer: Remove unimplemented `EnvOptions::bugfixes` (#7162) (Boshen) - a981caf transformer: Add `Engine` enum for `EngineTargets` (#7161) (Boshen) - 8340243 transformer: Rename `Query` to `BrowserslistQuery` (#7143) (Boshen) - 481f7e6 transformer: Change `Targets` to `EngineTargets` (#7142) (Boshen) - 55e6989 transformer: Deserialize engine target strings to specific keys (#7139) (Boshen) - fdfd9a4 transformer: Use `scope_id` etc methods (#7128) (overlookmotel) - ff8bd50 transformer: Move implementation of ArrowFunction to common/ArrowFunctionConverter (#7107) (Dunqing) - 4a515be transformer/arrow-function-coverter: Rename function name and add some comments to explain confusing parts. (#7203) (Dunqing) - c307e1b transformer/arrow-functions: Pass `ArenaBox` as function param (#7169) (overlookmotel) - 217d433 transformer/arrow-functions: Remove unused `&mut self` function param (#7165) (overlookmotel) - 426df71 transformer/arrow-functions: Use `scope_id` method (#7164) (overlookmotel) - 11c5e12 transformer/arrow-functions: Correct comments (#7163) (overlookmotel) - 1238506 transformer/async-generator-function: Remove inactive `#[allow(clippy::unused_self)]` attrs (#7167) (overlookmotel) - 84ee581 transformer/async-generator-functions: Simplify identifying whether within an async generator function (#7170) (overlookmotel) - 1b12328 transformer/async-generator-functions: Use `clone` not `clone_in` on `LabelIdentifier` (#7172) (overlookmotel) - cd1006f transformer/async-generator-functions: Do not transform yield expression where inside generator function (#7134) (Dunqing) - 2c5734d transformer/async-generator-functions: Do not transform await expression where inside ArrowFunctionExpression (#7132) (Dunqing) - 5ce83bd transformer/async-generator-functions: Remove dead code for handle await expression (#7131) (Dunqing) - e04ee97 transformer/async-generator-functions: Move handling of `MethodDefinition`'s value to `exit_function` (#7106) (Dunqing) - b57d5a5 transformer/async-to-generator: Remove unused `&self` function param (#7166) (overlookmotel) - f80085c transformer/async-to-generator: Move handling of `MethodDefinition`'s value to `exit_function` (#7105) (Dunqing) - e2241e6 transformer/jsx-self: Remove unused `&self` function params (#7159) (overlookmotel) - 1dfd241 transformer/optional-catch-binding: Remove inactive `#[allow(clippy::unused_self)]` attr (#7158) (overlookmotel) - fd9b44c transformer/typescript: Remove inactive `#[allow(clippy::unused_self)]` attr (#7160) (overlookmotel) - cacfb9b traverse: Use `symbol_id` etc methods (#7129) (overlookmotel) ### Styling - 38a6df6 transformer/arrow-functions: Semicolon after return statements (#7168) (overlookmotel) - 64b7e3a transformer/async-generator-functions: Import `oxc_allocator::Vec` as `ArenaVec` (#7173) (overlookmotel) ### Testing - be819dd napi/transform: Add test for not default es transform (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> --- Cargo.lock | 48 ++++++------ Cargo.toml | 48 ++++++------ crates/oxc/CHANGELOG.md | 7 ++ crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 26 +++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 9 +++ crates/oxc_codegen/Cargo.toml | 2 +- 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/CHANGELOG.md | 11 +++ crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_index/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 10 +++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 6 ++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_module_lexer/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 15 ++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/CHANGELOG.md | 6 ++ 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 | 6 ++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 6 ++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 73 +++++++++++++++++++ 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/package.json | 4 +- npm/oxc-transform/package.json | 4 +- npm/oxc-types/CHANGELOG.md | 19 +++++ npm/oxc-types/package.json | 4 +- wasm/parser/package.json | 2 +- 46 files changed, 329 insertions(+), 79 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 469b2bf1b..275516714 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1390,7 +1390,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.35.0" +version = "0.36.0" dependencies = [ "napi", "napi-derive", @@ -1457,7 +1457,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.35.0" +version = "0.36.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1467,7 +1467,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.35.0" +version = "0.36.0" dependencies = [ "bitflags 2.6.0", "cow-utils", @@ -1485,7 +1485,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.35.0" +version = "0.36.0" dependencies = [ "proc-macro2", "quote", @@ -1534,7 +1534,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.35.0" +version = "0.36.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1547,7 +1547,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.35.0" +version = "0.36.0" dependencies = [ "assert-unchecked", "base64", @@ -1608,14 +1608,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.35.0" +version = "0.36.0" dependencies = [ "assert-unchecked", ] [[package]] name = "oxc_diagnostics" -version = "0.35.0" +version = "0.36.0" dependencies = [ "oxc-miette", "rustc-hash", @@ -1623,7 +1623,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.35.0" +version = "0.36.0" dependencies = [ "num-bigint", "num-traits", @@ -1636,14 +1636,14 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.35.0" +version = "0.36.0" dependencies = [ "serde", ] [[package]] name = "oxc_index" -version = "0.35.0" +version = "0.36.0" dependencies = [ "rayon", "serde", @@ -1651,7 +1651,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.35.0" +version = "0.36.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1750,7 +1750,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.35.0" +version = "0.36.0" dependencies = [ "itertools", "oxc_ast", @@ -1761,7 +1761,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.35.0" +version = "0.36.0" dependencies = [ "cow-utils", "insta", @@ -1809,7 +1809,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.35.0" +version = "0.36.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1820,7 +1820,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.35.0" +version = "0.36.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1895,7 +1895,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.35.0" +version = "0.36.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1930,7 +1930,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.35.0" +version = "0.36.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1955,7 +1955,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.35.0" +version = "0.36.0" dependencies = [ "base64-simd", "cfg-if", @@ -1968,7 +1968,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.35.0" +version = "0.36.0" dependencies = [ "compact_str", "oxc-miette", @@ -1981,7 +1981,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.35.0" +version = "0.36.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2040,7 +2040,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.35.0" +version = "0.36.0" dependencies = [ "napi", "napi-build", @@ -2050,7 +2050,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.35.0" +version = "0.36.0" dependencies = [ "base64", "cow-utils", @@ -2081,7 +2081,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.35.0" +version = "0.36.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index 2f072935d..c273851d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,30 +78,30 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.35.0", path = "crates/oxc" } -oxc_allocator = { version = "0.35.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.35.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.35.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.35.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.35.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.35.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.35.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.35.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.35.0", path = "crates/oxc_estree" } -oxc_index = { version = "0.35.0", path = "crates/oxc_index" } -oxc_isolated_declarations = { version = "0.35.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.35.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.35.0", path = "crates/oxc_minifier" } -oxc_module_lexer = { version = "0.35.0", path = "crates/oxc_module_lexer" } -oxc_parser = { version = "0.35.0", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.35.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.35.0", path = "crates/oxc_semantic" } -oxc_sourcemap = { version = "0.35.0", path = "crates/oxc_sourcemap" } -oxc_span = { version = "0.35.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.35.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.35.0", path = "napi/transform" } -oxc_transformer = { version = "0.35.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.35.0", path = "crates/oxc_traverse" } +oxc = { version = "0.36.0", path = "crates/oxc" } +oxc_allocator = { version = "0.36.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.36.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.36.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.36.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.36.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.36.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.36.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.36.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.36.0", path = "crates/oxc_estree" } +oxc_index = { version = "0.36.0", path = "crates/oxc_index" } +oxc_isolated_declarations = { version = "0.36.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.36.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.36.0", path = "crates/oxc_minifier" } +oxc_module_lexer = { version = "0.36.0", path = "crates/oxc_module_lexer" } +oxc_parser = { version = "0.36.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.36.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.36.0", path = "crates/oxc_semantic" } +oxc_sourcemap = { version = "0.36.0", path = "crates/oxc_sourcemap" } +oxc_span = { version = "0.36.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.36.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.36.0", path = "napi/transform" } +oxc_transformer = { version = "0.36.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.36.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 341ec747e..0218a2a56 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.36.0] - 2024-11-09 + +- 846711c transformer: [**BREAKING**] Change API to take a `&TransformOptions` instead of `TransformOptions` (#7213) (Boshen) + +### Features + + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 78b786287..d17ce2122 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.35.0" +version = "0.36.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 1cb198ff0..e8848f577 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.35.0" +version = "0.36.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 6140b0662..f86f7ba47 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,32 @@ 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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- 092de67 types: [**BREAKING**] Append `rest` field into `elements` for objects and arrays to align with estree (#7212) (ottomated) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +- 843bce4 ast: [**BREAKING**] `IdentifierReference::reference_id` return `ReferenceId` (#7126) (overlookmotel) + +### Features + +- cc8a191 ast: Methods on AST nodes to get `scope_id` etc (#7127) (overlookmotel) +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) +- 9d6cc9d estree: ESTree compatibility for all literals (#7152) (ottomated) + +### Bug Fixes + + +### Refactor + +- d27e14f ast: `AstKind::as_*` methods take `self` (#5546) (overlookmotel) +- fac5042 ast: Use `scope_id` etc methods (#7130) (overlookmotel) + ## [0.35.0] - 2024-11-04 - f543a8d ast: [**BREAKING**] Remove `AstBuilder::*_from_*` methods (#7073) (overlookmotel) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 15fd4f25c..f2b1a8830 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.35.0" +version = "0.36.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 666e60cfe..be43f079a 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.35.0" +version = "0.36.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 75b2e1627..174a12d35 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.35.0" +version = "0.36.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 2e683420c..5ffa81a25 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,15 @@ 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.36.0] - 2024-11-09 + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +### Features + + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 7be6d7fb4..d9f721e22 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.35.0" +version = "0.36.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 8654a091a..a47119f8c 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.35.0" +version = "0.36.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 0db2b0b14..e924881de 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.36.0] - 2024-11-09 + +### Features + +- 22898c8 transformer: Warn BigInt when targeting < ES2020 (#7184) (Boshen) + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index f6937dd81..b9271a535 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.35.0" +version = "0.36.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 164e62261..d9ec84cfb 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.35.0" +version = "0.36.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 b039cb23d..bef86b5d2 100644 --- a/crates/oxc_estree/CHANGELOG.md +++ b/crates/oxc_estree/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.36.0] - 2024-11-09 + +- 092de67 types: [**BREAKING**] Append `rest` field into `elements` for objects and arrays to align with estree (#7212) (ottomated) + +### Features + +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) + +### Bug Fixes + + ## [0.32.0] - 2024-10-19 ### Features diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index cdbbe45e2..23327e814 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.35.0" +version = "0.36.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 16a13b174..3cc359a0c 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.35.0" +version = "0.36.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 13b9889cb..5b3d7bcf8 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/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.36.0] - 2024-11-09 + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +### Features + +- b74686c isolated-declarations: Support transform TSExportAssignment declaration (#7204) (Dunqing) + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index af6d298a0..84e38f2cb 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.35.0" +version = "0.36.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 de1afea28..813488cba 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.35.0" +version = "0.36.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 e812e1b4a..74a376231 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/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.36.0] - 2024-11-09 + +### Refactor + +- a297765 minifier: Use `map` and `and_then` instead of let else (#7178) (7086cmd) + ## [0.35.0] - 2024-11-04 ### Refactor diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 710b2662c..73a09d0ac 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.35.0" +version = "0.36.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 c7a6e415e..fb779f531 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.35.0" +version = "0.36.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 e504fbdfb..2fc30ee85 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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +### Features + +- 9d6cc9d estree: ESTree compatibility for all literals (#7152) (ottomated) + +### Refactor + + ## [0.35.0] - 2024-11-04 ### Bug Fixes diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index e1742adb6..43a56e39b 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.35.0" +version = "0.36.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 61c020c24..5502cca23 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/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.36.0] - 2024-11-09 + +### Features + +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index a4459275b..bf478525f 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.35.0" +version = "0.36.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 e94fa5be5..1be4ead81 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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +- 843bce4 ast: [**BREAKING**] `IdentifierReference::reference_id` return `ReferenceId` (#7126) (overlookmotel) + +### Features + + +### Refactor + +- c5485ae semantic: Add `ancestor_kinds` iterator function (#7217) (camchenry) +- abf1602 semantic: Rename `iter_parents` to `ancestors` (#7216) (camchenry) +- 42171eb semantic: Rename `ancestors` to `ancestor_ids` (#7215) (camchenry) + ## [0.35.0] - 2024-11-04 - 9a6a2f9 semantic: [**BREAKING**] Remove `SymbolTable::get_symbol_id_from_span` API (#6955) (Boshen) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index c8a1a0bde..0e0590e95 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.35.0" +version = "0.36.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 283657f19..f5ef769f2 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.35.0" +version = "0.36.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 2d9432496..f46055c0c 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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.36.0] - 2024-11-09 + +### Features + +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 88b762b79..ac420b9fd 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.35.0" +version = "0.36.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 9680b0e14..5529c6f6c 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.36.0] - 2024-11-09 + +### Features + +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) + ## [0.35.0] - 2024-11-04 ### Features diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 612a7d8be..c1c1125c0 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.35.0" +version = "0.36.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 370fe2c1b..f30f581be 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,79 @@ 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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- 846711c transformer: [**BREAKING**] Change API to take a `&TransformOptions` instead of `TransformOptions` (#7213) (Boshen) + +- d1d1874 ast: [**BREAKING**] Change `comment.span` to real position that contain `//` and `/*` (#7154) (Boshen) + +- 843bce4 ast: [**BREAKING**] `IdentifierReference::reference_id` return `ReferenceId` (#7126) (overlookmotel) + +### Features + +- ad3a2f5 tasks/compat_data: Generate our own compat table (#7176) (Boshen) +- b4258ee transformer: Add defaulted `Module::Preserve` option (#7225) (Boshen) +- 324c3fe transformer: Add `TransformOptions::module` option (#7188) (Boshen) +- a166a4a transformer: Add esbuild comma separated target API `--target=es2020,chrome58` (#7210) (Boshen) +- 3a20b90 transformer: Add es target to `engineTargets` (#7193) (Boshen) +- 22898c8 transformer: Warn BigInt when targeting < ES2020 (#7184) (Boshen) +- a579011 transformer: Add features `ES2018NamedCapturingGroupsRegex` and `ES2018LookbehindRegex` (#7182) (Boshen) +- 8573f79 transformer: Turn on async_to_generator and async_generator_functions plugins in enable_all (#7135) (Dunqing) +- df77241 transformer: Enable `ArrowFunctionConverter` in `async-to-generator` and `async-generator-functions` plugins (#7113) (Dunqing) +- b6a5750 transformer/arrow-function-converter: Move scope to changed scope for `this_var` if scope have changed (#7125) (Dunqing) +- 1910227 transformer/async-to-generator: Support inferring the function name from the ObjectPropertyValue's key (#7201) (Dunqing) +- ffa8604 transformer/async-to-generator: Do not transform await expression if is not inside async function (#7138) (Dunqing) +- e536d47 transformer/babel: Add support for trying to get the `Module` from `BabelPlugins` (#7218) (Dunqing) +- 5cfdc05 transformer/typescript: Support transform `export =` and `import = require(...)` when module is commonjs (#7206) (Dunqing) + +### Bug Fixes + +- c82b273 transformer/async-generator-functions: Only transform object method in exit_function (#7200) (Dunqing) +- b2a888d transformer/async-generator-functions: Incorrect transformation for `for await` if it's not placed in a block (#7148) (Dunqing) +- 19892ed transformer/async-generator-functions: Transform incorrectly for `for await` if it's in LabeledStatement (#7147) (Dunqing) +- ede10dc transformer/async-to-generator: Incorrect transform when super expression is inside async method (#7171) (Dunqing) +- 293d072 transformer/async-to-generator: Only transform object method in exit_function (#7199) (Dunqing) +- ae692d7 transformer/async_to_generator: Fix checking if function is class method (#7117) (overlookmotel) +- eea4ab8 transformer/helper-loader: Incorrect `SymbolFlags` for default import when `SourceType` is script (#7226) (Dunqing) + +### Refactor + +- de56083 transformer: Add `impl TryFrom for EnvOptions` (#7191) (Boshen) +- 0a43c64 transformer: Move `ESTarget` to its own file (#7189) (Boshen) +- 0e1f12c transformer: Remove unimplemented `EnvOptions::bugfixes` (#7162) (Boshen) +- a981caf transformer: Add `Engine` enum for `EngineTargets` (#7161) (Boshen) +- 8340243 transformer: Rename `Query` to `BrowserslistQuery` (#7143) (Boshen) +- 481f7e6 transformer: Change `Targets` to `EngineTargets` (#7142) (Boshen) +- 55e6989 transformer: Deserialize engine target strings to specific keys (#7139) (Boshen) +- fdfd9a4 transformer: Use `scope_id` etc methods (#7128) (overlookmotel) +- ff8bd50 transformer: Move implementation of ArrowFunction to common/ArrowFunctionConverter (#7107) (Dunqing) +- 4a515be transformer/arrow-function-coverter: Rename function name and add some comments to explain confusing parts. (#7203) (Dunqing) +- c307e1b transformer/arrow-functions: Pass `ArenaBox` as function param (#7169) (overlookmotel) +- 217d433 transformer/arrow-functions: Remove unused `&mut self` function param (#7165) (overlookmotel) +- 426df71 transformer/arrow-functions: Use `scope_id` method (#7164) (overlookmotel) +- 11c5e12 transformer/arrow-functions: Correct comments (#7163) (overlookmotel) +- 1238506 transformer/async-generator-function: Remove inactive `#[allow(clippy::unused_self)]` attrs (#7167) (overlookmotel) +- 84ee581 transformer/async-generator-functions: Simplify identifying whether within an async generator function (#7170) (overlookmotel) +- 1b12328 transformer/async-generator-functions: Use `clone` not `clone_in` on `LabelIdentifier` (#7172) (overlookmotel) +- cd1006f transformer/async-generator-functions: Do not transform yield expression where inside generator function (#7134) (Dunqing) +- 2c5734d transformer/async-generator-functions: Do not transform await expression where inside ArrowFunctionExpression (#7132) (Dunqing) +- 5ce83bd transformer/async-generator-functions: Remove dead code for handle await expression (#7131) (Dunqing) +- e04ee97 transformer/async-generator-functions: Move handling of `MethodDefinition`'s value to `exit_function` (#7106) (Dunqing) +- b57d5a5 transformer/async-to-generator: Remove unused `&self` function param (#7166) (overlookmotel) +- f80085c transformer/async-to-generator: Move handling of `MethodDefinition`'s value to `exit_function` (#7105) (Dunqing) +- e2241e6 transformer/jsx-self: Remove unused `&self` function params (#7159) (overlookmotel) +- 1dfd241 transformer/optional-catch-binding: Remove inactive `#[allow(clippy::unused_self)]` attr (#7158) (overlookmotel) +- fd9b44c transformer/typescript: Remove inactive `#[allow(clippy::unused_self)]` attr (#7160) (overlookmotel) + +### Styling + +- 38a6df6 transformer/arrow-functions: Semicolon after return statements (#7168) (overlookmotel) +- 64b7e3a transformer/async-generator-functions: Import `oxc_allocator::Vec` as `ArenaVec` (#7173) (overlookmotel) + ## [0.35.0] - 2024-11-04 - b8daab3 transformer: [**BREAKING**] API to `TryFrom<&EnvOptions> for TransformOptions` and `TryFrom<&BabelOptions> TransformOptions` (#7020) (Boshen) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index b15bcb233..ce23b97be 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.35.0" +version = "0.36.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 813c6fa46..4802d31e3 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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- 843bce4 ast: [**BREAKING**] `IdentifierReference::reference_id` return `ReferenceId` (#7126) (overlookmotel) + +### Features + + +### Refactor + +- cacfb9b traverse: Use `symbol_id` etc methods (#7129) (overlookmotel) + ## [0.35.0] - 2024-11-04 ### Bug Fixes diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 0421f491b..60758a019 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.35.0" +version = "0.36.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index cbc48d611..9a296ccde 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.36.0] - 2024-11-09 + +- 846711c transformer: [**BREAKING**] Change API to take a `&TransformOptions` instead of `TransformOptions` (#7213) (Boshen) + +### Features + +- b4258ee transformer: Add defaulted `Module::Preserve` option (#7225) (Boshen) + +### Refactor + +- fc86703 napi/transform: Change test files to TypeScript (#7221) (Boshen) + +### Testing + +- be819dd napi/transform: Add test for not default es transform (Boshen) + ## [0.35.0] - 2024-11-04 ### Bug Fixes diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 4e67908b8..58ed53e7b 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.35.0" +version = "0.36.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 3853704f8..fd5ad2c14 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.35.0", + "version": "0.36.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" @@ -26,4 +26,4 @@ "dependencies": { "@oxc-project/types": "workspace:^" } -} \ No newline at end of file +} diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 691d7a90b..b6e3faada 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.35.0", + "version": "0.36.0", "description": "Oxc transform Node API", "keywords": [ "transform" @@ -22,4 +22,4 @@ "index.d.ts", "index.js" ] -} \ No newline at end of file +} diff --git a/npm/oxc-types/CHANGELOG.md b/npm/oxc-types/CHANGELOG.md index 06f41d4ae..613ca84f0 100644 --- a/npm/oxc-types/CHANGELOG.md +++ b/npm/oxc-types/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.36.0] - 2024-11-09 + +- b11ed2c ast: [**BREAKING**] Remove useless `ObjectProperty::init` field (#7220) (Boshen) + +- 0e4adc1 ast: [**BREAKING**] Remove invalid expressions from `TSEnumMemberName` (#7219) (Boshen) + +- 092de67 types: [**BREAKING**] Append `rest` field into `elements` for objects and arrays to align with estree (#7212) (ottomated) + +### Features + +- dc0215c ast_tools: Add #[estree(append_to)], remove some custom serialization code (#7149) (ottomated) +- 9d6cc9d estree: ESTree compatibility for all literals (#7152) (ottomated) + +### Bug Fixes + + +### Refactor + + ## [0.35.0] - 2024-11-04 ### Features diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index 4bdc1a760..45c5cefd1 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.35.0", + "version": "0.36.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", @@ -22,4 +22,4 @@ "files": [ "types.d.ts" ] -} \ No newline at end of file +} diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 96eee500b..c26d647f7 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.35.0", + "version": "0.36.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",