---
title: "Deno 2.0 Is Here, and It’s Scaly"
description: "Deno 2.0 adds backward compatibility with Node.js and npm: node: built-in modules, CommonJS via .cjs and require(), npm: specifiers, package.json and node_modules support, and the process global."
url: "https://swe.quest/articles/deno-2-0-is-here-and-it-s-scaly-a50e5a15fd1b9367"
canonical: "https://neon.com/blog/deno-2-0-is-here-and-its-scaly"
source: "Neon"
published: "2024-10-15"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["javascript","runtimes","typescript"]
---

# Deno 2.0 Is Here, and It’s Scaly

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-10-15, 8 min read, Announcement. Original: [https://neon.com/blog/deno-2-0-is-here-and-its-scaly](https://neon.com/blog/deno-2-0-is-here-and-its-scaly)

## Summary

Deno 2.0 adds backward compatibility with Node.js and npm: node: built-in modules, CommonJS via .cjs and require(), npm: specifiers, package.json and node\_modules support, and the process global. Side-by-side Postgres examples against Neon contrast Node's pg setup, Deno 1.x URL imports and permission flags (--allow-net, --allow-env), and porting the Node code to Deno 2 with deno install and an extra --allow-read flag. Deno also gains an LTS channel from v2.1.0 with six months of bug-fix and performance support, aimed at enterprise adoption.

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)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- Node.js and npm basics ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- JavaScript module systems ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Deno 2.0, Node.js, npm, CommonJS, Neon, node-postgres

## Related posts

- [Announcing Deno 2](https://swe.quest/articles/announcing-deno-2-5e607a5c7027789d.md): Deno · 2024-10-09 · Easy · 12 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Build systems
  Deno 2 adds backwards compatibility with Node.js and npm, so it runs existing Node projects using package.json, node\_modules and npm workspaces, and supports npm: import specifiers without a manifest.
- [Deno 2.6: dx is the new npx](https://swe.quest/articles/deno-2-6-dx-is-the-new-npx-58f73c73a151bd8c.md): Deno · 2025-12-10 · Medium · 16 min read · JavaScript, TypeScript, Runtimes & VMs, Supply chain security, Developer tools
  Deno 2.6 adds \`dx\`, an npx equivalent for running npm and JSR package binaries that defaults to full permissions, prompts before download and runs lifecycle scripts.
- [Deno 1.32: Enhanced Node.js Compatibility](https://swe.quest/articles/deno-1-32-enhanced-node-js-compatibility-b203aa007c83fdbd.md): Deno · 2023-03-23 · Medium · 5 min read · JavaScript, Runtimes & VMs, TypeScript
  Deno 1.32 improves Node.js compatibility by installing npm packages only when a bare specifier matches package.json, surfacing package.json errors lazily, adding DENO\_NO\_PACKAGE\_JSON, and supporting createCipheriv/createDecipheriv in node:crypto. \`deno compile\` now handles dynamic imports and Web Workers, bundling statically analyzable specifiers automatically and others via a new --include flag.
- [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\`.
- [Deno 1.28: Featuring 1.3 Million New Modules](https://swe.quest/articles/deno-1-28-featuring-1-3-million-new-modules-2730b24ac8878c7c.md): Deno · 2022-11-14 · Medium · 6 min read · JavaScript, Supply chain security, Runtimes & VMs
  Deno 1.28 stabilizes npm compatibility, letting programs import any of npm's 1.3 million packages via \`npm:\` specifiers in imports or import maps, and run npm CLIs with \`deno run npm:\<pkg\>\`, with no package.json, install step or node\_modules folder by default.

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)
