-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2023-12-01のJS: Node.js v18.19.0(LTS)、BiomeとPrettier、CSS Hooks #1142
Merged
Conversation
This file contains 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
💚 Node.js v18.19.0: 新しいローダーの仕組み |
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 v18.19.0がリリースされました。
npm 10へアップデート、
node:module
にregister
APIの追加、import.meta.resolve
のサポートが追加されています。また、
.js
のデフォルトの扱いをCJSからESMへと変更できる--experimental-default-type
フラグがバックポートされています。Biome v1.4.0がリリースされました。
PrettierのJS/TS/JSXに関するテストケースを95%以上通すRust実装を募集するThe Prettier Challengeが行われていました。
Biome v1.4.0ではこのチャレンジを達成して、Pretttierのフォーマット結果と96%一致するようになっています。
意図的な差分などについては、次のIssueにまとめられています。
その他には、フォーマットに関するオプション追加、
--config-path
フラグの追加、Lintルールの追加などが行われています。Prettier's CLI: A Performance Deep Dive · Prettierという記事では、PrettierのCLIのパフォーマンス改善について書かれています。
globのファイル探索の改善、INIファイルのパースの改善、キャッシュをデフォルト化、
console.log
の出力をバッファリングするように変更などの工夫についてCLIを改善した話が紹介されています。CSS Hooksというライブラリでは、
style
属性でスタイリングができるCSS in JSですが、:hover
などの擬似クラスなどをサポートをしています。CSS Hooksでは、CSS Custom Propertiesを使うことでstyle属性での擬似クラスやMedia Queryをサポートしています。CSS Custom Propertiesでif文のようなスタイルのトグルをすることで実現しています。
詳しい仕組みは、次の記事などを参照してください。