0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

deno v0.27.0の変更点

Posted at

概要

deno v0.27.0がリリースされました。

新機能に絞って変更点をまとめます。

ファイルサーバ(std/http/file_server.ts)がutf8をサポート

ファイルにUnicode Emoji等が含まれていると、文字化けが発生してしまう問題があったため、修正されました。

ファイルサーバ(std/http/file_server.ts)がヘルプ表示に対応

--helpオプションを指定することでヘルプが表示されるようになりました。

$ deno https://deno.land/std@v0.27.0/http/file_server.ts --help

fetchがURLオブジェクトに対応

下記のように、文字列だけでなく、URLオブジェクトも渡せるようになりました。

fetch(new URL('http://www.example.com'))

Deno.dir関数が追加

引数にディレクトリの種別を渡すと、プラットフォームに応じて適切なパスを返却してくれます。

Deno.dir('home') // ホームディレクトリ
Deno.dir('cache') // キャッシュディレクトリ

Deno.dirに渡せる引数は、下記のいずれかの文字列です。

  • "home"
  • "cache"
  • "config"
  • "data"
  • "data_local"
  • "audio"
  • "desktop"
  • "document"
  • "download"
  • "font"
  • "picture"
  • "public"
  • "template"
  • "video"

deno --versionでv8とTypeScriptのバージョンが表示されるようになった

v0.26.0ではdenoのバージョンしか表示されませんでした。

v0.27.0ではv8とTypeScriptのバージョンも表示されます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?