Deno v1.2.0 版本发布

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

Linux/macOS:


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

Windows:


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


Deno CLI 的变更:

  • feat(cli): 为 “deno upgrade” 命令添加 --cert 选项 (#6609)

  • feat(cli): 为 “deno install” 命令添加 --config 选项 (#6204)

  • feat(cli): 为 “deno info” 命令添加 --json 选项 (#6372)

  • feat(cli): 添加 --no-check 选项 (#6456)

  • feat(cli): 为 “deno upgrade” 命令添加 --output 选项 (#6352)

  • feat(cli): 添加 DENO_CERT 环境变量 (#6370)

  • feat(cli): 为 bundle 添加 lockfile 功能支持 (#6624)

  • feat(cli/js): 为 writeTextFilewriteTextFileSync 添加 WriteFileOptions (#6280)

  • feat(cli/js): 为 Buffer.bytes 添加 copy 参数 (#6697)

  • feat(cli/js): Add performance user timing APIs (#6421)

  • feat(cli/js): Add sorted, trailingComma, compact and iterableLimit to

InspectOptions (#6591)

  • feat(cli/js): Deno.chown() make uid, gid args optional (#4612)

  • feat(doc): Improve terminal printer (#6594)

  • feat(test): Add support for regex in filter flag (#6343)

  • feat(unstable): Add Deno.consoleSize() (#6520)

  • feat(unstable): Add Deno.ppid (#6539, #6717)

  • fix(cli): Don’t panic when no "HOME" env var is set (#6728)

  • fix(cli): Harden pragma and reference parsing in module analysis (#6702)

  • fix(cli): Panic when stdio is null on windows (#6528)

  • fix(cli): Parsing of --allow-net flag (#6698)

  • fix(cli/js): Allow Buffer to store MAX_SIZE bytes (#6570)

  • fix(cli/js): Definition of URL constructor (#6653)

  • fix(cli/js): Deno.setRaw shouldn’t panic on ENOTTY (#6630)

  • fix(cli/js): Fix process socket types (#6676)

  • fix(cli/js): Fix relative redirect in fetch API (#6715)

  • fix(cli/js): Implement IPv4 hostname parsing in URL (#6707)

  • fix(cli/js): Implement spec-compliant host parsing for URL (#6689)

  • fix(cli/js): Response constructor default properties in fetch API (#6650)

  • fix(cli/js): Update timers to ignore Date Override (#6552)

  • perf(cli): Improve .arrayBuffer() speed in fetch API (#6669)

  • refactor(core): Remove control slice from ops (#6048)

Deno 标准库(Deno Standard Modules) v0.61.0 的变更:

  • BREAKING(std/encoding/hex): 简化了 API (#6690)

  • feat(std/datetime): 添加 weekOfYear (#6659)

  • feat(std/log): Expose Logger type and improve public interface for get & set

log levels (#6617)

  • feat(std/node): Add buf.equals() (#6640)

  • feat(std/wasi): Implement fd_readdir (#6631)

  • fix(std): base64 in workers (#6681)

  • fix(std): md5 in workers (#6662)

  • fix(std/http): Properly return port 80 in _parseAddrFromStr (#6635)

  • fix(std/mime): Boundary random hex values (#6646)

  • fix(std/node): Add encoding argument to Buffer.byteLength (#6639)

  • fix(std/tesing/asserts): AssertEquals/NotEquals should use milliseconds in

Date (#6644)

  • fix(std/wasi): Return errno::success from fd_tell (#6636)
1 个赞