Deno 于 2020.12.08 发布了 v1.6.0 版本。中国用户可以使用以下命令安装 Deno v1.6.0 版本:
Linux/macOS:
curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.6.0
Windows:
$v="1.6.0"; iwr https://x.deno.js.cn/install.ps1 -useb | iex
同时安装多个版本 deno 可以使用 dvm。
Deno CLI 的变更:
-
BREAKING: Make “isolatedModules” setting non-configurable (#8482)
-
feat: Update to TypeScript 4.1 (#7573)
-
feat: EventTarget signal support (#8616)
-
feat: Add canary support to upgrade subcommand (#8476)
-
feat(unstable): Add cbreak option to Deno.setRaw (#8383)
-
fix: “onload” event order (#8376)
-
fix: Add file URL support for Deno.readLink (#8423)
-
fix: Add hygiene pass to transpile pipeline (#8586)
-
fix: Require allow-write permissions for unixpackets datagrams & unix socket (#8511)
-
fix: Highlight
async
andof
in REPL (#8569) -
fix: Make output of deno info --json deterministic (#8483)
-
fix: Panic in worker when closing at top level (#8510)
-
fix: Support passing cli arguments under
deno eval
(#8547) -
fix:
redirect: "manual"
fetch should returntype: "default"
response (#8353) -
fix: close() calls sometimes prints results in REPL (#8558)
-
fix: watcher doesn’t exit when module resolution fails (#8521)
-
fix: Fix PermissionDenied error being caught in Websocket constructor (#8402)
-
perf: Use minimal op with performance.now() (#8619)
-
core: Implement new ResourceTable (#8273)
-
core: Add FsModuleLoader that supports loading from filesystem (#8523)
-
upgrade rusty_v8 to 0.14.0 (#8663)
-
upgrade: deno_doc, deno_lint, dprint, swc (#8552, #8575, #8588)
Deno 标准库(Deno Standard Modules) 0.80.0 的变更:
-
BREAKING(std/bytes): Adjust APIs based on std-wg discussion (#8612)
-
feat(std/encoding/csv): Add stringify functionality (#8408)
-
feat(std/fs): Re-enable
followSymlinks
onwalk()
(#8479) -
feat(std/http): Add Cookie value validation (#8471)
-
feat(std/node): Add “setImmediate” and “clearImmediate” to global scope (#8566)
-
feat(std/node): Port most of node errors (#7934)
-
feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940)
-
feat(std/wasi): Add return on exit option (#8605)
-
feat(std/wasi): Add support for initializing reactors (#8603)
-
feat(std/ws): protocol & version support (#8505)
-
fix(std/bufio): Remove ‘\r’ at the end of Windows lines (#8447)
-
fix(std/encoding): Rewrite toml parser not to use eval() (#8624)
-
fix(std/encoding/csv): Correct readme formatting due to dprint issues (#8503)
-
fix(std/http): Prevent path traversal (#8474)
-
fix(std/node): Inline default objects to ensure correct prototype (#8513)