Skip to content

Commit 80118cb

Browse files
oxc-botBoshen
andauthored
Release crates v0.22.1 (#4508)
## [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 <[email protected]>
1 parent ecdee88 commit 80118cb

File tree

34 files changed

+202
-63
lines changed

34 files changed

+202
-63
lines changed

Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,26 @@ doc_lazy_continuation = "allow" # FIXME
7575

7676
[workspace.dependencies]
7777
# publish = true
78-
oxc = { version = "0.22.0", path = "crates/oxc" }
79-
oxc_allocator = { version = "0.22.0", path = "crates/oxc_allocator" }
80-
oxc_ast = { version = "0.22.0", path = "crates/oxc_ast" }
81-
oxc_codegen = { version = "0.22.0", path = "crates/oxc_codegen" }
82-
oxc_diagnostics = { version = "0.22.0", path = "crates/oxc_diagnostics" }
83-
oxc_index = { version = "0.22.0", path = "crates/oxc_index" }
84-
oxc_minifier = { version = "0.22.0", path = "crates/oxc_minifier" }
85-
oxc_mangler = { version = "0.22.0", path = "crates/oxc_mangler" }
86-
oxc_parser = { version = "0.22.0", path = "crates/oxc_parser" }
87-
oxc_semantic = { version = "0.22.0", path = "crates/oxc_semantic" }
88-
oxc_span = { version = "0.22.0", path = "crates/oxc_span" }
89-
oxc_syntax = { version = "0.22.0", path = "crates/oxc_syntax" }
90-
oxc_transformer = { version = "0.22.0", path = "crates/oxc_transformer" }
91-
oxc_sourcemap = { version = "0.22.0", path = "crates/oxc_sourcemap" }
92-
oxc_ast_macros = { version = "0.22.0", path = "crates/oxc_ast_macros" }
93-
oxc_traverse = { version = "0.22.0", path = "crates/oxc_traverse" }
94-
oxc_module_lexer = { version = "0.22.0", path = "crates/oxc_module_lexer" }
95-
oxc_cfg = { version = "0.22.0", path = "crates/oxc_cfg" }
96-
oxc_isolated_declarations = { version = "0.22.0", path = "crates/oxc_isolated_declarations" }
97-
oxc_transform_napi = { version = "0.22.0", path = "napi/transform" }
78+
oxc = { version = "0.22.1", path = "crates/oxc" }
79+
oxc_allocator = { version = "0.22.1", path = "crates/oxc_allocator" }
80+
oxc_ast = { version = "0.22.1", path = "crates/oxc_ast" }
81+
oxc_codegen = { version = "0.22.1", path = "crates/oxc_codegen" }
82+
oxc_diagnostics = { version = "0.22.1", path = "crates/oxc_diagnostics" }
83+
oxc_index = { version = "0.22.1", path = "crates/oxc_index" }
84+
oxc_minifier = { version = "0.22.1", path = "crates/oxc_minifier" }
85+
oxc_mangler = { version = "0.22.1", path = "crates/oxc_mangler" }
86+
oxc_parser = { version = "0.22.1", path = "crates/oxc_parser" }
87+
oxc_semantic = { version = "0.22.1", path = "crates/oxc_semantic" }
88+
oxc_span = { version = "0.22.1", path = "crates/oxc_span" }
89+
oxc_syntax = { version = "0.22.1", path = "crates/oxc_syntax" }
90+
oxc_transformer = { version = "0.22.1", path = "crates/oxc_transformer" }
91+
oxc_sourcemap = { version = "0.22.1", path = "crates/oxc_sourcemap" }
92+
oxc_ast_macros = { version = "0.22.1", path = "crates/oxc_ast_macros" }
93+
oxc_traverse = { version = "0.22.1", path = "crates/oxc_traverse" }
94+
oxc_module_lexer = { version = "0.22.1", path = "crates/oxc_module_lexer" }
95+
oxc_cfg = { version = "0.22.1", path = "crates/oxc_cfg" }
96+
oxc_isolated_declarations = { version = "0.22.1", path = "crates/oxc_isolated_declarations" }
97+
oxc_transform_napi = { version = "0.22.1", path = "napi/transform" }
9898

9999
# publish = false
100100
oxc_macros = { path = "crates/oxc_macros" }

crates/oxc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_allocator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_allocator"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

crates/oxc_ast/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this package will be documented in this file.
44

55
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.
66

7+
## [0.22.1] - 2024-07-27
8+
9+
### Features
10+
11+
- 2477330 ast: Add `AstKind::TSExportAssignment` (#4501) (Dunqing)
12+
- aaee07e ast: Add `AstKind::AssignmentTargetPattern`, `AstKind::ArrayAssignmentTarget` and `AstKind::ObjectAssignmentTarget` (#4456) (Dunqing)
13+
- fd363d1 ast: Add AstKind::get_container_scope_id (#4450) (DonIsaac)
14+
15+
### Bug Fixes
16+
17+
- 368112c ast: Remove `#[visit(ignore)]` from `ExportDefaultDeclarationKind`'s `TSInterfaceDeclaration` (#4497) (Dunqing)
18+
19+
### Documentation
20+
21+
- f5f0ba8 ast: Add doc comments to more AST nodes (#4413) (Don Isaac)
22+
23+
### Refactor
24+
25+
- 9c5d2f9 ast/builder: Use `Box::new_in` over `.into_in` (#4428) (overlookmotel)
26+
727
## [0.22.0] - 2024-07-23
828

929
- f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing)

crates/oxc_ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_ast"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

crates/oxc_ast_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_ast_macros"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_cfg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_cfg"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_codegen"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_diagnostics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_diagnostics"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

0 commit comments

Comments
 (0)