David Sherret
David Sherret
@dsherret.dev
Software developer. Prev @deno.land. Working on ts-morph, dprint, and more (https://github.com/dsherret)
1.4K followers81 following167 posts
Current progress compiling Prettier to Wasm.
I've been looking into getting prettier compiled as Wasm the past week with equivalent performance to v8... initially had some poor investigation into it (github.com/dprint/dprin...), but I resurrected an idea I had in the past and it's looking more promising.
You can use bun's formatter in dprint now with `dprint add bun` (dprint.dev - code formatter for all your code formatters) It's also available to try in the playground here: dprint.dev/playground/#... Of if you want to use it in JavaScript: www.npmjs.com/package/@dpr...
After many years, finally got the Roslyn (C#/VB) formatting plugin for dprint (dprint.dev) compiled to Wasm so it runs sandboxed instead of launching an executable. Amazing how far C# has come.
I've been looking into getting prettier compiled as Wasm the past week with equivalent performance to v8... initially had some poor investigation into it (github.com/dprint/dprin...), but I resurrected an idea I had in the past and it's looking more promising.
David Sherret reposted
David Sherret reposted
ts-ast-viewer.com now supports TypeScript 7 along with nightly builds of the typescript-go repository. It's not selected by default, but available in the dropdown.
Blog post explaining why npm formatting plugins will be recommended in the future. dsherret.dev/posts/dprint...
Release notes outlining all the new features. github.com/dprint/dprin...
David Sherret reposted
beautiful new docs site at dax.land for @dsherret.bsky.social's dax, one of my very favorite tools. I write nearly all my scripts in TypeScript because of it
The latest version of dax (dax.land) can show a scrolling view of the last N lines when executing a command. This is especially useful when running multiple commands in parallel.
Also, the cross-platform shell has been extracted to a dedicated JSR package jsr.io/@david/shell
The latest version of dax (dax.land) can show a scrolling view of the last N lines when executing a command. This is especially useful when running multiple commands in parallel.
Released gagen 0.5, which simplifies the output to match dependabot.
I've found maintaining GitHub Actions workflow files is much easier when it's generated from Typescript. The latest realization is that the output yaml file can act like a lockfile. So I maintain `actions/checkout@v6`, but the generated output gets locked to a hash.
Also added an `npx gagen --pull-versions` command to sync the version constraints in the TypeScript files with the .yml files after dependabot updates them. More details, including limitations, here: github.com/dsherret/gag...
I've published a library here that also has tooling around this github.com/dsherret/gagen
For how we used this in Deno's repo, see this blog post david.deno.dev/posts/gagen/
Due to terrible GitHub availability, dprint formatting plugins on plugins.dprint.dev 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.
Also released new versions of jsonc-morph (github.com/dsherret/jso...) for JavaScript, dprint-plugin-json, and dprint-plugin-jupyter, so those projects include these performance improvements.
David Sherret reposted
David Sherret reposted
David Sherret reposted
David Sherret reposted
David Sherret reposted
Marvin is another lovely talented person I had the pleasure to work with who you should try and snag for your company if you can!
Yesterday was my last day at Deno. It's rare you get to work with so many highly skilled peers in one place, but I'll be now cheering from the sidelines. Not sure yet what comes yet. I'm officially looking for a job now!
David Sherret reposted
David Sherret reposted
Also merged a perf improvement to the sharp pkg's install script. Once released, it will make all pkg managers faster installing Next.js with lifecycle scripts when brew is installed (except Bun because it overrides the maintainer's decision and always skips the install script)
...and we've optimized postinstall scripts for npm packages to run in parallel for a 100% speed up. Also shipping in v2.7.6 next week. github.com/denoland/den...
David Sherret reposted
I've wanted this for so long - and @kettmeir.dev has finally implemented it! View changes in the public API of packages between versions: - what methods were added, changed (type signature), or removed In the future we could even indicate if you are about to publish a breaking change
JSR now lets you diff the generated documentation between released versions of a package, making it easy and clear what has changed in a visual manner! Example: jsr.io/@david/gagen...
dprint init dprint config add oxc dprint config add biome ...along with various other formatters.