What's Changed
- chore: update readme by @ematipico in #2523
- fix(ci): Deploy playground only on main Rome repo by @NicholasLYang in #2522
- fix(rome_js_formatter): break computed expressions like prettier by @ematipico in #2517
- fix(playground): Update pnpm requirement to 7.0.0. by @cpojer in #2528
- refactor: Split out
JsFormatter
by @MichaReiser in #2526 - feat(rome_js_parser): quick cast methods for nodes by @xunilrj in #2535
- fix(rome_js_formatter): number with trailing whitespace by @mrkldshv in #2519
- fix(rome_js_formatter): elide quotes inside members by @ematipico in #2502
- Fix(rome_js_formatter): 🎸 Switch-case block body placement by @IWANABETHATGUY in #2514
- fix(playground): update lock file by @ematipico in #2539
- Revert "fix(rome_js_formatter): elide quotes inside members" by @ematipico in #2544
- chore: Fix deploy playground on main by @MichaReiser in #2545
- fix(rome_js_formatter): Put closing curly on new line for empty blocks. by @IWANABETHATGUY in #2540
- fix(formatter): Stack overflow in formatting computed member expressions by @MichaReiser in #2548
- feat(rome_js_formatter): JSXFragment by @ematipico in #2484
- feature(formatter): Clean JSX Text by @NicholasLYang in #2527
- feature: AST Serialization by @NicholasLYang in #2509
- fix(cargo.toml): 🐛 fix repo link by @IWANABETHATGUY in #2551
- chore(website): Added careers link by @NicholasLYang in #2560
- fix(rome_js_formatter): 🐛 wrap some string expression stmt by @IWANABETHATGUY in #2547
- feat(rome_js_parser): check for missing children in parser tests by @leops in #2176
- refactor(rome_analyze): syntax mutation and factories API by @leops in #2491
- feature(playground): Prettier IR tab by @NicholasLYang in #2543
- refactor(Formatter):
formatted
Macro by @MichaReiser in #2557 - Fix(rome_js_formatter):🐛 fix parenthesis expression bad case by @IWANABETHATGUY in #2564
- fix: Countme overflow in tests by @MichaReiser in #2575
- format(rome_*): format rust doc comments by @IWANABETHATGUY in #2573
- feat(lsp): improve the user experience of the analyzer in the editor by @leops in #2576
- refactor(Formatter): Move
Format
,Formatter
, torome_formatter
by @MichaReiser in #2559 - feature(website): Toggle Tree Style by @NicholasLYang in #2563
- feat(rome_js_formatter): 💡 Prettier Compatibility Metric by @IWANABETHATGUY in #2574
- feat(rome_diagnostic): refactor diagnostics to use markup by @leops in #2580
- fix(formatter): Tighten
has_line_breaks
method by @MichaReiser in #2581 - fix(formatter): Stable member chain printing by @MichaReiser in #2582
- ci: 🎡 fix broken ci by @IWANABETHATGUY in #2584
- refactor(formatter): Extract language specific options by @MichaReiser in #2578
- feat(rome_cli): implement the
check
andci
CLI commands by @leops in #2583 - refactor(formatter): Refactor
try_print_flat
tofits_on_line
by @MichaReiser in #2589 - feature(formatter):
LineSuffixBoundary
andExpandParent
IR by @MichaReiser in #2590 - chore(playground): Display cleaned prettier IR by @MichaReiser in #2592
- fix(rome_rowan): fix the next_token and prev_token methods on SyntaxToken by @leops in #2595
- fix(playground): state not persisting properly in url by @NicholasLYang in #2594
- chore: Upgrade to Rust 1.61.0 by @Boshen in #2599
- feature(formatter): Add
BestFitting
IR element by @MichaReiser in #2591 - (website): 🤖 remove package lock json by @IWANABETHATGUY in #2596
- fix(repo): Update .gitignore. by @cpojer in #2605
- feat(rome_js_formatter): Hard line breaks in object expressions. by @cpojer in #2458
- refactor: Stabilize formatter by @MichaReiser in #2597
- refactor: Printer "fits" definition by @MichaReiser in #2598
- feat(rome_rowan): cast and parent to help SyntaxNode and AstNode navigation by @xunilrj in #2601
- fix(rome_js_formatter): empty statements in
if/else
anddo/while
by @ematipico in #2549 - fix(rome_js_formatter): correctly format sequence expressions by @ematipico in #2541
- fix(rome_formatter): improve the compatibility of range formatting with Prettier by @leops in #2602
- refactor: move
SourceType
insiderome_js_syntax
by @ematipico in #2608 - (npm/rome): remove
node:
prefix for builtin module by @IWANABETHATGUY in #2607 - feat(rome_service): introduce a cross-language
Workspace
abstraction by @leops in #2593 - perf(rowan): Speedup
next_token
andprev_token
implementations by @MichaReiser in #2612 - fix(playground): JSX and TypeScript not persisted in URL by @NicholasLYang in #2610
- feat(rome_cli): disable markup formatting when unsupported by @leops in #2613
- feature(rome_js_parser): coverage test suite for ts symbols file by @xunilrj in #2588
- feat(playground): add a button to copy rome_ir to clipboard by @IWANABETHATGUY in #2604
- fix(parser): Fix JSX parser dropping content by @MichaReiser in #2630
- feat(rome_formatter): make formatter language aware by @ematipico in #2629
- fix(rome_js_formatter): choose preferred quotes and reduce escaping by @ematipico in #2624
- chore(rome_js_formatter): apply alias by @ematipico in #2633
- feature(rome_js_parser): Extraction of variable declarations by @xunilrj in #2628
- docs(formatter): fix some mistakes in doc comments by @yassere in #2637
- perf(formatter): Remove
prev_token
traversal from format leading trivia by @MichaReiser in #2638 - feature(formatter): Fill separators by @NicholasLYang in #2609
- refactor(rome_js_formatter): format static member expressions using loop by @ematipico in #2635
- feature(rome_js_semantic): Extraction of scope (simple cases) by @xunilrj in #2639
- feat(rome_js_formatter): elide quotes in object/class members by @ematipico in #2536
- fix(rome_formatter): handle groups correctly when measuring fit by @yassere in #2645
- feat(rome_js_formatter): Break long object literal members over two lines #2425 by @Dominionys in #2627
- refactor(formatter): Introduce
write
,format
, andformat_args
macros by @MichaReiser in #2634 - refactor(formatter): Member chain: left to right formatting by @MichaReiser in #2641
- Fix(rome_js_formatter): named import by @IWANABETHATGUY in #2498
- fix(rome_js_formatter): prevent some unnecessary trailing commas by @yassere in #2663
- refactor(formatter): Change binary like expression to format left to right by @MichaReiser in #2640
- fix(syntax): Remove quotes from tokens in
JsSyntaxKind::to_string
by @MichaReiser in #2665 - release: 0.6.0 by @ematipico in #2662
New Contributors
- @Dominionys made their first contribution in #2627
Full Changelog: lsp/v0.6.0...cli/v0.6.0-next