|  | 
|  | 1 | +--- | 
|  | 2 | +title: "2021-10-20のJS: Parcel v2、Node v17.0.0、Nuxt 3 beta" | 
|  | 3 | +author: "azu" | 
|  | 4 | +layout: post | 
|  | 5 | +date : 2021-10-20T03:47:20.958Z | 
|  | 6 | +category: JSer | 
|  | 7 | +tags: | 
|  | 8 | +- React | 
|  | 9 | +- node.js | 
|  | 10 | +- video | 
|  | 11 | +- bundler | 
|  | 12 | +- browser | 
|  | 13 | + | 
|  | 14 | +--- | 
|  | 15 | + | 
|  | 16 | +JSer.info #562 - ビルドツールのParcel v2がリリースされました。 | 
|  | 17 | + | 
|  | 18 | +- [Announcing Parcel v2!](https://parceljs.org/blog/v2/) | 
|  | 19 | + | 
|  | 20 | +Parcelは設定なしで動作することを目的にしているため、v1ではプラグインの仕組みは薄い形になっていました。 | 
|  | 21 | +Parcel v2ではプラグインの仕組みを刷新し、様々なケースに対応できるようになっています。 | 
|  | 22 | + | 
|  | 23 | +- [Plugins](https://parceljs.org/features/plugins/) | 
|  | 24 | + | 
|  | 25 | +また、Tree Shakingをデフォルト化、[SWC](https://github.com/swc-project/swc)ベースのJavaScriptコンパイラに変更、ModernとLegacyビルドの出し分け、Image optimizerの追加されています。 | 
|  | 26 | +その他にも、bundleのインライン化、ライブラリ向けのビルドのサポート、C++やRustでコアモジュールの一部を書き直し、ビルドパフォーマンスの改善なども含まれています。 | 
|  | 27 | + | 
|  | 28 | +Parcel v1からマイグレーションについてのドキュメントも公開されています。 | 
|  | 29 | + | 
|  | 30 | +- [Migration](https://parceljs.org/getting-started/migration/) | 
|  | 31 | + | 
|  | 32 | +---- | 
|  | 33 | + | 
|  | 34 | +Node.js 17.0.0がリリースされました。 | 
|  | 35 | + | 
|  | 36 | +- [Node v17.0.0 (Current) | Node.js](https://nodejs.org/en/blog/release/v17.0.0/) | 
|  | 37 | +- [Node.js 17 is here!. This blog was written by Bethany… | by Node.js | Node.js Collection | Oct, 2021 | Medium](https://medium.com/the-node-js-collection/node-js-17-is-here-8dba1e14e382) | 
|  | 38 | + | 
|  | 39 | +Nodeの奇数バージョンはLTSとはなりませんが、`Current`バージョンが17.xとなります。 | 
|  | 40 | +現在のNodeのLTSは12と14ですが、2021-10-26にNode 16がLTSに追加されます。 | 
|  | 41 | + | 
|  | 42 | +- [Releases | Node.js](https://nodejs.org/en/about/releases/) | 
|  | 43 | + | 
|  | 44 | +Node.js 17では、`readline`モジュールのPromise対応、OpenSSL 3.0へのアップデート、V8 9.5へアップデート、npm 8.0.0へのアップデート、スタックトレースにNodeバージョンを表示などの変更が含まれています。 | 
|  | 45 | +またウェブ標準の`strcturedClone()`と`DOMException`をサポートが追加されています。 | 
|  | 46 | + | 
|  | 47 | +[structuredClone()](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone)は`postMessage`などで内部的に使われていた(DOMを含む)オブジェクトの複製のメカニズムを関数として公開したメソッドです。 | 
|  | 48 | +最近、WHATWG HTMLの仕様に追加され、[Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1722576)や[Deno](https://deno.com/blog/v1.13#support-for-self.structuredclone())で実装され、[Chrome](https://bugs.chromium.org/p/chromium/issues/detail?id=1233571)、[Safari](https://bugs.webkit.org/show_bug.cgi?id=228331)、[core-js](https://github.com/zloirock/core-js/issues/969)で実装が進められています。 | 
|  | 49 | + | 
|  | 50 | +- [Expose structuredClone by surma · Pull Request #3414 · whatwg/html](https://github.com/whatwg/html/pull/3414) | 
|  | 51 | + | 
|  | 52 | +この`structuredClone()`は`JSON.parse`/`JSON.strinfigy`がサポートしていないオブジェクト(MapやRegExpなど)もサポートしていため、DOM以外の部分でも有用です。 | 
|  | 53 | + | 
|  | 54 | +- [構造化複製アルゴリズムを使ったオブジェクトのディープコピー](https://zenn.dev/petamoriken/articles/ad1e943d8d113c) | 
|  | 55 | + | 
|  | 56 | +`structuredClone()`で複製ができない場合は`DOMException`を例外として投げる仕様であるため、`DOMException`も合わせて実装されています。 | 
|  | 57 | + | 
|  | 58 | +Node 17にはNode 16の変更点も含まれるので、その他の変更は次の記事を参照してください。 | 
|  | 59 | + | 
|  | 60 | +- [2021-04-27のJS: Node.js 16.0.0、Chrome 91 beta、Prisma(Ready for production) - JSer.info](https://jser.info/2021/04/27/node.js-16.0.0-chrome-91-beta-prismaready-for-production/) | 
|  | 61 | +- [Node.js v17 の主な変更点 - 別にしんどくないブログ](https://shisama.hatenablog.com/entry/2021/10/20/114721) | 
|  | 62 | + | 
|  | 63 | + | 
|  | 64 | +---- | 
|  | 65 | + | 
|  | 66 | +<h1 class="site-genre">ヘッドライン</h1> | 
|  | 67 | + | 
|  | 68 | +---- | 
|  | 69 | + | 
|  | 70 | +## Announcing Parcel v2! | 
|  | 71 | +[parceljs.org/blog/v2/](https://parceljs.org/blog/v2/ "Announcing Parcel v2!") | 
|  | 72 | +<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> | 
|  | 73 | + | 
|  | 74 | +Parcel v2リリース。 | 
|  | 75 | +プラグインの仕組みを刷新、Tree Shakingをデフォルト化、SWCベースのJavaScriptコンパイラに変更、ModernとLegacyビルドの出し分け、Image optimizerの追加。 | 
|  | 76 | +bundleのインライン化、ライブラリ向けのビルドのサポート、開発時はリクエストされたタイミングで遅延ビルドできるようになるなど。 | 
|  | 77 | +その他にもSource MapライブラリをRustで書き直してパフォーマンス改善やファイル監視の仕組みの改善などが含まれている | 
|  | 78 | + | 
|  | 79 | +- [Migration](https://parceljs.org/getting-started/migration/ "Migration") | 
|  | 80 | + | 
|  | 81 | +---- | 
|  | 82 | + | 
|  | 83 | +## Deno 1.15 Release Notes | Deno Blog | 
|  | 84 | +[deno.com/blog/v1.15](https://deno.com/blog/v1.15 "Deno 1.15 Release Notes | Deno Blog") | 
|  | 85 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">deno</span> <span class="jser-tag">ReleaseNote</span></p> | 
|  | 86 | + | 
|  | 87 | +Deno 1.15リリース。 | 
|  | 88 | +Web Crypto APIの更新、FFIの改善、`deno uninstall`コマンドの追加、`deno lint --watch`の追加。 | 
|  | 89 | +`Deno.test`がネストしたテストケースをサポート、V8 9.5へアップデート、Node.js互換のモジュールを利用できる`--compat`フラグの追加など | 
|  | 90 | + | 
|  | 91 | +- [Deno v1.15で導入されたNode.js互換モードについて](https://zenn.dev/uki00a/articles/node-compat-mode-introduced-in-deno-v1-15 "Deno v1.15で導入されたNode.js互換モードについて") | 
|  | 92 | + | 
|  | 93 | +---- | 
|  | 94 | + | 
|  | 95 | +## Nuxt - Introducing Nuxt 3 Beta | 
|  | 96 | +[nuxtjs.org/announcements/nuxt3-beta/](https://nuxtjs.org/announcements/nuxt3-beta/ "Nuxt - Introducing Nuxt 3 Beta") | 
|  | 97 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Vue</span> <span class="jser-tag">Next.js</span> <span class="jser-tag">ReleaseNote</span></p> | 
|  | 98 | + | 
|  | 99 | +Nuxt 3 betaリリース。 | 
|  | 100 | +Vue 3とViteへの対応。 | 
|  | 101 | +新しいサーバエンジンのNitro Engineを導入することで、通常のNode.jsサーバ、Serverless、Service Workerなど様々な形でデプロイできるようになっている。 | 
|  | 102 | + | 
|  | 103 | + | 
|  | 104 | +---- | 
|  | 105 | + | 
|  | 106 | +## GitHub Advisory Database now powers npm audit | The GitHub Blog | 
|  | 107 | +[github.blog/2021-10-07-github-advisory-database-now-powers-npm-audit/](https://github.blog/2021-10-07-github-advisory-database-now-powers-npm-audit/ "GitHub Advisory Database now powers npm audit | The GitHub Blog") | 
|  | 108 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">npm</span> <span class="jser-tag">security</span> <span class="jser-tag">Github</span> <span class="jser-tag">news</span></p> | 
|  | 109 | + | 
|  | 110 | +`npm audit`がGitHub Advisory Databaseをみるようになった | 
|  | 111 | + | 
|  | 112 | + | 
|  | 113 | +---- | 
|  | 114 | + | 
|  | 115 | +## Release v7.0.0 · pinojs/pino | 
|  | 116 | +[github.com/pinojs/pino/releases/tag/v7.0.0](https://github.com/pinojs/pino/releases/tag/v7.0.0 "Release v7.0.0 · pinojs/pino") | 
|  | 117 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">node.js</span> <span class="jser-tag">library</span> <span class="jser-tag">ReleaseNote</span></p> | 
|  | 118 | + | 
|  | 119 | +pino 7.0.0リリース。 | 
|  | 120 | +ログの処理を別Threadなどに渡せる`pino.transport()`の追加、`pino.multistream()`の追加、TypeScriptの型を同梱するようになるなど | 
|  | 121 | + | 
|  | 122 | +- [Welcome to [email protected]  - and the era of worker\_ thread transport - NearForm](https://www.nearform.com/blog/pino7-0-0-pino-transport-worker_thread-transport/ "Welcome to [email protected] - and the era of worker\_thread transport - NearForm") | 
|  | 123 | + | 
|  | 124 | +---- | 
|  | 125 | + | 
|  | 126 | +## Node v17.0.0 (Current) | Node.js | 
|  | 127 | +[nodejs.org/en/blog/release/v17.0.0/](https://nodejs.org/en/blog/release/v17.0.0/ "Node v17.0.0 (Current) | Node.js") | 
|  | 128 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">node.js</span> <span class="jser-tag">ReleaseNote</span></p> | 
|  | 129 | + | 
|  | 130 | +Node v17.0.0リリース。 | 
|  | 131 | +`readline`モジュールのPromise対応、OpenSSL 3.0へのアップデート、V8 9.5へアップデート、npm 8.0.0へのアップデート、スタックトレースにNodeバージョンを表示など。 | 
|  | 132 | +またウェブ標準の`strcturedClone()`と`DOMException`をサポート | 
|  | 133 | + | 
|  | 134 | +- [Node.js 17 is here!. This blog was written by Bethany… | by Node.js | Node.js Collection | Oct, 2021 | Medium](https://medium.com/the-node-js-collection/node-js-17-is-here-8dba1e14e382 "Node.js 17 is here!. This blog was written by Bethany… | by Node.js | Node.js Collection | Oct, 2021 | Medium") | 
|  | 135 | +- [Release v8.0.0 · npm/cli](https://github.com/npm/cli/releases/tag/v8.0.0 "Release v8.0.0 · npm/cli") | 
|  | 136 | + | 
|  | 137 | +---- | 
|  | 138 | +<h1 class="site-genre">アーティクル</h1> | 
|  | 139 | + | 
|  | 140 | +---- | 
|  | 141 | + | 
|  | 142 | +## A Visual Guide to React Rendering - Cheat Sheet | Alex Sidorenko | 
|  | 143 | +[alexsidorenko.com/blog/react-render-cheat-sheet/](https://alexsidorenko.com/blog/react-render-cheat-sheet/ "A Visual Guide to React Rendering - Cheat Sheet | Alex Sidorenko") | 
|  | 144 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">React</span> <span class="jser-tag">cheatsheet</span> <span class="jser-tag">article</span></p> | 
|  | 145 | + | 
|  | 146 | +Reactのレンダリングのビジュアライズ | 
|  | 147 | + | 
|  | 148 | + | 
|  | 149 | +---- | 
|  | 150 | +<h1 class="site-genre">スライド、動画関係</h1> | 
|  | 151 | + | 
|  | 152 | +---- | 
|  | 153 | + | 
|  | 154 | +## RF21 – Naman Goel – Rethinking CSS - Introducing Stylex - YouTube | 
|  | 155 | +[www.youtube.com/watch?v=ur-sGzUWId4](https://www.youtube.com/watch?v=ur-sGzUWId4 "RF21 – Naman Goel – Rethinking CSS - Introducing Stylex - YouTube") | 
|  | 156 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">facebook</span> <span class="jser-tag">React</span> <span class="jser-tag">CSS</span> <span class="jser-tag">video</span></p> | 
|  | 157 | + | 
|  | 158 | +FacebookのAtomic CSSの実装であるStylexについての動画。 | 
|  | 159 | +StylexはReact-Nativeライクなスタイルの書き方をするツールキット、Atomic CSSによって線形的に増えるCSSの量を非線形にできる。 | 
|  | 160 | +2021年末にベータ版をリリースする予定。 | 
|  | 161 | + | 
|  | 162 | +- [Facebook CSS-in-JS Solution Stylex Introduced at React Finland 2021](https://www.infoq.com/news/2021/10/facebook-css-js-stylex/ "Facebook CSS-in-JS Solution Stylex Introduced at React Finland 2021") | 
|  | 163 | + | 
|  | 164 | +---- | 
|  | 165 | + | 
|  | 166 | +## React Finland 2021 - Talks - YouTube | 
|  | 167 | +[www.youtube.com/playlist?list=PL-a9lBflNu2opNHeISTnlHgGVlI7oGLXi](https://www.youtube.com/playlist?list=PL-a9lBflNu2opNHeISTnlHgGVlI7oGLXi "React Finland 2021 - Talks - YouTube") | 
|  | 168 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">React</span> <span class="jser-tag">video</span></p> | 
|  | 169 | + | 
|  | 170 | +React Finland 2021の動画一覧 | 
|  | 171 | + | 
|  | 172 | +- [React Finland 2021 - Sessions - YouTube](https://www.youtube.com/playlist?list=PL-a9lBflNu2rhk1vr3yr4mdRzzUb_nj5P "React Finland 2021 - Sessions - YouTube") | 
|  | 173 | + | 
|  | 174 | +---- | 
|  | 175 | +<h1 class="site-genre">サイト、サービス、ドキュメント</h1> | 
|  | 176 | + | 
|  | 177 | +---- | 
|  | 178 | + | 
|  | 179 | +## PrivacyTests.org: open-source tests of web browser privacy | 
|  | 180 | +[privacytests.org/](https://privacytests.org/ "PrivacyTests.org: open-source tests of web browser privacy") | 
|  | 181 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">browser</span> <span class="jser-tag">privacy</span></p> | 
|  | 182 | + | 
|  | 183 | +ブラウザごとのFinger PrintingやTracking対策などのPrivacy機能をまとめたサイト。 | 
|  | 184 | + | 
|  | 185 | + | 
|  | 186 | +---- | 
|  | 187 | + | 
|  | 188 | +## oslabs-beta/sapling: Sapling - A convenient way to traverse your React app in VS Code | 
|  | 189 | +[github.com/oslabs-beta/sapling](https://github.com/oslabs-beta/sapling "oslabs-beta/sapling: Sapling - A convenient way to traverse your React app in VS Code") | 
|  | 190 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">VSCode</span> <span class="jser-tag">React</span> <span class="jser-tag">Extension</span></p> | 
|  | 191 | + | 
|  | 192 | +Reactのコンポーネントツリーをエディタのサイドパネルに表示するVSCode拡張。 | 
|  | 193 | +Rootとなるコンポーネントを含むファイルを選ぶと、そのコンポーネントが含むコンポーネントをツリーとして表示してくれる | 
|  | 194 | + | 
|  | 195 | +- [Sapling - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=team-sapling.sapling "Sapling - Visual Studio Marketplace") | 
|  | 196 | +- [Introducing Sapling: a VS Code Extension for Traversing React Component Hierarchy | by Team Sapling | Oct, 2021 | JavaScript in Plain English](https://javascript.plainenglish.io/introducing-sapling-a-vs-code-extension-for-traversing-your-react-component-hierarchy-3ac94d95887e "Introducing Sapling: a VS Code Extension for Traversing React Component Hierarchy | by Team Sapling | Oct, 2021 | JavaScript in Plain English") | 
|  | 197 | + | 
|  | 198 | +---- | 
|  | 199 | +<h1 class="site-genre">書籍関係</h1> | 
|  | 200 | + | 
|  | 201 | +---- | 
|  | 202 | + | 
|  | 203 | +## Practical Svelte - Create Performant Applications with the Svelte Component Framework | Alex Libby | Apress | 
|  | 204 | +[www.apress.com/gp/book/9781484273739](https://www.apress.com/gp/book/9781484273739 "Practical Svelte - Create Performant Applications with the Svelte Component Framework | Alex Libby | Apress") | 
|  | 205 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">Svelte</span> <span class="jser-tag">book</span></p> | 
|  | 206 | + | 
|  | 207 | +Svelteを使ったウェブアプリケーション開発の入門書 | 
|  | 208 | + | 
|  | 209 | + | 
|  | 210 | +---- | 
|  | 211 | + | 
|  | 212 | +## Sairyss/domain-driven-hexagon: Guide on Domain-Driven Design, Hexagonal architecture, best practices etc. | 
|  | 213 | +[github.com/Sairyss/domain-driven-hexagon](https://github.com/Sairyss/domain-driven-hexagon "Sairyss/domain-driven-hexagon: Guide on Domain-Driven Design, Hexagonal architecture, best practices etc.") | 
|  | 214 | +<p class="jser-tags jser-tag-icon"><span class="jser-tag">DDD</span> <span class="jser-tag">document</span> <span class="jser-tag">TypeScript</span></p> | 
|  | 215 | + | 
|  | 216 | +ドメイン駆動設計(DDD)についてのガイド。 | 
|  | 217 | +主にDDDに関係する用語、設計、TypeScriptでのサンプルを用いた技術的な戦術についての解説をまとめたもの。 | 
|  | 218 | + | 
|  | 219 | + | 
|  | 220 | +---- | 
0 commit comments