Skip to content

Releases: dprint/dprint

0.46.1

26 May 19:42
Compare
Choose a tag to compare

Changes

  • fix: dprint 0.46 release for cargo install without --locked flag (#852)
  • fix: upgrade to rustls 0.23.8 (#853)

Please run dprint config update after upgrading as some BOM handling happens in the plugins now and some may fail to parse files with a BOM now. See #854 and sorry for any headaches (I'm unsure of the impact of this change, so let me know if this is a huge hassle for you).

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip cdea84bce1d84c26e8eced2265d246b79a849ec2e7d1377d98dd7bdb21c7ce83
dprint-aarch64-apple-darwin.zip f3ff4faef83d14c3b4ae262e79a40d4e0fc3fa1903d0b6e9b82f0b25b00e9499
dprint-x86_64-pc-windows-msvc.zip 74e5ab38c744d5903862c2b5174d0fef9759b5506da775e1fb93b6a68c63101d
dprint-x86_64-pc-windows-msvc-installer.exe 107786c41be76b49463a50d7d9d788397bba723e107e723347f8e8dde65339dc
dprint-x86_64-unknown-linux-gnu.zip cb72fa6b474e2847a3cf5705b43ee2cbfdafddd7c69ff162309fd1f4f43c872a
dprint-x86_64-unknown-linux-musl.zip 4a7d6fa6b920ab150f580965556086cdd7992e07078e627ab9a9d1c3bd30ba85
dprint-aarch64-unknown-linux-gnu.zip c4e892d5d237a57ede7900255e5ce669b56160e61c89798c118fbd4c36d48ff2
dprint-aarch64-unknown-linux-musl.zip e2b6d87167d21f1f01571790e79526ef9caff3b8b75f5cac348c4f06f60a8c16

0.46.0

25 May 15:03
Compare
Choose a tag to compare

Changes

  • feat: gitignore support (#832)
  • feat: DPRINT_TLS_CA_STORE and DPRINT_CERT (#850)
  • fix: remove BOM handling from the CLI (#844)

Please run dprint config update after upgrading as some BOM handling happens in the plugins now and some may fail to parse files with a BOM now. See #854 and sorry for any headaches (I'm unsure of the impact of this change, so let me know if this is a huge hassle for you).

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip e339f1f891c60087676d72f70ba5f80dcaedde4bdc58730b9cb68a5483b3abfd
dprint-aarch64-apple-darwin.zip 4b608b3676f10e04328c3d8be396bded96328ebca9b95b70bf5baf67bed7b135
dprint-x86_64-pc-windows-msvc.zip 786201545938f6f7c6d407e6404b31ae9bbf9e5a4abc4c88dc9bd73da369a906
dprint-x86_64-pc-windows-msvc-installer.exe e445b37af124e5d8ef691685632509d2bfc701962c58db89eebc8a8de7352ab4
dprint-x86_64-unknown-linux-gnu.zip 8274ea44d2ab4d10b8bdfcc824d946a6d051594aede49c9db8c5e810887abd67
dprint-x86_64-unknown-linux-musl.zip 7a2c12edc868259be890174c4ec3bd51c81ec8773aa294e12fac0634f36d15f5
dprint-aarch64-unknown-linux-gnu.zip 6617465acba53c9b939e73f20538a8027e45593342c34f7ac4826c9f4e6cf53b
dprint-aarch64-unknown-linux-musl.zip e52c0a3398e34e88ffe560e719bf8361ba3f35b4e0927ab9ba0761796884ce24

0.45.1

05 Apr 02:20
Compare
Choose a tag to compare

Changes

  • perf: lazily create ureq agents (#836)

dprint on Mac and Linux now starts up faster.

Before:

% dprint -v
0.45.0
% time dprint check --incremental=false ./data/package-template.json
0.173s total

After:

% dprint -v
0.45.1
% time dprint --incremental=false ./data/package-template.json
0.023s total

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip 83cce6b82d8674dbdddaf911bc117f1c866aaa4712aa381e54ab9466526026aa
dprint-aarch64-apple-darwin.zip be6e4bcf9aafeb4ef34f27385717004cc0dfd06f8bce8e67b18937b53285d436
dprint-x86_64-pc-windows-msvc.zip 71fef42ad86017a50bee977836dfd387d8584d6a9c4c03354d62977eaa1f135b
dprint-x86_64-pc-windows-msvc-installer.exe 6db6148387b9e2e0434d0eaef3624bc1a401c85175e4863c220143d6151857a0
dprint-x86_64-unknown-linux-gnu.zip 4e0c1d4f0f9f41efc08d929616c9f73abea7e57b9658a8f5f478a26e165c331c
dprint-x86_64-unknown-linux-musl.zip eaf2690b7414d11bc33fb2a81898f285748a7a6a7983f965b569e536fb67b815
dprint-aarch64-unknown-linux-gnu.zip 828133ac7a7591a2d9e63d5f10a70751f558152b20653383ae32ce76199662ad
dprint-aarch64-unknown-linux-musl.zip c05d839d1f187d68d55effc60add4e66afb373015a1d1126c310b5c8669a8563

0.45.0

25 Dec 22:06
Compare
Choose a tag to compare

Changes

  • feat: experimental lsp (#803)
  • feat: protect against plugin formatting non-empty file above 300 chars to empty file (#807)
  • fix: upgrade wasmer to 4.2.5 (#809)
  • fix: respect NO_COLOR env var (#808)

Experimental Language Server

This release adds a language server to dprint found at dprint lsp. This will allow more easily using dprint in editors beside vscode and intellij, such as Neovim.

To try it out in vscode, add "dprint.experimentalLsp": true to your vscode settings. Please try it out and let me know if you run into any issues.

Outstanding tasks:

  • Figure out how to do completions for dprint.json files (#806)
  • Document how to use dprint lsp with editors such as Neovim (#810)
    • If you use Neovim or any other editor that easily supports the LSP, please consider contributing some setup documentation instructions as I'm very unfamiliar with other editors.

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip 6df01e0357049ad3bc62bbd2f60c9c448bd747b650ebf20f7ab5a38cefd36b44
dprint-aarch64-apple-darwin.zip cf23ab2785ca25f27ed5ca5127663dfe0131ae146d0b8d5159b06e0694ad74ac
dprint-x86_64-pc-windows-msvc.zip 0a5a83b521f152cd83cfb95ef119286e472b3b43077b3ffaeb4b3297fbb52e7f
dprint-x86_64-pc-windows-msvc-installer.exe 88d7bd63ce389f0ac2cacb53b020de1319bbe9ea104aa8390788cbfe10a74bea
dprint-x86_64-unknown-linux-gnu.zip 581e44d57631498edfed6baad5dd77d832116a12c94dd6fb394045ed40af18ea
dprint-x86_64-unknown-linux-musl.zip 8fb959aeeb441e0038217a7973f3a8e246e7aa46b77b33ba5f5e2f38d86f531b
dprint-aarch64-unknown-linux-gnu.zip 45af380a82a65ebe173de25329093fc2e27cf64f3aeef9e39f723873b12fba7f
dprint-aarch64-unknown-linux-musl.zip 48ba9f0910e32a66c869cffc6fd96d2d8f000ffb3d11234e71ae952f322dc849

0.44.0

18 Dec 01:42
Compare
Choose a tag to compare

Changes

This is a breaking change for how the CLI uses the file patterns passed to it.

  1. Paths provided to the CLI (ex. dprint fmt **/*.js) are now an intersection with the config includes patterns.
    • In other words, this only matches file patterns provided as CLI args that also match the config.
  2. Paths provided as --excludes (ex. dprint fmt --excludes **/data) are now a union with the config excludes patterns.
    • In other words, this excludes files/directories in addition to what's excluded in the config.

The old behaviour may be useful in some rare cases. To get it, you can use these new CLI flags:

  1. --includes-override - overrides/replaces the patterns derived from the config. This is the previous behaviour of providing file patterns as CLI args.
  2. --excludes-override - overrides/replaces the "excludes" value in the config. This is the previous behaviour of --excludes.

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip 758f501e3f47be0d880e79449dc3ebc269a8c52efc4a7fc53a5756fd1b673005
dprint-aarch64-apple-darwin.zip 68fc1abebe70b3947ec7e019bb3c3d47939cb71a8c0877f1a632b552edfaf6e0
dprint-x86_64-pc-windows-msvc.zip 7e100d917a6c2c76458acedf7b9745ceb8cd380c56a5b1f09f6e27c8f41a94d8
dprint-x86_64-pc-windows-msvc-installer.exe db85a0671896fc2c669efdca9f41772e676bf3e7112f111dc19d5803e73c46d1
dprint-x86_64-unknown-linux-gnu.zip acc510e33e4f0b0336e420f42322f81109ffc52d74939450614c97988d09b5b2
dprint-x86_64-unknown-linux-musl.zip 1407c11d0855d6eb5ed4b2891b4fc7effcdaa276a7d77b5b20b65540ef90f58f
dprint-aarch64-unknown-linux-gnu.zip 578a72d23703ac584ca4d15bea3cff7a56f33b800f74d15b9f9d8cc7d4715a2d
dprint-aarch64-unknown-linux-musl.zip 7ec71a031c7374b43122c065d49768cacf6561ae8980d0aa09202d7de01749f6

0.43.2

01 Dec 00:47
Compare
Choose a tag to compare

Changes

  • fix: cli include args should not override negated includes in config (#797)
  • fix: support formatting Vec<u8> (not just utf-8 strings) (#792)
    • Also a slight perf improvement.

dprint-plugin-jupyter

There is now a Jupyter Notebook plugin to format code blocks in Jupyter Notebooks using any other dprint plugin.

https://dprint.dev/plugins/jupyter/

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip f860091eb4be0958b23d9aed2010e2a225ccc8d99ad79e408005d4f132d51d4b
dprint-aarch64-apple-darwin.zip de523a8df01b2843d89ddd145463d70c10d813b5a0814b7094022daf14e2b9e7
dprint-x86_64-pc-windows-msvc.zip 3a0b473ece37be2b61ecfbe8480cf4af8fb5936c1f2f3125bd12c797950b79c5
dprint-x86_64-pc-windows-msvc-installer.exe b396bc622cd2bc9ceb0dd7fdb94c40b1f1c9d56f71e7466eab5e0b622a6624d6
dprint-x86_64-unknown-linux-gnu.zip 89a7e33416dfab15c61ac2aad19e82c2bdb3b57f874f9fe3806312a27aa7afd4
dprint-x86_64-unknown-linux-musl.zip 68bfc2e1c46ebc1794a76dfb99e971ad7461892a875bc3c5ac6da80f871e16e4
dprint-aarch64-unknown-linux-gnu.zip a273da2e9940de338687a067d5551af63b2435821dd2ea7b868dd3ad1b88f34d
dprint-aarch64-unknown-linux-musl.zip f8dcf95da927ada9c0f8c360bc5f2644d6f012d37fcc1563a6da26b2a4d95dea

0.43.1

26 Nov 00:14
Compare
Choose a tag to compare

Changes

  • fix: smarter 'no files found' error when providing cli args and has nested configs (#789)
  • fix: recommend running with --allow-no-files in some cases (#788)
  • fix: resolve 'system' newline global config in CLI (#787)
  • fix: config glob matching was somewhat broken if cwd was descendant dir (#786)

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip b4c937c76038ff3198b9e3494119fb6405e54256a2c0ee7db797486cde4eef9f
dprint-aarch64-apple-darwin.zip ea479f5ab3a2c8933256e61e77c5a68ffda8d6c77be968b87d80374121686959
dprint-x86_64-pc-windows-msvc.zip ce017e44244ce0dc837a9c6536d50ef5de6e24c07fa6d0c915b14a1b64082c3e
dprint-x86_64-pc-windows-msvc-installer.exe 42c5efbbec24062c82e241a80743288552873a0242b55acffb1d3c64c2f57d78
dprint-x86_64-unknown-linux-gnu.zip ae2e4c6530994218a07440ba2245b6106fb137093b15d3703dbf83509a8af2ba
dprint-x86_64-unknown-linux-musl.zip 069c27da39ebb3c7227643cec6e4efec38f4e3ad8cef61290482e8a3e2702655
dprint-aarch64-unknown-linux-gnu.zip 608d1241acb4392b997677c7c5d96e25dca3ec5d3557f8e632de243ad83b75d6
dprint-aarch64-unknown-linux-musl.zip e4fb458f1affc0c8e81cb2e158144672eb5c6bc3064a48bb32f0fbd57c2c9aee

0.43.0

19 Nov 00:34
Compare
Choose a tag to compare

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

0.42.5

29 Oct 00:35
Compare
Choose a tag to compare

Changes

  • Added an aarch64-unknown-linux-musl build.

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip 4b1d1fd868a39dd6c8a1641ed774d1b25ded18694a3c7e585f7af4bf74ac00ec
dprint-aarch64-apple-darwin.zip 93c995332cb927cebd5b0937fc23939ea5f18b8a24a76e8535486abb9da4a68b
dprint-x86_64-pc-windows-msvc.zip 6eeb4b17eb7492f8e89cb8334581159686bb793c5e4dff6ecf029aa786f5e88c
dprint-x86_64-pc-windows-msvc-installer.exe e3fc5122b17f7067d0d2b9d6bf66bdd316133dce14efec3672e146395690d092
dprint-x86_64-unknown-linux-gnu.zip 49b183d9cab9aff75eb35fa6230216c42b45e8616dcc47a8914c6e8e6a37e89c
dprint-x86_64-unknown-linux-musl.zip f4326c24117bfc06cc8010da940e85be817c8c798b0e72243edd60066c88dbea
dprint-aarch64-unknown-linux-gnu.zip 5f1d472fd6ed35704cdb3b016490761b47183b0a3b6c70b2a0e453045f1aa8a7
dprint-aarch64-unknown-linux-musl.zip 6a99b4ed259c82487993dc17d488f21dd495f6b2fb59d99408734e51ea3c7377

0.42.3

27 Oct 14:20
Compare
Choose a tag to compare

Changes

  • perf: ensure incremental cache doesn't get invalidated by unstable jsonc deserialization (#766)

The incremental cache was getting busted more often than it should have when using certain plugins such as dprint-plugin-exec. This was due to unstable json deserialization in only certain scenarios. After this change, the serialization is now stable and the incremental cache should work much better.

Install

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

Checksums

Artifact SHA-256 Checksum
dprint-x86_64-apple-darwin.zip d447e7439fbef636bde01dff7fe19efae6605b08d153e4476f26e7d98751fe31
dprint-aarch64-apple-darwin.zip 3ce841fa02d5fcdd03e749ca14dac783470aab4a1451b0aad7428c86bce79bb6
dprint-x86_64-pc-windows-msvc.zip c08d355ee0cbc5c33bd49502dd9d69c72e91c1855735767ab5eb81f1894c2396
dprint-x86_64-pc-windows-msvc-installer.exe b3921646b8feaa340ccebf7e13383b04411033c644ad0fa52def6ab0a9a62b1a
dprint-x86_64-unknown-linux-gnu.zip 446b993ac58e66fa951f0b1286e3b04066c4fadd5c3cd5c1ea3fc52f123fdaab
dprint-x86_64-unknown-linux-musl.zip 35aa7262e93fa568ac7afa8de1068068defbcfa905555c6c31bbdb816af0534b
dprint-aarch64-unknown-linux-gnu.zip 74eee7801a5bc48d159523cda484e745b9d12cb42a8c347de0a2c6a92f22a823