O hirunewani blog

Frontend Weekly 2025-01-31

Created at

Playwright v1.15.0、ESLint v9.19.0、Bun 1.2、React CompilerのRust実装削除などについて

Playwright v1.15.0

Playwright v1.15.0がリリース。

https://github.com/microsoft/playwright/releases/tag/v1.50.0

Step APIのtimeoutオプション

Playwright v1.14で導入されたStep APIにtimeoutオプションが追加された。 これによりステップ毎にタイムアウトを設定できるようになった。

test('some test', async ({ page }) => {
  await test.step('a step', async () => {
    // This step can time out separately from the test
  }, { timeout: 1000 });
});

Step APIのskipメソッド

Step APIにskipメソッドが追加された。

test('some test', async ({ page }) => {
  await test.step('before running step', async () => {
    // Normal step
  });

  await test.step.skip('not yet ready', async () => {
    // This step is skipped
  });

  await test.step('after running step', async () => {
    // This step still runs even though the previous one was skipped
  });
});

ESLint v9.19.0

ESLint v9.19.0がリリース。

https://eslint.org/blog/2025/01/eslint-v9.19.0-released/

使われていないインライン設定を報告するreportUnusedInlineConfigsオプションが追加。

export default [
    {
        linterOptions: {
            reportUnusedInlineConfigs: "error"
        },
    }
];

Bun 1.2

Bun 1.2がリリース。

https://bun.sh/blog/bun-v1.2

大きなアップデートであると書かれているが、今までのパッチバージョンでの変更がまとめられており、 どれがv1.2での変更なのかは不明。

次のような変更が記述されている。

  • S3の組み込みサポート、Bun.s3の追加
  • Postgresの組み込みサポート、Bun.sqlの追加

React CompilerのRust実装削除

React CompilerのRust実装が削除された。JavaScriptに賭けるとのこと。

https://github.com/facebook/react/pull/32219