Skip to content

Commit b41e9a6

Browse files
committed
trigger-frontend-updates:prettier@3.6.2
1 parent 4cef85d commit b41e9a6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Prettier 3.6.2
2+
3+
This update brings Prettier from 3.5.x to 3.6.2. The experimental CLI is particularly noteworthy for teams working with large codebases.
4+
5+
## Major Features from 3.6.0
6+
7+
### Experimental Fast CLI
8+
9+
Prettier 3.6 introduces an experimental high-performance CLI that can be enabled with the `--experimental-cli` flag or `PRETTIER_EXPERIMENTAL_CLI=1` environment variable. This provides significant performance improvements for large codebases.
10+
11+
### New Official Plugins
12+
13+
- **@prettier/plugin-oxc**: Based on OXC (fast JavaScript/TypeScript parser in Rust), providing `oxc` and `oxc-ts` parsers
14+
- **@prettier/plugin-hermes**: Based on Hermes JS Engine, providing a new `hermes` parser for Flow syntax (planned to replace `babel-flow` in v4)
15+
16+
### JavaScript Formatting Improvements
17+
18+
- **SequenceExpression Parentheses**: Added parentheses to `SequenceExpression` in `ReturnStatement` and `ExpressionStatement` for better code clarity
19+
- **AssignmentExpression Consistency**: Added parentheses to `AssignmentExpression` in class property keys for consistency with object keys
20+
21+
### TypeScript Formatting Improvements
22+
23+
- **Consistent Number Parentheses**: Added parentheses to numbers in optional member expressions (e.g., `(1)?.toString()`) for consistency across all parsers and to prevent syntax errors when removing optional chaining
24+
- **Parser Consistency**: Resolved inconsistencies between Babel and TypeScript parsers for better cross-parser compatibility
25+
26+
## Bug Fixes
27+
28+
- **3.6.1**: Fixed "Warning: File descriptor 39 closed but not opened in unmanaged mode" error when running `--experimental-cli`
29+
- **3.6.2**: Added missing blank line around code blocks for better formatting output readability
30+
31+
[Full release notes](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#362)

0 commit comments

Comments
 (0)