|
1 | 1 | # Change Log |
2 | 2 |
|
| 3 | +## 3.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#519](https://github.com/un-ts/prettier/pull/519) [`e2e5c97`](https://github.com/un-ts/prettier/commit/e2e5c9773c0840d2dcc0458c7d7a0f6a1137d11d) Thanks [@JounQin](https://github.com/JounQin)! - feat(prettier-plugin-toml)!: replace the unmaintained [`taplo`](https://github.com/tamasfe/taplo) with [`tombi`](https://github.com/tombi-toml/tombi) |
| 8 | + |
| 9 | + The parser/printer is now powered by `@tombi-toml/wasm-lib`, which supports TOML |
| 10 | + `v1.0.0` and `v1.1.0` and fixes the crashes reported in |
| 11 | + [#487](https://github.com/un-ts/prettier/issues/487). |
| 12 | + |
| 13 | + - Prettier's core options are inherited and mapped to tombi: `printWidth` → |
| 14 | + `line-width`, `tabWidth` → `indent-width`, `useTabs` → `indent-style`, |
| 15 | + `singleQuote` → `string-quote-style` and `bracketSpacing` → |
| 16 | + `inline-table-brace-space-width`. `endOfLine` keeps being handled by Prettier. |
| 17 | + - The previous `taplo` options (`alignEntries`, `alignComments`, |
| 18 | + `arrayAutoExpand`, `arrayAutoCollapse`, `compactArrays`, |
| 19 | + `compactInlineTables`, `compactEntries`, `indentTables`, `indentEntries`, |
| 20 | + `reorderKeys` and `allowedBlankLines`) are replaced by tombi's own options. |
| 21 | + - Tombi's own configuration (`.tombi.toml`, `tombi.toml`, `.config/tombi.toml` |
| 22 | + and `[tool.tombi]` in `pyproject.toml`) is picked up following |
| 23 | + [Tombi's search priority](https://tombi-toml.github.io/tombi/docs/configuration). |
| 24 | + The discovered `[format.rules]` override Prettier's defaults, while explicitly |
| 25 | + set Prettier options override the discovered config. |
| 26 | + - Node.js `v18.0.0` or later is required. |
| 27 | + |
| 28 | + Tombi's schema lookup is always disabled, and discovered configuration files are |
| 29 | + watched so edits to them are picked up without restarting the process. |
| 30 | + |
| 31 | + See the `prettier-plugin-toml` README for the full list of supported options. |
| 32 | + |
3 | 33 | ## 2.0.6 |
4 | 34 |
|
5 | 35 | ### Patch Changes |
|
0 commit comments