|
1 | 1 | # Rome changelog
|
2 | 2 |
|
| 3 | +## 10.0.0 |
| 4 | + |
| 5 | +### CLI |
| 6 | + |
| 7 | +- Added the new command `rome version`. |
| 8 | +- Added the new command `rome rage`. |
| 9 | +- Added the new command `rome lsp-proxy`. |
| 10 | +- Added the new option`--version` as an alias for `rome version` |
| 11 | +- Added a new argument `--files-max-size` to change the allowed size of files, in bytes. |
| 12 | +- Added a new argument `--formatter-enabled` to the command `rome ci`. |
| 13 | +- Added a new argument `--linter-enabled` to the command `rome ci`. |
| 14 | +- Added the new `format` option `--trailing-comma` to configure where to add trailing commas. |
| 15 | +- Correctly show the supported options for `rome ci`, closes [#3456](https://github.com/rome/tools/issues/3456). |
| 16 | +- Fixed the command `rome ci` command to run the linter even if the formatter is disabled, closes [#3495](https://github.com/rome/tools/issues/3495). |
| 17 | +- Fixed the messaging of some diagnostics, [#3460](https://github.com/rome/tools/pull/3460). |
| 18 | + |
| 19 | +### Configuration |
| 20 | + |
| 21 | +- Added `files.maxSize`, to change the allowed size of files, in bytes. |
| 22 | + |
| 23 | +### Diagnostics |
| 24 | + |
| 25 | +- Fix false positive for unknown lint rule in suppression comments during formatting [#3406](https://github.com/rome/tools/issues/3406). |
| 26 | +- Correctly handle empty lines when printing code diffs [#3375](https://github.com/rome/tools/issues/3375). |
| 27 | + |
| 28 | + |
| 29 | +### Formatter |
| 30 | + |
| 31 | +- Added the new trailing comma option that configures where to add trailing commas. Supports the values: `all`, `es5` and `none`; refer to the [documentation](https://rome.tools/docs/#javascriptformattertrailingcomma) to learn more. |
| 32 | +- Improved JSX formatting [#3499](https://github.com/rome/tools/issues/3499), [#3211](https://github.com/rome/tools/issues/3211), [#3377](https://github.com/rome/tools/issues/3377) |
| 33 | +- Better formatting of object destructing |
| 34 | +- Improved formatting of test calls |
| 35 | +- Fixed formatting of trailing comments in arrow functions |
| 36 | + |
| 37 | +### Linter |
| 38 | + |
| 39 | +- **BREAKING CHANGE**: some rules have been moved to new groups to better reflect their purpose. This may result in Rome failing to load your configuration or suppression comments that now refer to unknown rules. Please check out [#3471](https://github.com/rome/tools/pull/3471) to learn more about the affected rules. |
| 40 | +- Fixed issues in the `noUnreachable` rule |
| 41 | +- Fixed false positive cases for `noNegationElse` [#3141](https://github.com/rome/tools/issues/3141) |
| 42 | +- Fixed false positive cases for `noUnusedVariables` [#3169](https://github.com/rome/tools/issues/3169) |
| 43 | +- Fixed an issue in our CFG [#3390](https://github.com/rome/tools/issues/3390) |
| 44 | + |
| 45 | +#### New rules |
| 46 | + |
| 47 | +- [`noAutoFocus`](https://rome.tools/docs/lint/rules/noAutoFocus/) |
| 48 | +- [`useAltText`](https://rome.tools/docs/lint/rules/useAltText/) |
| 49 | +- [`noBlankTarget`](https://rome.tools/docs/lint/rules/noBlankTarget/) |
| 50 | +- [`useAnchorContent`](https://rome.tools/docs/lint/rules/useAnchorContent/) |
| 51 | +- [`useKeyWithClickEvents`](https://rome.tools/docs/lint/rules/useKeyWithClickEvents/) |
| 52 | +- [`useKeyWithMouseEvents`](https://rome.tools/docs/lint/rules/useKeyWithMouseEvents/) |
| 53 | +- [`noPositiveTabIndex`](https://rome.tools/docs/lint/rules/noPositiveTabIndex/) |
| 54 | +- [`useValidAnchor`](https://rome.tools/docs/lint/rules/useValidAnchor/) |
| 55 | +- [`noRestrictedGlobals`](https://rome.tools/docs/lint/rules/noRestrictedGlobals/) |
| 56 | +- [`useSimplifiedBooleanExpression`](https://rome.tools/docs/lint/rules/useSimplifiedBooleanExpression/) |
| 57 | +- [`noInvalidConstructorSuper`](https://rome.tools/docs/lint/rules/noInvalidConstructorSuper/) |
| 58 | +- [`useValidForDirection`](https://rome.tools/docs/lint/rules/useValidForDirection/) |
| 59 | +- [`noConstAssign`](https://rome.tools/docs/lint/rules/noConstAssign/) |
| 60 | +- [`noExplicitAny`](https://rome.tools/docs/lint/rules/noExplicitAny/) |
| 61 | +- [`noBannedTypes`](https://rome.tools/docs/lint/rules/noBannedTypes/) |
| 62 | +- [`useMapFlat`](https://rome.tools/docs/lint/rules/useMapFlat/) |
| 63 | +- [`useExhaustiveDependencies`](https://rome.tools/docs/lint/rules/useExhaustiveDependencies/) |
| 64 | + |
| 65 | +### Parser |
| 66 | + |
| 67 | +- Improved messaging of diagnostics, using our new infrastructure |
| 68 | +- Fixed an issue where diagnostics couldn't be printed in WASM [#3349](https://github.com/rome/tools/pull/3349) |
| 69 | +- Allow arguments in d.ts files [#3388](https://github.com/rome/tools/issues/3388) |
| 70 | +- Fix parsing of less than in optional call chains [#3486](https://github.com/rome/tools/issues/3486) |
| 71 | +- Fixed a case where `export {"a"} from "b";` wasn't correctly parsed |
| 72 | + |
| 73 | +### VSCode |
| 74 | + |
| 75 | +- Make the "rename" command opt-in and use the VS Code provided "rename" feature that offers whole project renaming instead. |
| 76 | +- Added the new command `Restart LSP Server` |
| 77 | +- The LSP server is now able to listen to changes of `rome.json` and apply the new configuration |
| 78 | + |
| 79 | + |
| 80 | + |
3 | 81 | ## 0.10.1
|
4 | 82 |
|
5 | 83 | ### CLI
|
|
0 commit comments