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

Commit

Permalink
release: 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jun 6, 2022
1 parent f7c6e2d commit 50bac73
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 7 deletions.
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:
- TypeScript's formatting is now in line with what Prettier does.
- Better formatting of string literals. The formatter now does a lot of cleaning:
```js
// original code
let a = {
"something": 3
}
let b = "cool ins\'t it";

// formatted code
let a = {
someething: 3
}
let b = "cool ins't it";
```
- Better formatting of various statements
- Improved the performance of the formatting of averagely 20%! Check the [relative
PR](https://github.com/rome/tools/pull/2634) if you're interested of what the team did.

To reach a better compatibility with Prettier, the team had to review 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",
"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 run multiple CI checks jsut 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
### 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
[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 %}

0 comments on commit 50bac73

Please sign in to comment.