diff --git a/Cargo.lock b/Cargo.lock index aa27cae1a51a7..55bf2559b0f60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1398,7 +1398,7 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.30.5" +version = "0.31.0" dependencies = [ "napi", "napi-derive", @@ -1440,7 +1440,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.30.5" +version = "0.31.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1450,7 +1450,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.30.5" +version = "0.31.0" dependencies = [ "bitflags 2.6.0", "num-bigint", @@ -1467,7 +1467,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.30.5" +version = "0.31.0" dependencies = [ "proc-macro2", "quote", @@ -1515,7 +1515,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.30.5" +version = "0.31.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1528,7 +1528,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.30.5" +version = "0.31.0" dependencies = [ "base64", "bitflags 2.6.0", @@ -1577,14 +1577,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.30.5" +version = "0.31.0" dependencies = [ "assert-unchecked", ] [[package]] name = "oxc_diagnostics" -version = "0.30.5" +version = "0.31.0" dependencies = [ "miette", "owo-colors", @@ -1595,7 +1595,7 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.30.5" +version = "0.31.0" dependencies = [ "rayon", "serde", @@ -1603,7 +1603,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.30.5" +version = "0.31.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1700,7 +1700,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.30.5" +version = "0.31.0" dependencies = [ "itertools", "oxc_ast", @@ -1711,7 +1711,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.30.5" +version = "0.31.0" dependencies = [ "cow-utils", "insta", @@ -1761,7 +1761,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.30.5" +version = "0.31.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1772,7 +1772,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.30.5" +version = "0.31.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1848,7 +1848,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.30.5" +version = "0.31.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1882,7 +1882,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.30.5" +version = "0.31.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1907,7 +1907,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.30.5" +version = "0.31.0" dependencies = [ "base64-simd", "cfg-if", @@ -1920,7 +1920,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.30.5" +version = "0.31.0" dependencies = [ "compact_str", "miette", @@ -1934,7 +1934,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.30.5" +version = "0.31.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1955,7 +1955,7 @@ dependencies = [ [[package]] name = "oxc_syntax_operations" -version = "0.30.5" +version = "0.31.0" dependencies = [ "oxc_ast", "oxc_span", @@ -2001,7 +2001,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.30.5" +version = "0.31.0" dependencies = [ "napi", "napi-build", @@ -2011,7 +2011,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.30.5" +version = "0.31.0" dependencies = [ "base64", "cow-utils", @@ -2040,7 +2040,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.30.5" +version = "0.31.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index 85226f7621da3..ef2bd3aecdd31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,29 +76,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.30.5", path = "crates/oxc" } -oxc_allocator = { version = "0.30.5", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.30.5", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.30.5", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.30.5", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.30.5", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.30.5", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.30.5", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.30.5", path = "crates/oxc_index" } -oxc_isolated_declarations = { version = "0.30.5", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.30.5", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.30.5", path = "crates/oxc_minifier" } -oxc_module_lexer = { version = "0.30.5", path = "crates/oxc_module_lexer" } -oxc_parser = { version = "0.30.5", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.30.5", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.30.5", path = "crates/oxc_semantic" } -oxc_sourcemap = { version = "0.30.5", path = "crates/oxc_sourcemap" } -oxc_span = { version = "0.30.5", path = "crates/oxc_span" } -oxc_syntax = { version = "0.30.5", path = "crates/oxc_syntax" } -oxc_syntax_operations = { version = "0.30.5", path = "crates/oxc_syntax_operations" } -oxc_transform_napi = { version = "0.30.5", path = "napi/transform" } -oxc_transformer = { version = "0.30.5", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.30.5", path = "crates/oxc_traverse" } +oxc = { version = "0.31.0", path = "crates/oxc" } +oxc_allocator = { version = "0.31.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.31.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.31.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.31.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.31.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.31.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.31.0", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.31.0", path = "crates/oxc_index" } +oxc_isolated_declarations = { version = "0.31.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.31.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.31.0", path = "crates/oxc_minifier" } +oxc_module_lexer = { version = "0.31.0", path = "crates/oxc_module_lexer" } +oxc_parser = { version = "0.31.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.31.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.31.0", path = "crates/oxc_semantic" } +oxc_sourcemap = { version = "0.31.0", path = "crates/oxc_sourcemap" } +oxc_span = { version = "0.31.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.31.0", path = "crates/oxc_syntax" } +oxc_syntax_operations = { version = "0.31.0", path = "crates/oxc_syntax_operations" } +oxc_transform_napi = { version = "0.31.0", path = "napi/transform" } +oxc_transformer = { version = "0.31.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.31.0", path = "crates/oxc_traverse" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/CHANGELOG.md b/crates/oxc/CHANGELOG.md index 346b58f1090c4..814969382827a 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/CHANGELOG.md @@ -4,6 +4,23 @@ 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.31.0] - 2024-10-08 + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +- 4f6bc79 transformer: [**BREAKING**] Remove `source_type` param from `Transformer::new` (#6251) (overlookmotel) + +### Features + +- abd3a9f napi/transform: Perform dce after define plugin (#6312) (Boshen) +- a0ccc26 napi/transform: Add `lang` option to change source type (#6309) (Boshen) +- 2f888ed oxc: Add napi transform options (#6268) (Boshen) +- 8729755 oxc,napi/transform: Napi/transform use oxc compiler pipeline (#6298) (Boshen) + +### Refactor + +- aa0dbb6 oxc: Add `napi` feature, change napi parser to use `oxc` crate (#6265) (Boshen) + ## [0.30.2] - 2024-09-27 ### Documentation diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index f46db9ef6dc58..7cc5ec89a4c3e 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.30.5" +version = "0.31.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 b543884940664..01d92b48beaf4 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/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.31.0] - 2024-10-08 + +### Performance + +- 5db9b30 allocator: Use lower bound of size hint when creating Vecs from an iterator (#6194) (DonIsaac) + +### Refactor + +- f7d1136 allocator: Remove unnecessary `Vec` impl (#6213) (overlookmotel) + ## [0.30.2] - 2024-09-27 ### Documentation diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index eda122be44c16..cf8d1284a5df9 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.30.5" +version = "0.31.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 914ff6d5c4bbc..9213b60388a6f 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/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.31.0] - 2024-10-08 + +- 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) + +- 5a73a66 regular_expression: [**BREAKING**] Simplify public APIs (#6262) (leaysgur) + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Refactor + +- acab777 regular_expression: Misc fixes (#6234) (leaysgur) + ## [0.30.2] - 2024-09-27 ### Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index fe23fc31361bd..8680c7e2a1325 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.30.5" +version = "0.31.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 88c7100689a75..27cda301d9522 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.30.5" +version = "0.31.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 124967785e7dd..6744c8367b678 100644 --- a/crates/oxc_cfg/CHANGELOG.md +++ b/crates/oxc_cfg/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.31.0] - 2024-10-08 + +- 95ca01c cfg: [**BREAKING**] Make BasicBlock::unreachable private (#6321) (DonIsaac) + +### Features + +- fa4d505 cfg: Derive more base traits for CFG blocks (#6320) (DonIsaac) +- 14275b1 cfg: Color-code edges in CFG dot diagrams (#6314) (DonIsaac) + +### Refactor + +- 40932f7 cfg: Use IndexVec for storing basic blocks (#6323) (DonIsaac) +- a1e0d30 cfg: Add type alias for Graph (#6322) (DonIsaac) +- 7672793 cfg: Move block data types to separate file (#6319) (DonIsaac) + ## [0.29.0] - 2024-09-13 ### Refactor diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 714553027ca79..e4c072975bd9a 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.30.5" +version = "0.31.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 8d4047c252e4b..217d4f57d7e28 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/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.31.0] - 2024-10-08 + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +### Bug Fixes + +- 84b2d07 codegen: Converts line comment to block comment if it is a `PURE` comment (#6356) (Dunqing) + +### Refactor + + ## [0.30.5] - 2024-09-29 ### Refactor diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index b92cfc0c0d4f3..ac3c18def0e07 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.30.5" +version = "0.31.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 new file mode 100644 index 0000000000000..0ceb2dd4bb11f --- /dev/null +++ b/crates/oxc_data_structures/CHANGELOG.md @@ -0,0 +1,20 @@ +# 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.31.0] - 2024-10-08 + +### Features + +- 7566c2d data_structures: Add `as_slice` + `as_mut_slice` methods to stacks (#6216) (overlookmotel) +- c3c3447 data_structures: Add `oxc_data_structures` crate; add stack (#6206) (Boshen) + +### Refactor + +- cc57541 data_structures: `NonEmptyStack::len` hint that `len` is never 0 (#6220) (overlookmotel) +- 147a5d5 data_structures: Remove `is_empty` methods for non-empty stacks (#6219) (overlookmotel) +- 61805fd data_structures: Add debug assertion to `SparseStack` (#6218) (overlookmotel) +- dbfa0bc data_structures: Add `len` method to `StackCommon` trait (#6215) (overlookmotel) + diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index dd9db0f194c75..9f387c7889bce 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.30.5" +version = "0.31.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 86c8663248f94..f5bf592cad930 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.30.5" +version = "0.31.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 72d3c289cbde9..3556f0cd46981 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.30.5" +version = "0.31.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 c17a20e05538d..cb211ffe75ab6 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/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.31.0] - 2024-10-08 + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Bug Fixes + +- e9eeae0 isolated-declarations: False positive for function with a type asserted parameters (#6181) (Dunqing) + +### Refactor + + ## [0.30.3] - 2024-09-27 ### Bug Fixes diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 62ec31d30bcfd..3d61e86395c8c 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.30.5" +version = "0.31.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 754308c55f351..26d0e07f5f28c 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.30.5" +version = "0.31.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 796b5916a5d8e..206d30dcf408b 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,43 @@ 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.31.0] - 2024-10-08 + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +- 82ab689 transformer,minifier: [**BREAKING**] Move define and inject plugin from minifier to transformer (#6199) (Boshen) + +### Features + +- e304e8c minifier: Minify exponential arithmetic operation. (#6281) (7086cmd) +- f9ae70c minifier: Minify basic arithmetic calculations. (#6280) (7086cmd) +- 4008afe minifier: Fold array and object constructors (#6257) (camchenry) +- 115ccc9 minifier: Bitwise not in exceeded value. (#6235) (7086cmd) +- ee6c850 minifier: Scaffold peephole replace known methods. (#6245) (7086cmd) +- c32af57 minifier: Fold demical bitwise not for bigint. (#6233) (7086cmd) +- 23b6464 minifier: Fold true / false comparison. (#6225) (7086cmd) +- 585ccda minifier: Support subtraction assignment. (#6214) (7086cmd) +- cca0034 minifier: Handle positive `NaN` and `Infinity`. (#6207) (7086cmd) +- dac8f09 minifier: Minify unary plus negation. (#6203) (7086cmd) +- 3b79e1b minifier: Evaluate bigint in fold constant (#6178) (Boshen) +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Bug Fixes + +- d953a6b minifier: Correct the reference link (#6283) (dalaoshu) +- 37cbabb minifier: Should not handle the strict operation for bool comparison. (#6261) (7086cmd) +- e29c067 minifier: Handle exceeded shifts. (#6237) (7086cmd) + +### Refactor + +- ac5a23f minifier: Use ctx.ast.vec instead of Vec::new. (#6331) (7086cmd) +- 1cee207 minifier: Some boilerplate work for PeepholeFoldConstants (#6054) (Boshen) + +### Testing + +- 964d71e minifier: Add arithmetic tests for fold constants. (#6269) (7086cmd) +- fcb4651 minifier: Enable null comparison with bigint. (#6252) (7086cmd) + ## [0.30.2] - 2024-09-27 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 5bc22a0cbab2b..35b0ed7322ccd 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.30.5" +version = "0.31.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_module_lexer/CHANGELOG.md b/crates/oxc_module_lexer/CHANGELOG.md index 311b35a06108c..fa97099259504 100644 --- a/crates/oxc_module_lexer/CHANGELOG.md +++ b/crates/oxc_module_lexer/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.31.0] - 2024-10-08 + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + ## [0.28.0] - 2024-09-11 - 4a8aec1 span: [**BREAKING**] Change `SourceType::js` to `SourceType::cjs` and `SourceType::mjs` (#5606) (Boshen) diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 44566b81cefaf..7ba24a3c88740 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.30.5" +version = "0.31.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 6019d8a7d929f..3890eaed9f8c3 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/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.31.0] - 2024-10-08 + +- 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) + +- 5a73a66 regular_expression: [**BREAKING**] Simplify public APIs (#6262) (leaysgur) + +- 32d972e parser: [**BREAKING**] Treat unambiguous files containing TS export assignments as modules (#6253) (overlookmotel) + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Bug Fixes + +- 6159560 parser: String `ImportSpecifier`s for type imports (#6352) (DonIsaac) +- 1380d8b parser: Should regard comments where after `=` as leading comments of next token (#6355) (Dunqing) + +### Refactor + +- 3b53dd4 parser: Provide better error messages for `const` modifiers on class elements (#6353) (DonIsaac) + ## [0.30.4] - 2024-09-28 ### Bug Fixes diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index ecfb16be80acb..dfeaef535c168 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.30.5" +version = "0.31.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 fd4a4bad524fc..2bd9898a4fe5d 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.31.0] - 2024-10-08 + +- 5a73a66 regular_expression: [**BREAKING**] Simplify public APIs (#6262) (leaysgur) + +### Refactor + +- acab777 regular_expression: Misc fixes (#6234) (leaysgur) + ## [0.30.2] - 2024-09-27 ### Features diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index d53bfe617c957..1917f3c2d7b16 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.30.5" +version = "0.31.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 2134ab9fbfa43..c9fa7ff1ddf39 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/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.31.0] - 2024-10-08 + +- 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) + +- 95ca01c cfg: [**BREAKING**] Make BasicBlock::unreachable private (#6321) (DonIsaac) + +### Features + +- 14275b1 cfg: Color-code edges in CFG dot diagrams (#6314) (DonIsaac) +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Bug Fixes + +- 6159560 parser: String `ImportSpecifier`s for type imports (#6352) (DonIsaac) + +### Refactor + +- 40932f7 cfg: Use IndexVec for storing basic blocks (#6323) (DonIsaac) +- bdd9e92 semantic: Rename vars from `ast_node_id` to `node_id` (#6304) (overlookmotel) +- d110700 semantic: Dereference IDs as quickly as possible (#6303) (overlookmotel) + +### Testing + +- d4f2ee9 transformer: Tidy up transform checker (#6287) (overlookmotel) +- 0f5afd7 transformer: Transform checker output symbol name for mismatches (#6286) (overlookmotel) + ## [0.30.4] - 2024-09-28 ### Refactor diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 51b087b0b22f4..fc955b8fa0aff 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.30.5" +version = "0.31.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/CHANGELOG.md b/crates/oxc_sourcemap/CHANGELOG.md index a0c4e7d136c8a..04081953c5550 100644 --- a/crates/oxc_sourcemap/CHANGELOG.md +++ b/crates/oxc_sourcemap/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.31.0] - 2024-10-08 + +### Features + +- f6e42b6 sourcemap: Add support for sourcemap debug IDs (#6221) (Tim Fish) + ## [0.30.4] - 2024-09-28 ### Bug Fixes diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 4bbc906ff87a4..b9d45ec11660c 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.30.5" +version = "0.31.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 96a348ce8c47f..1936bb2536d73 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.30.5" +version = "0.31.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 962a42a379679..4cf2d5e033fd9 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.31.0] - 2024-10-08 + +### Refactor + +- 03bc041 syntax: Remove some unsafe code creating IDs (#6324) (overlookmotel) + ## [0.30.3] - 2024-09-27 ### Bug Fixes diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 748138a6c763f..03901101e7caa 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.30.5" +version = "0.31.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax_operations/CHANGELOG.md b/crates/oxc_syntax_operations/CHANGELOG.md new file mode 100644 index 0000000000000..602be6080e707 --- /dev/null +++ b/crates/oxc_syntax_operations/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.31.0] - 2024-10-08 + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + diff --git a/crates/oxc_syntax_operations/Cargo.toml b/crates/oxc_syntax_operations/Cargo.toml index 21e781a4c7376..289ec1ac1fd8f 100644 --- a/crates/oxc_syntax_operations/Cargo.toml +++ b/crates/oxc_syntax_operations/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax_operations" -version = "0.30.5" +version = "0.31.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 751dd7e376086..e1a284ce2fe98 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,81 @@ 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.31.0] - 2024-10-08 + +- 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +- 409dffc traverse: [**BREAKING**] `generate_uid` return a `BoundIdentifier` (#6294) (overlookmotel) + +- 5a73a66 regular_expression: [**BREAKING**] Simplify public APIs (#6262) (leaysgur) + +- 4f6bc79 transformer: [**BREAKING**] Remove `source_type` param from `Transformer::new` (#6251) (overlookmotel) + +- 82ab689 transformer,minifier: [**BREAKING**] Move define and inject plugin from minifier to transformer (#6199) (Boshen) + +### Features + +- c3c3447 data_structures: Add `oxc_data_structures` crate; add stack (#6206) (Boshen) +- 51a78d5 napi/transform: Rename all mention of React to Jsx; remove mention of `Binding` (#6198) (Boshen) +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) +- cf20f3a transformer: Exponentiation transform: support private fields (#6345) (overlookmotel) + +### Bug Fixes + +- 9736aa0 oxc_transformer: Define `import.meta` and `import.meta.*` (#6277) (IWANABETHATGUY) +- 2bcd12a transformer: Exponentiation transform: fix reference flags (#6330) (overlookmotel) +- 28cbfa7 transformer: Exponentiation transform: fix temp var names (#6329) (overlookmotel) +- 3a4bcc7 transformer: Exponentiation transform: fix temp var names (#6318) (overlookmotel) +- ccb7bdc transformer: Exponentiation transform: do not replace object when private property (#6313) (overlookmotel) +- 56d50cf transformer: Exponentiation transform: do not assume `Math` is not a local var (#6302) (overlookmotel) +- bd81c51 transformer: Exponentiation transform: fix duplicate symbols (#6300) (overlookmotel) +- 06797b6 transformer: Logical assignment operator transform: fix reference IDs (#6289) (overlookmotel) +- 4b42047 transformer: Fix memory leak in `ReplaceGlobalDefines` (#6224) (overlookmotel) +- a28926f transformer: Fix inserting `require` with `front` option (#6188) (overlookmotel) +- b92fe84 transformer: `NonEmptyStack::push` write value before updating cursor (#6169) (overlookmotel) + +### Performance + +- 788e444 transformer: Parse options from comments only once (#6152) (overlookmotel) +- da2b2a4 transformer: Look up `SymbolId` for `require` only once (#6192) (overlookmotel) +- 40bd919 transformer: Faster parsing JSX pragmas from comments (#6151) (overlookmotel) + +### Documentation + +- eb1d0b8 transformer: Exponentiation transform: update doc comments (#6315) (overlookmotel) + +### Refactor + +- bd5fb5a transformer: Exponentiation transform: rename methods (#6344) (overlookmotel) +- 4aa4e6b transformer: Exponentiation transform: do not wrap in `SequenceExpression` if not needed (#6343) (overlookmotel) +- a15235a transformer: Exponentiation transform: no cloning (#6338) (overlookmotel) +- 7d93b25 transformer: Exponentiation transform: split into 2 paths (#6316) (overlookmotel) +- 15cc8af transformer: Exponentiation transform: break up into functions (#6301) (overlookmotel) +- 7f5a94b transformer: Use `Option::get_or_insert_with` (#6299) (overlookmotel) +- 0cea6e9 transformer: Exponentiation transform: reduce identifier cloning (#6297) (overlookmotel) +- ac7a3ed transformer: Logical assignment transform: reduce identifier cloning (#6296) (overlookmotel) +- 527f7c8 transformer: Nullish coalescing transform: no cloning identifier references (#6295) (overlookmotel) +- 7b62966 transformer: Move `BoundIdentifier` into `oxc_traverse` crate (#6293) (overlookmotel) +- c7fbf68 transformer: Logical assignment operator transform: no cloning identifier references (#6290) (overlookmotel) +- f0a74ca transformer: Prefer `create_bound_reference_id` to `create_reference_id` (#6282) (overlookmotel) +- ba3e85b transformer: Fix spelling (#6279) (overlookmotel) +- bc757c8 transformer: Move functionality of common transforms into stores (#6243) (overlookmotel) +- 1c31932 transformer: Rename var in `VarDeclarations` common transform (#6242) (overlookmotel) +- 0400ff9 transformer: `VarDeclarations` common transform: check if at top level with `ctx.parent()` (#6231) (overlookmotel) +- 235cdba transformer: Use AstBuilder instance from TraverseCtx (#6209) (overlookmotel) +- a7ed29e transformer: Insert `import` statement or `require` depending on source type (#6191) (overlookmotel) +- 4c63f0e transformer: Rename methods (#6190) (overlookmotel) +- 900cb46 transformer: Convert `ModuleImports` into common transform (#6186) (overlookmotel) +- 00e2802 transformer: Introduce `TopLevelStatements` common transform (#6185) (overlookmotel) +- 70d4c56 transformer: Rename `VarDeclarationsStore` methods (#6184) (overlookmotel) +- 81be545 transformer: Export `var_declarations` module from `common` module (#6183) (overlookmotel) +- 02fedf5 transformer: Shorten import (#6180) (overlookmotel) +- f2ac584 transformer: Use TraverseCtx's ast in ModuleImports (#6175) (Dunqing) +- 21b08ba transformer: Shared `VarDeclarations` (#6170) (overlookmotel) +- 0dd9a2e traverse: Add helper methods to `BoundIdentifier` (#6341) (overlookmotel) + ## [0.30.5] - 2024-09-29 ### Bug Fixes diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 7486072df3649..3eddd329bf944 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.30.5" +version = "0.31.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 e45cc3f6159b9..86024aa782063 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.31.0] - 2024-10-08 + +- 01b878e parser: [**BREAKING**] Use `BindingIdentifier` for `namespace` declaration names (#6003) (DonIsaac) + +- 409dffc traverse: [**BREAKING**] `generate_uid` return a `BoundIdentifier` (#6294) (overlookmotel) + +### Features + +- 9e62396 syntax_operations: Add crate `oxc_syntax_operations` (#6202) (Boshen) + +### Documentation + +- c7636d7 traverse: Remove erroneous doc comment (#6328) (overlookmotel) + +### Refactor + +- 7b62966 transformer: Move `BoundIdentifier` into `oxc_traverse` crate (#6293) (overlookmotel) +- 0dd9a2e traverse: Add helper methods to `BoundIdentifier` (#6341) (overlookmotel) +- c0e2fef traverse: Function to get var name from node (#6317) (overlookmotel) +- adc5381 traverse: `TraverseAncestry` use `NonEmptyStack` (#6217) (overlookmotel) + ## [0.30.0] - 2024-09-23 ### Features diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index d4a28a54173bf..76bf4c49a9c9e 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.30.5" +version = "0.31.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index 70dc9a3de6980..111a092b37f65 100644 --- a/napi/transform/CHANGELOG.md +++ b/napi/transform/CHANGELOG.md @@ -4,6 +4,35 @@ 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.31.0] - 2024-10-08 + +- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen) + +- 4f6bc79 transformer: [**BREAKING**] Remove `source_type` param from `Transformer::new` (#6251) (overlookmotel) + +- afc3ccb napi/transform: [**BREAKING**] Rename `TransformOptions::react` to `jsx`. (#6211) (Boshen) + +### Features + +- abd3a9f napi/transform: Perform dce after define plugin (#6312) (Boshen) +- a0ccc26 napi/transform: Add `lang` option to change source type (#6309) (Boshen) +- f98e12c napi/transform: Add inject plugin (#6250) (Boshen) +- 291891e napi/transform: Add `define` option (#6212) (Boshen) +- 51a78d5 napi/transform: Rename all mention of React to Jsx; remove mention of `Binding` (#6198) (Boshen) +- 2f888ed oxc: Add napi transform options (#6268) (Boshen) +- 8729755 oxc,napi/transform: Napi/transform use oxc compiler pipeline (#6298) (Boshen) + +### Bug Fixes + +- 294da86 napi/transform: Fix index.d.ts (Boshen) + +### Refactor + +- 5b5daec napi: Use vitest (#6307) (Boshen) +- 58a8615 napi/transform: Remove context (#6306) (Boshen) +- 099ff3a napi/transform: Remove "Binding" from types; fix type error (#6260) (Boshen) +- 54c1c53 napi/transform: Remove a call on `TransformOptions::clone` (#6210) (Boshen) + ## [0.30.5] - 2024-09-29 ### Features diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 08e4b6c419e5c..7e87598cba26c 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.30.5" +version = "0.31.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 9bd1e124e6f76..5ed04889a79e9 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.30.5", + "version": "0.31.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index daf8ce7fefc2b..1cde24f6d844f 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.30.5", + "version": "0.31.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 5b5e7b6666f4b..7143960e08770 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.30.5", + "version": "0.31.0", "description": "Wasm target for the oxc parser.", "packageManager": "pnpm@9.11.0", "keywords": [