|
| 1 | +--- |
| 2 | +title: "2024-02-05のJS: TypeScript 5.4 Beta、Learn Testing/Performance、Interop 2024" |
| 3 | +author: "azu" |
| 4 | +layout: post |
| 5 | +date: 2024-02-05T07:09:35.304Z |
| 6 | +category: JSer |
| 7 | +tags: |
| 8 | +- browser |
| 9 | +- tutorial |
| 10 | +- WebPlatformAPI |
| 11 | +- nodejs |
| 12 | +- Tools |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +JSer.info #679 - TypeScript 5.4 Betaがリリースされました。 |
| 17 | + |
| 18 | +- [Announcing TypeScript 5.4 Beta - TypeScript](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/) |
| 19 | + |
| 20 | +クロージャーにおけるNarrowing結果の改善、`NoInfer` Utility Typeが追加されています。 |
| 21 | +また、ES2024の`Object.groupBy`/`Map.groupBy`をサポート、Import Attributesのサポートが追加されています。 |
| 22 | +そのほかには、`target: "ES3"`や`out`オプションなどを非推奨として、次のTypeScript 5.5で削除されることがアナウンスされています。TypeScript 5.5で削除されるオプションは、次のIssueにまとめられています。 |
| 23 | + |
| 24 | +- [Feedback: 5.0 deprecations · Issue #51909 · microsoft/TypeScript](https://github.com/microsoft/TypeScript/issues/51909) |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +web.dev にテストとパフォーマンスに関する新しいコンテンツが追加されました。 |
| 29 | + |
| 30 | +- [Learn Testing | web.dev](https://web.dev/learn/testing) |
| 31 | +- [Learn Performance | web.dev](https://web.dev/learn/performance) |
| 32 | + |
| 33 | +それぞれテストとパフォーマンスに関する一連の記事をまとめたページとなっています。 |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | +ブラウザベンダーや関係者が協力して、ウェブプラットフォーム間の相互運用性に取り組む[Interop 2024](https://wpt.fyi/interop-2024)の開始がアナウンスされました。 |
| 38 | + |
| 39 | +- [Interop 2024 | Blog | web.dev](https://web.dev/blog/interop-2024) |
| 40 | +- [The web just gets better with Interop 2024 | WebKit](https://webkit.org/blog/14955/the-web-just-gets-better-with-interop/) |
| 41 | +- [Interop 2024 Launch - Bocoup](https://bocoup.com/blog/interop-2024) |
| 42 | +- [Interop 2024 Launches | Igalia](https://www.igalia.com/2024/interop-2024-launches.html) |
| 43 | +- [Microsoft Edge and Interop 2024 - Microsoft Edge Blog](https://blogs.windows.com/msedgedev/2024/02/01/microsoft-edge-and-interop-2024/) |
| 44 | +- [Announcing Interop 2024 - Mozilla Hacks - the Web developer blog](https://hacks.mozilla.org/2024/02/announcing-interop-2024/) |
| 45 | + |
| 46 | +毎年取り組む重点分野が決められていており、今年追加されたものとしてはアクセシビリティ、CSS Nesting、HTTP(S) URLs for WebSocketなどが取り上げられています。 |
| 47 | + |
| 48 | +- [Interop 2024がスタート | フロントエンドBlog | ミツエーリンクス](https://www.mitsue.co.jp/knowledge/blog/frontend/202402/02_1152.html) |
| 49 | + |
| 50 | + |
| 51 | +---- |
| 52 | + |
| 53 | +{% include inline-support.html %} |
| 54 | + |
| 55 | +---- |
| 56 | + |
| 57 | +<h1 class="site-genre">ヘッドライン</h1> |
| 58 | + |
| 59 | +---- |
| 60 | + |
| 61 | +## Release v3.10.0 · nuxt/nuxt |
| 62 | +[github.com/nuxt/nuxt/releases/tag/v3.10.0](https://github.com/nuxt/nuxt/releases/tag/v3.10.0 "Release v3.10.0 · nuxt/nuxt") |
| 63 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Vue</span> <span class="jser-tag">library</span> <span class="jser-tag">ReleaseNote</span></p> |
| 64 | + |
| 65 | +Nuxt.js v3.10.0リリース。 |
| 66 | +実験的なオプションとして`sharedPrerenderData`を追加、`useId()`がSSR時にuniqueなIDを返すことを保証するように、アンチパターンの検出の強化など |
| 67 | + |
| 68 | + |
| 69 | +---- |
| 70 | + |
| 71 | +## Announcing TypeScript 5.4 Beta - TypeScript |
| 72 | +[devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/ "Announcing TypeScript 5.4 Beta - TypeScript") |
| 73 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">TypeScript</span> <span class="jser-tag">ReleaseNote</span></p> |
| 74 | + |
| 75 | +TypeScript 5.4 Betaリリース。 |
| 76 | +クロージャーにおけるNarrowing結果の改善、`NoInfer` Utility Typeの追加。 |
| 77 | +ES2024の`Object.groupBy`/`Map.groupBy`をサポート、Import Attributesのサポート。 |
| 78 | +`target: "ES3"`や`out`オプションなどを非推奨化など |
| 79 | + |
| 80 | +- [Feedback: 5.0 deprecations · Issue #51909 · microsoft/TypeScript](https://github.com/microsoft/TypeScript/issues/51909 "Feedback: 5.0 deprecations · Issue #51909 · microsoft/TypeScript") |
| 81 | + |
| 82 | +---- |
| 83 | + |
| 84 | +## Release v9.0.1 · typicode/husky |
| 85 | +[github.com/typicode/husky/releases/tag/v9.0.1](https://github.com/typicode/husky/releases/tag/v9.0.1 "Release v9.0.1 · typicode/husky") |
| 86 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">GIt</span> <span class="jser-tag">JavaScript</span> <span class="jser-tag">Tools</span> <span class="jser-tag">ReleaseNote</span></p> |
| 87 | + |
| 88 | +husky v9.0.1リリース。 |
| 89 | +`husk init`でセットアップを簡略化、git hookの書き方を単純化など |
| 90 | + |
| 91 | + |
| 92 | +---- |
| 93 | +<h1 class="site-genre">アーティクル</h1> |
| 94 | + |
| 95 | +---- |
| 96 | + |
| 97 | +## CodeMirror v6によるZennのMarkdownエディタの作り方 |
| 98 | +[zenn.dev/team\_zenn/articles/zenn-markdown-editor-by-cm6](https://zenn.dev/team_zenn/articles/zenn-markdown-editor-by-cm6 "CodeMirror v6によるZennのMarkdownエディタの作り方") |
| 99 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">JavaScript</span> <span class="jser-tag">editor</span> <span class="jser-tag">article</span> <span class="jser-tag">React</span></p> |
| 100 | + |
| 101 | +CodeMirrot v6でのMarkdownエディタの実装方法について |
| 102 | + |
| 103 | + |
| 104 | +---- |
| 105 | + |
| 106 | +## SameSite属性とCSRFとHSTS - Cookieの基礎知識からブラウザごとのエッジケースまでおさらいする - Flatt Security Blog |
| 107 | +[blog.flatt.tech/entry/samesite\_csrf\_hsts](https://blog.flatt.tech/entry/samesite_csrf_hsts "SameSite属性とCSRFとHSTS - Cookieの基礎知識からブラウザごとのエッジケースまでおさらいする - Flatt Security Blog") |
| 108 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">HTTP</span> <span class="jser-tag">browser</span> <span class="jser-tag">security</span> <span class="jser-tag">article</span></p> |
| 109 | + |
| 110 | +Cookieの属性について。 |
| 111 | +Secure/HttpOnly/Domain/Path/SameSite属性、`__Secure-`/`__Host-` prefix、SameSite属性の挙動やブラウザのデフォルトの動作について。 |
| 112 | + |
| 113 | + |
| 114 | +---- |
| 115 | + |
| 116 | +## Interop 2024がスタート | フロントエンドBlog | ミツエーリンクス |
| 117 | +[www.mitsue.co.jp/knowledge/blog/frontend/202402/02\_1152.html](https://www.mitsue.co.jp/knowledge/blog/frontend/202402/02_1152.html "Interop 2024がスタート | フロントエンドBlog | ミツエーリンクス") |
| 118 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">browser</span> <span class="jser-tag">WebPlatformAPI</span> <span class="jser-tag">article</span></p> |
| 119 | + |
| 120 | +ブラウザベンダーが注力して相互運用性に取り組むInterop 2024について。 |
| 121 | + |
| 122 | + |
| 123 | +---- |
| 124 | + |
| 125 | +## Node.jsで機能やパッケージの非推奨メッセージを通知する方法 | Web Scratch |
| 126 | +[efcl.info/2024/02/04/emitwarning/](https://efcl.info/2024/02/04/emitwarning/ "Node.jsで機能やパッケージの非推奨メッセージを通知する方法 | Web Scratch") |
| 127 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">npm</span> <span class="jser-tag">nodejs</span> <span class="jser-tag">article</span></p> |
| 128 | + |
| 129 | +npmやNode.jsで非推奨のメッセージを通知する方法について。 |
| 130 | +パッケージの非推奨化コードレベルの非推奨化、実行時の非推奨化について |
| 131 | + |
| 132 | + |
| 133 | +---- |
| 134 | + |
| 135 | +## Import attributes · V8 |
| 136 | +[v8.dev/features/import-attributes](https://v8.dev/features/import-attributes "Import attributes · V8") |
| 137 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">ECMAScript</span> <span class="jser-tag">article</span></p> |
| 138 | + |
| 139 | +ECMAScript Proposal Stage 3のImport attributesについて。 |
| 140 | +`import ... from .... assert { type } `はセマンティクス的に問題があったため、`import ... from .... with { type }`へと変更された。 |
| 141 | + |
| 142 | + |
| 143 | +---- |
| 144 | + |
| 145 | +## Learn Testing | web.dev |
| 146 | +[web.dev/learn/testing](https://web.dev/learn/testing "Learn Testing | web.dev") |
| 147 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">testing</span> <span class="jser-tag">tutorial</span> <span class="jser-tag">browser</span> <span class="jser-tag">nodejs</span></p> |
| 148 | + |
| 149 | +自動テストについて学ぶチュートリアル。 |
| 150 | +ブラウザやNode.jsでのテスト、テストの種類、コンポーネントテスト、静的解析ツールなどについて |
| 151 | + |
| 152 | + |
| 153 | +---- |
| 154 | +<h1 class="site-genre">サイト、サービス、ドキュメント</h1> |
| 155 | + |
| 156 | +---- |
| 157 | + |
| 158 | +## Learn Performance | web.dev |
| 159 | +[web.dev/learn/performance?hl=en](https://web.dev/learn/performance?hl=en "Learn Performance | web.dev") |
| 160 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">performance</span> <span class="jser-tag">tutorial</span> <span class="jser-tag">browser</span></p> |
| 161 | + |
| 162 | +ブラウザのパフォーマンスについてのチュートリアル。 |
| 163 | +リソースロードの最適化、JavaScriptの最適化、プリロード、Web Workerについてなど |
| 164 | + |
| 165 | + |
| 166 | +---- |
| 167 | + |
| 168 | +## Tappy - Yahoo!デベロッパーネットワーク |
| 169 | +[tappy.yahoo.co.jp/](https://tappy.yahoo.co.jp/ "Tappy - Yahoo!デベロッパーネットワーク") |
| 170 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">webservice</span> <span class="jser-tag">Tools</span> <span class="jser-tag">mobile</span> <span class="jser-tag">accessibility</span></p> |
| 171 | + |
| 172 | +ウェブサイトのボタンなどのタップ成功率を計算して表示してくれるツール。 |
| 173 | +タップミスが起きやすいボタンなのかの調査に利用できる。 |
| 174 | + |
| 175 | +- [スマホのタップ操作の成功率を算出するモデル ~ UIデザインにおけるユーザビリティの推定 - Yahoo! JAPAN Tech Blog](https://techblog.yahoo.co.jp/entry/2021120930233778/ "スマホのタップ操作の成功率を算出するモデル ~ UIデザインにおけるユーザビリティの推定 - Yahoo! JAPAN Tech Blog") |
| 176 | + |
| 177 | +---- |
| 178 | + |
| 179 | +## Compression Streams are now supported on all browsers | Blog | web.dev |
| 180 | +[web.dev/blog/compressionstreams?hl=en](https://web.dev/blog/compressionstreams?hl=en "Compression Streams are now supported on all browsers | Blog | web.dev") |
| 181 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">JavaScript</span> <span class="jser-tag">browser</span> <span class="jser-tag">WebPlatformAPI</span></p> |
| 182 | + |
| 183 | +gzipの圧縮/解凍するCompressionStreamが全てのブラウザで利用できるようになった。 |
| 184 | + |
| 185 | + |
| 186 | +---- |
0 commit comments