Skip to content

Commit f5c83a9

Browse files
committed
release(oxfmt): v0.6.0 (#14804)
## [0.6.0] - 2025-10-20 ### 🚀 Features - 7f91a26 oxfmt: Handle ignoring files (#14798) (leaysgur) - 199a2c6 oxfmt: Support `--with-node-modules` option (#14713) (leaysgur) - 6bf8bac formatter: Reimplement formatting for `ImportExpression` (#14712) (Dunqing) - 3f2e036 formatter: Introduce `AstNode<ExpressionStatement>::is_arrow_function_body` (#14709) (Dunqing) - df225e9 formatter: Add `AstNode::ancestor` and `AstNode::grand_parent` methods (#14700) (Dunqing) - 26c5f5a oxfmt: Ignore VCS directories by default (#14616) (leaysgur) - fec2ed9 oxfmt: Use Prettier style config key and value (#14612) (leaysgur) - 1b58521 oxfmt,language_server: Enable JSX for all JS source type (#14605) (leaysgur) ### 🐛 Bug Fixes - 21c4285 formatter: Correct printing remaining trailing comments for `TSMappedType` (#14761) (Dunqing) - 1d1573e formatter: Correct adding semicolons for TypeScript left-hand side nodes (#14760) (Dunqing) - 4cc3b10 formatter: Improve handling of new lines between comments in `MemberChain` (#14759) (Dunqing) - e6bce8e formatter: Break the left hand side of AssignmentLike node if it is an `ObjectPattern` with three properties (#14756) (Dunqing) - dc57a2b formatter: Incorrect handling of `VariableDeclarator` with an `ArrowFunctionExpression` initializer (#14731) (Dunqing) - 537185d formatter: Should always group the left side of `AssignmentPattern` (#14730) (Dunqing) - ef02760 oxfmt: Handle relative path starts with dot (#14708) (leaysgur) - ee37f5d oxfmt: Handle default cwd correctly (#14704) (leaysgur) - 4283fd8 formatter: Correct printing comments for `JSXAttributeValue` (#14719) (Dunqing) - 59c9e1b formatter: Avoid conditional being broken in arguments by trailing comments (#14718) (Dunqing) - 7d64b96 formatter: Should wrap parentheses with JSX arguments of `NewExpression` (#14717) (Dunqing) - 2068a63 formatter: Should indent TemplateExpression if it is a member expression that is part of `ChainExpression` (#14714) (Dunqing) - 5ea3bb6 formatter: Incorrect handling of `ObjectPattern` as an `AssignmentPattern` of a parameter (#14711) (Dunqing) - eb52529 formatter: Incorrect handling of `ObjectPattern` as a parameter (#14670) (Dunqing) - 8ac10da formatter: Correct checking assignment layout for the right side with ownline comment and it is a `PrivateFieldExpression` (#14664) (Dunqing) - 6cba9b1 formatter: Should not merge tail with head for MemberChain when its parent is ArrowFunctionExpression (#14663) (Dunqing) - f44d3c0 formatter: Should not indent BinaryLikeExpression when its parent is `NewExpression` (#14662) (Dunqing) - bf953b8 formatter: Should group nested test for TSConditionalType (#14661) (Dunqing) - 63dc57b formatter: Correct handling if a template literal should be printed as a signle line (#14660) (Dunqing) - 0150ad5 formatter: Should group type parameters and parameters for method-like and function-like nodes (#14659) (Dunqing) - 392bf74 formatter: Improve handling of dangling comments in if statements (#14658) (Dunqing) - fd52b10 formatter: Don't print CallExpression as MemberChain style when its only has one argument and it is a TemplateLiteral on its own line (#14657) (Dunqing) - 29c3c60 formatter: Don't group nested await expression when its is the leftmost expression (#14656) (Dunqing) - 72c7503 formatter: Correct checking function composition when the arguments have an call expression before function (#14655) (Dunqing) - 2b645e2 formatter: Don't wrap parenthesis for `type` when its grandparent isn't a `ExpressionStatement` (#14654) (Dunqing) - e0eb966 formatter: Skip the leading semicolon when calculating leading lines (#14653) (Dunqing) - 0961c3a oxlint,oxfmt: Skip traversing `.git` directories (#14590) (Boshen) ### 🚜 Refactor - b7926f3 oxfmt: Update CLI --help details (#14796) (leaysgur) - 173168b oxfmt: Refactor walk.rs and format.rs relationship (#14795) (leaysgur) - aea9d79 oxfmt: Pass `PathBuf` from walk.rs to service.rs (#14716) (leaysgur) - 83e783a formatter: Organize utils structure (#14710) (Dunqing) - 58dd74a formatter: Remove all `without_parentheses` usages (#14707) (Dunqing) - 75dfcad formatter: Simplify `ExpressionLeftSide` (#14706) (Dunqing) - 273f0fe formatter: Remove unnecessary lifetimes for the implementations of `NeedsParentheses` (#14703) (Dunqing) - bae5f11 formatter: Improve `AstNode` and `AstNodes` (#14686) (Dunqing) ### ⚡ Performance - c6395c7 formatter: Optimize string reservation in print_text (#14751) (Boshen) ### 🧪 Testing - 7c42ea0 oxfmt: Remove args from snapshot file name (#14800) (leaysgur) - 42d8c62 formatter: Add tests for sort-imports (#14685) (leaysgur)
1 parent 21c4285 commit f5c83a9

File tree

7 files changed

+93
-5
lines changed

7 files changed

+93
-5
lines changed

Cargo.lock

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

apps/oxfmt/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@ 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.6.0] - 2025-10-20
8+
9+
### 🚀 Features
10+
11+
- 7f91a26 oxfmt: Handle ignoring files (#14798) (leaysgur)
12+
- 199a2c6 oxfmt: Support `--with-node-modules` option (#14713) (leaysgur)
13+
- 26c5f5a oxfmt: Ignore VCS directories by default (#14616) (leaysgur)
14+
- fec2ed9 oxfmt: Use Prettier style config key and value (#14612) (leaysgur)
15+
- 1b58521 oxfmt,language_server: Enable JSX for all JS source type (#14605) (leaysgur)
16+
17+
### 🐛 Bug Fixes
18+
19+
- ef02760 oxfmt: Handle relative path starts with dot (#14708) (leaysgur)
20+
- ee37f5d oxfmt: Handle default cwd correctly (#14704) (leaysgur)
21+
- 0961c3a oxlint,oxfmt: Skip traversing `.git` directories (#14590) (Boshen)
22+
23+
### 🚜 Refactor
24+
25+
- b7926f3 oxfmt: Update CLI --help details (#14796) (leaysgur)
26+
- 173168b oxfmt: Refactor walk.rs and format.rs relationship (#14795) (leaysgur)
27+
- aea9d79 oxfmt: Pass `PathBuf` from walk.rs to service.rs (#14716) (leaysgur)
28+
29+
### 🧪 Testing
30+
31+
- 7c42ea0 oxfmt: Remove args from snapshot file name (#14800) (leaysgur)
32+
33+
734
## [0.5.0] - 2025-10-14
835

936
### 🚀 Features

apps/oxfmt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxfmt"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

crates/oxc_formatter/CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,60 @@ 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.6.0] - 2025-10-20
8+
9+
### 🚀 Features
10+
11+
- 6bf8bac formatter: Reimplement formatting for `ImportExpression` (#14712) (Dunqing)
12+
- 3f2e036 formatter: Introduce `AstNode<ExpressionStatement>::is_arrow_function_body` (#14709) (Dunqing)
13+
- df225e9 formatter: Add `AstNode::ancestor` and `AstNode::grand_parent` methods (#14700) (Dunqing)
14+
- fec2ed9 oxfmt: Use Prettier style config key and value (#14612) (leaysgur)
15+
- 1b58521 oxfmt,language_server: Enable JSX for all JS source type (#14605) (leaysgur)
16+
17+
### 🐛 Bug Fixes
18+
19+
- 21c4285 formatter: Correct printing remaining trailing comments for `TSMappedType` (#14761) (Dunqing)
20+
- 1d1573e formatter: Correct adding semicolons for TypeScript left-hand side nodes (#14760) (Dunqing)
21+
- 4cc3b10 formatter: Improve handling of new lines between comments in `MemberChain` (#14759) (Dunqing)
22+
- e6bce8e formatter: Break the left hand side of AssignmentLike node if it is an `ObjectPattern` with three properties (#14756) (Dunqing)
23+
- dc57a2b formatter: Incorrect handling of `VariableDeclarator` with an `ArrowFunctionExpression` initializer (#14731) (Dunqing)
24+
- 537185d formatter: Should always group the left side of `AssignmentPattern` (#14730) (Dunqing)
25+
- 4283fd8 formatter: Correct printing comments for `JSXAttributeValue` (#14719) (Dunqing)
26+
- 59c9e1b formatter: Avoid conditional being broken in arguments by trailing comments (#14718) (Dunqing)
27+
- 7d64b96 formatter: Should wrap parentheses with JSX arguments of `NewExpression` (#14717) (Dunqing)
28+
- 2068a63 formatter: Should indent TemplateExpression if it is a member expression that is part of `ChainExpression` (#14714) (Dunqing)
29+
- 5ea3bb6 formatter: Incorrect handling of `ObjectPattern` as an `AssignmentPattern` of a parameter (#14711) (Dunqing)
30+
- eb52529 formatter: Incorrect handling of `ObjectPattern` as a parameter (#14670) (Dunqing)
31+
- 8ac10da formatter: Correct checking assignment layout for the right side with ownline comment and it is a `PrivateFieldExpression` (#14664) (Dunqing)
32+
- 6cba9b1 formatter: Should not merge tail with head for MemberChain when its parent is ArrowFunctionExpression (#14663) (Dunqing)
33+
- f44d3c0 formatter: Should not indent BinaryLikeExpression when its parent is `NewExpression` (#14662) (Dunqing)
34+
- bf953b8 formatter: Should group nested test for TSConditionalType (#14661) (Dunqing)
35+
- 63dc57b formatter: Correct handling if a template literal should be printed as a signle line (#14660) (Dunqing)
36+
- 0150ad5 formatter: Should group type parameters and parameters for method-like and function-like nodes (#14659) (Dunqing)
37+
- 392bf74 formatter: Improve handling of dangling comments in if statements (#14658) (Dunqing)
38+
- fd52b10 formatter: Don't print CallExpression as MemberChain style when its only has one argument and it is a TemplateLiteral on its own line (#14657) (Dunqing)
39+
- 29c3c60 formatter: Don't group nested await expression when its is the leftmost expression (#14656) (Dunqing)
40+
- 72c7503 formatter: Correct checking function composition when the arguments have an call expression before function (#14655) (Dunqing)
41+
- 2b645e2 formatter: Don't wrap parenthesis for `type` when its grandparent isn't a `ExpressionStatement` (#14654) (Dunqing)
42+
- e0eb966 formatter: Skip the leading semicolon when calculating leading lines (#14653) (Dunqing)
43+
44+
### 🚜 Refactor
45+
46+
- 83e783a formatter: Organize utils structure (#14710) (Dunqing)
47+
- 58dd74a formatter: Remove all `without_parentheses` usages (#14707) (Dunqing)
48+
- 75dfcad formatter: Simplify `ExpressionLeftSide` (#14706) (Dunqing)
49+
- 273f0fe formatter: Remove unnecessary lifetimes for the implementations of `NeedsParentheses` (#14703) (Dunqing)
50+
- bae5f11 formatter: Improve `AstNode` and `AstNodes` (#14686) (Dunqing)
51+
52+
### ⚡ Performance
53+
54+
- c6395c7 formatter: Optimize string reservation in print_text (#14751) (Boshen)
55+
56+
### 🧪 Testing
57+
58+
- 42d8c62 formatter: Add tests for sort-imports (#14685) (leaysgur)
59+
60+
761
## [0.5.0] - 2025-10-14
862

963
### 🚀 Features

crates/oxc_formatter/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_formatter"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
authors.workspace = true
55
categories.workspace = true
66
edition.workspace = true

npm/oxfmt/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
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).
66

7+
## [0.6.0] - 2025-10-20
8+
9+
### 🚀 Features
10+
11+
- fec2ed9 oxfmt: Use Prettier style config key and value (#14612) (leaysgur)
12+
13+
714
## [0.5.0] - 2025-10-14
815

916
### 🚀 Features

npm/oxfmt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oxfmt",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"type": "module",
55
"description": "Formatter for the JavaScript Oxidation Compiler",
66
"keywords": [],

0 commit comments

Comments
 (0)