Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Releases: rome/tools

v0.3.20220325

25 Mar 12:06
a962e49
Compare
Choose a tag to compare
v0.3.20220325 Pre-release
Pre-release
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

24 Mar 09:47
d47c3e9
Compare
Choose a tag to compare
v0.1.20220324 Pre-release
Pre-release
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

16 Mar 08:31
aaf628b
Compare
Choose a tag to compare
v0.1.20220316 Pre-release
Pre-release
chore(website): restore philosophy.md section and update packages (#2…

v0.2.2022314

14 Mar 15:05
b2c1f23
Compare
Choose a tag to compare
v0.2.2022314 Pre-release
Pre-release
feat(rslint_parser): simple jsx parser (#2220)

* jsx, open/close and self closing elements

v

01 Mar 16:24
90c00de
Compare
Choose a tag to compare
v Pre-release
Pre-release
feat(rome_formatter): improve the formatting of call expressions (#2178)

v10.0.7-nightly.2021.7.27

27 Jul 09:45
896d33b
Compare
Choose a tag to compare
Pre-release
feat(js-parser): enable declare TypeScript modifier on a class's fiel…

v10.0.7-nightly.2021.7.17

17 Jul 06:57
ada247e
Compare
Choose a tag to compare
Pre-release
perf(browsers-db): store data as JSON.parse string instead of json (#…

v10.0.7-nightly.2021.7.6

06 Jul 09:41
a0d498a
Compare
Choose a tag to compare
Pre-release
feat(project): avoid validate manifest (#1615)

v10.0.7-nightly.2021.7.2

02 Jul 13:49
dc7b2ba
Compare
Choose a tag to compare
Pre-release
fix(codec-config): less heuristic for toml parser (#1614)

v10.0.7-nightly.2021.6.29

29 Jun 10:39
aeec422
Compare
Choose a tag to compare
Pre-release
fix(core): prevent TypeError when handling unhandledRejection (#1598)