Skip to content

Commit

Permalink
release(crates): v0.48.0 (#8686)
Browse files Browse the repository at this point in the history
## [0.48.0] - 2025-01-24

- 54d0fac span: [**BREAKING**] Remove `PartialEq` impl for `&Atom`
(#8642) (overlookmotel)

### Features

- 2a2ad53 allocator: Add `Allocator::capacity` and `used_bytes` methods
(#8621) (overlookmotel)
- 6801c81 allocator: Add `Allocator::new` and `with_capacity` methods
(#8620) (overlookmotel)
- 99607d3 codegen: Print comments in `TSTypeLiteral` (#8679) (Boshen)
- 4ae568e linter: Add DiagnosticResult to the Reporters for receiving a
sub part result (#8666) (Alexander S.)
- 343690e minifier: Replace `Number.*_SAFE_INTEGER`/`Number.EPSILON`
(#8682) (sapphi-red)
- 0c5bb30 minifier: Replace
`Number.POSITIVE_INFINITY`/`Number.NEGATIVE_INFINITY`/`Number.NaN`
(#8681) (sapphi-red)
- 835b258 minifier: Compress `typeof foo === 'object' && foo !== null`
to `typeof foo == 'object' && !!foo` (#8638) (sapphi-red)
- 2bcbed2 minifier: Compress `(a = b) === null || a === undefined` to
`(a = b) == null` (#8637) (sapphi-red)

### Bug Fixes

- 40316af linter: Fix github `endColumn` output (#8647) (Alexander S.)
- 883d25b minifier: Keep esm in dce (#8677) (Boshen)
- 878ce10 minifier: `void 0` equals to `undefined` (#8673) (Boshen)
- ba201a6 minifier: Remove "non esbuild optimizations" which is
incorrect (#8668) (Boshen)
- 8c8b5fa minifier: Avoid minifing `String(a)` into `"" + a` for symbols
(#8612) (翠 / green)
- 4ff6e85 minifier: Remove expression statement `void 0` (#8602)
(Boshen)
- 93d643e minifier: Keep side effects when folding const conditional
exprs (#8591) (camc314)
- 178c232 parser: Parse `intrinsic` TS keyword (#8627) (Kevin Deng 三咲智子)
- 48717ab parser: Parse `true` as `TSLiteralType` (#8626) (Kevin Deng
三咲智子)
- d1c5dc4 semantic: Fix const assertions in `UnresolvedReferencesStack`
(#8653) (overlookmotel)

### Performance

- 787aaad allocator: Make `String` non-drop (#8617) (overlookmotel)
- d966e0a codegen: Do not check for comments if turned off (#8598)
(Boshen)
- 3fa87ff lexer: Peak 2 bytes after `!` (#8662) (Boshen)
- 9953ac7 minifier: Add `LatePeepholeOptimizations` (#8651) (Boshen)
- 00dc63f minifier: Only substitute typed array constructor once (#8649)
(Boshen)
- 3e19e4e minifier: Remove the useless empty statement removal code in
statement fusion (#8646) (Boshen)
- 5b3c412 minifier: Only run optimizations on local changes (#8644)
(Boshen)

### Documentation

- c1d243b allocator: Improve docs for `Allocator` (#8623)
(overlookmotel)
- 01a5e5d allocator: Improve docs for `HashMap` (#8616) (overlookmotel)
- 87568a1 allocator: Reformat docs (#8615) (overlookmotel)
- 3be0392 lexer: Fix doc comment (#8664) (overlookmotel)
- 5029547 semantic: Fix and reformat doc comments (#8652)
(overlookmotel)

### Refactor

- ae8db53 allocator: Move `Allocator` into own module (#8656)
(overlookmotel)
- 0f85bc6 allocator: Reduce repeat code to prevent `Drop` types in arena
(#8655) (overlookmotel)
- de76eb1 allocator: Reorder `Box` methods (#8654) (overlookmotel)
- 997859c ast: Align `#[estree(via)]` behavior (#8599) (sapphi-red)
- db863a3 codegen: Use `Stack` for `binary_expr_stack` (#8663) (Boshen)
- 8cce69a codegen: Remove `match_member_expression` (#8597) (Boshen)
- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen)
- e66da9f isolated_declarations, linter, minifier, prettier, semantic,
transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643)
(overlookmotel)
- 23b49a6 linter: Use `cow_to_ascii_lowercase` instead
`cow_to_lowercase` (#8678) (Boshen)
- ce2b9da minifier: Remove `wrap_to_avoid_ambiguous_else` (#8676)
(Boshen)
- 75a579b minifier: Clean up
`has_no_side_effect_for_evaluation_same_target` (#8675) (Boshen)
- 1bb2539 minifier: Move more code into `minimize_conditions` local loop
(#8671) (Boshen)
- 13e4a45 minifier: Move conditional assignment to `minimize_conditions`
(#8669) (Boshen)
- ae895d8 minifier: Use `NonEmptyStack` for function stack (#8661)
(Boshen)
- 3802d28 minifier: Clean up `try_minimize_conditional` (#8660) (Boshen)
- dcc1f2b minifier: Rename `ast_passes` to `peephole` (#8635) (Boshen)
- 52458de minifier: Remove unused code and traits (#8632) (Boshen)
- 6f95cd5 minifier: Remove all the unnecessary fake ast passes (#8618)
(Boshen)
- 712cae0 minifier: Run the compressor on all test cases (#8604)
(Boshen)
- 864b8ef parser: Shorten code (#8640) (overlookmotel)
- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel)
- 20f52b1 span: Remove unnecessary lifetimes on `Atom` impls (#8639)
(overlookmotel)
- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer)
- a730f99 transformer: Move `create_prototype_member` to utils module
(#8657) (Dunqing)
- 61d96fd transformer/class-properties: Correct comments (#8636)
(overlookmotel)

### Testing

- 39dbd2d codegen: Fix snapshot file (#8685) (Boshen)
- d9f5e7f minifier: Enable passed esbuild tests (Boshen)

Co-authored-by: Boshen <[email protected]>
  • Loading branch information
oxc-bot and Boshen authored Jan 24, 2025
1 parent 233dc07 commit 8a72b8e
Show file tree
Hide file tree
Showing 45 changed files with 290 additions and 74 deletions.
46 changes: 23 additions & 23 deletions Cargo.lock

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

46 changes: 23 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME

[workspace.dependencies]
# publish = true
oxc = { version = "0.47.1", path = "crates/oxc" }
oxc_allocator = { version = "0.47.1", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.47.1", path = "crates/oxc_ast" }
oxc_ast_macros = { version = "0.47.1", path = "crates/oxc_ast_macros" }
oxc_cfg = { version = "0.47.1", path = "crates/oxc_cfg" }
oxc_codegen = { version = "0.47.1", path = "crates/oxc_codegen" }
oxc_data_structures = { version = "0.47.1", path = "crates/oxc_data_structures" }
oxc_diagnostics = { version = "0.47.1", path = "crates/oxc_diagnostics" }
oxc_ecmascript = { version = "0.47.1", path = "crates/oxc_ecmascript" }
oxc_estree = { version = "0.47.1", path = "crates/oxc_estree" }
oxc_isolated_declarations = { version = "0.47.1", path = "crates/oxc_isolated_declarations" }
oxc_mangler = { version = "0.47.1", path = "crates/oxc_mangler" }
oxc_minifier = { version = "0.47.1", path = "crates/oxc_minifier" }
oxc_napi = { version = "0.47.1", path = "crates/oxc_napi" }
oxc_parser = { version = "0.47.1", path = "crates/oxc_parser" }
oxc_parser_napi = { version = "0.47.1", path = "napi/parser" }
oxc_regular_expression = { version = "0.47.1", path = "crates/oxc_regular_expression" }
oxc_semantic = { version = "0.47.1", path = "crates/oxc_semantic" }
oxc_span = { version = "0.47.1", path = "crates/oxc_span" }
oxc_syntax = { version = "0.47.1", path = "crates/oxc_syntax" }
oxc_transform_napi = { version = "0.47.1", path = "napi/transform" }
oxc_transformer = { version = "0.47.1", path = "crates/oxc_transformer" }
oxc_traverse = { version = "0.47.1", path = "crates/oxc_traverse" }
oxc = { version = "0.48.0", path = "crates/oxc" }
oxc_allocator = { version = "0.48.0", path = "crates/oxc_allocator" }
oxc_ast = { version = "0.48.0", path = "crates/oxc_ast" }
oxc_ast_macros = { version = "0.48.0", path = "crates/oxc_ast_macros" }
oxc_cfg = { version = "0.48.0", path = "crates/oxc_cfg" }
oxc_codegen = { version = "0.48.0", path = "crates/oxc_codegen" }
oxc_data_structures = { version = "0.48.0", path = "crates/oxc_data_structures" }
oxc_diagnostics = { version = "0.48.0", path = "crates/oxc_diagnostics" }
oxc_ecmascript = { version = "0.48.0", path = "crates/oxc_ecmascript" }
oxc_estree = { version = "0.48.0", path = "crates/oxc_estree" }
oxc_isolated_declarations = { version = "0.48.0", path = "crates/oxc_isolated_declarations" }
oxc_mangler = { version = "0.48.0", path = "crates/oxc_mangler" }
oxc_minifier = { version = "0.48.0", path = "crates/oxc_minifier" }
oxc_napi = { version = "0.48.0", path = "crates/oxc_napi" }
oxc_parser = { version = "0.48.0", path = "crates/oxc_parser" }
oxc_parser_napi = { version = "0.48.0", path = "napi/parser" }
oxc_regular_expression = { version = "0.48.0", path = "crates/oxc_regular_expression" }
oxc_semantic = { version = "0.48.0", path = "crates/oxc_semantic" }
oxc_span = { version = "0.48.0", path = "crates/oxc_span" }
oxc_syntax = { version = "0.48.0", path = "crates/oxc_syntax" }
oxc_transform_napi = { version = "0.48.0", path = "napi/transform" }
oxc_transformer = { version = "0.48.0", path = "crates/oxc_transformer" }
oxc_traverse = { version = "0.48.0", path = "crates/oxc_traverse" }

# publish = false
oxc_linter = { path = "crates/oxc_linter" }
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.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
23 changes: 23 additions & 0 deletions crates/oxc_allocator/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.48.0] - 2025-01-24

### Features

- 2a2ad53 allocator: Add `Allocator::capacity` and `used_bytes` methods (#8621) (overlookmotel)
- 6801c81 allocator: Add `Allocator::new` and `with_capacity` methods (#8620) (overlookmotel)

### Performance

- 787aaad allocator: Make `String` non-drop (#8617) (overlookmotel)

### Documentation

- c1d243b allocator: Improve docs for `Allocator` (#8623) (overlookmotel)
- 01a5e5d allocator: Improve docs for `HashMap` (#8616) (overlookmotel)
- 87568a1 allocator: Reformat docs (#8615) (overlookmotel)

### Refactor

- ae8db53 allocator: Move `Allocator` into own module (#8656) (overlookmotel)
- 0f85bc6 allocator: Reduce repeat code to prevent `Drop` types in arena (#8655) (overlookmotel)
- de76eb1 allocator: Reorder `Box` methods (#8654) (overlookmotel)

## [0.47.0] - 2025-01-18

- fae4cd2 allocator: [**BREAKING**] Remove `Vec::into_string` (#8571) (overlookmotel)
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.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
7 changes: 7 additions & 0 deletions crates/oxc_ast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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.48.0] - 2025-01-24

### Refactor

- 997859c ast: Align `#[estree(via)]` behavior (#8599) (sapphi-red)
- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer)

## [0.47.0] - 2025-01-18

- 19d3677 ast: [**BREAKING**] Always return `Array<ImportDeclarationSpecifier>` for `ImportDeclaration.specifiers` (#8560) (sapphi-red)
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.47.1"
version = "0.48.0"
authors.workspace = true
categories.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.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
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.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
21 changes: 21 additions & 0 deletions crates/oxc_codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ 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.48.0] - 2025-01-24

### Features

- 99607d3 codegen: Print comments in `TSTypeLiteral` (#8679) (Boshen)

### Performance

- d966e0a codegen: Do not check for comments if turned off (#8598) (Boshen)

### Refactor

- db863a3 codegen: Use `Stack` for `binary_expr_stack` (#8663) (Boshen)
- 8cce69a codegen: Remove `match_member_expression` (#8597) (Boshen)
- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen)
- 23b49a6 linter: Use `cow_to_ascii_lowercase` instead `cow_to_lowercase` (#8678) (Boshen)

### Testing

- 39dbd2d codegen: Fix snapshot file (#8685) (Boshen)

## [0.47.0] - 2025-01-18

### Bug Fixes
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.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_data_structures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_data_structures"
version = "0.47.1"
version = "0.48.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
Loading

0 comments on commit 8a72b8e

Please sign in to comment.