[0.4.0] - 2025-10-09
π Features
- 142e7ac formatter/sort-imports: Implement options.ignoreCase: bool (#14367) (leaysgur)
- 5c8bd31 formatter/sort-imports: Implement options.sortSideEffects: bool (#14293) (leaysgur)
- 593c416 formatter/sort-imports: Add options.order: asc|desc (#14292) (leaysgur)
- f1a1f89 formatter/sort-imports: Implement basic sorting with tests (#14291) (leaysgur)
- f75b8f7 formatter/sort-imports: Wrap
ImportDeclaration
withJsLabels
(#14109) (leaysgur) - 6be4ae5 formatter/sort-imports: Experimental sort-imports base (#14105) (leaysgur)
- cb29117 formatter: Correct printing parameters with
return_type
for function-like node (#14084) (Dunqing) - 90fd46f formatter: Normalize key of
TSPropertySignature
(#14083) (Dunqing) - 6cfce80 formatter: Implement formatting for
TSTypeAliasDeclaration
(#14040) (Dunqing) - 3097b60 formatter: Implement formatting for
TSMappedType
(#14025) (Dunqing) - cd620bd formatter: Correct printing for
Class
(#14024) (Dunqing) - 03244f1 formatter: Correct printing for
TSConditionalType
(#14023) (Dunqing) - f6dc981 formatter: Implement formatting for
TSTupletype
(#14019) (Dunqing) - 10a41ab formatter: Export doc() API to inspect IR in example (#14068) (leaysgur)
- 06a1df6 formatter: Implement formatting for
TSTypeParameters
andTSTypeParameterInstantiation
(#13919) (Dunqing) - 9b46dd7 formatter: Implement formatting for
TSTypeAssertion
(#13911) (Dunqing) - 5710b13 formatter: Implement formatting for
TSIntersectiontype
(#13910) (Dunqing) - 2d18144 formatter: Implement formatting for
TSUnionType
(#13893) (Dunqing) - 0f15ed3 formatter: Implement formatting for
TSAsExpression
andTSSatisfiesExpression
(#13892) (Dunqing)
π Bug Fixes
- 59dc17e oxfmt: Change bin script to ESM (#14263) (Boshen)
- ad5c18a formatter: Correct parentheses in
TSIntersectionType
(#14098) (Noel Kim (κΉλ―Όν)) - 7c09b20 formatter: Print comments incorrectly if the node is without following a node (#14110) (Dunqing)
- ed33fad formatter: Merge the right side of
LogicalExpression
if it's aLogicalExpression
and both have the sameoperator
(#14097) (Dunqing) - 1b0519c formatter: Correct printing comments within the type annotation of ArrayPattern and
ObjectPattern
(#14077) (Dunqing) - e299ab0 formatter: Correct printing comments around decorators (#14076) (Dunqing)
- 7d11047 formatter: Correct a bunch of implementations for TypeScript (#14069) (Dunqing)
- 57cbf84 formatter: Correct preserving parentheses for
TSXXXType
nodes (#14022) (Dunqing) - 134f255 formatter: Missing parenthesis for
NewExpression
whose callee is aTSNonNullExpression
withTaggedTemplateExpression
(#14021) (Dunqing) - 1e9ce4e formatter: Skip the parent node if it is a
TSNonNullExpression
orAstNodes::ChainExpression
forStaticMemberExpression
(#14020) (Dunqing) - 3ce0775 formatter: Missing semicolon for
declare
function (#13928) (Dunqing)
π Refactor
- 70bd141 formatter: Improve formatting of
Function
andArrowFunctionExpression
with types (#14070) (Dunqing) - 226deee oxfmt: Rename build script to
.js
(#14046) (overlookmotel)