From 529273a32a5a16acda4491a71bd2f20e0d6e6349 Mon Sep 17 00:00:00 2001 From: leaysgur <6259812+leaysgur@users.noreply.github.com> Date: Tue, 14 Oct 2025 08:07:46 +0000 Subject: [PATCH] chore(release): oxfmt) v0.5.0 --- Cargo.lock | 4 +-- apps/oxfmt/CHANGELOG.md | 11 ++++++++ apps/oxfmt/Cargo.toml | 2 +- crates/oxc_formatter/CHANGELOG.md | 44 +++++++++++++++++++++++++++++++ crates/oxc_formatter/Cargo.toml | 2 +- npm/oxfmt/CHANGELOG.md | 7 +++++ npm/oxfmt/package.json | 2 +- 7 files changed, 67 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0859024bbe297..20485434eec5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2102,7 +2102,7 @@ dependencies = [ [[package]] name = "oxc_formatter" -version = "0.4.0" +version = "0.5.0" dependencies = [ "cow-utils", "insta", @@ -2832,7 +2832,7 @@ dependencies = [ [[package]] name = "oxfmt" -version = "0.4.0" +version = "0.5.0" dependencies = [ "bpaf", "cow-utils", diff --git a/apps/oxfmt/CHANGELOG.md b/apps/oxfmt/CHANGELOG.md index 59d7f925d0b81..54241dee41585 100644 --- a/apps/oxfmt/CHANGELOG.md +++ b/apps/oxfmt/CHANGELOG.md @@ -4,6 +4,17 @@ 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). +## [0.5.0] - 2025-10-14 + +### ๐Ÿš€ Features + +- 51ddfa8 oxfmt: Support `.oxfmtrc.json(c)` config file (#14398) (leaysgur) + +### ๐Ÿ› Bug Fixes + +- 0f19be0 oxfmt: Normalize path delimiter on Windows (#14463) (leaysgur) + + ## [0.3.0] - 2025-09-19 diff --git a/apps/oxfmt/Cargo.toml b/apps/oxfmt/Cargo.toml index 0807ca2905213..def54d80b2540 100644 --- a/apps/oxfmt/Cargo.toml +++ b/apps/oxfmt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxfmt" -version = "0.4.0" +version = "0.5.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_formatter/CHANGELOG.md b/crates/oxc_formatter/CHANGELOG.md index f2226e4f3d4a7..b951d44437c3f 100644 --- a/crates/oxc_formatter/CHANGELOG.md +++ b/crates/oxc_formatter/CHANGELOG.md @@ -4,6 +4,50 @@ 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). +## [0.5.0] - 2025-10-14 + +### ๐Ÿš€ Features + +- 8077f9b oxfmt: Provide JSON schema for `.oxfmtrc.json` (#14399) (leaysgur) +- 51ddfa8 oxfmt: Support `.oxfmtrc.json(c)` config file (#14398) (leaysgur) + +### ๐Ÿ› Bug Fixes + +- c4e12df formatter: Correct checking comments around the return argument (#14585) (Dunqing) +- 454303b formatter: Check empty lines between arguments incorrectly (#14584) (Dunqing) +- a5554a8 formatter: Print a line break incorrectly for directives (#14577) (Dunqing) +- 5db9774 formatter: Correct printing comments that are around the `StaticMemberExpression` (#14543) (Dunqing) +- 620dbac formatter: No need to wrap a parenthesis for `TSConditionalType` and `TSFunctionType` when its parent is `TSUnionType` and it only has one element (#14540) (Dunqing) +- 1aec74f formatter: Missing parenthesis for `ComputedMemberExpression` when its parent is an `NewExpression` (#14530) (Dunqing) +- 59f1d8f formatter: Missing parenthesis for `PrivateInExpression` when its parent is an `UnaryExpression` (#14529) (Dunqing) +- b06059e formatter: Correct printing comments for logical expression (#14500) (Dunqing) +- be38095 formatter: Should break even if the right side of the assignment is a require when it has a leading own line comment (#14499) (Dunqing) +- 4d55654 formatter: Correct printing comments for the end of union type (#14498) (Dunqing) +- 4994872 formatter: Correct printing comments for `try` statement (#14497) (Dunqing) +- 9a4da3d formatter: Should expand the parent if the member chain will break (#14487) (Dunqing) +- bba9689 formatter: Correct printing comments around the expression of `ComputedMemberExpression` (#14486) (Dunqing) +- dc5e08a formatter: Correct printing yield argument (#14485) (Dunqing) +- b8a0905 formatter: No need to wrap with parentheses for a type cast node (#14484) (Dunqing) +- b159215 formatter: Ignore the leading line break for the first argument of the call expression (#14483) (Dunqing) +- ea8f9ed formatter: Correct checking comments between the operator and the right side for assignment like nodes (#14482) (Dunqing) +- 4f19504 formatter: Block comments without a leading linebreak that are around the operator of the conditional expression should be printed as-is (#14474) (Dunqing) +- ef77997 formatter: Correct printing comments for `for` statements (#14473) (Dunqing) +- 31595c3 formatter: Correct printing comments for assignment pattern (#14469) (Dunqing) +- 0f19be0 oxfmt: Normalize path delimiter on Windows (#14463) (leaysgur) +- 5856bc9 oxc_formatter: Fix arrow_parentheses: 'avoid' > 'as-needed' (#14462) (leaysgur) + +### ๐Ÿšœ Refactor + +- 7bc86f4 formatter: Simplify foramtting import and export (#14576) (Dunqing) +- 29c3cf2 formatter: Remove `SiblingNode` (#14551) (Dunqing) +- 893bdac formatter: Improve printing comments for special nodes (#14544) (Dunqing) +- 97bb964 formatter: Improve line break detaching logic in SourceText (#14539) (Dunqing) + +### ๐Ÿงช Testing + +- bb43dc5 formatter: Add snapshot-based test infrastructure (#14400) (Dunqing) + + ## [0.4.0] - 2025-10-09 ### ๐Ÿš€ Features diff --git a/crates/oxc_formatter/Cargo.toml b/crates/oxc_formatter/Cargo.toml index c806b57b5acd4..2a5730ddfa57d 100644 --- a/crates/oxc_formatter/Cargo.toml +++ b/crates/oxc_formatter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_formatter" -version = "0.4.0" +version = "0.5.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxfmt/CHANGELOG.md b/npm/oxfmt/CHANGELOG.md index 1e316026bba22..2d3f65c63f6c2 100644 --- a/npm/oxfmt/CHANGELOG.md +++ b/npm/oxfmt/CHANGELOG.md @@ -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). +## [0.5.0] - 2025-10-14 + +### ๐Ÿš€ Features + +- 8077f9b oxfmt: Provide JSON schema for `.oxfmtrc.json` (#14399) (leaysgur) + + ## [0.4.0] - 2025-10-09 ### ๐Ÿ› Bug Fixes diff --git a/npm/oxfmt/package.json b/npm/oxfmt/package.json index ec36ca509047a..c7acd7c69ceb6 100644 --- a/npm/oxfmt/package.json +++ b/npm/oxfmt/package.json @@ -1,6 +1,6 @@ { "name": "oxfmt", - "version": "0.4.0", + "version": "0.5.0", "type": "module", "description": "Formatter for the JavaScript Oxidation Compiler", "keywords": [],