Deno 1.2.0 发布,基于 V8 的 TypeScript 运行时
Deno 于 2020.07.13 发布了 v1.2.0 版本。
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): 为
writeTextFile和writeTextFileSync添加WriteFileOptions(#6280) -
feat(cli/js): 为
Buffer.bytes添加copy参数 (#6697) -
feat(cli/js): Add
performanceuser timing APIs (#6421) -
feat(cli/js): Add
sorted,trailingComma,compactanditerableLimitto
InspectOptions (#6591)
-
feat(cli/js):
Deno.chown()makeuid,gidargs optional (#4612) -
feat(doc): Improve terminal printer (#6594)
-
feat(test): Add support for regex in filter flag (#6343)
-
feat(unstable): Add
Deno.consoleSize()(#6520) -
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
nullon windows (#6528) -
fix(cli): Parsing of -
-allow-netflag (#6698) -
fix(cli/js): Allow Buffer to store
MAX_SIZEbytes (#6570) -
fix(cli/js): Definition of
URLconstructor (#6653) -
fix(cli/js):
Deno.setRawshouldn’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):
Responseconstructor 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&setlog levels (#6617) -
feat(std/node): Add
buf.equals()(#6640) -
feat(std/wasi): Implement
fd_readdir(#6631) -
fix(std):
base64in workers (#6681) -
fix(std):
md5in workers (#6662) -
fix(std/http): Properly return port 80 in
_parseAddrFromStr(#6635) -
fix(std/mime): Boundary random hex values (#6646)
-
fix(std/node): Add
encodingargument toBuffer.byteLength(#6639) -
fix(std/tesing/asserts):
AssertEquals/NotEqualsshould use milliseconds in Date (#6644) - fix(std/wasi): Return
errno::successfrom fd_tell (#6636)
中国用户可以使用以下命令安装 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