|
| 1 | +--- |
| 2 | +title: "2022-11-02のJS: Node.js 18.12.0 LTS、Babel 7.20.0、TypeScript 4.9 RC" |
| 3 | +author: "azu" |
| 4 | +layout: post |
| 5 | +date : 2022-11-02T01:40:40.691Z |
| 6 | +category: JSer |
| 7 | +tags: |
| 8 | +- CSS |
| 9 | +- TypeScript |
| 10 | +- opinion |
| 11 | +- React |
| 12 | +- book |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +JSer.info #616 - Node.js 18系のLTS(Long Term Support)となるNode.js 18.12.0がリリースされました。 |
| 17 | + |
| 18 | +- [Node v18.12.0 (LTS) | Node.js](https://nodejs.org/en/blog/release/v18.12.0/) |
| 19 | + |
| 20 | +Node.js 18のLTSは、2023-10-18から2025-04-30までサポートされる予定です。 |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +- [nodejs/Release: Node.js Release Working Group](https://github.com/nodejs/release#release-schedule) |
| 25 | + |
| 26 | +また、Node.js 16のLTSはOpenSSLのライフサイクルとの都合から、普段より短い[2023-09-11](https://nodejs.org/en/blog/announcements/nodejs16-eol/)までのサポートとなっています。 |
| 27 | + |
| 28 | +- [Bringing forward the End-of-Life Date for Node.js 16 | Node.js](https://nodejs.org/en/blog/announcements/nodejs16-eol/) |
| 29 | + |
| 30 | +---- |
| 31 | + |
| 32 | +Babel 7.20.0がリリースされました。 |
| 33 | + |
| 34 | +- [7.20.0 Released: Deno target and TypeScript 4.9 · Babel](https://babeljs.io/blog/2022/10/27/7.20.0) |
| 35 | + |
| 36 | +現在RCのTypeScript 4.9のサポート、`@babel/preset-env`の`targets`としてDenoをサポートしています。 |
| 37 | +合わせてbabel-loader 9.0.0をリリースし、webpack5未満のサポート終了とNode.js 12以下のサポート終了なども含まれています。 |
| 38 | + |
| 39 | +---- |
| 40 | + |
| 41 | +TypeScript 4.9 RCがリリースされました。 |
| 42 | + |
| 43 | +- [Announcing TypeScript 4.9 RC - TypeScript](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-rc/) |
| 44 | + |
| 45 | +型キャストはせずに型の一致をチェックできる`satisfies`演算子の追加、`in`演算子での型の絞り込みの改善、`accessor`キーワードのサポート、`== NaN`をコンパイルエラーに変更などが含まれます。 |
| 46 | +また、`--watch`でのファイル監視のデフォルトを`useFsEvents`に変更、値と型を同じ`exports`フィールドの`typeVersions`の優先度を修正なども含まれています。 |
| 47 | + |
| 48 | +RCリリースに合わせて、次のバージョンである5.0での予定についてのIssueも作られています。 |
| 49 | + |
| 50 | +- [TypeScript 5.0 Iteration Plan · Issue #51362 · microsoft/TypeScript](https://github.com/microsoft/TypeScript/issues/51362) |
| 51 | + |
| 52 | +5.0では、ECMAScript Stage 3の[Decoratorのサポート](https://github.com/microsoft/TypeScript/issues/48885)、[Numeric enumとLiteral enumの統合](https://github.com/microsoft/TypeScript/pull/50528)などが予定されています。 |
| 53 | +また、[Module Resolutionsの取り組み](https://github.com/microsoft/TypeScript/issues/50152)を進めたり、[.tsファイルのimportの許可](https://github.com/microsoft/TypeScript/issues/37582)、[.js以外のファイルに対する.d.tsのサポート](https://github.com/microsoft/TypeScript/issues/50133)なども進める予定となっています。 |
| 54 | +その他には[tsconfig.jsonでの`extends`で配列指定の許可](https://github.com/microsoft/TypeScript/pull/50403)、[`// @ts-option`でファイルごとのTS設定のサポート](https://github.com/microsoft/TypeScript/pull/49886)などの予定されています。 |
| 55 | + |
| 56 | +---- |
| 57 | + |
| 58 | +<h1 class="site-genre">ヘッドライン</h1> |
| 59 | + |
| 60 | +---- |
| 61 | + |
| 62 | +## Node v18.12.0 (LTS) | Node.js |
| 63 | +[nodejs.org/en/blog/release/v18.12.0/](https://nodejs.org/en/blog/release/v18.12.0/ "Node v18.12.0 (LTS) | Node.js") |
| 64 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">node.js</span> <span class="jser-tag">ReleaseNote</span></p> |
| 65 | + |
| 66 | +Node.js v18.12.0リリース。 |
| 67 | +Node.js 18のLTSとなるバージョン。 |
| 68 | +Node.js 18のLTSは2025年4月までメンテナンスされる予定。 |
| 69 | + |
| 70 | + |
| 71 | +---- |
| 72 | + |
| 73 | +## vite/CHANGELOG.md at main · vitejs/vite |
| 74 | +[github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#320-2022-10-26](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#320-2022-10-26 "vite/CHANGELOG.md at main · vitejs/vite") |
| 75 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">vite</span> <span class="jser-tag">ReleaseNote</span></p> |
| 76 | + |
| 77 | +Vite 3.2.0リリース。 |
| 78 | +Library Modeで複数のエントリーポイントをサポート、`build.modulePreload`オプションの追加、ErrorOverlayのスタイルをカスタマイズできるようになるなど |
| 79 | + |
| 80 | + |
| 81 | +---- |
| 82 | + |
| 83 | +## 7.20.0 Released: Deno target and TypeScript 4.9 · Babel |
| 84 | +[babeljs.io/blog/2022/10/27/7.20.0](https://babeljs.io/blog/2022/10/27/7.20.0 "7.20.0 Released: Deno target and TypeScript 4.9 · Babel") |
| 85 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">babel</span> <span class="jser-tag">ReleaseNote</span></p> |
| 86 | + |
| 87 | +Babel v7.20.0リリース。 |
| 88 | +TypeScript 4.9のサポート、`@babel/preset-env`の`targets`としてDenoをサポート。 |
| 89 | +合わせてbabel-loader 9.0.0をリリースし、webpack5未満のサポート終了とNode.js 12以下のサポート終了など |
| 90 | + |
| 91 | + |
| 92 | +---- |
| 93 | + |
| 94 | +## Deno 1.27: Major IDE Improvements |
| 95 | +[deno.com/blog/v1.27](https://deno.com/blog/v1.27 "Deno 1.27: Major IDE Improvements") |
| 96 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">deno</span> <span class="jser-tag">ReleaseNote</span></p> |
| 97 | + |
| 98 | +Deno v1.27リリース。 |
| 99 | +npmパッケージの`@types`を利用できるように、Node-APIのサポート、Lockファイルのフォーマット変更など。 |
| 100 | +`navigator.language` Web APIの実装、V8 10.8へ更新など |
| 101 | + |
| 102 | + |
| 103 | +---- |
| 104 | + |
| 105 | +## Release v7.0.0 · pixijs/pixijs |
| 106 | +[github.com/pixijs/pixijs/releases/tag/v7.0.0](https://github.com/pixijs/pixijs/releases/tag/v7.0.0 "Release v7.0.0 · pixijs/pixijs") |
| 107 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">JavaScript</span> <span class="jser-tag">canvas</span> <span class="jser-tag">library</span> <span class="jser-tag">ReleaseNote</span></p> |
| 108 | + |
| 109 | +PixiJS v7.0.0リリース。 |
| 110 | +IEのサポート終了、polyfillの削除、InteractionManagerを削除しEventSystemをデフォルト化、`peerDependencies`を利用しないように変更など |
| 111 | + |
| 112 | +- [v7 Migration Guide · pixijs/pixijs Wiki](https://github.com/pixijs/pixijs/wiki/v7-Migration-Guide "v7 Migration Guide · pixijs/pixijs Wiki") |
| 113 | + |
| 114 | +---- |
| 115 | + |
| 116 | +## Release v3.0.279 · mozilla/pdf.js |
| 117 | +[github.com/mozilla/pdf.js/releases/tag/v3.0.279](https://github.com/mozilla/pdf.js/releases/tag/v3.0.279 "Release v3.0.279 · mozilla/pdf.js") |
| 118 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">PDF</span> <span class="jser-tag">JavaScript</span> <span class="jser-tag">library</span> <span class="jser-tag">ReleaseNote</span></p> |
| 119 | + |
| 120 | +pdf.js v3.0.279リリース。 |
| 121 | +メジャーアップデートとなるリリースでEditor modeの追加、DeprecatedとなっているAPIの削除など |
| 122 | + |
| 123 | + |
| 124 | +---- |
| 125 | + |
| 126 | +## Release v1.9.0-rc.0 · reduxjs/redux-toolkit |
| 127 | +[github.com/reduxjs/redux-toolkit/releases/tag/v1.9.0-rc.0](https://github.com/reduxjs/redux-toolkit/releases/tag/v1.9.0-rc.0 "Release v1.9.0-rc.0 · reduxjs/redux-toolkit") |
| 128 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">redux</span> <span class="jser-tag">ReleaseNote</span></p> |
| 129 | + |
| 130 | +Redux Toolkit v1.9.0-rc.0リリース。 |
| 131 | +`autoBatchEnhancer`の追加、`fetchBaseQuery`でglobal optionを渡せるようになるなど |
| 132 | + |
| 133 | + |
| 134 | +---- |
| 135 | + |
| 136 | +## Announcing TypeScript 4.9 RC - TypeScript |
| 137 | +[devblogs.microsoft.com/typescript/announcing-typescript-4-9-rc/](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-rc/ "Announcing TypeScript 4.9 RC - TypeScript") |
| 138 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">TypeScript</span> <span class="jser-tag">ReleaseNote</span></p> |
| 139 | + |
| 140 | +TypeScript 4.9 RCリリース。 |
| 141 | +型キャストはせずに型の一致をチェックできる`satisfies`演算子の追加、`in`演算子での型の絞り込みの改善、`accessor`キーワードのサポート、`== NaN`をコンパイルエラーに変更など。 |
| 142 | +`--watch`でのファイル監視のデフォルトを`useFsEvents`に変更、値と型を同じ`exports`フィールドの`typeVersions`の優先度を修正など |
| 143 | + |
| 144 | + |
| 145 | +---- |
| 146 | + |
| 147 | +## Mixing It Up: Remix Joins Shopify to Push the Web Forward — Development (2022) |
| 148 | +[shopify.engineering/remix-joins-shopify](https://shopify.engineering/remix-joins-shopify "Mixing It Up: Remix Joins Shopify to Push the Web Forward — Development (2022)") |
| 149 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Remix</span> <span class="jser-tag">news</span></p> |
| 150 | + |
| 151 | +ShopifyがRemixを買収し、RemixはShopifyの下で開発を継続する。 |
| 152 | +ShopifyのHydrogenにもRemixのdata loadingパターンを組み込むなどの変更をしていく予定。 |
| 153 | +また、同時にVanilla ExtractのCreatorであるMark DalgleishもRemixに参加する予定となっている。 |
| 154 | + |
| 155 | +- [Remixing Shopify | Remix](https://remix.run/blog/remixing-shopify "Remixing Shopify | Remix") |
| 156 | +- [Roadmap • Hydrogen: Shopify’s headless commerce framework](https://hydrogen.shopify.dev/roadmap/ "Roadmap • Hydrogen: Shopify’s headless commerce framework") |
| 157 | +- [🧁 Mark Dalgleish on Twitter: &quot;I'm super excited to announce that next week I'm joining the @remix\_run team at @Shopify.&quot; / Twitter](https://twitter.com/markdalgleish/status/1587519372771217409 "🧁 Mark Dalgleish on Twitter: &amp;quot;I&#039;m super excited to announce that next week I&#039;m joining the @remix\_run team at @Shopify.&amp;quot; / Twitter") |
| 158 | + |
| 159 | +---- |
| 160 | +<h1 class="site-genre">アーティクル</h1> |
| 161 | + |
| 162 | +---- |
| 163 | + |
| 164 | +## Why We're Breaking Up with CSS-in-JS - DEV Community 👩💻👨💻 |
| 165 | +[dev.to/srmagura/why-were-breaking-up-wiht-css-in-js-4g9b](https://dev.to/srmagura/why-were-breaking-up-wiht-css-in-js-4g9b "Why We're Breaking Up with CSS-in-JS - DEV Community 👩💻👨💻") |
| 166 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">CSS</span> <span class="jser-tag">JavaScript</span> <span class="jser-tag">article</span> <span class="jser-tag">opinion</span></p> |
| 167 | + |
| 168 | +CSS-in-JSのランタイムパフォーマンス問題についての記事。 |
| 169 | + |
| 170 | + |
| 171 | +---- |
| 172 | + |
| 173 | +## Airbnb's Trip to Linaria | The Airbnb Tech Blog |
| 174 | +[medium.com/airbnb-engineering/airbnbs-trip-to-linaria-dc169230bd12](https://medium.com/airbnb-engineering/airbnbs-trip-to-linaria-dc169230bd12 "Airbnb's Trip to Linaria | The Airbnb Tech Blog") |
| 175 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">CSS</span> <span class="jser-tag">article</span> <span class="jser-tag">opinion</span></p> |
| 176 | + |
| 177 | +AirbnbでCSS-in-JSとしてreact-with-stylesを開発し使っていたが、パフォーマンスとメンテナンス性の問題から、Linariaへ移行していくという話 |
| 178 | + |
| 179 | +- [airbnb/react-with-styles: Use CSS-in-JavaScript with themes for React without being tightly coupled to one implementation](https://github.com/airbnb/react-with-styles "airbnb/react-with-styles: Use CSS-in-JavaScript with themes for React without being tightly coupled to one implementation") |
| 180 | + |
| 181 | +---- |
| 182 | + |
| 183 | +## 【脱ランタイムCSS in JS】styled-componentsを別のCSS in JSに自動置換するCLIツールの開発 |
| 184 | +[zenn.dev/yukiyada/articles/0ac6ef8d566b96](https://zenn.dev/yukiyada/articles/0ac6ef8d566b96 "【脱ランタイムCSS in JS】styled-componentsを別のCSS in JSに自動置換するCLIツールの開発") |
| 185 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">CSS</span> <span class="jser-tag">article</span> <span class="jser-tag">Tools</span></p> |
| 186 | + |
| 187 | +styled-componentsをlinariaやvanilla-extractに移行するツールの仕組みについての記事 |
| 188 | + |
| 189 | + |
| 190 | +---- |
| 191 | +<h1 class="site-genre">サイト、サービス、ドキュメント</h1> |
| 192 | + |
| 193 | +---- |
| 194 | + |
| 195 | +## sqlite3 wasm docs: About the sqlite3 WASM/JS Subproject |
| 196 | +[sqlite.org/wasm/doc/trunk/about.md](https://sqlite.org/wasm/doc/trunk/about.md "sqlite3 wasm docs: About the sqlite3 WASM/JS Subproject") |
| 197 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">SQLite</span> <span class="jser-tag">JavaScript</span> <span class="jser-tag">WebAssembly</span> <span class="jser-tag">library</span></p> |
| 198 | + |
| 199 | +sqlite3をWebAssemblyとJavaScriptを使ってブラウザで動かすことを目的にした公式のサブプロジェクト。 |
| 200 | + |
| 201 | + |
| 202 | +---- |
| 203 | +<h1 class="site-genre">ソフトウェア、ツール、ライブラリ関係</h1> |
| 204 | + |
| 205 | +---- |
| 206 | + |
| 207 | +## dudykr/stc: Speedy TypeScript type checker |
| 208 | +[github.com/dudykr/stc](https://github.com/dudykr/stc "dudykr/stc: Speedy TypeScript type checker") |
| 209 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">TypeScript</span> <span class="jser-tag">Rust</span></p> |
| 210 | + |
| 211 | +Rustで書かれたTypeScriptの型チェッカー |
| 212 | + |
| 213 | +- [Open-sourcing the new TypeScript type checker](https://kdy1.dev/posts/2022/10/open-sourcing-stc "Open-sourcing the new TypeScript type checker") |
| 214 | + |
| 215 | +---- |
| 216 | +<h1 class="site-genre">書籍関係</h1> |
| 217 | + |
| 218 | +---- |
| 219 | + |
| 220 | +## Fluent React \[Book\] |
| 221 | +[www.oreilly.com/library/view/fluent-react/9781098138707/](https://www.oreilly.com/library/view/fluent-react/9781098138707/ "Fluent React \[Book\]") |
| 222 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">React</span> <span class="jser-tag">book</span></p> |
| 223 | + |
| 224 | +2024年3月発売予定 |
| 225 | +Reactについての書籍 |
| 226 | + |
| 227 | + |
| 228 | +---- |
0 commit comments