Skip to content

Commit

Permalink
Release crates v0.21.0 (#4344)
Browse files Browse the repository at this point in the history
## [0.21.0] - 2024-07-18

- d7ab0b8 semantic: [**BREAKING**] Simplify node creation (#4226)
(lucab)

### Features

- af4dc01 ast: Align ts ast scope with typescript (#4253) (Dunqing)
- 83c2c62 codegen: Add option for choosing quotes; remove slow
`choose_quot` method (#4219) (Boshen)
- 5d17675 mangler: Add debug mode (#4314) (Boshen)
- e3e663b mangler: Initialize crate and integrate into minifier (#4197)
(Boshen)
- c818472 minifier: Dce conditional expression `&&` or `||` (#4190)
(Boshen)
- 8a190eb oxc: Export `oxc_mangler` (Boshen)
- 20cdb1f semantic: Align class scope with typescript (#4195) (Dunqing)
- 92ee774 semantic: Add `ScopeFlags::CatchClause` for use in CatchClause
(#4205) (Dunqing)
- 205c259 sourcemap: Support SourceMapBuilder#token_chunks (#4220)
(underfin)
- 7eb960d transformer: Decode xml character entity `&#xhhhh` and
`&#nnnn;` (#4235) (Boshen)

### Bug Fixes

- bf3d8d3 codegen: Print annotation comment inside parens for new and
call expressions (#4290) (Boshen)
- 084ab76 codegen: Use `ryu-js` for f64 to string (Boshen)
- e167ef7 codegen: Print parenthesis properly (#4245) (Boshen)
- c65198f codegen: Choose the right quote for jsx attribute string
(#4236) (Boshen)
- be82c28 codegen: Print `JSXAttributeValue::StringLiteral` directly
(#4231) (Boshen)
- 3df9e69 mangler: No shorthand `BindingProperty`; handle var hoisting
and export variables (#4319) (Boshen)
- f144082 minifier: RemoveDeadCode should visit nested expression
(#4268) (underfin)
- 66b455a oxc_codegen: Avoid print same pure comments multiple time
(#4230) (IWANABETHATGUY)
- 9a87e41 parser: Avoid crashing on invalid const modifier (#4267)
(lucab)
- 641a78b parser: Fix tests for number parsing (#4254) (overlookmotel)
- 9badac0 semantic: Avoid var hosting insert the var variable to the
`CatchClause` scope (#4337) (Dunqing)
- 95e15b6 semantic: Incorrect resolve references for `ExportSpecifier`
(#4320) (Dunqing)
- c362bf7 semantic: Incorrect resolve references for
`TSInterfaceHeritage` (#4311) (Dunqing)
- 351ecf2 semantic: Incorrect resolve references for `TSTypeQuery`
(#4310) (Dunqing)
- 1108f2a semantic: Resolve references to the incorrect symbol (#4280)
(Dunqing)
- 22d56bd semantic: Do not resolve references after `FormalParameters`
in TS type (#4241) (overlookmotel)- 1c117eb Avoid print extra semicolon
after accessor property (#4199) (IWANABETHATGUY)

### Performance

- a8dc4f3 parser: Speed up parsing numbers with `_` separators (#4259)
(overlookmotel)
- b94540d parser: Speed up parsing octal literals (#4258)
(overlookmotel)
- a7b328c parser: Faster parsing decimal numbers (#4257) (overlookmotel)
- f9d3f2e semantic: Inline ast record functions (#4272) (overlookmotel)
- 8fad7db semantic: Reduce `AstNodeId` to `u32` (#4264) (overlookmotel)
- 23743db semantic: Do not record ast nodes for cfg if cfg disabled
(#4263) (overlookmotel)
- da69076 semantic: Reduce overhead of cfg recording ast nodes (#4262)
(overlookmotel)
- cb15303 semantic: Reduce memory copies (#4216) (overlookmotel)
- ef4c1f4 semantic: Reduce lookups (#4214) (overlookmotel)
- f23e54f semantic: Recycle unresolved references hash maps (#4213)
(overlookmotel)
- 2602ce2 semantic: Reuse existing map of unresolved refs (#4206)
(lucab)

### Refactor

- 2c7bb9f ast: Pass final `ScopeFlags` into `visit_function` (#4283)
(overlookmotel)
- 3e099fe ast: Move `enter_scope` after `visit_binding_identifier`
(#4246) (Dunqing)
- aab7aaa ast/visit: Fire node events as the outermost one. (#4203)
(rzvxa)
- d1c4be0 codegen: Clean up annotation_comment (Boshen)
- 06197b8 codegen: Separate tests (Boshen)
- aa22073 codegen: Improve print API (#4196) (Boshen)
- c5731a5 semantic: Remove defunct code setting ScopeFlags twice (#4286)
(overlookmotel)
- 16698bc semantic: Move function/class-specific code into specific
visitors (#4278) (overlookmotel)
- ee16668 semantic: Rename function param (#4277) (overlookmotel)
- 25f0771 semantic: Alter syntax of `control_flow!` macro (#4275)
(overlookmotel)
- 639fd48 semantic: Comment why extra CFG enabled check (#4274)
(overlookmotel)
- c418bf5 semantic: Directly record `current_node_id` when adding a
scope (#4265) (Dunqing)
- ace4f1f semantic: Update the order of `visit_function` and `Visit`
fields in the builder to be consistent (#4248) (Dunqing)
- 8bfeabf semantic: Simplify adding `SymbolFlags::Export` (#4249)
(Dunqing)
- dc2b3c4 semantic: Add strict mode in scope flags for class definitions
(#4156) (Dunqing)
- 81ed588 semantic: Convert scope fields to IndexVecs (#4208) (lucab)
- bbe5ded semantic: Set `current_scope_id` to `scope_id` in
`enter_scope` (#4193) (Dunqing)
- 7f1addd semantic: Correct scope in CatchClause (#4192) (Dunqing)
- fc0b17d syntax: Turn the `AstNodeId::dummy` into a constant field.
(#4308) (rzvxa)
- a197e01 transformer/typescript: Remove unnecessary code (#4321)
(Dunqing)
- 1458d81 visit: Add `#[inline]` to empty functions (#4330)
(overlookmotel)

Co-authored-by: Boshen <[email protected]>
  • Loading branch information
github-actions[bot] and Boshen authored Jul 18, 2024
1 parent 1f7ec62 commit 7d75189
Show file tree
Hide file tree
Showing 38 changed files with 295 additions and 63 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,26 @@ cargo_common_metadata = "allow" # TODO: fix this

[workspace.dependencies]
# publish = true
oxc = { version = "0.20.0", path = "crates/oxc" }
oxc_allocator = { version = "0.20.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.20.0", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.20.0", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.20.0", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.20.0", path = "crates/oxc_index" }
oxc_minifier = { version = "0.20.0", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.20.0", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.20.0", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.20.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.20.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.20.0", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.20.0", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.20.0", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.20.0", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.20.0", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.20.0", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.20.0", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.20.0", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.20.0", path = "napi/transform" }
oxc = { version = "0.21.0", path = "crates/oxc" }
oxc_allocator = { version = "0.21.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.21.0", path = "crates/oxc_ast" }
oxc_codegen = { version = "0.21.0", path = "crates/oxc_codegen" }
oxc_diagnostics = { version = "0.21.0", path = "crates/oxc_diagnostics" }
oxc_index = { version = "0.21.0", path = "crates/oxc_index" }
oxc_minifier = { version = "0.21.0", path = "crates/oxc_minifier" }
oxc_mangler = { version = "0.21.0", path = "crates/oxc_mangler" }
oxc_parser = { version = "0.21.0", path = "crates/oxc_parser" }
oxc_semantic = { version = "0.21.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.21.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.21.0", path = "crates/oxc_syntax" }
oxc_transformer = { version = "0.21.0", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.21.0", path = "crates/oxc_sourcemap" }
oxc_ast_macros = { version = "0.21.0", path = "crates/oxc_ast_macros" }
oxc_traverse = { version = "0.21.0", path = "crates/oxc_traverse" }
oxc_module_lexer = { version = "0.21.0", path = "crates/oxc_module_lexer" }
oxc_cfg = { version = "0.21.0", path = "crates/oxc_cfg" }
oxc_isolated_declarations = { version = "0.21.0", path = "crates/oxc_isolated_declarations" }
oxc_transform_napi = { version = "0.21.0", path = "napi/transform" }

# publish = false
oxc_macros = { path = "crates/oxc_macros" }
Expand Down
6 changes: 6 additions & 0 deletions crates/oxc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.21.0] - 2024-07-18

### Features

- 8a190eb oxc: Export `oxc_mangler` (Boshen)

## [0.16.0] - 2024-06-26

### Features
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc"
version = "0.20.0"
version = "0.21.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_allocator"
version = "0.20.0"
version = "0.21.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
22 changes: 22 additions & 0 deletions crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ 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.21.0] - 2024-07-18

### Features

- af4dc01 ast: Align ts ast scope with typescript (#4253) (Dunqing)
- 20cdb1f semantic: Align class scope with typescript (#4195) (Dunqing)
- 92ee774 semantic: Add `ScopeFlags::CatchClause` for use in CatchClause (#4205) (Dunqing)

### Bug Fixes

- e167ef7 codegen: Print parenthesis properly (#4245) (Boshen)
- 1108f2a semantic: Resolve references to the incorrect symbol (#4280) (Dunqing)

### Refactor

- 2c7bb9f ast: Pass final `ScopeFlags` into `visit_function` (#4283) (overlookmotel)
- 3e099fe ast: Move `enter_scope` after `visit_binding_identifier` (#4246) (Dunqing)
- aab7aaa ast/visit: Fire node events as the outermost one. (#4203) (rzvxa)
- ace4f1f semantic: Update the order of `visit_function` and `Visit` fields in the builder to be consistent (#4248) (Dunqing)
- 7f1addd semantic: Correct scope in CatchClause (#4192) (Dunqing)
- 1458d81 visit: Add `#[inline]` to empty functions (#4330) (overlookmotel)

## [0.20.0] - 2024-07-11

- 5731e39 ast: [**BREAKING**] Store span details inside comment struct (#4132) (Luca Bruno)
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_ast"
version = "0.20.0"
version = "0.21.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_ast_macros"
version = "0.20.0"
version = "0.21.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/oxc_cfg/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.21.0] - 2024-07-18

### Refactor

- fc0b17d syntax: Turn the `AstNodeId::dummy` into a constant field. (#4308) (rzvxa)

## [0.20.0] - 2024-07-11

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_cfg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_cfg"
version = "0.20.0"
version = "0.21.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
23 changes: 23 additions & 0 deletions crates/oxc_codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ 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.21.0] - 2024-07-18

### Features

- 83c2c62 codegen: Add option for choosing quotes; remove slow `choose_quot` method (#4219) (Boshen)
- e3e663b mangler: Initialize crate and integrate into minifier (#4197) (Boshen)

### Bug Fixes

- bf3d8d3 codegen: Print annotation comment inside parens for new and call expressions (#4290) (Boshen)
- 084ab76 codegen: Use `ryu-js` for f64 to string (Boshen)
- e167ef7 codegen: Print parenthesis properly (#4245) (Boshen)
- c65198f codegen: Choose the right quote for jsx attribute string (#4236) (Boshen)
- be82c28 codegen: Print `JSXAttributeValue::StringLiteral` directly (#4231) (Boshen)
- 3df9e69 mangler: No shorthand `BindingProperty`; handle var hoisting and export variables (#4319) (Boshen)
- 66b455a oxc_codegen: Avoid print same pure comments multiple time (#4230) (IWANABETHATGUY)- 1c117eb Avoid print extra semicolon after accessor property (#4199) (IWANABETHATGUY)

### Refactor

- d1c4be0 codegen: Clean up annotation_comment (Boshen)
- 06197b8 codegen: Separate tests (Boshen)
- aa22073 codegen: Improve print API (#4196) (Boshen)

## [0.20.0] - 2024-07-11

- 5731e39 ast: [**BREAKING**] Store span details inside comment struct (#4132) (Luca Bruno)
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_codegen"
version = "0.20.0"
version = "0.21.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_diagnostics"
version = "0.20.0"
version = "0.21.0"
authors.workspace = true
description.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_index"
version = "0.20.0"
version = "0.21.0"
publish = true
authors.workspace = true
description.workspace = true
Expand Down
16 changes: 16 additions & 0 deletions crates/oxc_isolated_declarations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ 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.21.0] - 2024-07-18

### Features

- 83c2c62 codegen: Add option for choosing quotes; remove slow `choose_quot` method (#4219) (Boshen)
- 20cdb1f semantic: Align class scope with typescript (#4195) (Dunqing)

### Bug Fixes

- 3df9e69 mangler: No shorthand `BindingProperty`; handle var hoisting and export variables (#4319) (Boshen)

### Refactor

- 2c7bb9f ast: Pass final `ScopeFlags` into `visit_function` (#4283) (overlookmotel)
- ace4f1f semantic: Update the order of `visit_function` and `Visit` fields in the builder to be consistent (#4248) (Dunqing)

## [0.20.0] - 2024-07-11

### Features
Expand Down
Loading

0 comments on commit 7d75189

Please sign in to comment.