Skip to content

Commit

Permalink
docs: add articles/2025/01/26.md (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a authored Jan 26, 2025
1 parent c7adfbd commit 478acaa
Showing 1 changed file with 123 additions and 0 deletions.
123 changes: 123 additions & 0 deletions content/articles/2025/01/26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
---
title: 2025/01/20〜2025/01/26の最新情報
tags:
- Deno
- deno_std
- Preact
categories:
- news
date: 2025-01-26
description: >
Deno v2.1.7 (v2.1.6で発生していたWorkerに関する問題の修正など), deno_stdのリリース (@std/[email protected] - `waitFor`の追加, @std/[email protected] - Node.js向けサポートの改善), wasmbuild v0.19.0 (古いバージョンのDenoやブラウザーなど向けに --inline オプションが追加), @preact/preset-vite v2.10.0 (Denoのサポート)
---

## Deno v2.1.7

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

### v2.1.6で発生していた`Worker`に関する問題の修正

[v2.1.6]({{< ref "articles/2025/01/19.md" >}})において`Worker`の使用時にDenoがパニックすることがあった問題が修正されています ([#27741](https://github.com/denoland/deno/pull/27741))

### `deno install -g --config`に関する挙動の変更

`deno install -g``--config`が指定された際に、指定された設定ファイルに含まれる`importMap`が無視されるよう挙動が変更されています ([#27744](https://github.com/denoland/deno/pull/27744))

`deno install -g``--import-map``--config`が併用された際に、意図せぬ動作をすることの防止が目的のようです。

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

#### `node:crypto`

`Decipher``aes-256-gcm`または`aes-128-gcm`を使用している際に、`final`メソッドにおいて認証タグのチェックが行われるように改善されています ([#27733](https://github.com/denoland/deno/pull/27733))

#### `node:fs/promises`

`FileHandle``datasync()``sync()`メソッドが追加されています ([#27677](https://github.com/denoland/deno/pull/27677))

#### `node:http`

`ClientRequest`が保持する`socket`においてエラーが発生した際に、その`ClientRequest`オブジェクトで`error`イベントが発火されるよう改善されています ([#27678](https://github.com/denoland/deno/pull/27678))

#### `node:tls`

`connect()``ECONNRESET`エラーが起きることのある問題が修正されています ([#27707](https://github.com/denoland/deno/pull/27707))

## `deno_std`のリリース

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

### `@std/[email protected]`

[@std/async@1.0.10](https://jsr.io/@std/[email protected])がリリースされています。

#### `@std/async/unstable-wait-for`が追加

`waitFor` (`@std/async/unstable-wait-for`)という新しい実験的APIが追加されています。`predicate`が満たされるまで待機してくれます。

```typescript
import { waitFor } from "jsr:@std/[email protected]/unstable-wait-for";

// ...

await waitFor(
() => task.isFinished(), // predicate
5_000, // timeout
);
```

### `@std/[email protected]`

[@std/fs@1.0.10](https://jsr.io/@std/[email protected])がリリースされています。

#### Node.js向けサポートの改善

[`@std/fs`のNode.jsサポート]({{< ref "articles/2024/12/15.md" >}})向けに、以下のモジュールが追加されています:

- `@std/fs/unstable-symlink` (`symlink()``symlinkSync()`が提供されます)
- `@std/fs/unstable-chmod` (`chmod()``chmodSync()`が提供されます)
- `@std/fs/unstable-read-dir`

### `@std/[email protected]`

[@std/assert@1.0.11](https://jsr.io/@std/[email protected])がリリースされています。

#### `assertObjectMatch`の改善

`assertObjectMatch`において`__proto__`を持つオブジェクトが適切に比較されるよう改善されています。

### `@std/[email protected]`

[@std/cbor@0.1.6](https://jsr.io/@std/[email protected])がリリースされています。

#### `subarray`の取り扱いの改善

`decodeCbor()``subarray` (`TypedArray#subarray`)が渡された際に適切にデコーディングが行われない問題が修正されています。

### `@std/[email protected]`

[@std/cli@1.0.11](https://jsr.io/@std/[email protected])がリリースされています。

#### `@std/cli/unstable-prompt-select` - 複数行の取り扱いの改善

`promptSecret()`において出力が複数行に渡った際やバックスペースによって改行が削除された際の制御が改善されています。

### `@std/[email protected]`

[@std/io@0.225.1](https://jsr.io/@std/[email protected])がリリースされています。

#### `readAllSync()`の改善

`readAllSync()`で指定された`reader`からすべてのデータが読み込まれないことがある問題が修正されています。

## wasmbuild v0.19.0

[wasmbuild v0.19.0](https://github.com/denoland/wasmbuild/releases/tag/0.19.0)がリリースされています。

`--inline`オプションが追加されています。[WASMモジュール]({{< ref "articles/deno/v2.1.md" >}})がサポートされていないバージョンのDenoやブラウザーなど向けのビルドを生成したい場合に指定することが想定されています。[v0.18.0]({{< ref "articles/2025/01/12.md" >}})からデフォルトでDenoの[WASMモジュールサポート]({{< ref "articles/deno/v2.1.md" >}})の利用が前提とされたため、それに伴う変更のようです。

## @preact/preset-vite v2.10.0

[@preact/preset-vite v2.10.0](https://github.com/preactjs/preset-vite/releases/tag/v2.10.0)がリリースされています。

[Denoのサポート](https://github.com/preactjs/preset-vite/pull/154)が行われているようです。

0 comments on commit 478acaa

Please sign in to comment.