Skip to content

Commit 2fb08b9

Browse files
oxc-botBoshen
andauthored
release(crates): v0.48.1 (#8738)
## [0.48.1] - 2025-01-26 ### Features - b7f13e6 ast: Implement utf8 to utf16 span converter (#8687) (Boshen) - 6589c3b mangler: Reuse variable names (#8562) (翠 / green) - 29bd215 minifier: Minimize `Infinity.toString(radix)` to `'Infinity'` (#8732) (Boshen) - e0117db minifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red) - 9e32f55 minifier: Evaluate `Math.sqrt` and `Math.cbrt` (#8731) (sapphi-red) - 360d49e minifier: Replace `Math.pow` with `**` (#8730) (sapphi-red) - 2e9a560 minifier: `NaN.toString(radix)` is always `NaN` (#8727) (Boshen) - cbe0e82 minifier: Minimize `foo(...[])` -> `foo()` (#8726) (Boshen) - e9fb5fe minifier: Dce pure expressions such as `new Map()` (#8725) (Boshen) ### Bug Fixes - 0944758 codegen: Remove parens from `new (import(''), function() {})` (#8707) (Boshen) - 33de70a mangler: Handle cases where a var is declared in a block scope (#8706) (翠 / green) - d982cdb minifier: `Unknown.fromCharCode` should not be treated as `String.fromCharCode` (#8709) (sapphi-red) - e7ab96c transformer/jsx: Incorrect `isStaticChildren` argument for `Fragment` with multiple children (#8713) (Dunqing) - 3e509e1 transformer/typescript: Enum merging when same name declared in outer scope (#8691) (branchseer) ### Performance - dc0b0f2 manger: Remove useless `tmp_bindings` (#8735) (Dunqing) - e472ced mangler: Optimize handling of collecting lived scope ids (#8724) (Dunqing) - 8587965 minifier: Normalize `undefined` to `void 0` before everything else (#8699) (Boshen) ### Refactor - 58002e2 ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen) - 10e5920 linter: Move finishing default diagnostic message to `GraphicalReporter` (#8683) (Sysix) - 52a37d0 mangler: Simplify initialization of `slots` (#8734) (Dunqing) - 6bc906c minifier: Allow mutating arguments in methods called from `try_fold_known_string_methods` (#8729) (sapphi-red) - bf8be23 minifier: Use `Ctx` (#8716) (Boshen) - 0af0267 minifier: Side effect detection needs symbols resolution (#8715) (Boshen) - 32e0e47 minifier: Clean up `Normalize` (#8700) (Boshen) - c792068 semantic: Simplify `ScopeTree::iter_bindings` (#8723) (Dunqing) ### Testing - 03229c5 minifier: Fix broken tests (#8722) (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent 29bd215 commit 2fb08b9

File tree

39 files changed

+181
-74
lines changed

39 files changed

+181
-74
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.48.0", path = "crates/oxc" }
83-
oxc_allocator = { version = "0.48.0", path = "crates/oxc_allocator" }
84-
oxc_ast = { version = "0.48.0", path = "crates/oxc_ast" }
85-
oxc_ast_macros = { version = "0.48.0", path = "crates/oxc_ast_macros" }
86-
oxc_cfg = { version = "0.48.0", path = "crates/oxc_cfg" }
87-
oxc_codegen = { version = "0.48.0", path = "crates/oxc_codegen" }
88-
oxc_data_structures = { version = "0.48.0", path = "crates/oxc_data_structures" }
89-
oxc_diagnostics = { version = "0.48.0", path = "crates/oxc_diagnostics" }
90-
oxc_ecmascript = { version = "0.48.0", path = "crates/oxc_ecmascript" }
91-
oxc_estree = { version = "0.48.0", path = "crates/oxc_estree" }
92-
oxc_isolated_declarations = { version = "0.48.0", path = "crates/oxc_isolated_declarations" }
93-
oxc_mangler = { version = "0.48.0", path = "crates/oxc_mangler" }
94-
oxc_minifier = { version = "0.48.0", path = "crates/oxc_minifier" }
95-
oxc_napi = { version = "0.48.0", path = "crates/oxc_napi" }
96-
oxc_parser = { version = "0.48.0", path = "crates/oxc_parser" }
97-
oxc_parser_napi = { version = "0.48.0", path = "napi/parser" }
98-
oxc_regular_expression = { version = "0.48.0", path = "crates/oxc_regular_expression" }
99-
oxc_semantic = { version = "0.48.0", path = "crates/oxc_semantic" }
100-
oxc_span = { version = "0.48.0", path = "crates/oxc_span" }
101-
oxc_syntax = { version = "0.48.0", path = "crates/oxc_syntax" }
102-
oxc_transform_napi = { version = "0.48.0", path = "napi/transform" }
103-
oxc_transformer = { version = "0.48.0", path = "crates/oxc_transformer" }
104-
oxc_traverse = { version = "0.48.0", path = "crates/oxc_traverse" }
82+
oxc = { version = "0.48.1", path = "crates/oxc" }
83+
oxc_allocator = { version = "0.48.1", path = "crates/oxc_allocator" }
84+
oxc_ast = { version = "0.48.1", path = "crates/oxc_ast" }
85+
oxc_ast_macros = { version = "0.48.1", path = "crates/oxc_ast_macros" }
86+
oxc_cfg = { version = "0.48.1", path = "crates/oxc_cfg" }
87+
oxc_codegen = { version = "0.48.1", path = "crates/oxc_codegen" }
88+
oxc_data_structures = { version = "0.48.1", path = "crates/oxc_data_structures" }
89+
oxc_diagnostics = { version = "0.48.1", path = "crates/oxc_diagnostics" }
90+
oxc_ecmascript = { version = "0.48.1", path = "crates/oxc_ecmascript" }
91+
oxc_estree = { version = "0.48.1", path = "crates/oxc_estree" }
92+
oxc_isolated_declarations = { version = "0.48.1", path = "crates/oxc_isolated_declarations" }
93+
oxc_mangler = { version = "0.48.1", path = "crates/oxc_mangler" }
94+
oxc_minifier = { version = "0.48.1", path = "crates/oxc_minifier" }
95+
oxc_napi = { version = "0.48.1", path = "crates/oxc_napi" }
96+
oxc_parser = { version = "0.48.1", path = "crates/oxc_parser" }
97+
oxc_parser_napi = { version = "0.48.1", path = "napi/parser" }
98+
oxc_regular_expression = { version = "0.48.1", path = "crates/oxc_regular_expression" }
99+
oxc_semantic = { version = "0.48.1", path = "crates/oxc_semantic" }
100+
oxc_span = { version = "0.48.1", path = "crates/oxc_span" }
101+
oxc_syntax = { version = "0.48.1", path = "crates/oxc_syntax" }
102+
oxc_transform_napi = { version = "0.48.1", path = "napi/transform" }
103+
oxc_transformer = { version = "0.48.1", path = "crates/oxc_transformer" }
104+
oxc_traverse = { version = "0.48.1", 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.48.0"
3+
version = "0.48.1"
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.48.0"
3+
version = "0.48.1"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_ast/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.48.1] - 2025-01-26
8+
9+
### Features
10+
11+
- b7f13e6 ast: Implement utf8 to utf16 span converter (#8687) (Boshen)
12+
- e0117db minifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red)
13+
714
## [0.48.0] - 2025-01-24
815

916
### Refactor

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

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

crates/oxc_codegen/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.48.1] - 2025-01-26
8+
9+
### Bug Fixes
10+
11+
- 0944758 codegen: Remove parens from `new (import(''), function() {})` (#8707) (Boshen)
12+
713
## [0.48.0] - 2025-01-24
814

915
### 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.48.0"
3+
version = "0.48.1"
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.48.0"
3+
version = "0.48.1"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_diagnostics/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.48.1] - 2025-01-26
8+
9+
### Refactor
10+
11+
- 10e5920 linter: Move finishing default diagnostic message to `GraphicalReporter` (#8683) (Sysix)
12+
713
## [0.48.0] - 2025-01-24
814

915
### Features

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

crates/oxc_ecmascript/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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.48.1] - 2025-01-26
8+
9+
### Refactor
10+
11+
- 58002e2 ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen)
12+
- 0af0267 minifier: Side effect detection needs symbols resolution (#8715) (Boshen)
13+
14+
### Testing
15+
16+
- 03229c5 minifier: Fix broken tests (#8722) (Boshen)
17+
718
## [0.48.0] - 2025-01-24
819

920
### Bug Fixes

crates/oxc_ecmascript/Cargo.toml

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

crates/oxc_estree/Cargo.toml

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

0 commit comments

Comments
 (0)