Skip to content

Commit 3576318

Browse files
oxc-botBoshen
andauthored
release(crates): v0.51.0 (#9135)
## [0.51.0] - 2025-02-15 - 21a9476 ast: [**BREAKING**] Remove `TSLiteral::RegExpLiteral` (#9056) (Dunqing) - 9091387 ast: [**BREAKING**] Remove `TSType::TSQualifiedName` (#9051) (Dunqing) ### Features - f74d462 ast_tools: Introduce meta types (#9117) (overlookmotel) - 36c8640 ecmascript: Support more string concatenation (#9121) (sapphi-red) - 6936b08 ecmascript: Fold `typeof` with ValueType information (#9086) (sapphi-red) - b25b84b minifier: Substitute redundant assignment target bindings (#9096) (camchenry) - 125d610 minifier: Fold String::charAt / String::charCodeAt more precisely (#9082) (sapphi-red) - 237ffba minifier: Fold bitwise binary expressions with negative BigInts (#9081) (sapphi-red) - 24830e6 minifier: Fold `a + 'a' + 1` to `a + 'a1'` (#9080) (sapphi-red) - b5eb6e5 minifier: Improve `remove_unused_expression` (#9071) (Boshen) - fef82ff transformer/helper-loader: Replace `@babel/runtime` with `@oxc-project/runtime` (#9059) (Dunqing) ### Bug Fixes - 38f81af ast/estree: Order fields same as Acorn (#9128) (overlookmotel) - 67f8932 ast/estree: `CatchParameter` do not include `type` and `Span` twice (#9125) (overlookmotel) - 1b02fe0 ast/estree: `FormalParameter` do not include `Span` twice (#9124) (overlookmotel) - d3b5fb0 ast/estree: Fix TS type for `AssignmentTargetPropertyIdentifier` (#9092) (overlookmotel) - d8d80a9 ast/estree: Fix TS types for `BigIntLiteral` and `RegExpLiteral` (#9091) (overlookmotel) - d9684af codegen: Fix missing StringLiteral sourcemap (#9064) (hi-ogawa) - eb7cd62 ecmascript: To_number for shadowed undefined (#9106) (sapphi-red) - 8cbdf00 ecmascript: To_boolean for shadowed undefined (#9105) (sapphi-red) - 17c745c ecmascript: To_string for object with toString (#9104) (sapphi-red) - cfc71f9 ecmascript: To_string for shadowed undefined (#9103) (sapphi-red) - 2ab2a8f ecmascript: Handle shadowed global variables in `ValueType` (#9085) (sapphi-red) - bc64c9d lexer: Fix decoding lone `\r` in template literals (#9066) (overlookmotel) - 2fd1589 minifier: Compress computed string literals in method/property definitions (#9126) (camchenry) - 0937a55 napi/parser: Utf16 span for errors (#9112) (hi-ogawa) - 15f23f1 napi/parser: Utf16 span for module record (#9093) (hi-ogawa) - 9edfb1d napi/parser: Fix unicode comment panic (#9084) (hi-ogawa) - 5f15605 npm/runtime: Incorrect file paths in `exports` (#9069) (Dunqing) - b8278d8 parser: Parse `let _: null` as `TSNullKeyword` (#9133) (Boshen) ### Performance - af59945 napi/parser: Do not convert comment spans twice (#9087) (overlookmotel) ### Documentation - 896d770 ast: Add missing docs and fix broken code for assignment targets (#9095) (camchenry) ### Refactor - 08b2d80 ast/estree: Define TS types for extra fields on converters (#9118) (overlookmotel) - 6c5a435 ast/estree: Define types for `#[estree(add_fields)]` converters (#9116) (overlookmotel) - 8bd6eef ecmascript: Merge constant evaluation logics (#9120) (sapphi-red) - b164072 ecmascript: Extract to_numeric (#9111) (sapphi-red) - fc53cdd ecmascript: Generalize ToPrimitive (#9109) (sapphi-red) - d951390 ecmascript: Use value_type in to_primitive (#9108) (sapphi-red) - 8f79012 ecmascript: Pass IsGlobalReference to DetermineValueType instead of extending it (#9107) (sapphi-red) - db1744c ecmascript: Remove "constant_evaluation" / "side_effects" features (#9114) (sapphi-red) - 329de94 ecmascript: Extract ToPrimitive (#9102) (sapphi-red) - d670ec7 ecmascript: Pass IsGlobalReference to MayHaveSideEffects instead of extending it (#9101) (sapphi-red) - f4e2d4e ecmascript: Allow IsGlobalReference to return None (#9100) (sapphi-red) - 29be94d minifier: Inline more minification methods (#9088) (Boshen) - 80f719e minifier: Clean up minimize_statements.rs (#9076) (Boshen) - d5edde0 minifier: Minimize `if (!foo) foo = bar;` -> `foo ||= bar` in the same AST pass (#9075) (Boshen) ### Styling - 23f53c0 syntax: Name trait method param without underscore (#9119) (overlookmotel) ### Testing - eaff3d9 napi/parser: Split tests for `convertSpanUtf16` (#9113) (hi-ogawa) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent df3eef8 commit 3576318

File tree

44 files changed

+274
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+274
-75
lines changed

Cargo.lock

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

Cargo.toml

+23-23
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME
7979

8080
[workspace.dependencies]
8181
# publish = true
82-
oxc = { version = "0.50.0", path = "crates/oxc" }
83-
oxc_allocator = { version = "0.50.0", path = "crates/oxc_allocator" }
84-
oxc_ast = { version = "0.50.0", path = "crates/oxc_ast" }
85-
oxc_ast_macros = { version = "0.50.0", path = "crates/oxc_ast_macros" }
86-
oxc_cfg = { version = "0.50.0", path = "crates/oxc_cfg" }
87-
oxc_codegen = { version = "0.50.0", path = "crates/oxc_codegen" }
88-
oxc_data_structures = { version = "0.50.0", path = "crates/oxc_data_structures" }
89-
oxc_diagnostics = { version = "0.50.0", path = "crates/oxc_diagnostics" }
90-
oxc_ecmascript = { version = "0.50.0", path = "crates/oxc_ecmascript" }
91-
oxc_estree = { version = "0.50.0", path = "crates/oxc_estree" }
92-
oxc_isolated_declarations = { version = "0.50.0", path = "crates/oxc_isolated_declarations" }
93-
oxc_mangler = { version = "0.50.0", path = "crates/oxc_mangler" }
94-
oxc_minifier = { version = "0.50.0", path = "crates/oxc_minifier" }
95-
oxc_napi = { version = "0.50.0", path = "crates/oxc_napi" }
96-
oxc_parser = { version = "0.50.0", path = "crates/oxc_parser" }
97-
oxc_parser_napi = { version = "0.50.0", path = "napi/parser" }
98-
oxc_regular_expression = { version = "0.50.0", path = "crates/oxc_regular_expression" }
99-
oxc_semantic = { version = "0.50.0", path = "crates/oxc_semantic" }
100-
oxc_span = { version = "0.50.0", path = "crates/oxc_span" }
101-
oxc_syntax = { version = "0.50.0", path = "crates/oxc_syntax" }
102-
oxc_transform_napi = { version = "0.50.0", path = "napi/transform" }
103-
oxc_transformer = { version = "0.50.0", path = "crates/oxc_transformer" }
104-
oxc_traverse = { version = "0.50.0", path = "crates/oxc_traverse" }
82+
oxc = { version = "0.51.0", path = "crates/oxc" }
83+
oxc_allocator = { version = "0.51.0", path = "crates/oxc_allocator" }
84+
oxc_ast = { version = "0.51.0", path = "crates/oxc_ast" }
85+
oxc_ast_macros = { version = "0.51.0", path = "crates/oxc_ast_macros" }
86+
oxc_cfg = { version = "0.51.0", path = "crates/oxc_cfg" }
87+
oxc_codegen = { version = "0.51.0", path = "crates/oxc_codegen" }
88+
oxc_data_structures = { version = "0.51.0", path = "crates/oxc_data_structures" }
89+
oxc_diagnostics = { version = "0.51.0", path = "crates/oxc_diagnostics" }
90+
oxc_ecmascript = { version = "0.51.0", path = "crates/oxc_ecmascript" }
91+
oxc_estree = { version = "0.51.0", path = "crates/oxc_estree" }
92+
oxc_isolated_declarations = { version = "0.51.0", path = "crates/oxc_isolated_declarations" }
93+
oxc_mangler = { version = "0.51.0", path = "crates/oxc_mangler" }
94+
oxc_minifier = { version = "0.51.0", path = "crates/oxc_minifier" }
95+
oxc_napi = { version = "0.51.0", path = "crates/oxc_napi" }
96+
oxc_parser = { version = "0.51.0", path = "crates/oxc_parser" }
97+
oxc_parser_napi = { version = "0.51.0", path = "napi/parser" }
98+
oxc_regular_expression = { version = "0.51.0", path = "crates/oxc_regular_expression" }
99+
oxc_semantic = { version = "0.51.0", path = "crates/oxc_semantic" }
100+
oxc_span = { version = "0.51.0", path = "crates/oxc_span" }
101+
oxc_syntax = { version = "0.51.0", path = "crates/oxc_syntax" }
102+
oxc_transform_napi = { version = "0.51.0", path = "napi/transform" }
103+
oxc_transformer = { version = "0.51.0", path = "crates/oxc_transformer" }
104+
oxc_traverse = { version = "0.51.0", path = "crates/oxc_traverse" }
105105

106106
# publish = false
107107
oxc_linter = { path = "crates/oxc_linter" }

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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_ast/CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ 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.51.0] - 2025-02-15
8+
9+
- 21a9476 ast: [**BREAKING**] Remove `TSLiteral::RegExpLiteral` (#9056) (Dunqing)
10+
11+
- 9091387 ast: [**BREAKING**] Remove `TSType::TSQualifiedName` (#9051) (Dunqing)
12+
13+
### Features
14+
15+
16+
### Bug Fixes
17+
18+
- 38f81af ast/estree: Order fields same as Acorn (#9128) (overlookmotel)
19+
- 67f8932 ast/estree: `CatchParameter` do not include `type` and `Span` twice (#9125) (overlookmotel)
20+
- 1b02fe0 ast/estree: `FormalParameter` do not include `Span` twice (#9124) (overlookmotel)
21+
- d3b5fb0 ast/estree: Fix TS type for `AssignmentTargetPropertyIdentifier` (#9092) (overlookmotel)
22+
- d8d80a9 ast/estree: Fix TS types for `BigIntLiteral` and `RegExpLiteral` (#9091) (overlookmotel)
23+
- 15f23f1 napi/parser: Utf16 span for module record (#9093) (hi-ogawa)
24+
- 9edfb1d napi/parser: Fix unicode comment panic (#9084) (hi-ogawa)
25+
26+
### Documentation
27+
28+
- 896d770 ast: Add missing docs and fix broken code for assignment targets (#9095) (camchenry)
29+
30+
### Refactor
31+
32+
- 08b2d80 ast/estree: Define TS types for extra fields on converters (#9118) (overlookmotel)
33+
- 6c5a435 ast/estree: Define types for `#[estree(add_fields)]` converters (#9116) (overlookmotel)
34+
735
## [0.50.0] - 2025-02-12
836

937
- d9189f1 ast: [**BREAKING**] Remove `PrivateInExpression::operator` field (#9041) (overlookmotel)

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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_ast_macros/CHANGELOG.md

+6
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.51.0] - 2025-02-15
8+
9+
### Features
10+
11+
- f74d462 ast_tools: Introduce meta types (#9117) (overlookmotel)
12+
713
## [0.49.0] - 2025-02-10
814

915
- b7ff7e1 span: [**BREAKING**] Export `ContentEq` trait from root of `oxc_span` crate (#8869) (overlookmotel)

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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_codegen/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ 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.51.0] - 2025-02-15
8+
9+
- 21a9476 ast: [**BREAKING**] Remove `TSLiteral::RegExpLiteral` (#9056) (Dunqing)
10+
11+
- 9091387 ast: [**BREAKING**] Remove `TSType::TSQualifiedName` (#9051) (Dunqing)
12+
13+
### Features
14+
15+
16+
### Bug Fixes
17+
18+
- d9684af codegen: Fix missing StringLiteral sourcemap (#9064) (hi-ogawa)
19+
720
## [0.49.0] - 2025-02-10
821

922
### 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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_data_structures/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxc_data_structures"
3-
version = "0.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

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.50.0"
3+
version = "0.51.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

0 commit comments

Comments
 (0)