Skip to content

Commit 3a8c4a4

Browse files
authored
release(crates): oxc v0.116.0 (#19911)
### 🚀 Features - 733d6dc parser: Report error on `infer` outside conditional type (#19879) (camc314) - c2a42f6 allocator: Add `Vec::into_bump_slice_mut` (#19895) (overlookmotel) - ee4982b parser: Add `VARIANTS` const to `Kind` via `fieldless_enum!` macro (#19877) (overlookmotel) - b3dceae data_structures: Add `fieldless_enum!` macro (#19876) (overlookmotel) - 12b841e parser: Make all `Kind::is_*` methods `const` (#19874) (overlookmotel) - 25c2e25 estree/tokens: Add function to update tokens in place (#19856) (overlookmotel) - f78e6df parser: Add `mutate_tokens` Cargo feature (#19853) (overlookmotel) - 5036bb6 parser: Report error on `for await` in static blocks (#19844) (camc314) - 42bd431 parser: Report error for missing initializer in using decl (#19824) (camc314) - a2f58e5 parser: Report error for `implements` clause in non-ts files (#19820) (Cameron) - b25228a estree: Add `IS_COMPACT` const to `Formatter` trait (#19787) (overlookmotel) - e2a1b79 estree: Expose buffer and formatter of serializers (#19773) (overlookmotel) - 4699498 data_structures: Add `CodeBuffer::print_strs_array` (#19760) (overlookmotel) - 233f947 estree: `oxc_estree` crate export config and formatter types (#19724) (overlookmotel) - 5937a32 semantic: Introduce `symbol_declarations` method (#19609) (camc314) - ea6b796 parser: Add `LexerConfig::TOKENS_METHOD_IS_STATIC` const (#19683) (overlookmotel) - 655c38f semantic: Add "did you mean?" suggestions to undefined name errors (#19102) (copilot-swe-agent) - 9e11dc6 parser,estree,coverage: Collect tokens in parser and convert to ESTree format (#19497) (camc314) - c4a3677 parser: Report error for initializer in ambient context (#19187) (camc314) ### 🐛 Bug Fixes - abc7e19 codegen: Improve parenthesised checks when printing types (#19880) (camc314) - 017de5d parser: Update error code for type annotation in `for...in` statement (#19882) (camc314) - 7682e5a linter/plugins: Decode escapes in identifier tokens (#19838) (overlookmotel) - 06767ed estree/tokens: Convert `this` tokens in `TSTypeName` (#19815) (overlookmotel) - ef798af parser: Use TS8037 for satisfies expression in JS files diagnostic (#19819) (camc314) - 98ea5c5 parser: Use TS8016 for type assertions in JS files diagnostic (#19818) (camc314) - 1710f56 codegen: Remove double indentation for enum inside namespace (#19775) (Dunqing) - 9e4995c codegen: Print type annotation on `CatchParameter` (#19790) (camc314) - 297b2bb codegen: Wrap `TSConditionalType` in parens when necessary (#19788) (camc314) - cec7878 codegen: Print `definite` property on AccessorProperty (#19786) (camc314) - 6f395cf codegen: Print `definite` property on PropertyDefinition (#19785) (camc314) - b749373 codegen: Correctly parenthesise TSArrayType (#19784) (camc314) - 876dc1b codegen: Print object property `this` param (#19783) (camc314) - 93bb861 formatter: Trim trailing whitespace before breaking line (#19740) (leaysgur) - ed17bbf codegen: Print `override` keyword for method and property definitions (#19753) (Dunqing) - 6a59a76 parser: Improve error recovery for private identifiers in property names (#19710) (Boshen) - 3b96f41 codegen: Print comments in JSX expression containers and spread attributes (#19701) (Boshen) - f5694ce estree/tokens: Reverse field order of `regex` object in tokens (#19679) (overlookmotel) - b2b7a55 estree/tokens: Generate tokens for files with BOM (#19535) (overlookmotel) - 50a7514 estree: Fix tokens for JSX (#19524) (overlookmotel) - a35063e minifier: Preserve side effects for meta property url reads (#19668) (Boshen) - 8ad3430 semantic/jsdoc: Handle even-numbered backtick sequences in JSDoc parsing (#19664) (Boshen) ### ⚡ Performance - 05ccf9f linter/plugins: Transfer tokens via raw transfer (#19893) (overlookmotel) - c1bfdcf estree/tokens: Preallocate sufficient space for tokens JSON (#19851) (overlookmotel) - 4b0611a estree/tokens: Introduce `ESTreeTokenConfig` trait (#19842) (overlookmotel) - 81bab90 estree/tokens: Do not JSON-encode keyword, punctuator, etc tokens (#19814) (overlookmotel) - 6260ddd estree/tokens: Do not JSON-encode `this` identifiers (#19813) (overlookmotel) - b378f4a estree/tokens: Do not JSON-encode JSX identifiers (#19812) (overlookmotel) - 5016d92 estree/tokens: Handle regex tokens separately (#19796) (overlookmotel) - 780a68e estree/tokens: Use strings from AST for identifier tokens (#19744) (overlookmotel) - dc9c2e3 estree: Use `CodeBuffer::print_strs_array` to reduce bounds checks (#19766) (overlookmotel) - 845da35 estree: Use `CodeBuffer::print_indent` (#19727) (overlookmotel) - ec88f6a estree/tokens: Serialize tokens while visiting AST (#19726) (overlookmotel) - bc6507f estree/tokens: Serialize with `ESTree` not `serde` (#19725) (overlookmotel) - ec24859 estree/tokens: Do not branch on presence of override twice (#19721) (overlookmotel) - dac14be estree/tokens: Replace hash map with `Vec` (#19718) (overlookmotel) - b9d2443 estree/tokens: Replace multiple hash sets into a single hash map (#19716) (overlookmotel) - 7233548 parser: Remove branches from `finish_next_inner` (#19695) (overlookmotel) - b5d9845 parser: Remove const generic param from `finish_next_inner` (#19684) (overlookmotel) - 8940f66 estree/tokens: Serialize tokens to compact JSON (#19572) (overlookmotel) - 136e39b parser/tokens: Pre-allocate capacity for tokens (#19543) (overlookmotel) - 6a6513c linter/plugins: Use Oxc tokens in plugins (#19498) (camc314) - b3b2d30 parser: Introduce `ParserConfig` (#19637) (overlookmotel) ### 📚 Documentation - b2b7a64 estree/tokens: Correct comment (#19873) (overlookmotel) - 0399311 estree/tokens: Improve comments (#19836) (overlookmotel) - 1b392de minifier: Add `Function.prototype.toString` assumption (#19758) (sapphi-red) - 75c9cd8 parser: Improve doc comments for `ParserConfig` and `LexerConfig` (#19682) (overlookmotel) - 2fa936f README.md: Map npm package links to npmx.dev (#19666) (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent 8ec232e commit 3a8c4a4

File tree

53 files changed

+428
-251
lines changed

Some content is hidden

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

53 files changed

+428
-251
lines changed

Cargo.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -105,38 +105,38 @@ multiple_crate_versions = "allow"
105105

106106
[workspace.dependencies]
107107
# publish = true
108-
oxc = { version = "0.115.0", path = "crates/oxc" } # Main entry point
109-
oxc_allocator = { version = "0.115.0", path = "crates/oxc_allocator" } # Memory management
110-
oxc_ast = { version = "0.115.0", path = "crates/oxc_ast" } # AST definitions
111-
oxc_ast_macros = { version = "0.115.0", path = "crates/oxc_ast_macros" } # AST proc macros
112-
oxc_ast_visit = { version = "0.115.0", path = "crates/oxc_ast_visit" } # AST visitor pattern
113-
oxc_cfg = { version = "0.115.0", path = "crates/oxc_cfg" } # Control flow graph
114-
oxc_codegen = { version = "0.115.0", path = "crates/oxc_codegen", default-features = false } # Code generation
115-
oxc_compat = { version = "0.115.0", path = "crates/oxc_compat" } # Browser compatibility
116-
oxc_data_structures = { version = "0.115.0", path = "crates/oxc_data_structures" } # Shared data structures
117-
oxc_diagnostics = { version = "0.115.0", path = "crates/oxc_diagnostics" } # Error reporting
118-
oxc_ecmascript = { version = "0.115.0", path = "crates/oxc_ecmascript" } # ECMAScript operations
119-
oxc_estree = { version = "0.115.0", path = "crates/oxc_estree" } # ESTree format
120-
oxc_estree_tokens = { version = "0.115.0", path = "crates/oxc_estree_tokens" } # ESTree token conversion
121-
oxc_isolated_declarations = { version = "0.115.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation
122-
oxc_jsdoc = { version = "0.115.0", path = "crates/oxc_jsdoc" } # JSDoc parsing
123-
oxc_mangler = { version = "0.115.0", path = "crates/oxc_mangler" } # Name mangling
124-
oxc_minifier = { version = "0.115.0", path = "crates/oxc_minifier" } # Code minification
125-
oxc_minify_napi = { version = "0.115.0", path = "napi/minify" } # Node.js minifier binding
126-
oxc_napi = { version = "0.115.0", path = "crates/oxc_napi" } # NAPI utilities
127-
oxc_parser = { version = "0.115.0", path = "crates/oxc_parser", features = [
108+
oxc = { version = "0.116.0", path = "crates/oxc" } # Main entry point
109+
oxc_allocator = { version = "0.116.0", path = "crates/oxc_allocator" } # Memory management
110+
oxc_ast = { version = "0.116.0", path = "crates/oxc_ast" } # AST definitions
111+
oxc_ast_macros = { version = "0.116.0", path = "crates/oxc_ast_macros" } # AST proc macros
112+
oxc_ast_visit = { version = "0.116.0", path = "crates/oxc_ast_visit" } # AST visitor pattern
113+
oxc_cfg = { version = "0.116.0", path = "crates/oxc_cfg" } # Control flow graph
114+
oxc_codegen = { version = "0.116.0", path = "crates/oxc_codegen", default-features = false } # Code generation
115+
oxc_compat = { version = "0.116.0", path = "crates/oxc_compat" } # Browser compatibility
116+
oxc_data_structures = { version = "0.116.0", path = "crates/oxc_data_structures" } # Shared data structures
117+
oxc_diagnostics = { version = "0.116.0", path = "crates/oxc_diagnostics" } # Error reporting
118+
oxc_ecmascript = { version = "0.116.0", path = "crates/oxc_ecmascript" } # ECMAScript operations
119+
oxc_estree = { version = "0.116.0", path = "crates/oxc_estree" } # ESTree format
120+
oxc_estree_tokens = { version = "0.116.0", path = "crates/oxc_estree_tokens" } # ESTree token conversion
121+
oxc_isolated_declarations = { version = "0.116.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation
122+
oxc_jsdoc = { version = "0.116.0", path = "crates/oxc_jsdoc" } # JSDoc parsing
123+
oxc_mangler = { version = "0.116.0", path = "crates/oxc_mangler" } # Name mangling
124+
oxc_minifier = { version = "0.116.0", path = "crates/oxc_minifier" } # Code minification
125+
oxc_minify_napi = { version = "0.116.0", path = "napi/minify" } # Node.js minifier binding
126+
oxc_napi = { version = "0.116.0", path = "crates/oxc_napi" } # NAPI utilities
127+
oxc_parser = { version = "0.116.0", path = "crates/oxc_parser", features = [
128128
"regular_expression",
129129
] } # JS/TS parser
130-
oxc_parser_napi = { version = "0.115.0", path = "napi/parser" } # Node.js parser binding
131-
oxc_regular_expression = { version = "0.115.0", path = "crates/oxc_regular_expression" } # Regex parser
132-
oxc_semantic = { version = "0.115.0", path = "crates/oxc_semantic" } # Semantic analysis
133-
oxc_span = { version = "0.115.0", path = "crates/oxc_span" } # Source positions
134-
oxc_str = { version = "0.115.0", path = "crates/oxc_str" } # String types
135-
oxc_syntax = { version = "0.115.0", path = "crates/oxc_syntax" } # Syntax utilities
136-
oxc_transform_napi = { version = "0.115.0", path = "napi/transform" } # Node.js transformer binding
137-
oxc_transformer = { version = "0.115.0", path = "crates/oxc_transformer" } # Code transformation
138-
oxc_transformer_plugins = { version = "0.115.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins
139-
oxc_traverse = { version = "0.115.0", path = "crates/oxc_traverse" } # AST traversal
130+
oxc_parser_napi = { version = "0.116.0", path = "napi/parser" } # Node.js parser binding
131+
oxc_regular_expression = { version = "0.116.0", path = "crates/oxc_regular_expression" } # Regex parser
132+
oxc_semantic = { version = "0.116.0", path = "crates/oxc_semantic" } # Semantic analysis
133+
oxc_span = { version = "0.116.0", path = "crates/oxc_span" } # Source positions
134+
oxc_str = { version = "0.116.0", path = "crates/oxc_str" } # String types
135+
oxc_syntax = { version = "0.116.0", path = "crates/oxc_syntax" } # Syntax utilities
136+
oxc_transform_napi = { version = "0.116.0", path = "napi/transform" } # Node.js transformer binding
137+
oxc_transformer = { version = "0.116.0", path = "crates/oxc_transformer" } # Code transformation
138+
oxc_transformer_plugins = { version = "0.116.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins
139+
oxc_traverse = { version = "0.116.0", path = "crates/oxc_traverse" } # AST traversal
140140

141141
# publish = false
142142
oxc_formatter = { path = "crates/oxc_formatter" } # Code formatting

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

7+
## [0.116.0] - 2026-03-02
8+
9+
### 🚀 Features
10+
11+
- c2a42f6 allocator: Add `Vec::into_bump_slice_mut` (#19895) (overlookmotel)
12+
713
## [0.114.0] - 2026-02-16
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.115.0"
3+
version = "0.116.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

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

crates/oxc_ast_macros/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).
66

7+
## [0.116.0] - 2026-03-02
8+
9+
### ⚡ Performance
10+
11+
- 6a6513c linter/plugins: Use Oxc tokens in plugins (#19498) (camc314)
12+
713
## [0.114.0] - 2026-02-16
814

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

0 commit comments

Comments
 (0)