From 80118cbf3b62496e440d0362ad3d4a3e9ad2e6fb Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sun, 28 Jul 2024 09:58:29 +0800 Subject: [PATCH] Release crates v0.22.1 (#4508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [0.22.1] - 2024-07-27 ### Features - 2477330 ast: Add `AstKind::TSExportAssignment` (#4501) (Dunqing) - aaee07e ast: Add `AstKind::AssignmentTargetPattern`, `AstKind::ArrayAssignmentTarget` and `AstKind::ObjectAssignmentTarget` (#4456) (Dunqing) - fd363d1 ast: Add AstKind::get_container_scope_id (#4450) (DonIsaac) - e2735ca span: Add `contains_inclusive` method (#4491) (DonIsaac) ### Bug Fixes - 368112c ast: Remove `#[visit(ignore)]` from `ExportDefaultDeclarationKind`'s `TSInterfaceDeclaration` (#4497) (Dunqing) - 36bb680 semantic: `TSExportAssignment` cannot reference type binding (#4502) (Dunqing) - cb2fa49 semantic: `typeof` operator cannot reference type-only import (#4500) (Dunqing) - ef0e953 semantic: Generic passed to typeof not counted as a reference (#4499) (Dunqing) - 40cafb8 semantic: Params in `export default (function() {})` flagged as `SymbolFlags::Export` (#4480) (Dunqing) - 2e01a45 semantic: Non-exported namespace member symbols flagged as exported (#4493) (Don Isaac) - e4ca06a semantic: Incorrect symbol’s scope_id after var hoisting (#4458) (Dunqing) - 77bd5f1 semantic: Use correct span for namespace symbols (#4448) (Don Isaac) - 5db7bed sourcemap: Fix pre-calculation of required segments for building JSON (#4490) (overlookmotel) - 1667491 syntax: Correct `is_reserved_keyword_or_global_object`'s incorrect function calling. (#4484) (Ethan Goh) - 82ba2a0 syntax: Fix unsound use of `NonZeroU32` (#4466) (overlookmotel) - c04b9aa transformer: Add to `SymbolTable::declarations` for all symbols (#4460) (overlookmotel) - ecdee88 transformer/typescript: Incorrect eliminate exports when the referenced symbol is both value and type (#4507) (Dunqing) ### Performance - 963a2d1 mangler: Reduce unnecessary allocation (#4498) (Dunqing) - 868fc87 parser: Optimize conditional advance on ASCII values (#4298) (lucab) - 24beaeb semantic: Give `AstNodeId` a niche (#4469) (overlookmotel) - 348c1ad semantic: Remove `span` field from `Reference` (#4464) (overlookmotel) - 6a9f4db semantic: Reduce storage size for symbol redeclarations (#4463) (overlookmotel) - 705e19f sourcemap: Reduce memory copies encoding JSON (#4489) (overlookmotel) - 4d10c6c sourcemap: Pre allocate String buf while encoding (#4476) (Brooooooklyn) ### Documentation - f5f0ba8 ast: Add doc comments to more AST nodes (#4413) (Don Isaac) - 871b3d6 semantic: Add doc comments for SymbolTester and SemanticTester (#4433) (DonIsaac) ### Refactor - 9c5d2f9 ast/builder: Use `Box::new_in` over `.into_in` (#4428) (overlookmotel) - ccb1835 semantic: Methods take `Span` as param, not `&Span` (#4470) (overlookmotel) - f17254a semantic: Populate `declarations` field in `SymbolTable::create_symbol` (#4461) (overlookmotel) - a49f491 semantic: Re-order `SymbolTable` fields (#4459) (overlookmotel) - 7cd53f3 semantic: Var hoisting (#4379) (Dunqing) - 4f5a7cb semantic: Mark SemanticTester and SymbolTester as must_use (#4430) (DonIsaac) - c958a55 sourcemap: `push_list` method for building JSON (#4486) (overlookmotel) - c99b3eb syntax: Give `ScopeId` a niche (#4468) (overlookmotel) - 96fc94f syntax: Use `NonMaxU32` for IDs (#4467) (overlookmotel) ### Testing - 4b274a8 semantic: Add more test cases for symbol references (#4429) (DonIsaac) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> --- Cargo.lock | 40 ++++++++++----------- Cargo.toml | 40 ++++++++++----------- crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 20 +++++++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_index/Cargo.toml | 2 +- crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/CHANGELOG.md | 11 ++++++ crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_module_lexer/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 6 ++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 39 ++++++++++++++++++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_sourcemap/CHANGELOG.md | 15 ++++++++ crates/oxc_sourcemap/Cargo.toml | 2 +- crates/oxc_span/CHANGELOG.md | 6 ++++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 17 +++++++++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 11 ++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 14 ++++++++ crates/oxc_traverse/Cargo.toml | 2 +- napi/transform/Cargo.toml | 2 +- npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- wasm/parser/package.json | 2 +- 34 files changed, 202 insertions(+), 63 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 73cfa92659793..95bff8255815a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1279,7 +1279,7 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.22.0" +version = "0.22.1" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1316,7 +1316,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.22.0" +version = "0.22.1" dependencies = [ "allocator-api2", "bumpalo", @@ -1326,7 +1326,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.22.0" +version = "0.22.1" dependencies = [ "bitflags 2.6.0", "num-bigint", @@ -1360,7 +1360,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.22.0" +version = "0.22.1" [[package]] name = "oxc_benchmark" @@ -1385,7 +1385,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.22.0" +version = "0.22.1" dependencies = [ "bitflags 2.6.0", "itertools 0.13.0", @@ -1396,7 +1396,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.22.0" +version = "0.22.1" dependencies = [ "base64", "bitflags 2.6.0", @@ -1451,7 +1451,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.22.0" +version = "0.22.1" dependencies = [ "miette", "owo-colors", @@ -1461,14 +1461,14 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.22.0" +version = "0.22.1" dependencies = [ "serde", ] [[package]] name = "oxc_isolated_declarations" -version = "0.22.0" +version = "0.22.1" dependencies = [ "insta", "oxc_allocator", @@ -1565,7 +1565,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.22.0" +version = "0.22.1" dependencies = [ "itertools 0.13.0", "oxc_ast", @@ -1576,7 +1576,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.22.0" +version = "0.22.1" dependencies = [ "insta", "num-bigint", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "oxc_module_lexer" -version = "0.22.0" +version = "0.22.1" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1620,7 +1620,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.22.0" +version = "0.22.1" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1713,7 +1713,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.22.0" +version = "0.22.1" dependencies = [ "assert-unchecked", "indexmap", @@ -1737,7 +1737,7 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.22.0" +version = "0.22.1" dependencies = [ "base64-simd", "cfg-if", @@ -1749,7 +1749,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.22.0" +version = "0.22.1" dependencies = [ "compact_str", "miette", @@ -1761,7 +1761,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.22.0" +version = "0.22.1" dependencies = [ "bitflags 2.6.0", "dashmap 6.0.1", @@ -1806,7 +1806,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.22.0" +version = "0.22.1" dependencies = [ "napi", "napi-build", @@ -1822,7 +1822,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.22.0" +version = "0.22.1" dependencies = [ "dashmap 6.0.1", "indexmap", @@ -1844,7 +1844,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.22.0" +version = "0.22.1" dependencies = [ "compact_str", "memoffset", diff --git a/Cargo.toml b/Cargo.toml index e36dd5293eb34..62634502de38c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,26 +75,26 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.22.0", path = "crates/oxc" } -oxc_allocator = { version = "0.22.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.22.0", path = "crates/oxc_ast" } -oxc_codegen = { version = "0.22.0", path = "crates/oxc_codegen" } -oxc_diagnostics = { version = "0.22.0", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.22.0", path = "crates/oxc_index" } -oxc_minifier = { version = "0.22.0", path = "crates/oxc_minifier" } -oxc_mangler = { version = "0.22.0", path = "crates/oxc_mangler" } -oxc_parser = { version = "0.22.0", path = "crates/oxc_parser" } -oxc_semantic = { version = "0.22.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.22.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.22.0", path = "crates/oxc_syntax" } -oxc_transformer = { version = "0.22.0", path = "crates/oxc_transformer" } -oxc_sourcemap = { version = "0.22.0", path = "crates/oxc_sourcemap" } -oxc_ast_macros = { version = "0.22.0", path = "crates/oxc_ast_macros" } -oxc_traverse = { version = "0.22.0", path = "crates/oxc_traverse" } -oxc_module_lexer = { version = "0.22.0", path = "crates/oxc_module_lexer" } -oxc_cfg = { version = "0.22.0", path = "crates/oxc_cfg" } -oxc_isolated_declarations = { version = "0.22.0", path = "crates/oxc_isolated_declarations" } -oxc_transform_napi = { version = "0.22.0", path = "napi/transform" } +oxc = { version = "0.22.1", path = "crates/oxc" } +oxc_allocator = { version = "0.22.1", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.22.1", path = "crates/oxc_ast" } +oxc_codegen = { version = "0.22.1", path = "crates/oxc_codegen" } +oxc_diagnostics = { version = "0.22.1", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.22.1", path = "crates/oxc_index" } +oxc_minifier = { version = "0.22.1", path = "crates/oxc_minifier" } +oxc_mangler = { version = "0.22.1", path = "crates/oxc_mangler" } +oxc_parser = { version = "0.22.1", path = "crates/oxc_parser" } +oxc_semantic = { version = "0.22.1", path = "crates/oxc_semantic" } +oxc_span = { version = "0.22.1", path = "crates/oxc_span" } +oxc_syntax = { version = "0.22.1", path = "crates/oxc_syntax" } +oxc_transformer = { version = "0.22.1", path = "crates/oxc_transformer" } +oxc_sourcemap = { version = "0.22.1", path = "crates/oxc_sourcemap" } +oxc_ast_macros = { version = "0.22.1", path = "crates/oxc_ast_macros" } +oxc_traverse = { version = "0.22.1", path = "crates/oxc_traverse" } +oxc_module_lexer = { version = "0.22.1", path = "crates/oxc_module_lexer" } +oxc_cfg = { version = "0.22.1", path = "crates/oxc_cfg" } +oxc_isolated_declarations = { version = "0.22.1", path = "crates/oxc_isolated_declarations" } +oxc_transform_napi = { version = "0.22.1", path = "napi/transform" } # publish = false oxc_macros = { path = "crates/oxc_macros" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 9a34692b0b2d1..7d713ecc3a641 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index cef37bd57af29..c0e88f75b1a61 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index bf16001018593..23d8a9f516eb1 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,26 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.22.1] - 2024-07-27 + +### Features + +- 2477330 ast: Add `AstKind::TSExportAssignment` (#4501) (Dunqing) +- aaee07e ast: Add `AstKind::AssignmentTargetPattern`, `AstKind::ArrayAssignmentTarget` and `AstKind::ObjectAssignmentTarget` (#4456) (Dunqing) +- fd363d1 ast: Add AstKind::get_container_scope_id (#4450) (DonIsaac) + +### Bug Fixes + +- 368112c ast: Remove `#[visit(ignore)]` from `ExportDefaultDeclarationKind`'s `TSInterfaceDeclaration` (#4497) (Dunqing) + +### Documentation + +- f5f0ba8 ast: Add doc comments to more AST nodes (#4413) (Don Isaac) + +### Refactor + +- 9c5d2f9 ast/builder: Use `Box::new_in` over `.into_in` (#4428) (overlookmotel) + ## [0.22.0] - 2024-07-23 - f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 4df93f1876bb4..790b7a0ed5f89 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 1f79a789f2337..98ca4dcd546da 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.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index f9c0aa0e1c33c..fc15f25142508 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 356b8474d82da..6ace5e0223121 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index c9ce81b53c5d1..9c1ed695d10af 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index 502eb23415164..27a6552458607 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_index" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 7b444fac77456..1afa669780b52 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.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_mangler/CHANGELOG.md b/crates/oxc_mangler/CHANGELOG.md index b4bb8aadfb154..6a6cf8d7fca0d 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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.22.1] - 2024-07-27 + +### Performance + +- 963a2d1 mangler: Reduce unnecessary allocation (#4498) (Dunqing) + +### Refactor + +- 7cd53f3 semantic: Var hoisting (#4379) (Dunqing) +- c99b3eb syntax: Give `ScopeId` a niche (#4468) (overlookmotel) + ## [0.22.0] - 2024-07-23 ### Bug Fixes diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 68103adf532a3..39b166787a6a4 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 5675e5415cd7a..e8e11f075f642 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 35fb4d2ef6642..fb95a293679b6 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.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index 85a9391579173..2546b49d8ba7b 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/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.22.1] - 2024-07-27 + +### Performance + +- 868fc87 parser: Optimize conditional advance on ASCII values (#4298) (lucab) + ## [0.22.0] - 2024-07-23 - f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index ddc12dafc4860..7001a62d3ab10 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index ef8b1f309c4d0..061f10a0fceb7 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,45 @@ 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.22.1] - 2024-07-27 + +### Features + +- 2477330 ast: Add `AstKind::TSExportAssignment` (#4501) (Dunqing) +- aaee07e ast: Add `AstKind::AssignmentTargetPattern`, `AstKind::ArrayAssignmentTarget` and `AstKind::ObjectAssignmentTarget` (#4456) (Dunqing) + +### Bug Fixes + +- 36bb680 semantic: `TSExportAssignment` cannot reference type binding (#4502) (Dunqing) +- cb2fa49 semantic: `typeof` operator cannot reference type-only import (#4500) (Dunqing) +- ef0e953 semantic: Generic passed to typeof not counted as a reference (#4499) (Dunqing) +- 40cafb8 semantic: Params in `export default (function() {})` flagged as `SymbolFlags::Export` (#4480) (Dunqing) +- 2e01a45 semantic: Non-exported namespace member symbols flagged as exported (#4493) (Don Isaac) +- e4ca06a semantic: Incorrect symbol’s scope_id after var hoisting (#4458) (Dunqing) +- 77bd5f1 semantic: Use correct span for namespace symbols (#4448) (Don Isaac) + +### Performance + +- 348c1ad semantic: Remove `span` field from `Reference` (#4464) (overlookmotel) +- 6a9f4db semantic: Reduce storage size for symbol redeclarations (#4463) (overlookmotel) + +### Documentation + +- 871b3d6 semantic: Add doc comments for SymbolTester and SemanticTester (#4433) (DonIsaac) + +### Refactor + +- ccb1835 semantic: Methods take `Span` as param, not `&Span` (#4470) (overlookmotel) +- f17254a semantic: Populate `declarations` field in `SymbolTable::create_symbol` (#4461) (overlookmotel) +- a49f491 semantic: Re-order `SymbolTable` fields (#4459) (overlookmotel) +- 7cd53f3 semantic: Var hoisting (#4379) (Dunqing) +- 4f5a7cb semantic: Mark SemanticTester and SymbolTester as must_use (#4430) (DonIsaac) +- c99b3eb syntax: Give `ScopeId` a niche (#4468) (overlookmotel) + +### Testing + +- 4b274a8 semantic: Add more test cases for symbol references (#4429) (DonIsaac) + ## [0.22.0] - 2024-07-23 - 85a7cea semantic: [**BREAKING**] Remove name from `reference` (#4329) (Dunqing) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index d935effd46c86..22a45ba11b64a 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_sourcemap/CHANGELOG.md b/crates/oxc_sourcemap/CHANGELOG.md index 644014d53bfd9..812ac305e3cbc 100644 --- a/crates/oxc_sourcemap/CHANGELOG.md +++ b/crates/oxc_sourcemap/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.22.1] - 2024-07-27 + +### Bug Fixes + +- 5db7bed sourcemap: Fix pre-calculation of required segments for building JSON (#4490) (overlookmotel) + +### Performance + +- 705e19f sourcemap: Reduce memory copies encoding JSON (#4489) (overlookmotel) +- 4d10c6c sourcemap: Pre allocate String buf while encoding (#4476) (Brooooooklyn) + +### Refactor + +- c958a55 sourcemap: `push_list` method for building JSON (#4486) (overlookmotel) + ## [0.22.0] - 2024-07-23 ### Bug Fixes diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 229873235270a..0532b8ab55489 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_sourcemap" -version = "0.22.0" +version = "0.22.1" authors.workspace = true description.workspace = true edition.workspace = true diff --git a/crates/oxc_span/CHANGELOG.md b/crates/oxc_span/CHANGELOG.md index cf91524fcb6c1..fc803f4907df7 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.22.1] - 2024-07-27 + +### Features + +- e2735ca span: Add `contains_inclusive` method (#4491) (DonIsaac) + ## [0.22.0] - 2024-07-23 ### Bug Fixes diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 91d7a65463291..2d826deaa7a84 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index f8bbed50fac53..d0943fe4dea70 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.22.1] - 2024-07-27 + +### Bug Fixes + +- 1667491 syntax: Correct `is_reserved_keyword_or_global_object`'s incorrect function calling. (#4484) (Ethan Goh) +- 82ba2a0 syntax: Fix unsound use of `NonZeroU32` (#4466) (overlookmotel) + +### Performance + +- 24beaeb semantic: Give `AstNodeId` a niche (#4469) (overlookmotel) +- 6a9f4db semantic: Reduce storage size for symbol redeclarations (#4463) (overlookmotel) + +### Refactor + +- c99b3eb syntax: Give `ScopeId` a niche (#4468) (overlookmotel) +- 96fc94f syntax: Use `NonMaxU32` for IDs (#4467) (overlookmotel) + ## [0.22.0] - 2024-07-23 ### Bug Fixes diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 9b0d0083a2363..e87add00751ff 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index 0a4e1443bfd2d..557807aa8e43a 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/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.22.1] - 2024-07-27 + +### Bug Fixes + +- c04b9aa transformer: Add to `SymbolTable::declarations` for all symbols (#4460) (overlookmotel) +- ecdee88 transformer/typescript: Incorrect eliminate exports when the referenced symbol is both value and type (#4507) (Dunqing) + +### Refactor + +- f17254a semantic: Populate `declarations` field in `SymbolTable::create_symbol` (#4461) (overlookmotel) + ## [0.22.0] - 2024-07-23 - 85a7cea semantic: [**BREAKING**] Remove name from `reference` (#4329) (Dunqing) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index f77aa1ae6bbba..80be29770bac3 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index 6bbdc87f966ef..8bbb2d596dd5f 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.22.1] - 2024-07-27 + +### Bug Fixes + +- c04b9aa transformer: Add to `SymbolTable::declarations` for all symbols (#4460) (overlookmotel) + +### Performance + +- 348c1ad semantic: Remove `span` field from `Reference` (#4464) (overlookmotel) + +### Refactor + +- f17254a semantic: Populate `declarations` field in `SymbolTable::create_symbol` (#4461) (overlookmotel) + ## [0.22.0] - 2024-07-23 - 85a7cea semantic: [**BREAKING**] Remove name from `reference` (#4329) (Dunqing) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 1a7a0b3d671eb..cdd6410d938b9 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 9b5dd6f0583fc..2bc558aeab411 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.22.0" +version = "0.22.1" publish = true authors.workspace = true description.workspace = true diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index ce037d9d67652..993bc8bfae63a 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.22.0", + "version": "0.22.1", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 7d5150aaca306..86d38e5694143 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.22.0", + "version": "0.22.1", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/wasm/parser/package.json b/wasm/parser/package.json index c7ad2a740f188..9ecfcffca61d3 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.22.0", + "version": "0.22.1", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",