Deno 2.9
5 hours ago
- #web development
- #desktop applications
- #deno
- Deno 2.9 introduces deno desktop, a tool for building native desktop applications from web stack projects without Electron boilerplate, producing a single binary.
- It enhances migration from Node.js by reading npm, pnpm, yarn, and Bun lockfiles directly, making switching package managers straightforward.
- Performance improvements include faster startup times, reduced memory usage under load, and increased HTTP throughput for Deno.serve.
- New features include CSS module imports via import attributes, support for snapshot testing, change-aware test selection, and coverage thresholds.
- Dependency management enhancements: deno link/unlink for local packages, deno list for viewing dependencies, and preferPackageJson setting.
- Supply chain security is bolstered with default minimum dependency age (24 hours) and opt-in no-downgrade trust policy to prevent malicious package versions.
- Node.js compatibility advances to Node.js 26, with bare Node builtins resolving without configuration and improvements to node:test and other APIs.
- Web Cryptography API expands with post-quantum algorithms (ML-KEM, ML-DSA, SLH-DSA), SHA-3, and other modern cryptographic methods.
- Deno.serve now disables automatic compression by default (opt-in) and deprecates legacy abort behavior.
- OpenTelemetry integration adds support for configurable sampling and span limits via environment variables.
- Miscellaneous updates: Web Locks API, navigator.userAgentData, Happy Eyeballs for connections, deno watch alias, and more.