Repository navigation
Releases
[email protected]
Minor Changes
-
#535
4ad8ffeThanks @JounQin! - feat(prettier-plugin-toml): load tombi throughtombittombitwraps the sametombi-libcrate and keeps configuration discovery and
merging in Rust, so the plugin no longer shipssmol-tomlor a JavaScript
discovery/caching layer. Prettier's resolved options — including its defaults —
are passed asoverrideConfig; tombi discovers the project's owntombi.toml
(or[tool.tombi]inpyproject.toml) and the user/system configurations.Precedence change: Prettier's core options (
printWidth,tabWidth,useTabs,
singleQuote,bracketSpacing) always take precedence over a discovered
tombi.toml. The plugin's own options no longer declare Prettier defaults, so
when they are not set the discovered configuration (or Tombi's default)
decides; explicitly set options still override it. The discovered
configuration's[[overrides]]are applied by Tombi last.toml-version
follows the same rule because it decides how the source is parsed. Formatting a string without afilepath
now works: configuration discovery starts from the current directory.
Diagnostics now carry arange, so syntax errors keep rendering their code
frame.
[email protected]
Major Changes
-
#530
85af9a9Thanks @JounQin! - feat(prettier-plugin-toml)!: migrate from@tombi-toml/wasm-libto@tombi-toml/libTombi is now loaded through its prebuilt native Node.js binding instead of the
WebAssembly build. The WASM loading shim is gone, so the plugin no longer has to
resolve and read the ~6.6 MBtombi_wasm_bg.wasmfile on first format, and the
@dual-bundle/import-meta-resolvedependency is dropped.@tombi-toml/libships platform specific binaries (Linux, macOS and Windows
onx64/arm64, including musl) as optional dependencies.- Node.js
v20.0.0or later is required, matching the engine range declared by
@tombi-toml/lib.
The exposed options, the configuration discovery and the formatting behaviour
itself are unchanged.
[email protected]
[email protected]
[email protected]
Major Changes
-
#519
e2e5c97Thanks @JounQin! - feat(prettier-plugin-toml)!: replace the unmaintainedtaplowithtombiThe parser/printer is now powered by
@tombi-toml/wasm-lib, which supports TOML
v1.0.0andv1.1.0and fixes the crashes reported in
#487.- Prettier's core options are inherited and mapped to tombi:
printWidth→
line-width,tabWidth→indent-width,useTabs→indent-style,
singleQuote→string-quote-styleandbracketSpacing→
inline-table-brace-space-width.endOfLinekeeps being handled by Prettier. - The previous
taplooptions (alignEntries,alignComments,
arrayAutoExpand,arrayAutoCollapse,compactArrays,
compactInlineTables,compactEntries,indentTables,indentEntries,
reorderKeysandallowedBlankLines) are replaced by tombi's own options. - Tombi's own configuration (
.tombi.toml,tombi.toml,.config/tombi.toml
and[tool.tombi]inpyproject.toml) is picked up following
Tombi's search priority.
The discovered[format.rules]override Prettier's defaults, while explicitly
set Prettier options override the discovered config. - Node.js
v18.0.0or later is required.
Tombi's schema lookup is always disabled, and discovered configuration files are
watched so edits to them are picked up without restarting the process.See the
prettier-plugin-tomlREADME for the full list of supported options. - Prettier's core options are inherited and mapped to tombi:
[email protected]
[email protected]
[email protected]
Minor Changes
New Contributors
Full Changelog: https://github.com/un-ts/prettier/compare/[email protected]@0.20.0
[email protected]
Minor Changes
- #512
733fcfdThanks @jjloneman! - feat: ✨ supportzshdialect by upgradingsh-syntaxto^0.6.0
New Contributors
- @jjloneman made their first contribution in #512
Full Changelog: https://github.com/un-ts/prettier/compare/[email protected]@0.19.0