Skip to content

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

Deno 17 min read Release mediumAdept

Deno 2.0 Release Candidate

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.

Assumes: Deno basicsNode.js and npm

Related posts

  • Introducing your new JavaScript package manager: Deno

    Deno mediumAdept

    Deno 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 2.5: Permissions in the config file

    Deno mediumAdept

    Deno 2.5 adds named permission sets in deno.json, selectable with -P or --permission-set, plus per-command permissions for test, bench and compile that require -P to apply. It also adds beforeAll/beforeEach/afterAll/afterEach hooks to Deno.test, custom headers on WebSocket connections, an experimental Deno.bundle runtime API, and HTML entrypoint support in deno bundle. Other additions include a JSONL permissions audit log via DENO_AUDIT_PERMISSIONS, Response-style convenience methods on child process stdio, new lint rules for unversioned and inline imports, opt-in Node.js timer globals, and upgrades to V8 14.0 and TypeScript 5.9.2.

  • Deno 1.22 Release Notes

    Deno mediumAdept

    Deno 1.22 changes the default type checking mode from Full to Local across most subcommands, skipping type errors in dependencies to match tsc, with a proposed move to no type checking in `deno run` and `deno cache` in 1.23. The unstable `Deno.emit()`, `Deno.formatDiagnostics()` and `Deno.applySourceMap()` APIs are removed in favor of the userland `deno_emit` module, and workers now get the `Deno` namespace by default, subject to permissions. Other additions include a `--no-config` flag, `navigator.userAgent`, more DNS record types in `Deno.resolveDns()`, `Response.json()`, LSP linting on by default, AbortSignal support in `Deno.spawn()`, test runner output improvements, and `performance.timeOrigin`.

  • 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.26 Release Notes

    Deno mediumAdept

    Deno 1.26 adds the Cache Web API (persisted to disk, with some differences from browsers), WebCrypto Ed25519/X25519 keys, and a new --allow-sys permission that separates OS-info APIs like hostname and systemMemoryInfo from --allow-env. npm support gains a --node-modules-dir flag that lays out a pnpm-style node_modules for packages that expect one, plus targeted --reload=npm: flags, and the old --compat mode is removed. Node compatibility now targets Node 18 with streams rebuilt on readable-stream and more child_process APIs. The release also brings measured speedups: TextEncoder.encodeInto is 5–30x faster, console.log is 5x faster, URL parsing up to 2.27x faster, and macOS copyFileSync uses APFS clonefile.

The quest for software engineering knowledge.

Look:
Layout: