Change8

Migrating to Deno v2.2.0

Version v2.2.0 introduces 2 breaking changes. This guide details how to update your code.

Released: 2/19/2025

2
Breaking Changes
3
Migration Steps
11
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

Deno.cwdDeno.cpuUsagenode:sqliteDatabaseSyncStatementSynccreateImageBitmapTemporal.ZonedDateTime.getTimeZoneTransitionGPUTextureGPUBufferWebTransportprocess.cpuUsage

Breaking Changes

Issue #1

Deno.cwd() no longer requires --allow-read permission. While this is a permission relaxation, it changes the security sandbox behavior.

Issue #2

The behavior of the --rules flag in deno lint has been modified.

Migration Steps

  1. 1
    Update configuration files if using unstable lint plugins to match the new lint.plugins schema.
  2. 2
    Review usage of --rules flag in linting scripts as its behavior has changed.
  3. 3
    If using node:sqlite, ensure Uint8Array is used for blob representations and handle potential RangeErrors for large integers.

Release Summary

Deno 2.2.0 introduces node:sqlite support, JavaScript linting plugins, and upgrades to TypeScript 5.7 and V8 13.4. It also features interactive updates via 'deno outdated' and removes the read permission requirement for Deno.cwd().

Need More Details?

View the full release notes and all changes for Deno v2.2.0.

View Full Changelog