2024/04/24 令和トラベルで発表した Node.js v22 で変わることの話です。
8月7日、Node.jsはv22.6.0をリリースした。このバージョンにはいくつかの注目すべき新機能が含まれている。 本記事は、以下のエキスパートに監修していただきました: 古川陽介さん(Japan Node.js Association代表理事) 実験的なTypeScriptサポート Node.jsは、初期的なTypeScriptサポートのために--experimental-strip-typesフラグを導入した。この機能は、TypeScript特有の構文を変換することなく.tsファイルから型注釈を削除する。現在の制限として以下の点がある。 インライン型注釈のみサポートし、enumやnamespaceなどの機能はサポートしていない。 importおよびrequire文に明示的なファイル拡張子が必要である。(import x from 'x.ts') 実行時エラーを避けるため、型インポート
引用元: https://nodejs.org/en/about/branding 2024年4月24日にリリースされたNode.js v22の主な変更点を紹介します。 Node.js v22はLTS(長期サポート)のバージョンになります。10月の後半にLTSとしてサポートが始まります。 nodejs.org require()がESMをサポート V8 12.4 アップデートによる JavaScript の機能 Array.fromAsync() Set methods union() intersection() difference() symmetricDifference() isSubsetOf() isSupersetOf() isDisjointFrom() Iterator Helpers map() filter() reduce() --runオプションによるpacka
2024-08-06, Version 22.6.0 (Current), @RafaelGSS Experimental TypeScript support via strip types Node.js introduces the --experimental-strip-types flag for initial TypeScript support. This feature strips type annotations from .ts files, allowing them to run without transforming TypeScript-specific syntax. Current limitations include: Supports only inline type annotations, not features like enums o
JSer.info #704 - WebdriverIO v9がリリースされました。 WebdriverIO v9 Released | WebdriverIO 新しい機能として、WebDriver BiDiのサポート、urlコマンドの追加、addInitScriptコマンドの追加、setViewportコマンドの追加、ShadowRootのサポートなどがあります。 また、emulateコマンドでClockのエミュレーションサポートや、要素がinteractiveになるまで自動的に待機する変更も含まれています。 Node.js v22.7.0がリリースされました。 Node.js — Node v22.7.0 (Current) 新しい機能として、--experimental-transform-typesフラグによるTypeScriptのenumとnamespaceの変換をサポートしまし
2024-06-11, Version 22.3.0 (Current), @RafaelGSS Notable Changes [5a41bcf9ca] - (SEMVER-MINOR) src: traverse parent folders while running --run (Yagiz Nizipli) #53154 [1d5934524b] - (SEMVER-MINOR) buffer: add .bytes() method to Blob (Matthew Aitken) #53221 [75e5612fae] - (SEMVER-MINOR) src,permission: --allow-wasi & prevent WASI exec (Rafael Gonzaga) #53124 [b5c30e2f5e] - (SEMVER-MINOR) module: pr
JSer.info #714 - Node.js v22.11.0がリリースされました。 Node.js — Node v22.11.0 (LTS) Node.js v22.11.0は、Node.js v22.xのLTS(Long Term Support)リリースとなります。 Node.js v22.xは、2027-04-30までのサポートが予定されています。 nodejs/Release: Node.js Release Working Group Nuxt.js v3.14がリリースされました。 Nuxt 3.14 · Nuxt Blog クライアントとサーバで共有するコードを置くshared/フォルダの追加、rspackの対応。 useResponseHeaderとuseRuntimeHookの追加などが行われています。 また、v4での変更をopt-inできるcompatibili
JSer.info #733 - Node.js v22.15.0がリリースされました。 Node.js — Node v22.15.0 (LTS) assert.partialDeepStrictEqual()やmodule.registerHooks()などの新しいAPIが追加されました。また、util.diff()の追加やzstdのサポートなども含まれています。 Reactチームが実験的な機能について紹介する記事を公開しました。 React Labs: View Transitions, Activity, and more – React <ViewTransition>、addTransitionType()、<Activity>などの新しい実験的なAPIの紹介が含まれています。 また、DevToolsでのPerformance Profilerの改善や依存のないuseEffec
2025-07-31, Version 22.18.0 'Jod' (LTS), @aduh95 Notable Changes Type stripping is enabled by default Node.js will be able to execute TypeScript files without additional configuration: $ echo 'const foo: string = "World"; console.log(`Hello ${foo}!`);' > file.ts $ node file.ts Hello World! There are some limitations in the supported syntax documented at https://nodejs.org/api/typescript.html#type-
2024-08-22, Version 22.7.0 (Current), @RafaelGSS Experimental transform types support With the new flag --experimental-transform-types it is possible to enable the transformation of TypeScript-only syntax into JavaScript code. This feature allows Node.js to support TypeScript syntax such as Enum and namespace. Thanks to Marco Ippolito for making this work on #54283. Module syntax detection is now
Or if the package is only meant to be run on Node.js and wants to fallback to CJS on older versions that don't have require(esm): { "type": "module", "exports": { // On new version of Node.js, both require() and import get the ESM version "module-sync": "./index.js", // On older version of Node.js, where "module-sync" and require(esm) are // not supported, use the CJS version to avoid dual-package
JSer.info #703 - Node.js v22.6.0がリリースされました。 Node.js — Node v22.6.0 (Current) 実験的な機能として、型の記述を取り除いてTypeScriptファイルを実行する--experimental-strip-typesフラグを追加されています。 関連: Node.jsのTypeScriptサポートについて また、Node.js DevToolsでNetwork Inspectionをサポートする--experimental-network-inspectionの追加なども行われています。 Firefox 129がリリースされました。 Firefox 129 for developers - Mozilla | MDN Firefox 129.0, See All New Features, Updates and Fixes
JSer.info #717 - Node.js v22.12.0 LTSがリリースされました。 Node.js — Node v22.12.0 (LTS) require(esm)がデフォルトで有効化されています。 これによって、CommonJSからTop Level awaitを含まないECMAScript Modulesのコードを同期的に読み込むことができるようになりました。 Modules: CommonJS modules | Node.js v23.3.0 Documentation Vite 6.0がリリースされました。 Vite 6.0 is out! | Vite 実験的なAPIとしてEnvironment API を追加、resolve.conditionsのデフォルト値を変更、Sassのmodern APIを使うなどの変更が行われています。オプションが一部変更されてい
JSer.info #744 - Node.js v22.18.0がリリースされました。 Node.js — Node.js v22.18.0 (LTS) このリリースでは、--experimental-strip-typesフラグなしに、TypeScriptの型を取り除いて実行できるようになりました。フラグで無効化したい場合は--no-experimental-strip-typesを指定します。 TypeScript 5.9がリリースされました。 Announcing TypeScript 5.9 - TypeScript tsc --initで生成する設定の変更、import deferのサポート、--module node20のサポート、DOM APIの説明コメントの追加などが含まれています。また、新しいInference from Usage機能により、型推論がより正確になってい
2024-05-15, Version 22.2.0 (Current), @targos Notable Changes [fb85d38e80] - (SEMVER-MINOR) cli: allow running wasm in limited vmem with --disable-wasm-trap-handler (Joyee Cheung) #52766 [23a0d3339f] - doc: add pimterry to collaborators (Tim Perry) #52874 [7d7a762156] - (SEMVER-MINOR) fs: allow 'withFileTypes' to be used with globs (Aviv Keller) #52837 [8748dd6477] - (SEMVER-MINOR) inspector: intr
2024-09-17, Version 22.9.0 (Current), @RafaelGSS New API to retrieve execution Stack Trace A new API getCallSite has been introduced to the util module. This API allows users to retrieve the stacktrace of the current execution. Example: const util = require('node:util'); function exampleFunction() { const callSites = util.getCallSite(); console.log('Call Sites:'); callSites.forEach((callSite, inde
JSer.info #696 - Storybook 8.1がリリースされました。 Storybook 8.1 Storyファイルを作成するUIの追加、Subpath importsを使ったモックの対応、Playwright Component Testの対応しています。 pacakge.jsonのimportsフィールドで特定のモジュールを条件分岐して読み分けるための仕組みであるSubpath importsについては、次の記事でも解説されています。 Type-safe module mocking in Storybook Mocking modules • Storybook docs その他には、React 19/Angular 18のサポートなども含まれています。 Turborepo 2.0がリリースされました。 Turborepo 2.0 Turborepoはmonorepo向
2024-09-03, Version 22.8.0 (Current), @RafaelGSS New JS API for compile cache This release adds a new API module.enableCompileCache() that can be used to enable on-disk code caching of all modules loaded after this API is called. Previously this could only be enabled by the NODE_COMPILE_CACHE environment variable, so it could only set by end-users. This API allows tooling and library authors to en
AdobeがApple M1チップをネイティブサポートした「Photoshop v22.3」で確認されている既知の不具合をの情報を公開しています。詳細は以下から。 Adobeは現地時間2021年03月10日、Apple Silicon M1チップをネイティブサポートし処理速度とパフォーマンスを向上させた写真加工/編集アプリ「Adobe Photoshop 2021 v22.3」をリリースしましたが、このPhotoshop v22.3をApple Silicon Macで実行した際に確認されている既知の不具合の情報も新たに公開しています。 Known differences and limitations Photoshop has minor feature differences when running under native mode and Rosetta. Adobe is h
タグ A-10マレーシアベトナム戦争ベネズエラベラルーシヘリコプターペリリュー島ペルーベルギーヘルメットポーランドミサイルブルパップメキシコモロッコモンゴルユーロファイターラトビアラファールリトアニアリビアルーマニアベトナムブルガリアレーザー銃ネイビーシールズテジャスデルタフォースデンマークドイツドラグノフトルコナイジェリアナチスニュージーランドネパールフランスノルウェーノルマンディー上陸パキスタンパレスチナパワードスーツハンガリーバンドオブブラザースフィリピンフィンランドブラジルレーザー兵器レバノンタイ米軍福建空母第一次世界大戦第二次世界大戦米宇宙軍米海兵隊米海軍米空米空軍米陸軍潜水艦自衛隊航空機航空自衛隊艦船警察車軽機関銃近衛兵陸上自衛隊韓国珍銃漫画ロシア太平洋戦争ロボットワグネル世界の迷彩中国中東写真北朝鮮南アフリカ台湾女性兵士海上自衛隊宇宙対テロ戦争強襲揚陸艦戦争博物館戦車戦闘車手
2024-07-17, Version 22.5.0 (Current), @RafaelGSS prepared by @aduh95 Notable Changes [1367c5558e] - (SEMVER-MINOR) http: expose websockets (Natalia Venditto) #53721 [b31394920d] - (SEMVER-MINOR) lib: add node:sqlite module (Colin Ihrig) #53752 [aa7df9551d] - module: add __esModule to require()'d ESM (Joyee Cheung) #52166 [8743c4d65a] - (SEMVER-MINOR) path: add matchesGlob method (Aviv Keller) #528
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く