You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments