Skip to content

Releases

[email protected]

Choose a tag to compare

@github-actions github-actions released this 19 Oct 10:00
Immutable release. Only release title and notes can be modified.
c382200

Minor Changes

  • #535 4ad8ffe Thanks @JounQin! - feat(prettier-plugin-toml): load tombi through tombit

    tombit wraps the same tombi-lib crate and keeps configuration discovery and
    merging in Rust, so the plugin no longer ships smol-toml or a JavaScript
    discovery/caching layer. Prettier's resolved options — including its defaults —
    are passed as overrideConfig; tombi discovers the project's own tombi.toml
    (or [tool.tombi] in pyproject.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 a filepath
    now works: configuration discovery starts from the current directory.
    Diagnostics now carry a range, so syntax errors keep rendering their code
    frame.

[email protected]

Choose a tag to compare

@github-actions github-actions released this 17 Oct 12:02
Immutable release. Only release title and notes can be modified.
1dda891

Major Changes

  • #530 85af9a9 Thanks @JounQin! - feat(prettier-plugin-toml)!: migrate from @tombi-toml/wasm-lib to @tombi-toml/lib

    Tombi 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 MB tombi_wasm_bg.wasm file on first format, and the
    @dual-bundle/import-meta-resolve dependency is dropped.

    • @tombi-toml/lib ships platform specific binaries (Linux, macOS and Windows
      on x64/arm64, including musl) as optional dependencies.
    • Node.js v20.0.0 or 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]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 19:26
Immutable release. Only release title and notes can be modified.
bc3e636

Patch Changes

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 19:07
Immutable release. Only release title and notes can be modified.
55ea113

Patch Changes

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 14:52
Immutable release. Only release title and notes can be modified.
ddb07bb

Major Changes

  • #519 e2e5c97 Thanks @JounQin! - feat(prettier-plugin-toml)!: replace the unmaintained taplo with tombi

    The parser/printer is now powered by @tombi-toml/wasm-lib, which supports TOML
    v1.0.0 and v1.1.0 and 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-style and bracketSpacing →
      inline-table-brace-space-width. endOfLine keeps being handled by Prettier.
    • The previous taplo options (alignEntries, alignComments,
      arrayAutoExpand, arrayAutoCollapse, compactArrays,
      compactInlineTables, compactEntries, indentTables, indentEntries,
      reorderKeys and allowedBlankLines) are replaced by tombi's own options.
    • Tombi's own configuration (.tombi.toml, tombi.toml, .config/tombi.toml
      and [tool.tombi] in pyproject.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.0 or 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-toml README for the full list of supported options.

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 19:26
Immutable release. Only release title and notes can be modified.
bc3e636

Patch Changes

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 19:07
Immutable release. Only release title and notes can be modified.
55ea113

Patch Changes

[email protected]

Choose a tag to compare

@github-actions github-actions released this 24 Sep 14:52
Immutable release. Only release title and notes can be modified.
ddb07bb

Minor Changes

New Contributors

Full Changelog: https://github.com/un-ts/prettier/compare/[email protected]@0.20.0

[email protected]

Choose a tag to compare

@JounQin JounQin released this 10 Jul 06:17
Immutable release. Only release title and notes can be modified.
0314b38

Minor Changes

New Contributors

Full Changelog: https://github.com/un-ts/prettier/compare/[email protected]@0.19.0

[email protected]

Choose a tag to compare

@JounQin JounQin released this 06 Apr 05:22
8c819f4

Patch Changes