Deno 于 2020.07.13 发布了 v1.2.0 版本。
Deno CLI 的变更:
feat(cli): 为 “deno upgrade” 命令添加 --cert 选项 (#6609)
--cert
feat(cli): 为 “deno install” 命令添加 --config 选项 (#6204)
--config
feat(cli): 为 “deno info” 命令添加 --json 选项 (#6372)
--json
feat(cli): 添加 --no-check 选项 (#6456)
--no-check
feat(cli): 为 “deno upgrade” 命令添加 --output 选项 (#6352)
--output
feat(cli): 添加 DENO_CERT 环境变量 (#6370)
DENO_CERT
feat(cli): 为 bundle 添加 lockfile 功能支持 (#6624)
feat(cli/js): 为 writeTextFile 和 writeTextFileSync 添加 WriteFileOptions (#6280)
writeTextFile
writeTextFileSync
WriteFileOptions
feat(cli/js): 为 Buffer.bytes 添加 copy 参数 (#6697)
Buffer.bytes
copy
feat(cli/js): Add performance user timing APIs (#6421)
performance
feat(cli/js): Add sorted, trailingComma, compact and iterableLimit to
sorted
trailingComma
compact
iterableLimit
InspectOptions (#6591)
InspectOptions
feat(cli/js): Deno.chown() make uid, gid args optional (#4612)
Deno.chown()
uid
gid
feat(doc): Improve terminal printer (#6594)
feat(test): Add support for regex in filter flag (#6343)
feat(unstable): Add Deno.consoleSize() (#6520)
Deno.consoleSize()
feat(unstable): Add Deno.ppid (#6539, #6717)
Deno.ppid
fix(cli): Don’t panic when no "HOME" env var is set (#6728)
"HOME"
fix(cli): Harden pragma and reference parsing in module analysis (#6702)
fix(cli): Panic when stdio is null on windows (#6528)
null
fix(cli): Parsing of --allow-net flag (#6698)
-allow-net
fix(cli/js): Allow Buffer to store MAX_SIZE bytes (#6570)
MAX_SIZE
fix(cli/js): Definition of URL constructor (#6653)
URL
fix(cli/js): Deno.setRaw shouldn’t panic on ENOTTY (#6630)
Deno.setRaw
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)
Response
fix(cli/js): Update timers to ignore Date Override (#6552)
perf(cli): Improve .arrayBuffer() speed in fetch API (#6669)
.arrayBuffer()
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)
weekOfYear
feat(std/log): Expose Logger type and improve public interface for get & set log levels (#6617)
get
set
feat(std/node): Add buf.equals() (#6640)
buf.equals()
feat(std/wasi): Implement fd_readdir (#6631)
fd_readdir
fix(std): base64 in workers (#6681)
base64
fix(std): md5 in workers (#6662)
md5
fix(std/http): Properly return port 80 in _parseAddrFromStr (#6635)
_parseAddrFromStr
fix(std/mime): Boundary random hex values (#6646)
fix(std/node): Add encoding argument to Buffer.byteLength (#6639)
encoding
Buffer.byteLength
fix(std/tesing/asserts): AssertEquals/NotEquals should use milliseconds in Date (#6644)
AssertEquals
NotEquals
errno::success
中国用户可以使用以下命令安装 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 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
performance
user timing APIs (#6421)feat(cli/js): Add
sorted
,trailingComma
,compact
anditerableLimit
toInspectOptions
(#6591)feat(cli/js):
Deno.chown()
makeuid
,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 toBuffer.byteLength
(#6639)fix(std/tesing/asserts):
AssertEquals
/NotEquals
should use milliseconds in Date (#6644)errno::success
from fd_tell (#6636)中国用户可以使用以下命令安装 Deno v1.2.0 版本:
Linux/macOS:
Windows: