Deno 1.28: Featuring 1.3 Million New Modules
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.
Related posts
- Deno 1.29: Custom npm registry support
Deno mediumAdeptDeno 1.29 adds custom npm registry support via the NPM_CONFIG_REGISTRY environment variable, lets npm specifiers work with `deno install` (with an auto-generated lockfile), and enables npm imports in the REPL. `deno repl` now starts with no permissions by default. The release also removes the unstable Deno.spawn APIs in favor of a unified Deno.Command API, with migration examples, and adds a `createNew` write option and a new `--inspect-wait` debugger flag. Other changes include better errors for unresolved top-level await promises, TypeScript 4.9, and a move toward single-export module layout in std.
- Deno 1.31: package.json support
Deno mediumAdeptDeno 1.31 adds automatic package.json detection, so dependencies resolve from bare specifiers and package.json scripts run via deno task (simple scripts only for now). The Node.js compatibility layer, roughly 1.5MB that previously lived in std/node, is now embedded in the runtime and loaded from V8 snapshots to cut startup time. Node-API is stabilized, and npm specifiers now work in remote modules without --unstable. FFI pointers become opaque objects or null instead of numbers, which speeds up calls through V8 Fast API, makes pointer spoofing harder and requires migration. Deno.Command is now stable, deno bundle is deprecated, and deno bench gains JSON output.
- Announcing Deno 2
Deno easyNoviceDeno 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.
- Introducing your new JavaScript package manager: Deno
Deno mediumAdeptDeno 2 adds `deno add`, `deno remove`/`uninstall`, and `deno install` subcommands that manage npm and JSR dependencies in either `deno.json` import maps or an existing `package.json`, so they work inside Node projects too. Installs use a global cache with hard links (Linux) or clonefile (macOS), like pnpm, to save disk space and speed up installs, and `--entrypoint` can pre-cache dependencies for Docker builds. Postinstall scripts are blocked by default and must be allowed per package with `--allow-scripts`. `deno outdated` and `deno update` are planned for the next release.
- Deno 1.30: Built-in Node modules
Deno mediumAdeptDeno 1.30 exposes built-in Node.js modules such as fs, path and process to Deno code through `node:` specifiers. Bare specifiers like "fs" still require an import map, and Deno and its LSP suggest the `node:` prefix when one is missing. `deno.json` can now act directly as an import map via `imports` and `scopes` keys. The release also adds synchronous permission APIs, ReadableStream support in `Deno.writeFile`, `Deno.env.has`, bigint seek offsets, struct-by-value FFI in `Deno.dlopen`, an `inherit` default for stdin in `Deno.Command`, removal of the private `Deno.core` namespace, and a no-semicolons option for `deno fmt`.