Deno 1.5.4 发布,基于 V8 的 TypeScript 运行时

Deno 1.5.4 现已发布,Deno 是 V8 上的安全 TypeScript 运行时。

此版本更新内容如下:

  • feat(unstable):添加 deno test --no-run
  • feat(unstable):支持 --watch flag 的 bundle 和 fmt 子命令
  • 修复:支持"deno run --v8-flags=--help" without script
  • fix(tsc):允许导入非标准扩展
  • 重构: 改进Deno.version类型声明
  • 重构: 将 test 子命令的 --failfast 重命名为 --fail-fast 
  • 升级:rusty_v8 0.13.0,v8 8.8.278.2

Changes in std version 0.79.0:

  • feat(std/hash):添加 HmacSha1
  • feat(std/http):检查 cookie 属性是否有效
  • feat(std/http):验证 cookie 路径值
  • feat(std/io):来自 AsyncIterator 的 ReadableStream 和来自 Writer 的 WritableStream
  • feat(std/log):日志错误堆栈
  • feat(std/node):添加 os.totalmem、os.freemem
  • feat(std/node):添加 ReadableStream、WritableStream、errors support
  • feat(std/node):添加 util.deprecate
  • feat(std/node):添加 process.nextTick
  • fix(std/http):修复请求迭代器中的错误处理
  • fix(std/node):修复事件可扩展性
  • fix(std/node):正确键入 global、globalThis、window

Install / Upgrade

Using Deno:

deno upgrade --version 1.5.4

With Shell:

curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.5.4

With PowerShell:

$v="1.5.4"; iwr https://deno.land/x/install/install.ps1 -useb | iex

更新说明:https://github.com/denoland/deno/releases/tag/v1.5.4 

猜你喜欢

转载自www.oschina.net/news/121646/deno-1-5-4-released