Deno 于 2020.06.02 发布了 v1.0.4 版本。中国用户可以使用以下命令安装 Deno v1.0.4 版本:
Linux/macOS:
curl -fsSL https://x.deno.js.cn/install.sh | sh -s v1.0.4
Windows:
iwr https://x.deno.js.cn/install.ps1 -useb -outf install.ps1; .\install.ps1 v1.0.4
Deno CLI 的变更:
本次版本包含一个 Deno Core 新特性,和若干 bug 修复。
-
feat(core): Ops 可以使用零拷贝缓冲(zero copy buffers) (#4788)
-
fix(bundle): 减小了 bundle 文件的尺寸 (#5997)
-
fix(cli): 修复了
Deno.remove()
无法删除 unix 套接字的 bug (#5967) -
fix(cli): compile TS dependencies of JS files (#6000)
-
fix(cli): ES private fields parsing in SWC (#5964)
-
fix(cli): Better use of
@ts-expect-error
(#6038) -
fix(cli): media type for
.cjs
andapplication/node
(#6005) -
fix(doc): remove JSDoc comment truncation (#6031)
-
fix(cli/js/web):
Body.bodyUsed
should useIsReadableStreamDisturbed
-
fix(cli/js/web):
formData
parser for binary files infetch()
(#6015) -
fix(cli/js/web): set null body for null-body status in
fetch()
(#5980) -
fix(cli/js/web): network error on multiple redirects in
fetch()
(#5985) -
fix(cli/js/web):
Headers.name
andFormData.name
(#5994)
Deno 标准库(Deno Standard Modules) v0.55.0 的变更:
-
feat(std/hash): 添加 Sha512 和 HmacSha512 (#6009)
-
feat(std/http) support code
103
Early Hints (#6021) -
feat(std/http): 添加
TooEarly
状态码 (#5999) -
feat(std/io): 添加
LimitedReader
(#6026) -
feat(std/log): 为日志文件增加缓冲区支持 (#6014)
-
feat(std/mime/multipart): Added multiple FormFile input (#6027)
-
feat(std/node): 添加
util.type.isDate
(#6029) -
fix(std/http): file server not closing files (#5952)
-
fix(std/path): 添加浏览器支持 (#6003)