Deno 于 2021.01.19 发布了 v1.7.0 版本。中国用户可以使用以下命令安装 Deno v1.7.0 版本:
Linux/macOS:
curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.7.0
Windows:
$v="1.7.0"; iwr https://x.deno.js.cn/install.ps1 -useb | iex
同时安装多个版本 deno 可以使用 dvm。
Deno CLI 的变更:
-
BREAKING(unstable): Use hosts for net allowlists (#8845)
-
BREAKING(unstable): remove
CreateHttpClientOptions.caFile
(#8928) -
特性(installer): Add support for MSYS on Windows (#8932)
-
特性(unstable): add
Deno.resolveDns
API (#8790) -
特性(unstable): runtime compiler APIs consolidated to
Deno.emit()
(#8799, #9139) -
特性: Add
WorkerOptions
interface to type declarations (#9147) -
特性: Add configurable permissions for Workers (#8215)
-
特性: Standalone lite binaries and cross compilation (#9141)
-
特性: add
--location=<href>
andglobalThis.location
(#7369) -
特性: add global tls session cache (#8877)
-
特性: add markdown support to deno fmt (#8887)
-
特性: add utf-16 and big5 to
TextEncoder/TextDecoder
(#8108) -
特性: denort binary (#9041)
-
特性: stabilize
Deno.shutdown()
andConn#closeWrite()
(#9181) -
特性: support data urls (#8866)
-
特性: support runtime flags for deno compile (#8738)
-
特性: upload release zips to dl.deno.land (#9090)
-
修复(cli): dispatch unload on exit (#9088)
-
修复(cli): print a newline after help and version (#9158)
-
修复(coverage): do not store source inline in raw reports (#9025)
-
修复(coverage): merge duplicate reports (#8942)
-
修复(coverage): report partial lines as uncovered (#9033)
-
修复(inspector): kill child process after test (#8986)
-
修复(install): escape % symbols in windows batch files (#9133)
-
修复(install): 修复 cached-only flag (#9169)
-
修复(lsp): Add textDocument/implementation (#9071)
-
修复(lsp): Respect client capabilities for config and dynamic registration (#8865)
-
修复(lsp): support specifying a tsconfig file (#8926)
-
修复(op_crate/fetch): add back
ReadableStream.getIterator
and deprecate (#9146) -
修复(op_crate/fetch): align streams to spec (#9103)
-
修复(op_crate/web): 修复 atob to throw spec aligned DOMException (#8798)
-
修复(op_crates/fetch): correct regexp for fetch header (#8927)
-
修复(op_crates/fetch): req streaming + 0-copy resp streaming (#9036)
-
修复(op_crates/web) let TextEncoder#encodeInto accept detached ArrayBuffer (#9143)
-
修复(op_crates/web): Use WorkerLocation for location in workers (#9084)
-
修复(op_crates/websocket): respond to ping with pong (#8974)
-
修复(watcher): keep working even when imported file has invalid syntax (#9091)
-
修复: Use “none” instead of false to sandbox Workers (#9034)
-
修复: Worker hangs when posting “undefined” as message (#8920)
-
修复: align DOMException API to the spec and add web platform testing of it. (#9106)
-
修复: don’t error on version and help flag (#9064)
-
修复: don’t swallow customInspect exceptions (#9095)
-
修复: enable WPT tests (#9072, #9087, #9013, #9016, #9047, #9012, #9007, #9004, #8990)
-
修复: full commit hash in canary compile download (#9166)
-
修复: ignore “use asm” (#9019)
-
修复: implement DOMException#code (#9015)
-
修复: incremental build for deno declaration files (#9138)
-
修复: panic during
deno compile
with no args (#9167) -
修复: panic on invalid file:// module specifier (#8964)
-
修复: race condition in file watcher (#9105)
-
修复: redirect in
--location
relative fetch (#9150) -
修复: stronger input checking for setTimeout; add function overload (#8957)
-
修复: use inline source maps when present in js (#8995)
-
修复: use tokio for async fs ops (#9042)
-
重构(cli): remove ‘js’ module, simplify compiler snapshot (#9020)
-
重构(op_crates/crypto): Prefix ops with “op_crypto_” (#9067)
-
重构(op_crates/websocket): 重构 event loop (#9079)
-
重构: Print cause chain when downcasting AnyError fails (#9059)
-
重构: make Process#kill() throw sensible errors on Windows (#9111)
-
重构: move WebSocket API to an op_crate (#9026)
-
升级: Rust 1.49.0 (#8955)
-
升级: deno_doc, deno_lint, dprint, swc_ecmascript, swc_bundler (#9003)
-
升级: deno_lint to 0.2.16 (#9127)
-
升级: rusty_v8 0.16.0, v8 8.9.255.3 (#9180)
-
升级: swc_bundler 0.19.2 (#9085)
-
升级: tokio 1.0 (#8779)
Deno 标准库(Deno Standard Modules) 0.84.0 的变更:
-
BREAKING(std/wasi): make implementation details private (#8996)
-
BREAKING(std/wasi): return exit code from start (#9022)
-
特性(std/wasi): allow stdio resources to be specified (#8999)
-
修复(std): Don’t use JSDoc syntax for browser-compatibility headers (#8960)
-
修复(std/http): Use ES private fields in server (#8981)
-
修复(std/http): parsing of HTTP version header (#8902)
-
修复(std/node): resolve files in symlinked directories (#8840)