Deno 2.0 Release Candidate released with major enhancements, TypeScript 5.6, and more
Deno has launched the first release candidate for Deno 2.0, marking the largest update since its initial 1.0 release. This version introduces significant changes, including the removal of the global variable window and the addition of Node's process. Dependency management sees improvements, and a new error type, Deno.errors.NotCapable, helps distinguish between OS-level and Deno-specific errors.
Several APIs have been stabilized, with enhanced error messages offering hints for using unstable APIs without the necessary flags. Conversely, some APIs have been removed or soft-deprecated. Support for the subcommands deno bundle and deno vendor has been dropped, alongside the deprecation of various CLI flags. Import Assertions support, deprecated in version 1.46, is no longer available.
Deno 2.0 also enhances Node.js and npm compatibility, includes improved JSDoc test commands, and ships with the latest TypeScript 5.6 version.