---
title: "Deno 1.42: Better dependency management with JSR"
description: "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."
url: "https://swe.quest/articles/deno-1-42-better-dependency-management-with-jsr-c869439ba578c752"
canonical: "https://deno.com/blog/v1.42"
source: "Deno"
published: "2024-03-28"
difficulty: "medium"
kind: "Release"
reading_minutes: 9
tags: ["javascript","typescript","runtimes","build-systems","developer-tools"]
---

# Deno 1.42: Better dependency management with JSR

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-03-28, 9 min read, Release. Original: [https://deno.com/blog/v1.42](https://deno.com/blog/v1.42)

## Summary

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. It also adds LSP completions for jsr: specifiers and broadens Node compatibility across crypto, worker\_threads, fs, http2 and other modules. Further changes include shell improvements in \`deno task\` (cross-platform shebangs, \`$?\`, redirects), \`deno lint --fix\`, and dropping mid-execution type checking under \`--check\`. Timers were rewritten so creating a million timers takes 1.4s instead of 5.9s with up to 70% less memory, startup is 10% faster on Linux, and \`DENO\_FUTURE=1\` previews Deno 2 removals.

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)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- JavaScript/TypeScript tooling ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- npm package management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Deno, JSR, npm, V8, TypeScript 5.4, Node.js compatibility

## Related posts

- [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.
- [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 1.43: Improved Language Server performance](https://swe.quest/articles/deno-1-43-improved-language-server-performance-ce41f07ca52bb667.md): Deno · 2024-05-01 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools
  Deno 1.43 cuts Language Server auto-completion latency in large codebases from 6-8 seconds to under one second and sharply reduces LSP memory use, fixing out-of-memory failures.
- [Deno 1.34: deno compile supports npm packages](https://swe.quest/articles/deno-1-34-deno-compile-supports-npm-packages-6066648b7bf9ee04.md): Deno · 2023-05-25 · Medium · 6 min read · JavaScript, Runtimes & VMs, Developer tools, TypeScript
  Deno 1.34 lets \`deno compile\` bundle npm packages and their dependencies into a single self-contained executable.
- [Deno 2.3: Improved deno compile, local npm packages, and more](https://swe.quest/articles/deno-2-3-improved-deno-compile-local-npm-packages-and-more-8da91030a8445369.md): Deno · 2025-05-01 · Medium · 11 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Observability
  Deno 2.3 lets deno compile bundle programs that use FFI and Node native add-ons, adds --include/--exclude control over embedded files, and exposes Deno.build.standalone to detect compiled binaries.

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)
