Deno v1.5.0 版本发布

Deno 于 2020.10.27 发布了 v1.5.0 版本。中国用户可以使用以下命令安装 Deno v1.5.0 版本:

Linux/macOS:

curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.5.0

Windows:

$v="1.5.0"; iwr https://x.deno.js.cn/install.ps1 -useb | iex

Deno CLI 的变更:

  • BREAKING: 默认启用 isolatedModules ((#8050)

  • 特性(bundle): Add support for --no-check ((#8023)

  • 特性(console): Inspect with colors regardless of Deno.noColor ((#7778)

  • 特性(doc): Support --import-map flag ((#7821)

  • 特性(fmt): Make --ignore flag stable ((#7922)

  • 特性(install): Add missing flags for deno install ((#7601)

  • 特性(repl): Add regex based syntax highlighter ((#7811)

  • 特性(repl): Add tab completion ((#7827)

  • 特性(test): Pass script args to test command ((#8121)

  • 特性(unstable): Add Deno.sleepSync() ((#7974)

  • 特性(unstable): Add Deno.systemCpuInfo() ((#7774)

  • 特性: Add alert, confirm, and prompt ((#7507)

  • 特性: Add types for WeakRef/FinalizationRegistry ((#8056)

  • 特性: Stabilize Deno.fsync and Deno.fdatasync ((#8038)

  • 修复(console): Fix the test cases of function inspections ((#7965)

  • 修复(console): Only inspect getters with option ((#7830)

  • 修复(core): Indicate exceptions in promises ((#8124)

  • 修复(core): Top Level Await module execution ((#7946)

  • 修复(op_crates/fetch): Body.body should be stream of Uint8Array ((#8030)

  • 修复(op_crates/fetch): Ensure Request.method is a string ((#8100)

  • 修复(op_crates/web): Better TextEncoder error message ((#8005)

  • 修复(op_crates/web): Expose event properties in console output ((#8103)

  • 修复(op_crates/web): TextEncoder should throw RangeError ((#8039)

  • 修复(op_crates/web): URL.pathname backslash replacement ((#7937)

  • 修复(repl): Ignore pair matching inside literals ((#8037)

  • 修复(repl): Keyboard interrupt should continue ((#7960)

  • 修复(repl): Unterminated string literal should invalidate ((#7896)

  • 修复(repl): Write all results to stdout ((#7893)

  • 修复(rt/main): Add global interface objects ((#7875)

  • 修复(rt/performance): Check for object props in startOrMeasureOptions ((#7884)

  • 修复(rt/websockets): Only add Sec-WebSocket-Protocol if not empty ((#7936)

  • 修复(test): Return error when awaiting unresolved promise ((#7968)

  • 修复: Do not throw on empty typescript files ((#8143)

  • 修复: 修复 inspection of Function ((#7930)

  • 修复: Handle URL paths in Deno.mkdir() ((#8140)

  • 修复: Handling of relative importmaps while using watch ((#7950)

  • 修复: Print error stacks from the origin Worker ((#7987)

  • 修复: Restore permission check on workers ((#8123)

  • 修复: Use -rw-r--r-- for cache files ((#8132)

  • 修复: Use rid getter for stdio ((#8014)

  • 修复: handle roots with extensions that don’t match media type ((#8114)

  • 重构(core): more control over isolate creation ((#8000)

  • 重构: New TSC infrastructure ((#7996, (#7981, (#7892)

  • 重构: Rename --importmap to --import-map ((#7032)

  • 重构: Rewrite Deno.transpileOnly() to use SWC ((#8090)

  • 升级: deno_doc, deno_lint, dprint, swc ((#8009, (#8077)

  • 升级: rusty_v8 and v8 8.7.220.3 ((#8017)

Deno 标准库(Deno Standard Modules) 0.75.0 的变更:

  • 特性(std/fs/node): Add more APIs ((#7921)

  • 特性(std/path): Add toFileUrl() ((#7971)

  • 特性(std/testing): Add assertExists assertion ((#7874)

  • 特性(std/testing): Add assertObjectMatch assertion ((#8001)

  • 修复(std/http): Path traversal in file_server.ts ((#8134)

  • 修复(std/toml): Parsing inline arrays of inline tables ((#7902)

  • 修复(std/encoding): base64 properly encodes mbc and handles Uint8Arrays ((#7807)

  • 修复(std/http/file_server): File server should ignore query params ((#8116)

  • 修复(std/node): Buffer.copy doesn’t work as expected ((#8125)

  • 修复(std/wasi): Disallow path_open outside of pre-opened dirfd ((#8078)

  • 重构(std/testing): Rename assert_Contains to assert_Includes ((#7951)

3 个赞

我去,我今天刚接触deno,安装的环境版本就是1.5,我看那个什么标准库运行出错,把我气哭了.
我看std才0.75,怎么deno的版本就1.5了,原来今天才发布啊,真巧了

对的,deno 发布了 1.x,但是 deno std lib 一直都是 0.x

这个有什么较大的影响嘛?比如一些兼容问题

基本上没有,比较有影响的是 --importmap 改成了 --import-map