Skip to content

0.27.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 00:33
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.

Changes

Thanks to @todor-a for implementing the big speedup in this release!

json
  • perf: build the wasm plugin with simd (#95)
  • perf: compact tokens and reuse a bump allocator (#92)
  • perf: compare the formatted text many bytes at a time in wasm (#96)
  • perf: format off a stream of bytes instead of parsing (#56)
  • perf: scan strings and indentation eight bytes at a time (#93)
  • perf: speed up the printer (#94)

Install

Install and setup dprint.

Then in your project's dprint configuration file:

  1. Specify the plugin url in the "plugins" array (can be done via dprint add json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "npm:@dprint/json@0.27.0"
      ]
    }

JS Formatting API