---
title: "Deno 1.40: Temporal API"
description: "Deno 1.40 adds the TC39 Temporal API behind --unstable-temporal, stage 3 decorators in TypeScript/JSX files, and import.meta.filename/dirname for local modules."
url: "https://swe.quest/articles/deno-1-40-temporal-api-6270d1faa279bd41"
canonical: "https://deno.com/blog/v1.40"
source: "Deno"
published: "2024-01-25"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["javascript","typescript","runtimes","developer-tools"]
---

# Deno 1.40: Temporal API

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-01-25, 11 min read, Release. Original: [https://deno.com/blog/v1.40](https://deno.com/blog/v1.40)

## Summary

Deno 1.40 adds the TC39 Temporal API behind --unstable-temporal, stage 3 decorators in TypeScript/JSX files, and import.meta.filename/dirname for local modules. A batch of deprecations prepares for Deno 2. Resource-id APIs (rid properties, Deno.close, Deno.isatty) give way to object methods, Deno.run to Deno.Command, Deno.serveHttp to Deno.serve, and Reader/Writer helpers to Web Streams. Other changes include simpler npm entries in deno.json imports (internally expanded to subpath mappings), an unstable Deno.UnsafeWindowSurface for WebGPU windowing via FFI libraries like SDL2, more Node.js API coverage, LSP performance work, and new deno lint rules with explained ignore directives.

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)

## Prerequisites

- JavaScript modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Deno, Temporal API, TC39 decorators, WebGPU, deno lint, Deno 2, import maps

## Related posts

- [Deno 2.7: Temporal API, Windows ARM, and npm overrides](https://swe.quest/articles/deno-2-7-temporal-api-windows-arm-and-npm-overrides-184275fc95a6d4c2.md): Deno · 2026-02-25 · Medium · 10 min read · JavaScript, Runtimes & VMs, Developer tools
  Deno 2.7 stabilizes the Temporal API with the V8 14.5 upgrade, adds official Windows on ARM builds, and supports the package.json \`overrides\` field for pinning transitive dependencies.
- [Deno 1.39: The Return of WebGPU](https://swe.quest/articles/deno-1-39-the-return-of-webgpu-bc1a1aa68400b519.md): Deno · 2023-12-14 · Medium · 15 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools
  Deno 1.39 reintroduces WebGPU behind the --unstable-webgpu flag, built on wgpu (the same foundation as Firefox's implementation) after an earlier version was pulled over performance problems.
- [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.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 2.0 Release Candidate](https://swe.quest/articles/deno-2-0-release-candidate-e1af5ccfd990463c.md): Deno · 2024-09-19 · Medium · 17 min read · JavaScript, TypeScript, Runtimes & VMs, Security
  Deno 2.0's release candidate is the largest update since 1.0: it removes the \`window\` global, adds Node's \`process\` global, and deprecates \`deno cache\` in favor of \`deno install\`.

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)
