Skip to content

0.43.0

Compare
Choose a tag to compare
@github-actions github-actions released this 19 Nov 00:34
· 81 commits to main since this release

Changes

  • feat: --allow-no-files (#778)

This allows specifying a --allow-no-files flag on the command line (ex. dprint check --allow-no-files **/*.ts) to supress the non-zero exit code when dprint finds no files and return a 0 exit code. Previously, the only option was to have some way of checking for exit code 14, which was inconvenient. This will be useful in pre-commit hooks, for example.

More Plugins

The plan (not guarantee... I do this in my free time) for the end of this year has been to get more formatters working in dprint, improve the Prettier plugin, and get dprint compiling on more architectures. See the End of 2023 roadmap for more details.

On that note, dprint now supports two additional plugins.

Biome Plugin

There is now a Biome adapter plugin for formatting JavaScript, TypeScript, and JSON files with Biome. It's a Wasm plugin so it runs sandboxed and you can use it on all CPU architectures that dprint supports. Additionally, it supports formatting via a JavaScript API.

Run the following to add the Biome plugin to your dprint.json:

dprint config add biome

For more details, see: https://dprint.dev/plugins/biome/

Ruff Plugin

Similarly, there is now a Ruff adapter plugin for formatting Python files with Ruff. It is also a Wasm plugin and also has support for formatting via a JavaScript API.

Run the following to add the Ruff plugin to your dprint.json:

dprint config add ruff

For more details, see: https://dprint.dev/plugins/ruff/

Install

Run dprint upgrade or see https://dprint.dev/install/

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip 8687ddffc00197807ca37934bdf392fa7f7441b8124a6679c9fcccb862c5c5e7
dprint-aarch64-apple-darwin.zip fa5f29ab77fb32742aba7d5cd1cb01d1e8f84abda5ddcddb5c4489fbad231390
dprint-x86_64-pc-windows-msvc.zip dc36df4049633e0bb281a1cdb64ad95e593f299e560b664958457478267e939e
dprint-x86_64-pc-windows-msvc-installer.exe de6af1654fe910948dc98c2ba40e1a0a111bc3f4b625430416b712fe2b474f42
dprint-x86_64-unknown-linux-gnu.zip 2998bc8cf8db3f5a2453e76cd901fe1b43a58d977165e6828b6ef256cd50ac82
dprint-x86_64-unknown-linux-musl.zip a73e3ced32b4b82f4e462e4cb4c8206e87d649715b974ed17f90986856498255
dprint-aarch64-unknown-linux-gnu.zip 6fce6e0dfe2ca50ef27aaf30fc3dd43e39da41902ec2817ca6b192012cef5104
dprint-aarch64-unknown-linux-musl.zip 76270d79c923c14fdbd617d46765ab4299cd5966532bf3c602a5eb414cd6e755