Deno 1.29: Custom npm registry support
Deno 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.
Related posts
- Deno 1.28: Featuring 1.3 Million New Modules
Deno mediumAdeptDeno 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 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.
- Deno 1.45: Workspace and Monorepo Support
Deno mediumAdeptDeno 1.45 adds workspace support for monorepos, configured via a "workspace" array in deno.json. Global config applies to members with per-member overrides, and Deno and npm workspaces can be mixed. The release also revamps Node-API and many node:http/fs/crypto compat details, adds a --frozen lockfile flag for CI (replacing --lock-write), opt-in npm lifecycle scripts via --allow-scripts, npm-like deno install behind DENO_FUTURE=1, and deno init --lib. It deprecates deno vendor in favor of the vendor option, discovers __tests__ directories, adds Blob.bytes(), bakes .env values into deno compile binaries, and gives the language server per-deno.json scopes. It ships V8 12.7 and TypeScript 5.5.2.
- 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.