This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Releases: rome/tools
Releases · rome/tools
v0.3.20220325
feature(rome_js_parser): JSX Error Recovery (#2302) This PR adds diagnostics for invalid JSX syntax and improves the error recovery. This PR further includes: * Splitting fragment into `JsxFragment`, `JsxOpeningFragment` and `JsxClosingFragment`. This simplifies parsing and aligns the structure with `JsxElement` * Change the optionality of `JsxExpressionChild`'s expression to optional ([spec](https://facebook.github.io/jsx/#prod-JSXChild)). * Move JSX to primary expression according to the JSX spec. * Only parse JSX in JSX (because of ambiguity) * Disable parsing of Element type arguments in JSX to get improved error recovery in the case of `<Test <Nested>content</Nested></Test>` * Don't parse `</` as `<` followed by a Regular expression (only if there's no trivia in between) in JSX mode to have improved error recovery in case the `}` of an attribute or child is missing.
v0.1.20220324
fix(rome_cli): Emit error for unknown options (#2297) ## Summary Pico's `free_from_...` operation returns any remaining argument, including arguments starting with `--` or `-` that indicate unknown options. This PR checks if any of the remaining arguments is a potential unknown option and emits an error message for it. This PR doesn't address that we shouldn't use panics for printing error messages. ## Test ```bash rome format test.js --skip-error thread 'main' panicked at 'unrecognized option "--skip-error". Type 'cli format --help' for more information.', crates/rome_cli/src/commands/format.rs:69:17 rome format test.js -- // OK ```
v0.1.20220316
chore(website): restore philosophy.md section and update packages (#2…
v0.2.2022314
feat(rslint_parser): simple jsx parser (#2220) * jsx, open/close and self closing elements
v
feat(rome_formatter): improve the formatting of call expressions (#2178)
v10.0.7-nightly.2021.7.27
feat(js-parser): enable declare TypeScript modifier on a class's fiel…
v10.0.7-nightly.2021.7.17
perf(browsers-db): store data as JSON.parse string instead of json (#…
v10.0.7-nightly.2021.7.6
feat(project): avoid validate manifest (#1615)
v10.0.7-nightly.2021.7.2
fix(codec-config): less heuristic for toml parser (#1614)
v10.0.7-nightly.2021.6.29
fix(core): prevent TypeError when handling unhandledRejection (#1598)