|
| 1 | +--- |
| 2 | +title: "2024-06-03のJS: vitest v2.0.0-beta.5(browser mode)、Rspack v0.7、ESLint Migrator" |
| 3 | +author: "azu" |
| 4 | +layout: post |
| 5 | +date: 2024-06-03T13:18:59.009Z |
| 6 | +category: JSer |
| 7 | +tags: |
| 8 | +- test |
| 9 | +- book |
| 10 | +- TypeScript |
| 11 | +- ESLint |
| 12 | +- Design |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +JSer.info #695 - Vitest v2.0.0-beta.5がリリースされました。 |
| 17 | + |
| 18 | +- [Release v2.0.0-beta.5 · vitest-dev/vitest](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0-beta.5) |
| 19 | + |
| 20 | +`--merge-reports`がカバレッジをサポート、Promiseベースのmockに対するAssertionの追加、ブラウザモードの改善などが含まれています。 |
| 21 | + |
| 22 | +VitestのBrowser Modeは、`jsdom`や`happy-dom`を置き換える形で、コンポーネントテストのための仕組みとして作られています。 |
| 23 | +開発中のVitest 2.0ではCommands APIとmodule mockingが追加されています。 |
| 24 | + |
| 25 | +次のIssueに、VitestのBrowser Modeの目的や方向性についての解説が書かれています。 |
| 26 | + |
| 27 | +- [Vitest Browser Mode · vitest-dev/vitest · Discussion #5828](https://github.com/vitest-dev/vitest/discussions/5828) |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +RsPack v0.7がリリースされました。 |
| 32 | + |
| 33 | +- [Announcing Rspack v0.7 - Rspack](https://www.rspack.dev/blog/announcing-0-7) |
| 34 | +- [Release v0.7.0 · web-infra-dev/rspack](https://github.com/web-infra-dev/rspack/releases/tag/v0.7.0) |
| 35 | + |
| 36 | +Lazy Compilationのサポート、CSSビルドのパフォーマンス改善が行われています。 |
| 37 | +UnstableなJavaScript APIを非推奨化、`@import`は他のルールよりもあることをチェックするようになる変更も含まれています。 |
| 38 | + |
| 39 | +また、Rspack v1.0のロードマップも公開されていて、2024年7月にv1.0がリリースされる予定です。 |
| 40 | + |
| 41 | +- [[Tracking]: Rspack v1.0 · Issue #6689 · web-infra-dev/rspack](https://github.com/web-infra-dev/rspack/issues/6689) |
| 42 | +- [Rspack v1.0 Release Plan · web-infra-dev/rspack · Discussion #6315](https://github.com/web-infra-dev/rspack/discussions/6315) |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +ESLint 9のFlat Configへマイグレーションするための[ESLint Configuration Migrator](https://www.npmjs.com/package/@eslint/migrate-config)が公開されています。 |
| 47 | + |
| 48 | +- [Introducing the ESLint Configuration Migrator - ESLint - Pluggable JavaScript Linter](https://eslint.org/blog/2024/05/eslint-configuration-migrator/) |
| 49 | + |
| 50 | +`.eslintrc.json`などから、`eslint.config.js`に移行を補助するツールとなっています。 |
| 51 | + |
| 52 | +---- |
| 53 | + |
| 54 | +{% include inline-support.html %} |
| 55 | + |
| 56 | +---- |
| 57 | + |
| 58 | +<h1 class="site-genre">ヘッドライン</h1> |
| 59 | + |
| 60 | +---- |
| 61 | + |
| 62 | +## Release v2.0.0-beta.5 · vitest-dev/vitest |
| 63 | +[github.com/vitest-dev/vitest/releases/tag/v2.0.0-beta.5](https://github.com/vitest-dev/vitest/releases/tag/v2.0.0-beta.5 "Release v2.0.0-beta.5 · vitest-dev/vitest") |
| 64 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">vite</span> <span class="jser-tag">test</span> <span class="jser-tag">library</span> <span class="jser-tag">ReleaseNote</span></p> |
| 65 | + |
| 66 | +vitest v2.0.0-beta.5リリース。 |
| 67 | +`--merge-reports`がカバレッジをサポート、Promiseベースのmockに対するAssertionの追加、ブラウザモードの改善など |
| 68 | + |
| 69 | + |
| 70 | +---- |
| 71 | + |
| 72 | +## Prettier 3.3: New Flow features and a lot of bug fixes · Prettier |
| 73 | +[prettier.io/blog/2024/06/01/3.3.0.html](https://prettier.io/blog/2024/06/01/3.3.0.html "Prettier 3.3: New Flow features and a lot of bug fixes · Prettier") |
| 74 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">JavaScript</span> <span class="jser-tag">Tools</span> <span class="jser-tag">ReleaseNote</span></p> |
| 75 | + |
| 76 | +Prettier 3.3リリース。 |
| 77 | +Flowに追加された`declare name`/`component`構文をサポート、`gql` template literal内のGraphQLをサポート、pnpmの`package.yaml`のサポートなど |
| 78 | + |
| 79 | +- [feat: support package.yaml and package.json5 by zkochan · Pull Request #1799 · pnpm/pnpm](https://github.com/pnpm/pnpm/pull/1799 "feat: support package.yaml and package.json5 by zkochan · Pull Request #1799 · pnpm/pnpm") |
| 80 | + |
| 81 | +---- |
| 82 | + |
| 83 | +## Release v4.4.0 · honojs/hono |
| 84 | +[github.com/honojs/hono/releases/tag/v4.4.0](https://github.com/honojs/hono/releases/tag/v4.4.0 "Release v4.4.0 · honojs/hono") |
| 85 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Hono</span> <span class="jser-tag">ReleaseNote</span></p> |
| 86 | + |
| 87 | +Hono v4.4.0リリース。 |
| 88 | +JSRにパッケージを公開するように、`getConnInfo`を追加、`timeout` middlewareの追加など |
| 89 | + |
| 90 | + |
| 91 | +---- |
| 92 | + |
| 93 | +## Announcing Rspack v0.7 - Rspack |
| 94 | +[www.rspack.dev/blog/announcing-0-7](https://www.rspack.dev/blog/announcing-0-7 "Announcing Rspack v0.7 - Rspack") |
| 95 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">JavaScript</span> <span class="jser-tag">bundler</span> <span class="jser-tag">ReleaseNote</span></p> |
| 96 | + |
| 97 | +Rspack v0.7リリース。 |
| 98 | +Lazy Compilationのサポート、CSSビルドのパフォーマンス改善。 |
| 99 | +UnstableなJavaScript APIを非推奨化、`@import`は他のルールよりもあることをチェックするように。 |
| 100 | + |
| 101 | +- [Release v0.7.0 · web-infra-dev/rspack](https://github.com/web-infra-dev/rspack/releases/tag/v0.7.0 "Release v0.7.0 · web-infra-dev/rspack") |
| 102 | + |
| 103 | +---- |
| 104 | + |
| 105 | +## Deno 1.44: Private npm registries, improved Node.js compat, and performance boosts |
| 106 | +[deno.com/blog/v1.44](https://deno.com/blog/v1.44 "Deno 1.44: Private npm registries, improved Node.js compat, and performance boosts") |
| 107 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">dneo</span> <span class="jser-tag">ReleaseNote</span></p> |
| 108 | + |
| 109 | +Deno v1.44リリース。 |
| 110 | +`.npmrc`を使ったprivate npm registryのサポート、gRPC接続のサポート、V8のポインター圧縮によるメモリ使用量の削減。 |
| 111 | +`Deno.exitCode`をStable化、`Response.prototype.bytes()`のサポートなど |
| 112 | + |
| 113 | + |
| 114 | +---- |
| 115 | +<h1 class="site-genre">アーティクル</h1> |
| 116 | + |
| 117 | +---- |
| 118 | + |
| 119 | +## Introducing the ESLint Configuration Migrator - ESLint - Pluggable JavaScript Linter |
| 120 | +[eslint.org/blog/2024/05/eslint-configuration-migrator/](https://eslint.org/blog/2024/05/eslint-configuration-migrator/ "Introducing the ESLint Configuration Migrator - ESLint - Pluggable JavaScript Linter") |
| 121 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">ESLint</span> <span class="jser-tag">article</span></p> |
| 122 | + |
| 123 | +ESLint 9のFlatConfigへ移行するためのマイグレーションツールが公開された |
| 124 | + |
| 125 | + |
| 126 | +---- |
| 127 | + |
| 128 | +## Live types in a TypeScript monorepo |
| 129 | +[colinhacks.com/essays/live-types-typescript-monorepo](https://colinhacks.com/essays/live-types-typescript-monorepo "Live types in a TypeScript monorepo") |
| 130 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">TypeScript</span> <span class="jser-tag">article</span></p> |
| 131 | + |
| 132 | +monorepo内でパッケージとして分けたTypeScriptのコードをビルドなしで参照する方法について。 |
| 133 | +`exports`と`tsconfig-paths`を使った方法、`publishConfig`と組み合わせてnpm registryにもpubilsh可能な手法について |
| 134 | + |
| 135 | + |
| 136 | +---- |
| 137 | + |
| 138 | +## How 1Password Used Esbuild to Cut Browser Extension Build Times | 1Password |
| 139 | +[blog.1password.com/new-extension-build-system/](https://blog.1password.com/new-extension-build-system/ "How 1Password Used Esbuild to Cut Browser Extension Build Times | 1Password") |
| 140 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">TypeScript</span> <span class="jser-tag">esbuild</span> <span class="jser-tag">article</span></p> |
| 141 | + |
| 142 | +esbuildのbundleとtscを使った型チェックを並列で実行するパターン、esbuildのMetafileを使ってbundle sizeを分析する方法について |
| 143 | + |
| 144 | + |
| 145 | +---- |
| 146 | +<h1 class="site-genre">書籍関係</h1> |
| 147 | + |
| 148 | +---- |
| 149 | + |
| 150 | +## デジタル庁デザインシステムβ版 |
| 151 | +[design.digital.go.jp/](https://design.digital.go.jp/ "デジタル庁デザインシステムβ版") |
| 152 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Design</span> <span class="jser-tag">accessibility</span> <span class="jser-tag">figma</span> <span class="jser-tag">document</span></p> |
| 153 | + |
| 154 | +デジタル庁のデザインシステム。 |
| 155 | +デザイン、コンポーネント、ガイドライン、アクセシビリティについてまとめられている |
| 156 | + |
| 157 | + |
| 158 | +---- |
| 159 | + |
| 160 | +## テスト自動化実践ガイド 継続的にWebアプリケーションを改善するための知識と技法 | 末村 拓也 |本 | 通販 | Amazon |
| 161 | +[www.amazon.co.jp/dp/4798172359/](https://www.amazon.co.jp/dp/4798172359/ "テスト自動化実践ガイド 継続的にWebアプリケーションを改善するための知識と技法 | 末村 拓也 |本 | 通販 | Amazon") |
| 162 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">E2E</span> <span class="jser-tag">test</span> <span class="jser-tag">playwright</span> <span class="jser-tag">book</span></p> |
| 163 | + |
| 164 | +2024年7月30日発売 |
| 165 | +CodeceptJSとPlaywrightを使ったE2Eテストについての書籍 |
| 166 | + |
| 167 | + |
| 168 | +---- |
| 169 | + |
| 170 | +## React 19の新機能まるわかり |
| 171 | +[zenn.dev/uhyo/books/react-19-new](https://zenn.dev/uhyo/books/react-19-new "React 19の新機能まるわかり") |
| 172 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">React</span> <span class="jser-tag">book</span></p> |
| 173 | + |
| 174 | +React 19の変更点についてまとめた書籍。 |
| 175 | +Actionと`useTransition`、`useActionState`、`useOptimistic`、`use`などのHooksについて。 |
| 176 | +また、`<title>`などの対応、refCallback、Contextやrefの変更、`onCaughtError`オプションについてなど |
| 177 | + |
| 178 | +- [React 19を概念から理解する - Speaker Deck](https://speakerdeck.com/player/98422ddec1914f339c53f9c299f80ce6?title=false&skipResize=true "React 19を概念から理解する - Speaker Deck") |
| 179 | + |
| 180 | +---- |
0 commit comments