---
title: "Deno 1.21 Release Notes"
description: "Deno 1.21 adds a `deno check` subcommand and begins a phased plan to disable type checking by default in `deno run`, citing type-check cost as the main startup bottleneck and alignment with the proposed native JS type annotations."
url: "https://swe.quest/articles/deno-1-21-release-notes-15cae60c27335cbc"
canonical: "https://deno.com/blog/v1.21"
source: "Deno"
published: "2022-04-21"
difficulty: "medium"
kind: "Release"
reading_minutes: 18
tags: ["javascript","typescript","runtimes","developer-tools","testing"]
---

# Deno 1.21 Release Notes

A post on [Deno](https://swe.quest/sources/deno.md), published 2022-04-21, 18 min read, Release. Original: [https://deno.com/blog/v1.21](https://deno.com/blog/v1.21)

## Summary

Deno 1.21 adds a \`deno check\` subcommand and begins a phased plan to disable type checking by default in \`deno run\`, citing type-check cost as the main startup bottleneck and alignment with the proposed native JS type annotations. Other changes include browser-aligned \`reportError\` and global \`"error"\` event handling, cache-based incremental \`deno fmt\`/\`deno lint\` (second runs on deno\_std drop from ~1.8s to ~0.11s), statistically driven iteration counts and grouped baselines in \`deno bench\`, and new unstable \`Deno.spawn\`/\`Deno.spawnChild\` subprocess APIs built on web streams. The release also brings VSCode extension improvements (config autodiscovery, per-path enablement, Testing API), REPL \`--eval-file\`, and testing utilities such as BDD, mocking, snapshots and FakeTime.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- Deno basics
- TypeScript type checking ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Deno, deno check, deno bench, Deno.spawn, VSCode, deno lsp

## Related posts

- [Deno 1.22 Release Notes](https://swe.quest/articles/deno-1-22-release-notes-4c57bc88a83acfab.md): Deno · 2022-05-18 · Medium · 7 min read · Runtimes & VMs, TypeScript, JavaScript, Developer tools
  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.
- [Deno 1.23 Release Notes](https://swe.quest/articles/deno-1-23-release-notes-635b0ecf9d73ce3f.md): Deno · 2022-06-16 · Medium · 10 min read · TypeScript, JavaScript, Runtimes & VMs, Developer tools
  Deno 1.23 stops type-checking by default on \`deno run\`, \`deno eval\` and \`deno cache\`, using fast linear-time type-stripping instead, because TypeScript compiler checks are slow and editors already type-check via LSP; \`--check\` restores the old behavior and \`--check=all\` covers remote modules.
- [Deno 1.27: Major IDE Improvements](https://swe.quest/articles/deno-1-27-major-ide-improvements-1eb17f9996f7a8fa.md): Deno · 2022-10-27 · Medium · 10 min read · Runtimes & VMs, TypeScript, JavaScript, Developer tools
  Deno 1.27 exposes TypeScript inlay hints through its language server, with configurable hints for parameter names, inferred variable and return types, and enum values, and improves deno.land/x registry completions in editors. npm compatibility gains automatic type pickup from packages, @deno-types and @types/node directives, Node-API native module support behind --allow-ffi, lockfile v2 entries for npm packages, and dist-tag specifiers.
- [Deno 1.42: Better dependency management with JSR](https://swe.quest/articles/deno-1-42-better-dependency-management-with-jsr-c869439ba578c752.md): Deno · 2024-03-28 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Build systems, Developer tools
  Deno 1.42 adds first-class JSR support through new \`deno publish\` and \`deno add\` subcommands, which install packages from JSR and npm and write import map entries.
- [Deno 1.46: The Last 1.x Release](https://swe.quest/articles/deno-1-46-the-last-1-x-release-18f40edf9755fd08.md): Deno · 2024-08-22 · Medium · 16 min read · JavaScript, TypeScript, Developer tools, Runtimes & VMs
  Deno 1.46, the final 1.x release, lets programs run with plain \`deno file.ts\`, runs tasks via \`deno run\`, and adds one-letter permission flags (-R, -W, -E, -N, -S) that can be combined and given allow lists. \`deno serve --parallel\` runs one single-threaded JS runtime copy per core, with the count set by DENO\_JOBS. \`deno fmt\` gains unstable formatting for HTML, CSS, YAML and component files.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
