Skip to content

Commit 313ec5f

Browse files
authored
Update 2025-05-07-koa-v3.0.0-node.js-24node.js-18-eol-allfunctionscalledonload.md
1 parent 46f9344 commit 313ec5f

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

_i18n/ja/_posts/2025/2025-05-07-koa-v3.0.0-node.js-24node.js-18-eol-allfunctionscalledonload.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,35 @@ tags:
1313

1414
---
1515

16-
JSer.info #734 - - [Release v3.0.0 · koajs/koa](https://github.com/koajs/koa/releases/tag/v3.0.0)
16+
JSer.info #734 - Koa v3.0.0がリリースされました。
17+
18+
- [Release v3.0.0 · koajs/koa](https://github.com/koajs/koa/releases/tag/v3.0.0)
1719
- [koa/docs/migration-v2-to-v3.md at master · koajs/koa](https://github.com/koajs/koa/blob/master/docs/migration-v2-to-v3.md)
1820

19-
---
21+
Node.js 18未満のサポート終了、Generatorを使ったMiddlewareのサポートを終了など破壊的な変更が含まれています。新機能として、`app.currentContext`でAsyncLocalStorageを使用した現在のコンテキスト取得をサポート、`Blob`/`ReadableStream`/`Response`のサポート、カスタムストリームのサポートなどが追加されています。
22+
23+
----
24+
25+
Node.jsのv24がリリースされました。
2026

21-
- [Node.js — Node.js Releases](https://nodejs.org/en/about/previous-releases)
2227
- [Node.js — Node v24.0.0 (Current)](https://nodejs.org/en/blog/release/v24.0.0)
23-
- [What’s New with Node.js 24 | OpenJS Foundation](https://openjsf.org/blog/nodejs-24-released)
2428

25-
---
29+
Node.js 24では、V8 13.6へアップデート、npm 11の同梱、AsyncLocalStorageのAsyncContextFrameのデフォルト化、`URLPattern`のグローバル追加などの変更が含まれています。また、パーミッションモデルが`--permission`フラグで利用できるようになりました。
30+
31+
また、Node.js 18は2025年4月30日でEOL(End Of Support)となりました。
32+
33+
- [Node.js — Node.js Releases](https://nodejs.org/en/about/previous-releases)
34+
35+
----
36+
37+
V8エンジンに新しいコンパイルヒントの仕組みが実装されています。
2638

2739
- [Giving V8 a Heads-Up: Faster JavaScript Startup with Explicit Compile Hints · V8](https://v8.dev/blog/explicit-compile-hints)
2840

41+
`//# allFunctionsCalledOnLoad`というコメントによって、JavaScriptファイルのeager compilationを指定できる仕組みが実装されています。これにより、ファイル内の関数のコンパイルタイミングを制御でき、起動時のパフォーマンス最適化が可能になります。
42+
一方で、なんでもコンパイルすると時間とメモリを消費してしまう問題があることについても触れられています。
2943

44+
- [WICG/explicit-javascript-compile-hints-file-based: This proposal introduces a new magic comment that signals to browsers that the functions in a JavaScript file are likely to be needed by the website. Spec draft: https://wicg.github.io/explicit-javascript-compile-hints-file-based/](https://github.com/WICG/explicit-javascript-compile-hints-file-based)
3045

3146
----
3247

0 commit comments

Comments
 (0)