Skip to content

Commit f76113c

Browse files
Release crates v0.22.0 (#4417)
## [0.22.0] - 2024-07-23 - 85a7cea semantic: [**BREAKING**] Remove name from `reference` (#4329) (Dunqing) - f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing) ### Features - d345b84 ast: Add `#[ast]` attribute to non-visited AST types. (#4309) (rzvxa) - 3c0c709 linter: Add typescript-eslint/no-extraneous-class (#4357) (Jaden Rodriguez) - 68efcd4 linter/react-perf: Handle new objects and arrays in prop assignment patterns (#4396) (DonIsaac) - 0deb027 minfier: Dce `if (xxx) else if (false) { REMOVE }` (#4407) (Boshen) - e33ec18 minifier: Compress `typeof foo == "undefined"` into `typeof foo > "u"` (#4412) (Boshen)- 6068e6b Add error codes to OxcDiagnostic (#4334) (DonIsaac) ### Bug Fixes - aece1df ast: Visit `Program`s `hashbang` field first (#4368) (overlookmotel) - 44a10c4 codegen: Object shorthand with parens `({x: (x)})` -> `({ x })` (#4391) (Boshen) - 3d88f20 codegen: Print shorthand for all `{ x }` variants (#4374) (Boshen) - e624dff codegen,mangler: Do not print shorthand for `ObjectProperty` (#4350) (Boshen) - ac08de8 linter/react_perf: Allow new objects, array, fns, etc in top scope (#4395) (DonIsaac) - 267f7c4 minifier: Skip `Object.defineProperty(exports, ...)` for `cjs-module-lexer` (#4409) (Boshen) - bc8d4e5 semantic: Correct comment (#4410) (overlookmotel) - 6ffce86 semantic: Align `visit_arrow_function_expression` field visit order with ast (#4366) (Dunqing) - 4cd5df0 sourcemap: Avoid negative line if token_chunks has same prev_dst_line (#4348) (underfin) - f8565ae transformer/typescript: Unexpectedly removed class binding from ExportNamedDeclaration (#4351) (Dunqing)- ea33f94 Impl PartialEq<str> for CompactStr (#4352) (DonIsaac) ### Performance - 1b51511 semantic: Use `Atom` instead of `CompactStr` for `UnresolvedReferencesStack` (#4401) (Dunqing) - 40f9356 semantic: Calculate number of nodes, scopes, symbols, references before visiting AST (#4367) (Dunqing) - da13d93 semantic: Remove bounds checks on unresolved references stack (#4390) (overlookmotel) - e70c67b semantic: Remove a branch from `add_scope` (#4384) (overlookmotel) - 402006f semantic: Simplify logic in `enter_scope` + `leave_scope` (#4383) (overlookmotel) - 7469e01 semantic: Remove branch from `Nodes::add_node` (#4361) (overlookmotel) - 7eb2864 traverse: Speed up finding UID binding name (#4356) (overlookmotel)- a207923 Replace some CompactStr usages with Cows (#4377) (DonIsaac) ### Refactor - d213773 ast: Replace serde rename "lowercase" with "camelCase" (#4376) (overlookmotel) - abfccbd ast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel) - 5f1c7ec ast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa) - 58f6ec2 ast: Enter node before scope (#4347) (Dunqing) - 59aea73 ast: Scope is created only if CatchClause has param (#4346) (Dunqing) - 7a3e925 ast_codegen: Better visit marker parsing. (#4371) (rzvxa) - 7a75e0f linter: Use diagnostic codes in lint rules (#4349) (DonIsaac) - a2eabe1 parser: Use error codes for ts diagnostics (#4335) (DonIsaac) - 5d77b36 semantic: `visit_program` visit `hashbang` field (#4370) (overlookmotel) - f7b9ada semantic: `Program` visitor leave scope before node (#4369) (overlookmotel) - 729b288 semantic: Shorten code (#4358) (overlookmotel) - 21d0eee semantic: Use error codes for ts diagnostics (#4336) (DonIsaac) Co-authored-by: Boshen <[email protected]>
1 parent 01f33cf commit f76113c

File tree

39 files changed

+226
-63
lines changed

39 files changed

+226
-63
lines changed

Cargo.lock

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+20-20
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,26 @@ cargo_common_metadata = "allow" # TODO: fix this
7373

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

9797
# publish = false
9898
oxc_macros = { path = "crates/oxc_macros" }

crates/oxc/Cargo.toml

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

crates/oxc_allocator/Cargo.toml

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

crates/oxc_ast/CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ 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.0] - 2024-07-23
8+
9+
- f68b659 ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing)
10+
11+
### Features
12+
13+
- d345b84 ast: Add `#[ast]` attribute to non-visited AST types. (#4309) (rzvxa)
14+
- 3c0c709 linter: Add typescript-eslint/no-extraneous-class (#4357) (Jaden Rodriguez)
15+
- 68efcd4 linter/react-perf: Handle new objects and arrays in prop assignment patterns (#4396) (DonIsaac)
16+
17+
### Bug Fixes
18+
19+
- aece1df ast: Visit `Program`s `hashbang` field first (#4368) (overlookmotel)
20+
21+
### Performance
22+
- a207923 Replace some CompactStr usages with Cows (#4377) (DonIsaac)
23+
24+
### Refactor
25+
26+
- d213773 ast: Replace serde rename "lowercase" with "camelCase" (#4376) (overlookmotel)
27+
- abfccbd ast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel)
28+
- 5f1c7ec ast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa)
29+
- 59aea73 ast: Scope is created only if CatchClause has param (#4346) (Dunqing)
30+
- 7a3e925 ast_codegen: Better visit marker parsing. (#4371) (rzvxa)
31+
732
## [0.21.0] - 2024-07-18
833

934
### Features

crates/oxc_ast/Cargo.toml

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

crates/oxc_ast_macros/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ 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.0] - 2024-07-23
8+
9+
### Refactor
10+
11+
- abfccbd ast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel)
12+
- 5f1c7ec ast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa)
13+
714
## [0.17.0] - 2024-07-05
815

916
### Features

crates/oxc_ast_macros/Cargo.toml

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

crates/oxc_cfg/Cargo.toml

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

crates/oxc_codegen/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ 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.0] - 2024-07-23
8+
9+
### Bug Fixes
10+
11+
- 44a10c4 codegen: Object shorthand with parens `({x: (x)})` -> `({ x })` (#4391) (Boshen)
12+
- 3d88f20 codegen: Print shorthand for all `{ x }` variants (#4374) (Boshen)
13+
- e624dff codegen,mangler: Do not print shorthand for `ObjectProperty` (#4350) (Boshen)
14+
715
## [0.21.0] - 2024-07-18
816

917
### Features

crates/oxc_codegen/Cargo.toml

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

crates/oxc_diagnostics/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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.0] - 2024-07-23
8+
9+
### Features
10+
- 6068e6b Add error codes to OxcDiagnostic (#4334) (DonIsaac)
11+
12+
### Refactor
13+
14+
- 7a75e0f linter: Use diagnostic codes in lint rules (#4349) (DonIsaac)
15+
- a2eabe1 parser: Use error codes for ts diagnostics (#4335) (DonIsaac)
16+
717
## [0.20.0] - 2024-07-11
818

919
### Performance

crates/oxc_diagnostics/Cargo.toml

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

crates/oxc_index/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_index"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_isolated_declarations/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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.0] - 2024-07-23
8+
9+
### Bug Fixes
10+
11+
- aece1df ast: Visit `Program`s `hashbang` field first (#4368) (overlookmotel)
12+
- 3d88f20 codegen: Print shorthand for all `{ x }` variants (#4374) (Boshen)
13+
14+
### Performance
15+
- a207923 Replace some CompactStr usages with Cows (#4377) (DonIsaac)
16+
717
## [0.21.0] - 2024-07-18
818

919
### Features

crates/oxc_isolated_declarations/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_isolated_declarations"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

0 commit comments

Comments
 (0)