Deno v1.8.0 版本发布

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

Linux/macOS:

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

Windows:

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

同时安装多个版本 deno 可以使用 dvm


Deno CLI 的变更:

  • 特性: 使 import map 的行为符合规范 (#9616, #9526)

  • 特性: Deno.emit 支持打包为 IIFE (#9291)

  • 特性: Use top user frame for error source lines (#9604)

  • 特性: WebGPU API (#7977)

  • 特性: 增加 “deno coverage” 子命令 (#8664)

  • 特性: 为 “deno eval” 增加 --ext 选项 (#9295)

  • 特性: add exit sanitizer to Deno.test (#9529)

  • 特性: add json© support to deno fmt (#9292)

  • 特性: add structured cloning to Deno.core (#9458)

  • 特性: per op metrics (unstable) (#9240)

  • 特性: represent type dependencies in info (#9630)

  • 特性: stabilize Deno.permissions (#9573)

  • 特性: stabilize Deno.link and Deno.linkSync (#9417)

  • 特性: stabilize Deno.symlink and Deno.symlinkSync (#9226)

  • 特性: support auth tokens for accessing private modules (#9508)

  • 特性: support loading import map from URL (#9519)

  • 特性: use type definitions “deno doc” if available (#8459)

  • 修复(core): Add stacks for dynamic import resolution errors (#9562)

  • 修复(core): Fix dynamic imports for already rejected modules (#9559)

  • 修复(lsp): improve exception handling on tsc snapshots (#9628)

  • 修复(repl): filter out symbol candidates (#9555)

  • 修复(runtime): do not panic on irregular dir entries (#9579)

  • 修复(runtime/testing): false positive for timers when an error is thrown (#9553)

  • 修复(websocket): default to close code 1005 (#9339)

  • 修复: lint and fmt error if no target files are found (#9527)

  • 修复: panic caused by Deno.env.set("", "") (#9583)

  • 修复: typo in coverage exit_unstable (#9626)

  • 升级: TypeScript 4.2 (#9341)

  • 升级: rusty_v8 (V8 9.0.257.3) (#9605)

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

  • BREAKING(io/streams): Strengthen iterator to readable stream conversion (#735)

  • 构建: collect and upload code coverage (#770)

  • 特性(node): add constants module (#747)

  • 特性(node): add crypto.createHash (#757)

  • 特性(node): add process.hrtime function (#751)

  • 特性(node): add truncate and truncateSync (#765)

  • 修复(node): export promisify & callbackify (#748)

  • 修复(node): fix export items of events (#758)

  • 修复(node): ignore shebang (#746)

  • 修复(node): native module needs to be extensible (#745)

  • 修复(node/process): make process.argv an array (#749)

  • 修复: fix type errors in canary test (#762)

  • 重构: fix codes to pass no-unused-vars lint (#764)

  • 测试(path): update test cases for canary (#775)

已翻译,pr 求通过~

1 个赞