Skip to content
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
75 changes: 75 additions & 0 deletions content/articles/2026/08/02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
title: 2026/07/27〜2026/08/02の最新情報
tags:
- deno_std
- dnt
categories:
- news
date: 2026-08-02
description: >
deno_stdのリリース (`@std/testing@1.0.20` - `@std/testing/bdd`及び`assertSnapshot()`が非推奨化, `@std/dotenv@0.225.8` - `load()`及び`@std/dotenv/load`が非推奨化, など), dnt v0.43.0 (`build()`の`mappings`オプションのキーにおいて _bare specifier_ の指定がサポート, など)
---

## deno_stdのリリース

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

### `@std/testing@1.0.20`

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

#### `@std/testing/bdd`

`@std/testing/bdd`及び`@std/testing/unstable-bdd`が非推奨化されています ([#7217](https://github.com/denoland/std/pull/7217))。`node:test`への移行が推奨されています。もしくは[Deno v2.5]({{< ref "articles/deno/v2.5.md" >}})において`Deno.test.beforeEach()`などが追加されているため、それと`Deno.TestContext#step()`の組み合わせでもある程度は代替はできそうです。

#### `@std/testing/snapshot`

`assertSnapshot()`が非推奨化されています ([#7216](https://github.com/denoland/std/pull/7216))。[Deno v2.9]({{< ref "articles/deno/v2.9.md" >}})でスナップショットテスティングのサポートが追加されているため、そちらへの移行が推奨されます。ただし、[`assertInlineSnapshot()`]({{< ref "articles/2025/06/01.md" >}}) (`@std/testing/unstable-snapshot`) についてはDeno本体でサポートが提供されていないこともあり、非推奨化の対象外です。

### `@std/dotenv@0.225.8`

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

#### `@std/dotenv/load`

`load()`/`loadSync()`/`@std/dotenv/load`が非推奨化されています ([#7248](https://github.com/denoland/std/pull/7248))。[`--env-file`]({{< ref "articles/deno/v1.46.md" >}})オプションへの移行が推奨されます。`parse()`及び`stringify()`については非推奨化対象外です。

### `@std/http@1.1.3`

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

#### `@std/http/unstable-error`

`@std/http/unstable-error`モジュールが追加されています ([#7132](https://github.com/denoland/std/pull/7132))。`HttpError`クラスが提供されています。

### `@std/data-structures@1.1.2`

[@std/data-structures@1.1.2](https://jsr.io/@std/data-structures@1.1.2)がリリースされています。

#### `@std/data-structures/unstable-rolling-counter`

`RollingCounter.from()`で`RollingCounter`オブジェクトの指定がサポートされています ([#7234](https://github.com/denoland/std/pull/7234))。指定された`RollingCounter`オブジェクトを複製できます。

### `@std/yaml@1.2.0`

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

#### `@std/yaml/types`

`@std/yaml/types`モジュールが追加されています ([#7235](https://github.com/denoland/std/pull/7235))。`YamlSyntaxError`が提供されています。また、構文エラーの検出時に`parse()`や`parseAll()`が`SyntaxError`ではなく`YamlSyntaxError`を`throw`するように変更されています。

## dnt v0.43.0

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

`build()`の`mappings`オプションのキーにおいて _bare specifier_ の指定がサポートされています ([#508](https://github.com/denoland/dnt/pull/508))。

また、`build()`に以下のオプションが追加されています:

- `compilerOptions`に`jsx`, `jsxFactory`, `jsxFragmentFactory`, 及び`jsxImportSource`オプションが追加されています ([#482](https://github.com/denoland/dnt/pull/482))
- `testPreloadModule`オプションが追加されています ([#495](https://github.com/denoland/dnt/pull/495))。dntによるテストの実行前に読み込まれるモジュールを指定できます。
- `testIsolation`オプションが追加されています ([#514](https://github.com/denoland/dnt/pull/514))。`testIsolation: "process"`を指定すると、dntによるテストの実行時に、各テストファイルが独立したプロセスによって実行されます。
- `polyfills`オプションが追加されています ([#496](https://github.com/denoland/dnt/pull/496))。dntが有効化または無効化するポリフィルを明示的に制御できます。
- `frozenLockfile`オプションが追加されています ([#504](https://github.com/denoland/dnt/pull/504))。`deno.lock`に存在しない依存パッケージが検出されると、ビルド時にエラーが発生します。
- `configFile: false`の指定がサポートされています ([#507](https://github.com/denoland/dnt/pull/507))。[dnt v0.42.0]({{< ref "articles/2025/05/11.md" >}}) で導入された`deno.json`の自動検出を無効化できます。
- `cwd`オプションが追加されています ([#518](https://github.com/denoland/dnt/pull/518))。各種相対パスの解決やテストファイル・設定ファイルの探索などが指定されたディレクトリを基準に行われるよう挙動が変更されます。
Loading