Range formatting is now supported in the json, markdown, toml, dockerfile, and jupyter plugins.
Additionally, most of the bugs in all these plugins have been fixed and many new config options have landed.
Run `dprint config update` on your project to get the latest versions.
The dprint/check GitHub action now supports caching out of the box between runs.
This caches dprint, its plugins, and the incremental formatting cache.
The action also contains it's own install script and verifies the attestation of the dprint release from GitHub. This makes the action more auditable. Previously it was using the https://t.co/eVxqBEqrvE script, which is not ideal.
dprint-plugin-markdown 0.23 was released with a new parser made specifically for formatting, which helped to fix a good number of bugs.
Additionally:
- HTML is now formatted in markdown
- Definition lists are supported
- Many new config options
It's also ~2.8x faster.
Blank lines are controllable now too.
- maxBlankLines for how many to keep between blocks
- heading.blankLinesAbove to force some breathing room above headings
Released dprint 0.55—a pluggable and configurable code formatting platform that unifies all your formatters behind a single command.
This substantial release lets you specify formatting plugins from npm.
dprint-plugin-dockerfile has been significantly improved with a Dockerfile parser written from scratch. The previously relied-on parser hadn't been updated in years.
Run `dprint add dockerfile` to use it, or `dprint config update` to update your existing plugin.
Due to terrible GitHub availability, dprint formatting plugins on https://t.co/1woJCf9myF are now served directly instead of redirecting to GH assets.
Additionally, the plugins are now cached indefinitely by the server, which eliminates the risk of a repo disappearing.
You can switch to dprint to use them all, or easily swap whatever formatter is the latest hype.
Plus use non-JS ecosystem formatters all from the same `dprint fmt` command instead of a separate tool per language.
dprint's incremental formatter is incredibly fast and happens without needing an opt-in.
You can use both oxc and biome via dprint for faster performance.
The deno and dprint vscode extensions now prompt when a custom executable path is set in the workspace configuration.
I believe this should help reduce the chance of malicious config launching an executable in a trusted workspace.