Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 12 min read Release easyNovice

Announcing Deno 2

Deno 2 adds backwards compatibility with Node.js and npm, so it runs existing Node projects using package.json, node_modules and npm workspaces, and supports npm: import specifiers without a manifest. It also adds package management commands (deno install/add/remove, claimed 15% faster than npm on a cold cache and 90% faster on a hot cache), private registries via .npmrc, workspaces and monorepos, a stabilized standard library on JSR, and an LTS channel starting with 2.1 that gets six months of backported fixes. Toolchain updates include multi-core deno serve, HTML/CSS/YAML formatting and node:test support. A correction notes HTTP throughput is about 20% lower than charted because V8 pointer compression was disabled to lift the 4GB heap limit.

Related posts

  • Deno 1.42: Better dependency management with JSR

    Deno mediumAdept

    Deno 1.42 adds first-class JSR support through new `deno publish` and `deno add` subcommands, which install packages from JSR and npm and write import map entries. It also adds LSP completions for jsr: specifiers and broadens Node compatibility across crypto, worker_threads, fs, http2 and other modules. Further changes include shell improvements in `deno task` (cross-platform shebangs, `$?`, redirects), `deno lint --fix`, and dropping mid-execution type checking under `--check`. Timers were rewritten so creating a million timers takes 1.4s instead of 5.9s with up to 70% less memory, startup is 10% faster on Linux, and `DENO_FUTURE=1` previews Deno 2 removals.

  • Deno 2.0 Is Here, and It’s Scaly

    Neon mediumAdept

    Deno 2.0 adds backward compatibility with Node.js and npm: node: built-in modules, CommonJS via .cjs and require(), npm: specifiers, package.json and node_modules support, and the process global. Side-by-side Postgres examples against Neon contrast Node's pg setup, Deno 1.x URL imports and permission flags (--allow-net, --allow-env), and porting the Node code to Deno 2 with deno install and an extra --allow-read flag. Deno also gains an LTS channel from v2.1.0 with six months of bug-fix and performance support, aimed at enterprise adoption.

  • Deno 2.8

    Deno mediumAdept

    Deno 2.8 adds new subcommands (audit fix, bump-version with Conventional Commits workspace support, ci, pack for building npm tarballs from Deno/JSR projects, transpile, why), makes unprefixed package names default to npm in deno add/install, and supports TC39 import defer. Node.js test-suite pass rate rose from about 42% to 76.4%, compared with 40.6% for Bun 1.3.14. Cold npm installs are 3.66x faster, driven by abbreviated packuments, parallel resolution, decompression moved off the event loop and split tarball extraction. Other gains include 2.21x node:http throughput, 3.07x base64 via simdutf, and malloc_trim fixes for RSS bloat on Linux.

  • Deno 1.28: Featuring 1.3 Million New Modules

    Deno mediumAdept

    Deno 1.28 stabilizes npm compatibility, letting programs import any of npm's 1.3 million packages via `npm:` specifiers in imports or import maps, and run npm CLIs with `deno run npm:<pkg>`, with no package.json, install step or node_modules folder by default. Deno's opt-in permission prompts restrict what npm dependencies can access, though post-install scripts, `deno compile` and some Node-layout assumptions remain unsupported. The release also auto-discovers and additively updates a `deno.lock` file whenever a deno.json config exists, stabilizes APIs such as `Deno.bench()` and `Deno.networkInterfaces()`, adds an unstable unified `Deno.Command` subprocess API replacing the `Deno.spawn` family, and upgrades to V8 10.9.

  • Deno 2.9

    Deno mediumAdept

    Deno 2.9 introduces experimental `deno desktop`, which compiles a web UI plus Deno logic into a single native binary using either the OS webview or bundled Chromium via CEF, with native window, tray and dock APIs and cross-compilation to installers for all five targets. `deno install` now seeds `deno.lock` from npm, pnpm, yarn and Bun lockfiles with exact versions and hashes, migrates pnpm workspace config, and shims `node` for tools that shell out to it. Cold start drops from 34ms to 17ms through lazy-loaded Node globals, V8 code caching and a minified snapshot. A new Rust HTTP/1.1 path raises `Deno.serve` throughput 11–27% and cuts peak RSS by 2.2–3.1x. The release also adds CSS module imports, `deno link`/`deno list`, JSR packages in node_modules and automatic lockfile merge-conflict resolution.

The quest for software engineering knowledge.

Look:
Layout: