Deno 2.9 imports your lockfile before it asks you to switch
Deno 2.9's headline feature is deno desktop, an experimental way to build a native desktop app from a web stack and ship a single binary. That is the part likely to get the demo video. The more consequential change for most teams is quieter: deno install can now read an existing npm, pnpm, yarn, or Bun lockfile and seed deno.lock from it, preserving the exact resolved versions and integrity hashes.
That sounds like a packaging detail, but it removes one of the biggest reasons teams do not try Deno. Migrating a JavaScript project is not usually blocked by the language or the runtime. It is blocked by the dependency graph. A team has spent years pinning versions, working around peer-dependency conflicts, and building a lockfile that represents a known-good state. Asking them to throw that away and re-resolve everything is a hard sell. Deno 2.9 makes the first step reversible, which is a much better adoption strategy.
The lockfile comes with you
The new behavior is simple to describe. If a project has a package-lock.json, pnpm-lock.yaml, yarn.lock, or bun.lock and does not have a deno.lock, running deno install seeds a fresh deno.lock from the existing lockfile. The exact resolved versions and integrity hashes carry over. There is no re-resolution and no surprise upgrade to a newer version. The versions that ran under npm are the versions that run under Deno.
Deno then writes a node_modules directory that it can run against, and deno task runs the scripts already defined in package.json. The rest of the team can keep using their existing commands, or move gradually. That is the key: the migration is not a flag day. A team can test Deno on a branch, run the existing test suite, and compare behavior before changing the default runtime.
The lockfile seeding does not preserve every package-manager behavior. It preserves the resolved versions and integrity hashes, which is the part that matters most for reproducibility. It does not reproduce npm's or pnpm's full resolution algorithm, its workspace linking semantics, or every lifecycle script. A team that depends on those details still needs to test. But the first step is much smaller than a full re-resolution.
pnpm workspaces and the node shim
pnpm is the awkward case for a runtime that wants to read existing projects. npm, yarn, and Bun keep their workspace configuration in package.json. pnpm uses a separate pnpm-workspace.yaml file, which Deno did not read. That used to surface as a confusing resolution error when a team tried to install a pnpm monorepo with Deno.
Deno 2.9 now detects the file and migrates its packages, catalog, and catalogs fields into package.json or deno.json, without disturbing comments or existing fields. It then asks the user to re-run the install. The catalog: protocol that Deno adopted in 2.8 continues to work, so centralized dependency versions survive the move. That is a narrow fix, but it covers a large class of real projects.
The other compatibility fix is the node shim. Plenty of build tools shell out to a node binary directly. Next.js's Turbopack worker pool is one example. If no real Node.js is installed, Deno now puts a stand-in on PATH that forwards to Deno and translates Node's CLI arguments. A real node is never shadowed, and DENO_DISABLE_NODE_SHIM=1 opts out.
The shim is compatibility, not emulation. It lets tools that expect a node command start, but it does not make Deno a drop-in replacement for every Node.js API or native addon. Teams should treat it as a way to get past the first error, not as a guarantee that the tool will behave identically. The test suite is still the source of truth.
A 24-hour delay as a security default
The supply-chain changes are the most important part of Deno 2.9. The min-release-age setting, introduced in Deno 2.6, is now enabled by default with a 24-hour window. Deno refuses to install any npm package version that is younger than 24 hours. The idea is simple: most malicious package versions are detected and unpublished within a day or two. Waiting a day keeps a freshly published compromise out of the dependency tree at the moment it appears.
The default can be overridden in .npmrc. A team can set min-release-age=72h for a longer delay, or min-release-age=0 to disable it. The setting sits at the bottom of the precedence chain, so an explicit project or user setting wins. That is the right design: a safe default, with an escape hatch for teams that need an urgent fix.
The trade-off is obvious. A legitimate security fix may be less than 24 hours old, and a team may need it immediately. The delay also adds a small amount of friction to every dependency update. For a high-risk package, a day of waiting may be unacceptable. For the long tail of transitive dependencies, it is a cheap way to avoid a class of attacks. The right setting depends on the project's risk profile.
no-downgrade is stronger, but opt-in
Deno 2.9 also adds an opt-in no-downgrade trust policy, following pnpm's design. The policy ranks how a package version was published. Staged publishing, where a maintainer approves a release with a live two-factor authentication challenge, is the strongest signal. Trusted publishing with a provenance attestation is next. A provenance attestation alone is weaker. A plain token publish is weaker still.
With trust-policy=no-downgrade in .npmrc, Deno refuses to resolve a version whose trust evidence is weaker than the strongest evidence on any earlier-published version of the same package. If a package has consistently shipped with provenance or trusted publishing and a later version suddenly appears as a plain token publish, the install becomes a hard error. That is the pattern of a stolen maintainer token, and it is exactly the kind of attack that a version-number check would miss.
The policy is off by default because provenance and trusted publishing are still unevenly adopted across the npm registry. Turning it on for a project with older, pre-provenance releases can produce false positives. The escape hatches, trust-policy-ignore-after and trust-policy-exclude[], let teams handle those cases. The policy builds on the metadata that min-release-age already fetches, so the two guards work well together.
The combination is a meaningful improvement over the old model, where the only defense against a compromised maintainer was to notice the malicious release after it was published. Deno is not the first tool to add these checks, but making a 24-hour delay the default raises the floor for every project that uses it.
deno desktop is promising and experimental
deno desktop is the flashy feature. It points at a script or a web framework project and produces a native desktop application. The UI runs in a webview, the logic runs in Deno, and the output is a single binary. It supports Next.js, Astro, Fresh, Remix, Nuxt, SvelteKit, SolidStart, TanStack Start, and Vite SSR. It exposes native APIs for windows, trays, macOS dock integration, dialogs, and auto-updates.
The backend choice is a real trade-off. The default webview backend uses the operating system's engine: WebView2 on Windows, WebKit on macOS and Linux. That keeps binaries small and startup fast, but rendering depends on the host's engine version. The cef backend bundles Chromium through the Chromium Embedded Framework, which adds tens of megabytes and a build-time download, but gives every user the same engine. Most apps will be happiest with webview; teams that need identical rendering across platforms will pay for cef.
The distribution story is also sensible. The output format follows the extension: .app and .dmg on macOS, .exe and .msi on Windows, .AppImage, .deb, or .rpm on Linux. --target cross-compiles, and --all-targets builds every supported target from one machine. The Windows and Linux installers are authored in Rust, so they can be produced from any host without a platform-specific packaging toolchain.
But deno desktop is experimental. The announcement says the surface is stabilizing and some platform features are still landing. That is not a reason to ignore it, but it is a reason not to bet a mission-critical product on it yet. The desktop feature is a signal that Deno wants to be more than a server runtime. It is not yet a replacement for Electron or Tauri in every case.
Performance and the Rust hot paths
Deno 2.9 also ships performance improvements. Cold start dropped from 34.2 ms to 17.3 ms, which is nearly 2x faster. Deno.serve on a real-world JSON workload improved from 56.8k to 72.4k requests per second, a 1.27x gain. The plaintext workload improved from 77.0k to 85.6k requests per second. Memory under load stays around 62 MB, compared with a peak of 142 MB on the real-world workload and 197 MB on 1 MiB bodies in 2.8. That is 2.2x and 3.1x less peak RSS, respectively.
Some of the hot paths moved from JavaScript to Rust. crypto.subtle and console/Deno.inspect are now implemented in Rust, which reduces per-call overhead. The release also adds post-quantum Web Crypto algorithms, ChaCha20-Poly1305, SHA-3 and XOFs, KMAC, and Argon2. The crypto.subtle port is a good example of Deno's architecture: the runtime is written in Rust, and JavaScript APIs can be moved to native code when the overhead matters.
Those numbers are from Deno's own benchmarks on a dedicated Linux box against Deno 2.8.0. They are useful for tracking progress, but they are not a comparison with Node.js or Bun. A team choosing a runtime should run its own workload, not rely on a vendor's microbenchmark.
What still keeps teams on Node
Deno 2.9 removes a lot of friction, but it does not remove all of it. The Node.js ecosystem is enormous, and many packages depend on native addons, undocumented internals, or behavior that Deno's compatibility layer does not reproduce. The node shim helps tools start, but it does not guarantee that they work. The lockfile seeding preserves versions, but it does not preserve every package-manager semantic. The no-downgrade policy is opt-in because the registry's provenance coverage is uneven.
The runtime's security model is also different. Deno's default permissions are stricter than Node's, which is good for security but can break code that assumes it can read any file or open any socket. A migration needs to audit those assumptions, not just run deno install.
For teams that are already on Node, the practical path is to try Deno on a branch, run the existing scripts, and see what breaks. The lockfile support makes that trial cheap. The 24-hour dependency-age default is a reason to consider Deno even if the runtime itself is not the main attraction. The supply chain is part of the toolchain, and Deno is treating it that way.
Sources
- Deno 2.9 — Deno Blog
- Deno v2.9.0 release — GitHub