Releases: denoland/deno
Releases Β· denoland/deno
v2.0.6
2.0.6 / 2024.11.10
- feat(ext/http): abort event when request is cancelled (#26781)
- feat(ext/http): abort signal when request is cancelled (#26761)
- feat(lsp): auto-import completions from byonm dependencies (#26680)
- fix(ext/cache): don't panic when creating cache (#26780)
- fix(ext/node): better inspector support (#26471)
- fix(fmt): don't use self-closing tags in HTML (#26754)
- fix(install): cache jsr deps from all workspace config files (#26779)
- fix(node:zlib): gzip & gzipSync should accept ArrayBuffer (#26762)
- fix: performance.timeOrigin (#26787)
v2.0.5
2.0.5 / 2024.11.05
- fix(add): better error message when adding package that only has pre-release
versions (#26724) - fix(add): only add npm deps to package.json if it's at least as close as
deno.json (#26683) - fix(cli): set
npm_config_user_agent
when running npm packages or tasks
(#26639) - fix(coverage): exclude comment lines from coverage reports (#25939)
- fix(ext/node): add
findSourceMap
to the default export ofnode:module
(#26720) - fix(ext/node): convert errors from
fs.readFile/fs.readFileSync
to node
format (#26632) - fix(ext/node): resolve exports even if parent module filename isn't present
(#26553) - fix(ext/node): return
this
fromhttp.Server.ref/unref()
(#26647) - fix(fmt): do not panic for jsx ignore container followed by jsx text (#26723)
- fix(fmt): fix several HTML and components issues (#26654)
- fix(fmt): ignore file directive for YAML files (#26717)
- fix(install): handle invalid function error, and fallback to junctions
regardless of the error (#26730) - fix(lsp): include unstable features from editor settings (#26655)
- fix(lsp): scope attribution for lazily loaded assets (#26699)
- fix(node): Implement
os.userInfo
properly, add missingtoPrimitive
(#24702) - fix(serve): support serve hmr (#26078)
- fix(types): missing
import
permission onPermissionOptionsObject
(#26627) - fix(workspace): support wildcard packages (#26568)
- fix: clamp smi in fast calls by default (#26506)
- fix: improved support for cjs and cts modules (#26558)
- fix: op_run_microtasks crash (#26718)
- fix: panic_hook hangs without procfs (#26732)
- fix: remove permission check in op_require_node_module_paths (#26645)
- fix: surface package.json location on dep parse failure (#26665)
- perf(lsp): don't walk coverage directory (#26715)
v2.0.4
2.0.4 / 2024.10.29
- Revert "fix(ext/node): fix dns.lookup result ordering (#26264)" (#26621)
- Revert "fix(ext/node): use primordials in
ext/node/polyfills/https.ts
(#26323)" (#26613) - feat(lsp): "typescript.preferences.preferTypeOnlyAutoImports" setting (#26546)
- fix(check): expose more globals from @types/node (#26603)
- fix(check): ignore resolving
jsxImportSource
when jsx is not used in graph
(#26548) - fix(cli): Make --watcher CLEAR_SCREEN clear scrollback buffer as well as
visible screen (#25997) - fix(compile): regression handling redirects (#26586)
- fix(ext/napi): export dynamic symbols list for {Free,Open}BSD (#26605)
- fix(ext/node): add path to
fs.stat
andfs.statSync
error (#26037) - fix(ext/node): compatibility with {Free,Open}BSD (#26604)
- fix(ext/node): use primordials in
ext\node\polyfills\internal\crypto_randomInt.ts (#26534) - fix(install): cache json exports of JSR packages (#26552)
- fix(install): regression - do not panic when config file contains \r\n
newlines (#26547) - fix(lsp): make missing import action fix infallible (#26539)
- fix(npm): match npm bearer token generation (#26544)
- fix(upgrade): stop running
deno lsp
processes on windows before attempting
to replace executable (#26542) - fix(watch): don't panic on invalid file specifiers (#26577)
- fix: do not panic when failing to write to http cache (#26591)
- fix: provide hints in terminal errors for Node.js globals (#26610)
- fix: report exceptions from nextTick (#26579)
- fix: support watch flag to enable watching other files than the main module on
serve subcommand (#26622) - perf: pass transpiled module to deno_core as known string (#26555)
v2.0.3
2.0.3 / 2024.10.25
- feat(lsp): interactive inlay hints (#26382)
- fix: support node-api in denort (#26389)
- fix(check): support
--frozen
on deno check (#26479) - fix(cli): increase size of blocking task threadpool on windows (#26465)
- fix(config): schemas for lint rule and tag autocompletion (#26515)
- fix(ext/console): ignore casing for named colors in css parsing (#26466)
- fix(ext/ffi): return u64/i64 as bigints from nonblocking ffi calls (#26486)
- fix(ext/node): cancel pending ipc writes on channel close (#26504)
- fix(ext/node): map
ERROR_INVALID_NAME
toENOENT
on windows (#26475) - fix(ext/node): only set our end of child process pipe to nonblocking mode
(#26495) - fix(ext/node): properly map reparse point error in readlink (#26375)
- fix(ext/node): refactor http.ServerResponse into function class (#26210)
- fix(ext/node): stub HTTPParser internal binding (#26401)
- fix(ext/node): use primordials in
ext/node/polyfills/https.ts
(#26323) - fix(fmt): --ext flag requires to pass files (#26525)
- fix(fmt): upgrade formatters (#26469)
- fix(help): missing package specifier (#26380)
- fix(info): resolve workspace member mappings (#26350)
- fix(install): better json editing (#26450)
- fix(install): cache all exports of JSR packages listed in
deno.json
(#26501) - fix(install): cache type only module deps in
deno install
(#26497) - fix(install): don't cache json exports of JSR packages (for now) (#26530)
- fix(install): update lockfile when using package.json (#26458)
- fix(lsp): import-map-remap quickfix for type imports (#26454)
- fix(node/util): support array formats in
styleText
(#26507) - fix(node:tls): set TLSSocket.alpnProtocol for client connections (#26476)
- fix(npm): ensure scoped package name is encoded in URLs (#26390)
- fix(npm): support version ranges with && or comma (#26453)
- fix:
.npmrc
settings not being passed to install/add command (#26473) - fix: add 'fmt-component' to unstable features in schema file (#26526)
- fix: share inotify fd across watchers (#26200)
- fix: unpin tokio version (#26457)
- perf(compile): pass module source data from binary directly to v8 (#26494)
- perf: avoid multiple calls to runMicrotask (#26378)
v2.0.2
2.0.2 / 2024.10.17
- fix(cli): set napi object property properly (#26344)
- fix(ext/node): add null check for kStreamBaseField (#26368)
- fix(install): don't attempt to cache specifiers that point to directories
(#26369) - fix(jupyter): fix panics for overslow subtraction (#26371)
- fix(jupyter): update to the new logo (#26353)
- fix(net): don't try to set nodelay on upgrade streams (#26342)
- fix(node/fs): copyFile with
COPYFILE_EXCL
should not throw if the
destination doesn't exist (#26360) - fix(node/http): normalize header names in
ServerResponse
(#26339) - fix(runtime): send ws ping frames from inspector server (#26352)
- fix: don't warn on ignored signals on windows (#26332)
v2.0.1
2.0.1 / 2024.10.16
- feat(lsp): "deno/didRefreshDenoConfigurationTree" notifications (#26215)
- feat(unstable):
--unstable-detect-cjs
for respecting explicit
"type": "commonjs"
(#26149) - fix(add): create deno.json when running
deno add jsr:<pkg>
(#26275) - fix(add): exact version should not have range
^
specifier (#26302) - fix(child_process): map node
--no-warnings
flag to--quiet
(#26288) - fix(cli): add prefix to install commands in help (#26318)
- fix(cli): consolidate pkg parser for install & remove (#26298)
- fix(cli): named export takes precedence over default export in doc testing
(#26112) - fix(cli): improve deno info output for npm packages (#25906)
- fix(console/ext/repl): support using parseFloat() (#25900)
- fix(ext/console): apply coloring for console.table (#26280)
- fix(ext/napi): pass user context to napi_threadsafe_fn finalizers (#26229)
- fix(ext/node): allow writing to tty columns (#26201)
- fix(ext/node): compute pem length (upper bound) for key exports (#26231)
- fix(ext/node): fix dns.lookup result ordering (#26264)
- fix(ext/node): handle http2 server ending stream (#26235)
- fix(ext/node): implement TCP.setNoDelay (#26263)
- fix(ext/node): timingSafeEqual account for AB byteOffset (#26292)
- fix(ext/node): use primordials in
ext/node/polyfills/internal/buffer.mjs
(#24993) - fix(ext/webgpu): allow GL backend on Windows (#26206)
- fix(install): duplicate dependencies in
package.json
(#26128) - fix(install): handle pkg with dep on self when pkg part of peer dep resolution
(#26277) - fix(install): retry downloads of registry info / tarballs (#26278)
- fix(install): support installing npm package with alias (#26246)
- fix(jupyter): copy kernels icons to the kernel directory (#26084)
- fix(jupyter): keep running event loop when waiting for messages (#26049)
- fix(lsp): relative completions for bare import-mapped specifiers (#26137)
- fix(node): make
process.stdout.isTTY
writable (#26130) - fix(node/util): export
styleText
fromnode:util
(#26194) - fix(npm): support
--allow-scripts
ondeno run
(anddeno add
,
deno test
, etc) (#26075) - fix(repl): importing json files (#26053)
- fix(repl): remove check flags (#26140)
- fix(unstable/worker): ensure import permissions are passed (#26101)
- fix: add hint for missing
document
global in terminal error (#26218) - fix: do not panic on wsl share file paths on windows (#26081)
- fix: do not panic running remote cjs module (#26259)
- fix: do not panic when using methods on classes and interfaces in deno doc
html output (#26100) - fix: improve suggestions and hints when using CommonJS modules (#26287)
- fix: node-api function call should use preamble (#26297)
- fix: panic in
prepare_stack_trace_callback
when global interceptor throws
(#26241) - fix: use syntect for deno doc html generation (#26322)
- perf(http): avoid clone getting request method and url (#26250)
- perf(http): cache webidl.converters lookups in ext/fetch/23_response.js
(#26256) - perf(http): make heap allocation for path conditional (#26289)
- perf: use fast calls for microtask ops (#26236)
v2.0.0
2.0.0 / 2024.10.09
Read announcement blog post at: https://deno.com/blog/v2.0
- BREAKING:
DENO_FUTURE=1
by default, or welcome to Deno 2.0 (#25213) - BREAKING: disallow
new Deno.FsFile()
(#25478) - BREAKING: drop support for Deno.run.{clearEnv,gid,uid} (#25371)
- BREAKING: improve types for
Deno.serve
(#25369) - BREAKING: improved error code accuracy (#25383)
- BREAKING: make supported compilerOptions an allow list (#25432)
- BREAKING: move
width
andheight
options toUnsafeWindowSurface
constructor (#24200) - BREAKING: remove --allow-hrtime (#25367)
- BREAKING: remove "emit" and "map" from deno info output (#25468)
- BREAKING: remove
--allow-none
flag (#25337) - BREAKING: remove
--jobs
flag (#25336) - BREAKING: remove
--trace-ops
(#25344) - BREAKING: remove
--ts
flag (#25338) - BREAKING: remove
--unstable
flag (#25522) - BREAKING: remove
deno bundle
(#25339) - BREAKING: remove
deno vendor
(#25343) - BREAKING: remove
Deno.[Tls]Listener.prototype.rid
(#25556) - BREAKING: remove
Deno.{Conn,TlsConn,TcpConn,UnixConn}.prototype.rid
(#25446) - BREAKING: remove
Deno.{Reader,Writer}[Sync]
andDeno.Closer
(#25524) - BREAKING: remove
Deno.Buffer
(#25441) - BREAKING: remove
Deno.close()
(#25347) - BREAKING: remove
Deno.ConnectTlsOptions.{certChain,certFile,privateKey}
and
Deno.ListenTlsOptions.certChain,certFile,keyFile}
(#25525) - BREAKING: remove
Deno.copy()
(#25345) - BREAKING: remove
Deno.customInspect
(#25348) - BREAKING: remove
Deno.fdatasync[Sync]()
(#25520) - BREAKING: remove
Deno.File
(#25447) - BREAKING: remove
Deno.flock[Sync]()
(#25350) - BREAKING: remove
Deno.FsFile.prototype.rid
(#25499) - BREAKING: remove
Deno.fstat[Sync]()
(#25351) - BREAKING: remove
Deno.FsWatcher.prototype.rid
(#25444) - BREAKING: remove
Deno.fsync[Sync]()
(#25448) - BREAKING: remove
Deno.ftruncate[Sync]()
(#25412) - BREAKING: remove
Deno.funlock[Sync]()
(#25442) - BREAKING: remove
Deno.futime[Sync]()
(#25252) - BREAKING: remove
Deno.iter[Sync]()
(#25346) - BREAKING: remove
Deno.read[Sync]()
(#25409) - BREAKING: remove
Deno.readAll[Sync]()
(#25386) - BREAKING: remove
Deno.seek[Sync]()
(#25449) - BREAKING: remove
Deno.Seeker[Sync]
(#25551) - BREAKING: remove
Deno.shutdown()
(#25253) - BREAKING: remove
Deno.write[Sync]()
(#25408) - BREAKING: remove
Deno.writeAll[Sync]()
(#25407) - BREAKING: remove deprecated
UnsafeFnPointer
constructor type with untyped
Deno.PointerObject
parameter (#25577) - BREAKING: remove deprecated files config (#25535)
- BREAKING: Remove obsoleted Temporal APIs part 2 (#25505)
- BREAKING: remove remaining web types for compatibility (#25334)
- BREAKING: remove support for remote import maps in deno.json (#25836)
- BREAKING: rename "deps" remote cache folder to "remote" (#25969)
- BREAKING: soft-remove
Deno.isatty()
(#25410) - BREAKING: soft-remove
Deno.run()
(#25403) - BREAKING: soft-remove
Deno.serveHttp()
(#25451) - BREAKING: undeprecate
Deno.FsWatcher.prototype.return()
(#25623) - feat: add
--allow-import
flag (#25469) - feat: Add a hint on error about 'Relative import path ... not prefixed with
...' (#25430) - feat: Add better error messages for unstable APIs (#25519)
- feat: Add suggestion for packages using Node-API addons (#25975)
- feat: Allow importing .cjs files (#25426)
- feat: default to TS for file extension and support ext flag in more scenarios
(#25472) - feat: deprecate import assertions (#25281)
- feat: Don't warn about --allow-script when using esbuild (#25894)
- feat: hide several --unstable-* flags (#25378)
- feat: improve lockfile v4 to store normalized version constraints and be more
terse (#25247) - feat: improve warnings for deprecations and lifecycle script for npm packages
(#25694) - feat: include version number in all --json based outputs (#25335)
- feat: lockfile v4 by default (#25165)
- feat: make 'globalThis.location' a configurable property (#25812)
- feat: print
Listening on
messages on stderr instead of stdout (#25491) - feat: remove
--lock-write
flag (#25214) - feat: require jsr prefix for
deno install
anddeno add
(#25698) - feat: require(esm) (#25501)
- feat: Show hints when using
window
global (#25805) - feat: stabilize
Deno.createHttpClient()
(#25569) - feat: suggest
deno install --entrypoint
instead ofdeno cache
(#25228) - feat: support DENO_LOG env var instead of RUST_LOG (#25356)
- feat: TypeScript 5.6 and
npm:@types/node@22
(#25614) - feat: Update no-window lint rule (#25486)
- feat: update warning message for --allow-run with no list (#25693)
- feat: warn when using
--allow-run
with no allow list (#25215) - feat(add): Add npm packages to package.json if present (#25477)
- feat(add): strip package subpath when adding a package (#25419)
- feat(add/install): Flag to add dev dependency to package.json (#25495)
- feat(byonm): support
deno run npm:<package>
when package is not in
package.json (#25981) - feat(check): turn on noImplicitOverride (#25695)
- feat(check): turn on useUnknownInCatchVariables (#25465)
- feat(cli): evaluate code snippets in JSDoc and markdown (#25220)
- feat(cli): give access to
process
global everywhere (#25291) - feat(cli): use NotCapable error for permission errors (#25431)
- feat(config): Node modules option for 2.0 (#25299)
- feat(ext/crypto): import and export p521 keys (#25789)
- feat(ext/crypto): X448 support (#26043)
- feat(ext/kv): configurable limit params (#25174)
- feat(ext/node): add abort helpers, process & streams fix (#25262)
- feat(ext/node): add rootCertificates to node:tls (#25707)
- feat(ext/node): buffer.transcode() (#25972)
- feat(ext/node): export 'promises' symbol from 'node:timers' (#25589)
- feat(ext/node): export missing constants from 'zlib' module (#25584)
- feat(ext/node): export missing symbols from domain, puncode, repl, tls
(#25585) - feat(ext/node): export more symbols from streams and timers/promises (#25582)
- feat(ext/node): expose ES modules for _ modules (#25588)
- feat(flags): allow double commas to escape values in path based flags (#25453)
- feat(flags): support user provided args in repl subcommand (#25605)
- feat(fmt): better error on malfored HTML files (#25853)
- feat(fmt): stabilize CSS, HTML and YAML formatters (#25753)
- feat(fmt): support vto and njk extensions (#25831)
- feat(fmt): upgrade markup_fmt (#25768)
- feat(install): deno install with entrypoint (#25411)
- feat(install): warn repeatedly about not-run lifecycle scripts on explicit
installs (#25878) - feat(lint): add
no-process-global
lint rule (#25709) - feat(lsp): add a message when someone runs 'deno lsp' manually (#26051)
- feat(lsp): auto-import types with 'import type' (#25662)
- feat(lsp): html/css/yaml file formatting (#25353)
- feat(lsp): quick fix for @deno-types="npm:@types/*" (#25954)
- feat(lsp): turn on useUnknownInCatchVariables (#25474)
- feat(lsp): unstable setting as list (#25552)
- feat(permissions):
Deno.mainModule
doesn't require permissions (#25667) - feat(permissions): allow importing from cdn.jsdelivr.net by default (#26013)
- feat(serve): Support second parameter in deno serve (#25606)
- feat(tools/doc): display subitems in symbol overviews where applicable
(#25885) - feat(uninstall): alias to 'deno remove' if -g flag missing (#25461)
- feat(upgrade): better error message on failure (#25503)
- feat(upgrade): print info links for Deno 2 RC releases (#25225)
- feat(upgrade): support LTS release channel (#25123)
- fix: add link to env var docs (#25557)
- fix: add suggestion how to fix importing CJS module (#21764)
- fix: add test ensuring als works across dynamic import (#25593)
- fix: better error for Deno.UnsafeWindowSurface, correct HttpClient name,
cleanup unused code (#25833) - fix: cjs resolution cases (#25739)
- fix: consistent with deno_config and treat
"experimentalDecorators"
as
deprecated (#25735) - fix: delete old Deno 1.x headers file when loading cache (#25283)
- fix: do not panic running invalid file specifier (#25530)
- fix: don't include extensionless files in file collection for lint & fmt by
default (#25721) - fix: don't prompt when using
Deno.permissions.request
with--no-prompt
(#25811) - fix: eagerly error for specifier with empty version constraint (#25944)
- fix: enable
Win32_Security
feature inwindows-sys
(#26007) - fix: error on unsupported compiler options (#25714)
- fix: error out if a valid flag is passed before a subcommand (#25830)
- fix: fix jupyter display function type (#25326)
- fix: Float16Array type (#25506)
- fix: handle showing warnings while the progress bar is shown (#25187)
- fix: Hide 'deno cache' from help output (#25960)
- fix: invalid ipv6 hostname on
deno serve
(#25482) - fix: linux canonicalization checks (#24641)
- fix: lock down allow-run permissions more (#25370)
- fix: make some warnings more standard (#25324)
- fix: no cmd prefix in help output go links (#25459)
- fix: only enable byonm if workspace root has pkg json (#25379)
- fix: panic when require(esm) (#25769)
- fix: precompile preserve SVG camelCase attributes (#25945)
- fix: reland async context (#25140)
- fix: remove --allow-run warning when using deno without args or subcommand
(#25684) - fix: remove entrypoint hack for Deno 2.0 (#25332)
- fix: remove recently added deno.json node_modules aliasing (#25542)
- fix: remove the typo in the help message (#25962)
- fix: removed unstable-htttp from deno help (#25216)
- fix: replace
npm install
hint withdeno install
hint (#25244) - fix: trim space around DENO_AUTH_TOKENS (#25147)
- fix: update deno_doc (#25290)
- fix: Update deno_npm to fix
deno install
with crossws (#25837) - fix: update hint for
deno add <package>
(#25455) - fix: update malva in deno to support astro css comments (#25553)
- fix: update nodeMod...
v1.46.3
1.46.3 / 2024.09.04
- feat(upgrade): print info links for Deno 2 RC releases (#25225)
- fix(cli): Map error kind to
PermissionDenied
when symlinking fails due to
permissions (#25398) - fix(cli/tools): correct
deno init --serve
template behavior (#25318) - fix(ext/node): session close during stream setup (#25170)
- fix(publish): ensure provenance is spec compliant (#25200)
- fix(upgrade): more informative information on invalid version (#25319)
- fix: fix jupyter display function type (#25326)
v1.46.2
1.46.2 / 2024.08.29
- Revert "feat(fetch): accept async iterables for body" (#25207)
- fix(bench): Fix table column alignments and NO_COLOR=1 (#25190)
- fix(ext/crypto): throw DataError for invalid EC key import (#25181)
- fix(ext/fetch): percent decode userinfo when parsing proxies (#25229)
- fix(ext/node): emit
online
event after worker thread is initialized (#25243) - fix(ext/node): export JWK public key (#25239)
- fix(ext/node): import EC JWK keys (#25266)
- fix(ext/node): import JWK octet key pairs (#25180)
- fix(ext/node): import RSA JWK keys (#25267)
- fix(ext/node): throw when loading
cpu-features
module (#25257) - fix(ext/node): update aead-gcm-stream to 0.3 (#25261)
- fix(ext/webgpu): allow to build on unsupported platforms (#25202)
- fix(fmt): fix incorrect quotes in components (#25249)
- fix(fmt/markdown): fix regression with multi-line footnotes and inline math
(#25222) - fix(install): Use relative symlinks in deno install (#25164)
- fix(lsp): panic on url_to_uri() (#25238)
- fix(napi): Don't run microtasks in napi_resolve_deferred (#25246)
- fix(napi): Fix worker threads importing already-loaded NAPI addon (#25245)
- fix(node/cluster): improve stubs to make log4js work (#25146)
- fix(runtime/web_worker): populate
SnapshotOptions
forWebWorker
when
instantiated without snapshot (#25280) - fix(task): support tasks with colons in name in
deno run
(#25233) - fix: handle showing warnings while the progress bar is shown (#25187)
- fix: reland async context (#25140)
- fix: removed unstable-htttp from deno help (#25216)
- fix: replace
npm install
hint withdeno install
hint (#25244) - fix: update deno_doc (#25290)
- fix: upgrade deno_core to 0.307.0 (#25287)
- perf(ext/node): reduce some allocations in require (#25197)