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

release: 0.6.0 #2662

Merged
merged 7 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Rome changelog

## 0.6.0

- BREAKING CHANGES: the command `rome format --ci` has been removed, use `rome ci` instead.
- Improved the compatibility with Prettier (check #2403 for more details):
ematipico marked this conversation as resolved.
Show resolved Hide resolved
- TypeScript's formatting is now in line with what Prettier does.
MichaReiser marked this conversation as resolved.
Show resolved Hide resolved
- Better formatting of string literals. The formatter now does a lot of cleaning:
MichaReiser marked this conversation as resolved.
Show resolved Hide resolved
```js
// original code
let a = {
"something": 3
}
let b = "cool ins\'t it";
ematipico marked this conversation as resolved.
Show resolved Hide resolved

// formatted code
let a = {
someething: 3
ematipico marked this conversation as resolved.
Show resolved Hide resolved
}
let b = "cool ins't it";
```
- Better formatting of various statements
- Improved the performance of the formatter an average of 20%! Check the [relevant
PR](https://github.com/rome/tools/pull/2634) if you're interested in what the team did.
ematipico marked this conversation as resolved.
Show resolved Hide resolved

To reach better compatibility with Prettier, the team had to revise the foundation of our printer,
which caused some regressions around how comments are printed. These are known issues that we
plan to close by next release.

## 0.5.0

- BREAKING CHANGES: the `format` command doesn't write on disk by default. Now the command prints on terminal.
Expand Down
4 changes: 2 additions & 2 deletions editors/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publisher": "rome",
"displayName": "Rome",
"description": "Rome LSP VS Code Extension",
"version": "0.6.0",
ematipico marked this conversation as resolved.
Show resolved Hide resolved
"version": "0.8.0",
"icon": "icon.png",
"activationEvents": [
"onLanguage:javascript",
Expand Down
2 changes: 1 addition & 1 deletion npm/rome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rome",
"version": "0.5.0-next",
"version": "0.6.0-next",
"bin": "bin/rome",
"scripts": {
"postinstall": "node scripts/postinstall.js"
Expand Down
15 changes: 15 additions & 0 deletions website/src/_includes/docs/ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## CI

Rome comes with a CI mode that allows performing multiple CI checks just by
running one single command.

This mode is only available via CLI.

### Use CI mode via CLI

```shell
rome ci
```

This command will:
- run the formatter in check mode
3 changes: 0 additions & 3 deletions website/src/_includes/docs/formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ appear only for documents that Rome supports.

### Use the formatter with the CLI

The only command that is supported is `format`.

You can start by running the CLI with the `--help` flag:

```shell
Expand All @@ -55,7 +53,6 @@ USAGE:

OPTIONS:
--write Write the output of the formatter to the files instead of printing the diff to the console
--ci Enable CI mode, lock files and exit with an error if the formatter would modify them
--skip-errors Skip over files containing syntax errors instead of returning an error
--indent-style <tabs|space> Determine whether the formatter should use tabs or spaces for indentation (default: tabs)
--indent-size <number> If the indentation style is set to spaces, determine how many spaces should be used for indentation (default: 2)
Expand Down
33 changes: 33 additions & 0 deletions website/src/_includes/docs/linter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Linter

You can use the linter via our [VS Code extension] or by downloading our CLI directly from our [release page].

> WARNING: The CLI and VS Code extension are packaged with separate binaries, which means that if you don't
> use our default options, you will have to **pass them to both the extension AND the CLI**.
>
> This is a temporary choice to allow people to play with our formatter. This will change in the near future.


> WARNING: this command is experimental for the time being won't do anything
ematipico marked this conversation as resolved.
Show resolved Hide resolved

### Use the formatter via CLI

You can start by running the CLI with the `--help` flag:

```shell
rome check --help
```

Which will show you the options available at the moment:

```shell
USAGE:
rome check <INPUTS...>

INPUTS can be one or more filesystem path, each pointing to a single file or an entire directory to be searched recursively for supported files

```


[VS Code extension]: https://marketplace.visualstudio.com/items?itemName=rome.rome
leops marked this conversation as resolved.
Show resolved Hide resolved
[release page]: https://github.com/rome/tools/releases
2 changes: 2 additions & 0 deletions website/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ layout: layouts/homepage.liquid
{% include docs/getting-started.md %}
{% include docs/status.md %}
{% include docs/formatter.md %}
{% include docs/linter.md %}
{% include docs/ci.md %}
{% include docs/philosophy.md %}
{% include docs/_old_diagnostic-anatomy.md %}