Skip to content

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

Neon 8 min read Announcement mediumAdept

Deno 2.0 Is Here, and It’s Scaly

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.

Related posts

  • Announcing Deno 2

    Deno easyNovice

    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.

  • Deno 2.6: dx is the new npx

    Deno mediumAdept

    Deno 2.6 adds `dx`, an npx equivalent for running npm and JSR package binaries that defaults to full permissions, prompts before download and runs lifecycle scripts. It also adds `--ignore-read`/`--ignore-env` flags that return NotFound/undefined instead of NotCapable errors, plus an experimental permission broker process for mediating permission requests. Other changes include opt-in type checking with the Go-based tsgo (about 2x faster on internal projects), Wasm source phase imports, `--require` for preloading CommonJS, and `deno audit` with optional socket.dev integration. Supply-chain controls include `deno approve-scripts` and a `minimumDependencyAge` setting, alongside bundler fixes, default `@types/node`, and many Node.js API compatibility fixes.

  • Deno 1.32: Enhanced Node.js Compatibility

    Deno mediumAdept

    Deno 1.32 improves Node.js compatibility by installing npm packages only when a bare specifier matches package.json, surfacing package.json errors lazily, adding DENO_NO_PACKAGE_JSON, and supporting createCipheriv/createDecipheriv in node:crypto. `deno compile` now handles dynamic imports and Web Workers, bundling statically analyzable specifiers automatically and others via a new --include flag. The release also adds --ext for running extensionless files, removes unstable WebGPU to cut binary size and startup time, moves std/encoding modules to top-level paths, and upgrades to TypeScript 5.0 (over 2x faster initial type-check when skipping remote modules) and V8 11.2. Users of 1.32.0 should upgrade to 1.32.1 due to a critical security issue.

  • Deno 2.0 Release Candidate

    Deno mediumAdept

    Deno 2.0's release candidate is the largest update since 1.0: it removes the `window` global, adds Node's `process` global, and deprecates `deno cache` in favor of `deno install`. Dependency management gains subpath support in `deno add`, required `jsr:`/`npm:` prefixes, writing npm deps to package.json (including `--dev`), `deno remove`, `deno install --entrypoint`, and a more concise v4 lockfile. Missing Deno permissions now raise `Deno.errors.NotCapable` instead of `PermissionDenied`, so they can be told apart from OS errors. `--allow-hrtime` is gone, and `--allow-run` warns without an allow list and requires full permission when `LD_*`/`DYLD_*` env vars are set. WebGPU, FFI and `createHttpClient` are stabilized, many legacy `Deno.*` APIs and resource IDs are removed, and `deno bundle` and `deno vendor` are dropped.

  • 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.

The quest for software engineering knowledge.

Look:
Layout: