Skip to content

Commit 69dc6c9

Browse files
oxc-botBoshen
andauthored
Release crates v0.24.0 (#4749)
## [0.24.0] - 2024-08-08 - 75f2207 traverse: [**BREAKING**] Replace `find_scope` with `ancestor_scopes` returning iterator (#4693) (overlookmotel) - 506709f traverse: [**BREAKING**] Replace `find_ancestor` with `ancestors` returning iterator (#4692) (overlookmotel) ### Features - 23b0040 allocator: Introduce `CloneIn` trait. (#4726) (rzvxa) - 51c1ca0 ast: Derive `CloneIn` for AST types, using `generate_derive`. (#4732) (rzvxa) - e12bd1e ast: Allow conversion from TSAccessibility into &'static str (#4711) (DonIsaac) - fd2d9da ast: Improve `AstKind::debug_name` (#4553) (DonIsaac) - b3b7028 ast: Implement missing Clone, Hash, and Display traits for literals (#4552) (DonIsaac) - 54047e0 ast: `GetSpanMut` trait (#4609) (overlookmotel) - eae401c ast, ast_macros: Apply stable repr to all `#[ast]` enums (#4373) (rzvxa) - ec0b4cb ast_codegen: Add `derive_clone_in` generator. (#4731) (rzvxa) - 2e91ad6 ast_codegen: Support for `generate_derive` marker. (#4728) (rzvxa) - 82e2f6b ast_codegen: Process AST-related `syntax` types. (#4694) (rzvxa) - 0c52c0d ast_codegen: Add alignment and size data to the schema. (#4615) (rzvxa) - 07607d3 ast_codegen, span: Process `Span` through ast_codegen (#4703) (overlookmotel) - 125c5fd ast_codegen, span: Process `SourceType` through ast_codegen. (#4696) (rzvxa) - eaddc8f linter: Add fixer for eslint/func_names (#4714) (DonIsaac) - 229a0e9 minifier: Implement dot define for member expressions (#3959) (camc314) - 33f1312 semantic: Impl GetSpan for AstNode (#4717) (DonIsaac) - e42ac3a sourcemap: Add `ConcatSourceMapBuilder::from_sourcemaps` (#4639) (overlookmotel) - 2e63618 span: Implement `CloneIn` for the AST-related items. (#4729) (rzvxa) - 6a36616 syntax: Derive `CloneIn` for the AST-related items. (#4730) (rzvxa) ### Bug Fixes - 4a56954 codegen: Print raw if value is number is Infinity (#4676) (Boshen) - 94d3c31 minifier: Avoid removing function declaration from `KeepVar` (#4722) (Boshen) - bf43148 minifier: Do not `remove_syntax` in dead_code_elimination (Boshen) - bf48c7f minifier: Fix `keep_var` keeping vars from arrow functions (#4680) (Boshen) - 9be29af minifier: Temporarily fix shadowed `undefined` variable (#4678) (Boshen) - e8b662a minifier: Various fixes to pass minifier conformance (#4667) (Boshen) - 01d85de napi/transform: Update napi files (Boshen) - f290191 oxc_ast_macros: Fix `syn` lacking features to build (Boshen) - a40a217 parser: Parse `assert` keyword in `TSImportAttributes` (#4610) (Boshen) - 03c643a semantic: Incorrect `scope_id` for catch parameter symbols (#4659) (Dunqing) - 6c612d1 semantic/jsdoc: Handle whitespace absence (#4642) (leaysgur) - 0d2c41a semantic/jsdoc: Panic on parsing `type_name_comment`. (#4632) (rzvxa) - 9f8f299 syntax: Prevent creating invalid u32 IDs (#4675) (overlookmotel) - 4797eaa transformer: Strip TS statements from for in/of statement bodies (#4686) (overlookmotel) - 5327acd transformer/react: The `require` IdentifierReference does not have a `reference_id` (#4658) (Dunqing) - 3987665 transformer/typescript: Incorrect enum-related `symbol_id`/`reference_id` (#4660) (Dunqing) - 4efd54b transformer/typescript: Incorrect `SymbolFlags` for jsx imports (#4549) (Dunqing) ### Performance - 8dd76e4 codegen: Reduce size of `LineOffsetTable` (#4643) (overlookmotel) - b8e6753 codegen: `u32` indexes in `LineOffsetTable` for source maps (#4641) (overlookmotel) - 6ff200d linter: Change react rules and utils to use `Cow` and `CompactStr` instead of `String` (#4603) (DonIsaac) - 0f5e982 minifier: Only visit arrow expression after dropping `console.log` (#4677) (Boshen) - ff43dff sourcemap: Speed up VLQ encoding (#4633) (overlookmotel) - a330773 sourcemap: Reduce string copying in `ConcatSourceMapBuilder` (#4638) (overlookmotel) - 372316b sourcemap: `ConcatSourceMapBuilder` extend `source_contents` in separate loop (#4634) (overlookmotel) - c7f1d48 sourcemap: Keep local copy of previous token in VLQ encode (#4596) (overlookmotel) - 590d795 sourcemap: Shorten main loop encoding VLQ (#4586) (overlookmotel) ### Documentation - c69ada4 ast: Improve AST node documentation (#4051) (Rintaro Itokawa) ### Refactor - 579b797 ast: Use type identifier instead of `CloneIn::Cloned` GAT. (#4738) (rzvxa) - 475266d ast: Use correct lifetimes for name-related methods (#4712) (DonIsaac) - 83b6ca9 ast: Add explicit enum discriminants. (#4689) (rzvxa) - ba70001 ast: Put `assert_layouts.rs` behind `debug_assertions` (#4621) (rzvxa) - 3f53b6f ast: Make AST structs `repr(C)`. (#4614) (rzvxa) - 452e0ee ast: Remove defunct `visit_as` + `visit_args` attrs from `#[ast]` macro (#4599) (overlookmotel) - 2218340 ast, ast_codegen: Use `generate_derive` for implementing `GetSpan` and `GetSpanMut` traits. (#4735) (rzvxa) - fbfd852 minifier: Add `NodeUtil` trait for accessing symbols on ast nodes (#4734) (Boshen) - e0832f8 minifier: Use `oxc_traverse` for AST passes (#4725) (Boshen) - 17602db minifier: Move tests and files around (Boshen) - 3289477 minifier: Clean up tests (#4724) (Boshen) - e78cba6 minifier: Ast passes infrastructure (#4625) (Boshen) - d25dea7 parser: Use `ast_builder` in more places. (#4612) (rzvxa) - 09d9822 semantic: Simplify setting scope flags (#4674) (overlookmotel) - 6e453db semantic: Simplify inherit scope flags from parent scope (#4664) (Dunqing) - e1429e5 span: Reduce #[cfg_attr] boilerplate in type defs (#4702) (overlookmotel) - e24fb5b syntax: Add explicit enum discriminants to AST related types. (#4691) (rzvxa) - 3f3cb62 syntax, span: Reduce #[cfg_attr] boilerplate in type defs (#4698) (overlookmotel) - 54f9897 traverse: Simpler code for entering/exiting unconditional scopes (#4685) (overlookmotel) - 83546d3 traverse: Enter node before entering scope (#4684) (overlookmotel)- 9b51e04 Overhaul napi transformer package (#4592) (DonIsaac) ### Testing - 49d5196 ast: Fix `assert_layouts.rs` offset tests on 32bit platforms. (#4620) (rzvxa) Co-authored-by: Boshen <[email protected]>
1 parent fbfd852 commit 69dc6c9

File tree

39 files changed

+294
-63
lines changed

39 files changed

+294
-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.23.1", path = "crates/oxc" }
79-
oxc_allocator = { version = "0.23.1", path = "crates/oxc_allocator" }
80-
oxc_ast = { version = "0.23.1", path = "crates/oxc_ast" }
81-
oxc_codegen = { version = "0.23.1", path = "crates/oxc_codegen" }
82-
oxc_diagnostics = { version = "0.23.1", path = "crates/oxc_diagnostics" }
83-
oxc_index = { version = "0.23.1", path = "crates/oxc_index" }
84-
oxc_minifier = { version = "0.23.1", path = "crates/oxc_minifier" }
85-
oxc_mangler = { version = "0.23.1", path = "crates/oxc_mangler" }
86-
oxc_parser = { version = "0.23.1", path = "crates/oxc_parser" }
87-
oxc_semantic = { version = "0.23.1", path = "crates/oxc_semantic" }
88-
oxc_span = { version = "0.23.1", path = "crates/oxc_span" }
89-
oxc_syntax = { version = "0.23.1", path = "crates/oxc_syntax" }
90-
oxc_transformer = { version = "0.23.1", path = "crates/oxc_transformer" }
91-
oxc_sourcemap = { version = "0.23.1", path = "crates/oxc_sourcemap" }
92-
oxc_ast_macros = { version = "0.23.1", path = "crates/oxc_ast_macros" }
93-
oxc_traverse = { version = "0.23.1", path = "crates/oxc_traverse" }
94-
oxc_module_lexer = { version = "0.23.1", path = "crates/oxc_module_lexer" }
95-
oxc_cfg = { version = "0.23.1", path = "crates/oxc_cfg" }
96-
oxc_isolated_declarations = { version = "0.23.1", path = "crates/oxc_isolated_declarations" }
97-
oxc_transform_napi = { version = "0.23.1", path = "napi/transform" }
78+
oxc = { version = "0.24.0", path = "crates/oxc" }
79+
oxc_allocator = { version = "0.24.0", path = "crates/oxc_allocator" }
80+
oxc_ast = { version = "0.24.0", path = "crates/oxc_ast" }
81+
oxc_codegen = { version = "0.24.0", path = "crates/oxc_codegen" }
82+
oxc_diagnostics = { version = "0.24.0", path = "crates/oxc_diagnostics" }
83+
oxc_index = { version = "0.24.0", path = "crates/oxc_index" }
84+
oxc_minifier = { version = "0.24.0", path = "crates/oxc_minifier" }
85+
oxc_mangler = { version = "0.24.0", path = "crates/oxc_mangler" }
86+
oxc_parser = { version = "0.24.0", path = "crates/oxc_parser" }
87+
oxc_semantic = { version = "0.24.0", path = "crates/oxc_semantic" }
88+
oxc_span = { version = "0.24.0", path = "crates/oxc_span" }
89+
oxc_syntax = { version = "0.24.0", path = "crates/oxc_syntax" }
90+
oxc_transformer = { version = "0.24.0", path = "crates/oxc_transformer" }
91+
oxc_sourcemap = { version = "0.24.0", path = "crates/oxc_sourcemap" }
92+
oxc_ast_macros = { version = "0.24.0", path = "crates/oxc_ast_macros" }
93+
oxc_traverse = { version = "0.24.0", path = "crates/oxc_traverse" }
94+
oxc_module_lexer = { version = "0.24.0", path = "crates/oxc_module_lexer" }
95+
oxc_cfg = { version = "0.24.0", path = "crates/oxc_cfg" }
96+
oxc_isolated_declarations = { version = "0.24.0", path = "crates/oxc_isolated_declarations" }
97+
oxc_transform_napi = { version = "0.24.0", 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.23.1"
3+
version = "0.24.0"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_allocator/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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.24.0] - 2024-08-08
8+
9+
### Features
10+
11+
- 23b0040 allocator: Introduce `CloneIn` trait. (#4726) (rzvxa)
12+
713
## [0.23.0] - 2024-08-01
814

915
### Performance

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.23.1"
3+
version = "0.24.0"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

crates/oxc_ast/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@ 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.24.0] - 2024-08-08
8+
9+
### Features
10+
11+
- 51c1ca0 ast: Derive `CloneIn` for AST types, using `generate_derive`. (#4732) (rzvxa)
12+
- e12bd1e ast: Allow conversion from TSAccessibility into &'static str (#4711) (DonIsaac)
13+
- fd2d9da ast: Improve `AstKind::debug_name` (#4553) (DonIsaac)
14+
- b3b7028 ast: Implement missing Clone, Hash, and Display traits for literals (#4552) (DonIsaac)
15+
- 54047e0 ast: `GetSpanMut` trait (#4609) (overlookmotel)
16+
- eae401c ast, ast_macros: Apply stable repr to all `#[ast]` enums (#4373) (rzvxa)
17+
- ec0b4cb ast_codegen: Add `derive_clone_in` generator. (#4731) (rzvxa)
18+
- 82e2f6b ast_codegen: Process AST-related `syntax` types. (#4694) (rzvxa)
19+
- 0c52c0d ast_codegen: Add alignment and size data to the schema. (#4615) (rzvxa)
20+
- 07607d3 ast_codegen, span: Process `Span` through ast_codegen (#4703) (overlookmotel)
21+
- 125c5fd ast_codegen, span: Process `SourceType` through ast_codegen. (#4696) (rzvxa)
22+
- eaddc8f linter: Add fixer for eslint/func_names (#4714) (DonIsaac)
23+
24+
### Bug Fixes
25+
26+
- a40a217 parser: Parse `assert` keyword in `TSImportAttributes` (#4610) (Boshen)
27+
28+
### Documentation
29+
30+
- c69ada4 ast: Improve AST node documentation (#4051) (Rintaro Itokawa)
31+
32+
### Refactor
33+
34+
- 579b797 ast: Use type identifier instead of `CloneIn::Cloned` GAT. (#4738) (rzvxa)
35+
- 475266d ast: Use correct lifetimes for name-related methods (#4712) (DonIsaac)
36+
- 83b6ca9 ast: Add explicit enum discriminants. (#4689) (rzvxa)
37+
- ba70001 ast: Put `assert_layouts.rs` behind `debug_assertions` (#4621) (rzvxa)
38+
- 2218340 ast, ast_codegen: Use `generate_derive` for implementing `GetSpan` and `GetSpanMut` traits. (#4735) (rzvxa)
39+
40+
### Testing
41+
42+
- 49d5196 ast: Fix `assert_layouts.rs` offset tests on 32bit platforms. (#4620) (rzvxa)
43+
744
## [0.23.1] - 2024-08-06
845

946
### Features

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.23.1"
3+
version = "0.24.0"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

crates/oxc_ast_macros/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ 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.24.0] - 2024-08-08
8+
9+
### Features
10+
11+
- eae401c ast, ast_macros: Apply stable repr to all `#[ast]` enums (#4373) (rzvxa)
12+
- 2e91ad6 ast_codegen: Support for `generate_derive` marker. (#4728) (rzvxa)
13+
- 6a36616 syntax: Derive `CloneIn` for the AST-related items. (#4730) (rzvxa)
14+
15+
### Bug Fixes
16+
17+
- 94d3c31 minifier: Avoid removing function declaration from `KeepVar` (#4722) (Boshen)
18+
- f290191 oxc_ast_macros: Fix `syn` lacking features to build (Boshen)
19+
- a40a217 parser: Parse `assert` keyword in `TSImportAttributes` (#4610) (Boshen)
20+
21+
### Refactor
22+
23+
- 3f53b6f ast: Make AST structs `repr(C)`. (#4614) (rzvxa)
24+
- 452e0ee ast: Remove defunct `visit_as` + `visit_args` attrs from `#[ast]` macro (#4599) (overlookmotel)
25+
726
## [0.23.1] - 2024-08-06
827

928
### Features

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.23.1"
3+
version = "0.24.0"
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.23.1"
3+
version = "0.24.0"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

crates/oxc_codegen/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ 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.24.0] - 2024-08-08
8+
9+
### Bug Fixes
10+
11+
- 4a56954 codegen: Print raw if value is number is Infinity (#4676) (Boshen)
12+
- a40a217 parser: Parse `assert` keyword in `TSImportAttributes` (#4610) (Boshen)
13+
14+
### Performance
15+
16+
- 8dd76e4 codegen: Reduce size of `LineOffsetTable` (#4643) (overlookmotel)
17+
- b8e6753 codegen: `u32` indexes in `LineOffsetTable` for source maps (#4641) (overlookmotel)
18+
19+
### Refactor
20+
21+
- e78cba6 minifier: Ast passes infrastructure (#4625) (Boshen)
22+
723
## [0.23.1] - 2024-08-06
824

925
### Bug Fixes

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.23.1"
3+
version = "0.24.0"
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.23.1"
3+
version = "0.24.0"
44
authors.workspace = true
55
description.workspace = true
66
edition.workspace = true

crates/oxc_index/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_index"
3-
version = "0.23.1"
3+
version = "0.24.0"
44
publish = true
55
authors.workspace = true
66
description.workspace = true

0 commit comments

Comments
 (0)