0.24.0
Changes
New Process Plugin System
The process plugin system was redesigned and new process plugins are incompatible with old dprint CLIs. Additionally, the new CLI is incompatible with old process plugins (note: none of this applies to Wasm plugins—only process plugins). Hopefully this is the last time this occurs for process plugins as the new design is much better.
This means you need to manually upgrade any process plugins (dprint config update won't work). See installation instructions here:
- https://github.com/dprint/dprint-plugin-exec/releases
- https://github.com/dprint/dprint-plugin-prettier/releases
- https://github.com/dprint/dprint-plugin-roslyn/releases
- https://github.com/dprint/dprint-plugin-rustfmt/releases
This new design should be much more efficient:
- A single process is spawned and the process plugin's process formats on multiple threads instead of multiple process plugin processes being spawned.
- Support for cancellation and range formatting was added to the platform. This will be surfaced eventually to the editor extensions, but not yet.
- Note that this doesn't mean a plugin will support cancellation and range formatting, but just that the functionality is there in the platform if process plugins want to implement that.
- This has yet to be implemented for Wasm plugins. It will be done soon.
dprint-plugin-yapf deprecated
It was too much work for me to upgrade this plugin to the new process plugin schema and based on searching I found barely anyone using it. For this reason, I deprecated it and recommend you run the yapf CLI through dprint-plugin-exec instead, which should be almost equivalent.
Install
See https://dprint.dev/install/
Checksums
| Artifact | SHA-256 Checksum |
|---|---|
| Linux x86_64 Zip | 02de50aacbf9d3cc5fad45b503faba8cdd72626b7baedc7de430dc6db7b63e8a |
| Mac x86_64 Zip | 12821c811af93ef01e2af304607d2ac5e55b2036a7857779b2c7827df10cd914 |
| Mac aarch64 Zip | e08348d333cfe135a0eda6e932de01bc08ffd2cd24fc042f02756c079d1b6378 |
| Windows x86_64 Zip | b87fe1b623a28940ecf059d0fcd828b5adf6a53e956e7889a04135ca2373810d |
| Windows x86_64 Installer | 6df321dbc0c67d9ab93fc85fca1de2bded1774e188fafd034480305233cfea4c |