|
1 | 1 | # Rome changelog |
2 | 2 |
|
| 3 | +## 11.0.0 |
| 4 | + |
| 5 | +### CLI |
| 6 | + |
| 7 | +#### BREAKING CHANGES |
| 8 | + |
| 9 | +- the argument `--no-colors` has been removed, in favor of `--color=off` |
| 10 | + |
| 11 | +#### Other changes |
| 12 | + |
| 13 | +- `init` command now adds the `$schema` property to the generated `rome.json` file, |
| 14 | + if` rome` is installed inside the `node_modules` folder. Check the [guide] to know how |
| 15 | + manually update this property to an existing project. |
| 16 | +- Added `--semicolons` argument to the `rome format`, where users can specify whether |
| 17 | + they want semicolons or not in their source code. |
| 18 | +- Rome now exists with an error code if it doesn't process any file. |
| 19 | +- Fixed how the maximum number of diagnostics is calculated [#3869](https://github.com/rome/tools/pull/3869). |
| 20 | +- Rome now prints the total number of files that caused errors. |
| 21 | +- Rome now correctly traverses symbolic links, it correctly detects possible loops and |
| 22 | + doesn't stop the traversal; |
| 23 | +- the new global argument `--colors` now accepts `force`, useful to force colors when |
| 24 | + Rome is spawned as a process; |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +### Configuration |
| 30 | + |
| 31 | +- Added a `$schema` property, where users can add the JSON schema. This feature provides |
| 32 | + auto-completion and descriptions of all fields of the configuration file. |
| 33 | +- Added a new `files.ignore` option where users can ignore files across the board. |
| 34 | +- |
| 35 | + |
| 36 | +### Editors |
| 37 | + |
| 38 | +- The extension is published [Open VSX](https://open-vsx.org/) too. |
| 39 | +- The extension now correctly resolves the version installed via the `node_modules` folder |
| 40 | +- Fixed an issue where diagnostics were not updated after a change to the configuration file (#3724)[https://github.com/rome/tools/pull/3724] |
| 41 | + |
| 42 | +### Formatter |
| 43 | + |
| 44 | +#### BREAKING CHANGES |
| 45 | + |
| 46 | +- Fixed incompatibility issues with Prettier [#3531](https://github.com/rome/tools/issues/3531) |
| 47 | + - [#3686](https://github.com/rome/tools/pull/3686) |
| 48 | + - [#3732](https://github.com/rome/tools/pull/3732) |
| 49 | + - [#3824])https://github.com/rome/tools/pull/3824) |
| 50 | +- Fixed an issue where infinite parentheses were wrongly inserted [#3735](https://github.com/rome/tools/issues/3735) |
| 51 | +- Better formatting for `jestEach` templates |
| 52 | + |
| 53 | +#### Other changes |
| 54 | + |
| 55 | +- Added support for omitting semicolons. |
| 56 | + |
| 57 | + |
| 58 | +### Linter |
| 59 | + |
| 60 | +- Fixed false positives emitted by `noUselessFragments` [#3668](https://github.com/rome/tools/issues/3668) |
| 61 | +- Fixed `noArrayIndexKey` where some cases were not detected [#3670](https://github.com/rome/tools/issues/3670) |
| 62 | +- Fixed false positives emitted by `noConstAssign` [#3728](https://github.com/rome/tools/issues/3728) |
| 63 | +- Fixed false positives emitted by `noShoutyConstants` [#3867](https://github.com/rome/tools/issues/3867) |
| 64 | +- Fixed false positives emitted by `noUnusedVariables` [#3779](https://github.com/rome/tools/issues/3779) |
| 65 | +- Fixed `noUndeclaredVariables` where some cases were not detected [#3798](https://github.com/rome/tools/issues/3798) |
| 66 | + |
| 67 | +#### New rules |
| 68 | + |
| 69 | +- [noAccessKey](https://docs.rome.tools/lint/rules/noAccessKey) |
| 70 | +- [noBannedTypes](https://docs.rome.tools/lint/rules/noBannedTypes) |
| 71 | +- [noConditionalAssignment](https://docs.rome.tools/lint/rules/noConditionalAssignment) |
| 72 | +- [noConstAssign](https://docs.rome.tools/lint/rules/noConstAssign) |
| 73 | +- [noConstEnum](https://docs.rome.tools/lint/rules/noConstEnum) |
| 74 | +- [noConstructorReturn](https://docs.rome.tools/lint/rules/noConstructorReturn) |
| 75 | +- [noDistractingElements](https://docs.rome.tools/lint/rules/noDistractingElements) |
| 76 | +- [noDupeKeys](https://docs.rome.tools/lint/rules/noDupeKeys) |
| 77 | +- [noEmptyInterface](https://docs.rome.tools/lint/rules/noEmptyInterface) |
| 78 | +- [noExplicitAny](https://docs.rome.tools/lint/rules/noExplicitAny) |
| 79 | +- [noExtraNonNullAssertion](https://docs.rome.tools/lint/rules/noExtraNonNullAssertion) |
| 80 | +- [noHeaderScope](https://docs.rome.tools/lint/rules/noHeaderScope) |
| 81 | +- [noInvalidConstructorSuper](https://docs.rome.tools/lint/rules/noInvalidConstructorSuper) |
| 82 | +- [noNonNullAssertion](https://docs.rome.tools/lint/rules/noNonNullAssertion) |
| 83 | +- [noPrecisionLoss](https://docs.rome.tools/lint/rules/noPrecisionLoss) |
| 84 | +- [noSetterReturn](https://docs.rome.tools/lint/rules/noSetterReturn) |
| 85 | +- [noStringCaseMismatch](https://docs.rome.tools/lint/rules/noStringCaseMismatch) |
| 86 | +- [noUnsafeFinally](https://docs.rome.tools/lint/rules/noUnsafeFinally) |
| 87 | +- [noVar](https://docs.rome.tools/lint/rules/noVar) |
| 88 | +- [noVoidTypeReturn](https://docs.rome.tools/lint/rules/noVoidTypeReturn) |
| 89 | +- [useConst](https://docs.rome.tools/lint/rules/useConst) |
| 90 | +- [useDefaultSwitchClauseLast](https://docs.rome.tools/lint/rules/useDefaultSwitchClauseLast) |
| 91 | +- [useFlatMap](https://docs.rome.tools/lint/rules/useFlatMap) |
| 92 | +- [useNumericLiterals](https://docs.rome.tools/lint/rules/useNumericLiterals) |
| 93 | +- [useAriaPropsForRole](https://docs.rome.tools/lint/rules/useAriaPropsForRole) |
| 94 | +- [useAriaPropTypes](https://docs.rome.tools/lint/rules/useAriaPropTypes) |
| 95 | + |
| 96 | +### Parser |
| 97 | + |
| 98 | +- Added support for `JSON`; |
| 99 | +- Added support satisfiesifies` keyword; |
| 100 | +- Fixed parse for `async` used as label [#3612](https://github.com/rome/tools/issues/3612) |
| 101 | +- Fixed parse of `export default function` in `d.ts` files [#3485](https://github.com/rome/tools/issues/3485) |
| 102 | +- Improved the parsing of `await` in non-async contexts [#2479](https://github.com/rome/tools/issues/2479) |
| 103 | + |
| 104 | +### VSCode |
| 105 | + |
| 106 | +- Removed the "preview" label from the extension; |
| 107 | + |
| 108 | +### JavaScript APIs |
| 109 | + |
| 110 | +#### Other changes |
| 111 | + |
| 112 | +- The package has been marked as unstable and in alpha state. |
| 113 | + |
| 114 | +#### Breaking change |
| 115 | + |
| 116 | +- The concept of `backend` has been removed, in favor of the concept of `distribution`. |
| 117 | +- Removed the possibility to connect to the daemon, for the time being. |
| 118 | +- The APIs are asynchronous anymore. |
| 119 | + |
| 120 | + |
| 121 | + |
3 | 122 | ## 10.0.1 |
4 | 123 |
|
5 | 124 | ### CLI |
|
0 commit comments