Deno 于 2020.09.13 发布了 v1.4.0 版本。中国用户可以使用以下命令安装 Deno v1.4.0 版本:
Linux/macOS:
curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.4.0
Windows:
$v="1.4.0"; iwr https://x.deno.js.cn/install.ps1 -useb | iex
Deno CLI 的变更:
-
特性(console): print proxy details (#7139)
-
特性(console): 支持 CSS 样式 “%c” (#7357)
-
特性(core): 添加 JSON ops (#7336)
-
特性(fmt, lint): show number of checked files (#7312)
-
特性(install): bundle before installation (#5276)
-
特性(op_crates/web): Add all single byte encodings to TextDecoder (#6178)
-
特性(unstable): 添加
Deno.systemMemoryInfo()
(#7350) -
特性(unstable):
deno run --watch
(#7382) -
特性(unstable):
deno test --coverage
(#6901) -
特性(unstable): enable
importsNotUsedAsValues
by default (#7413) -
特性(unstable): enable
isolatedModules
by default (#7327) -
修复: Empty Response body returns 0-byte array (#7387)
-
修复: panic on
process.kill()
after run (#7405) -
修复: colors mismatch (#7367)
-
修复: compiler config resolution using relative paths (#7392)
-
修复(core): panic on big string allocation (#7395)
-
修复(op_crates/web): Use “deno:” URLs for internal script specifiers (#7383)
-
重构: Improve placeholder module names (#7430)
-
重构: improve tsc diagnostics (#7420)
-
重构(core): merge CoreIsolate and EsIsolate into JsRuntime (#7370, #7373,
-
重构(core): Use gotham-like state for ops (#7385)
-
升级: deno_doc, deno_lint, dprint, swc (#7381, #7391, #7402, #7434)
-
升级: rusty_v8 0.10.0 / V8 8.7.75 (#7429)
Deno 标准库(Deno Standard Modules) v0.69.0 的变更: