Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add articles/2024/06/16 #258

Merged
merged 2 commits into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions content/articles/2024/06/16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
title: 2024/06/10〜2024/06/16の最新情報
tags:
- Deno
- deno_std
- Prisma
categories:
- news
date: 2024-06-16
description: Deno v1.44.2 (deno lspの改善やNode-APIのリライトなど), deno_stdの安定化に関する予定, Deno for Enterprise, deno_stdのリリース (様々なパッケージでv1.0.0-rc.1がリリース), @hongminhee/deno-task-hooks (Gitフックのセットアップ用ツール)
---

## Deno v1.44.2

[Deno v1.44.2](https://github.com/denoland/deno/releases/tag/v1.44.2)がリリースされています。

### CLI

#### `deno lsp`

`textDocument/formatting`で `DocumentFormattingParams`の`options`が考慮されるように挙動が改善されています。([LSP: Formatting ignores passed formatting options (#23257)](https://github.com/denoland/deno/issues/23257))

また、auto importにおいて`.d.ts`などが提案されるべき場面で、誤って`.js`が提案されてしまうことがある問題が修正されています。([lsp: import suggestion imports `.d.ts` file as `.js` (#23017)](https://github.com/denoland/deno/issues/23017))

#### `deno lint`

BOM付きのUTF-8形式のファイルで`deno lint`がパニックする問題が修正されています。

#### バグ修正

複数のDenoプロセスが並列で同時にリモートモジュールのダウンロードを行っていると、処理が失敗することがある問題が修正されています。

また、dynamic importをするとプロセスがハングすることがある問題が修正されています。([Investigating hung/paused process while dynamically importing async module (#24098)](https://github.com/denoland/deno/issues/24098))

### Node.js互換性の改善

#### Node-API

Node-APIの実装がリライトされています。これにより、Prismaがハングしてしまう問題が解消されるようです。([Prisma `library` using N-API hangs often (#24010)](https://github.com/denoland/deno/issues/24010))

#### `node:child_process`

`stdio`オプションで`'ipc'`とファイルディスクリプタ(整数)の指定がサポートされました。

#### `node:http`

`ServerResponse#setHeader`の`value`引数に配列が指定された場合の挙動が修正されています。

- 今までの挙動: 配列の各値をカンマ区切りで結合し、単一のヘッダーとして追加されていました。
- Deno v1.44.2: 配列の各要素ごとにヘッダーが追加されます。

#### `node:vm`

`Script`における以下の問題が修正されています。

- `node:process`がimportできない問題 ([#22441](https://github.com/denoland/deno/issues/22441))
- `global`が未定義になる問題 ([#23852](https://github.com/denoland/deno/issues/23852))
- メモリリーク ([#23913](https://github.com/denoland/deno/issues/23913))

### `WebSocket`

`WebSocket`で`Blob`を送信する際に、順番通りにメッセージが送られない問題が修正されています。([`websocket.send()` does not respect the order of messages (#24074)](https://github.com/denoland/deno/issues/24074))

## `deno_std`の安定化に関する予定

Deno公式ブログで`deno_std`の今後の安定化に関する予定が公開されています。

- [The stabilization process of the Standard Library has begun](https://deno.com/blog/stabilize-std)

上記によると[`@std/archive`](https://jsr.io/@std/archive@0.224.1)については再デザイン中とのことです。

また、[`@std/datetime`](https://jsr.io/@std/datetime@0.224.1)についてもTemporal APIに合わせて再デザインが検討されているようです。

## Deno for Enterprise

**Deno for Enterprise**というサービスが発表されています。

- https://deno.com/enterprise
- https://discord.com/channels/684898665143206084/831635479912382495/1251176185682067487

上記リンク先の内容によると、主に大企業向けにDenoランタイムに関するSlackでのサポートなどが提供されるようです。

## `deno_std`のリリース

[deno_stdのリリース](https://github.com/denoland/deno_std/releases/tag/release-2024.06.12)が行われています。

### `@std/assert@1.0.0-rc.2`

[`@std/assert@1.0.0-rc.2`](https://jsr.io/@std/assert@1.0.0-rc.2)がリリースされています。

`assertAlmostEquals`で負数同士を比較しようとすると、エラーが発生する問題が修正されています。([`assertAlmostEquals` failed when comparing 2 negative numbers (#4994)](https://github.com/denoland/deno_std/issues/4994))

### `1.0.0-rc.1`

以下のパッケージで`1.0.0-rc.1`がリリースされています。

- [`@std/data-structures`](https://jsr.io/@std/data-structures@1.0.0-rc.1)
- [`@std/regexp`](https://jsr.io/@std/regexp@1.0.0-rc.1)
- [`@std/text`](https://jsr.io/@std/text@1.0.0-rc.1)
- [`@std/ulid`](https://jsr.io/@std/ulid@1.0.0-rc.1)
- [`@std/url`](https://jsr.io/@std/url@1.0.0-rc.1)

## `@hongminhee/deno-task-hooks`

`deno.json`をベースにしたGitフックのセットアップ用ツールが公開されています。

- https://github.com/dahlia/deno-task-hooks
- [@hongminhee/deno-task-hooks](https://jsr.io/@hongminhee/deno-task-hooks)
Loading