2023-10-03のJS: Node v20.8.0、Vitest v1.0.0-beta.0、instant.dev(Rails-inspired ORM/Migrations)#1123
Merged
2023-10-03のJS: Node v20.8.0、Vitest v1.0.0-beta.0、instant.dev(Rails-inspired ORM/Migrations)#1123
Conversation
…a.0-instant.devrails-inspired-ormmigrations.md
…a.0-instant.devrails-inspired-ormmigrations.md
…a.0-instant.devrails-inspired-ormmigrations.md
…a.0-instant.devrails-inspired-ormmigrations.md
Member
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node.js 20.8.0がリリースされました。
streamに関するフラグをビットマップで管理することでメモリ消費量とパフォーマンスが改善されています。vmにimportModuleDynamicallyオプションを追加、主にJestなどで起きていたvmのメモリリークの問題を修正なども含まれています。Node.jsのアップデートが起因でJestのメモリリークが起きる問題としては、次のIssueがあります。
こちらのIssueは、Node.js 20.8.0ではまだ修正されていません。
こちらの問題は、次のPull Requestで解決されるようです。
📝 Node.js 20.x は2023-10-24からLTSとなります。
Vitest v1.0.0-beta.0がリリースされました。
今までは
node:worker_threadsを使った並列実行のみがサポートされていましたが、今回node:child_processを使った並列実行をサポートが追加されています。これは、
node:worker_threadsではnative moduleを含むコードを実行すると、Segmentation faultになるケースがあるためです。次のIssueで詳しく解説されています。child_processruntime · Issue #64 · tinylibs/tinypoolこの変更により、
--threadsなどのフラグが廃止され、代わりとなる--poolと--poolOptionsフラグが追加されています。RailsをインスパイアしたORMマッパーとマイグレーション管理ツールである instant.dev が公開されています。
モデルの生成やマイグレーションの管理を行うInstant CLIと、ORMであるInstant ORMからなつツールになっています。