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.1: Wasm Imports and other enhancements

Deno 2.1 lets Wasm modules be imported directly as ES modules. They join the module graph, are cached and type-checked, can import JS/TS modules, and no longer need read or net permissions. The release also starts the first LTS branch with six months of fixes. Other changes include `deno outdated` for JSR/npm dependency updates, embedding asset files in `deno compile` with V8 code caching (about 2x faster subsequent startups in their benchmark), stack traces in permission prompts via DENO_TRACE_PERMISSIONS, and `deno task` support for descriptions, parallel dependencies with cycle and diamond handling, and workspaces. CommonJS detection from package.json `type` improves Node compatibility.

Assumes: JavaScript modulesDeno basics

Related posts

  • Intro to Wasm in Deno

    Deno mediumAdept

    Deno 2.1 lets Wasm modules be imported directly like JavaScript modules, with their exports understood and typechecked. A hand-written WAT `add` function is compiled with wat2wasm and imported into Deno. The second example uses the wasmbuild CLI, which wraps wasm-bindgen, to scaffold a Rust crate and generate JS glue, .d.ts types and a .wasm binary, so Rust functions and structs can be called from JavaScript. Production use typically compiles Wasm from Rust, C++ or Go rather than writing WAT by hand.

  • 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 1.19 Release Notes

    Deno mediumAdept

    Deno 1.19 adds `deno vendor`, which builds a module graph from entrypoints, writes remote dependencies into a `vendor/` folder with readable paths, and generates an import map so programs can run with `--no-remote`. Permission checks now prompt interactively on a TTY instead of throwing. Files, sockets and stdio expose `readable`/`writable` web streams that compose with `fetch`, the HTTP server and the new `CompressionStream`/`DecompressionStream`. `deno compile` now embeds the unbundled ES module graph via eszip so execution order and `import.meta.url` are preserved, and test sanitizers report leaked resources and async ops with clear messages and stack traces.

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

The quest for software engineering knowledge.

Look:
Layout: