Node.js can now execute TypeScript files

https://news.ycombinator.com/rss Hits: 14
Summary

Node.js v22.18.0 (LTS) ADH Antoine du Hamel Node.js v22.18.0 (LTS) 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-stripping. This feature is experimental and is subject to change. Disable it by passing --no-experimental-strip-types CLI flag. Contributed by Marco Ippolito in #56350. [ 26f3711228 ] - (SEMVER-MINOR) deps : update amaro to 1.1.0 (Node.js GitHub Bot) #56350 ] - : update amaro to 1.1.0 (Node.js GitHub Bot) #56350 [ d80ef2a71f ] - (SEMVER-MINOR) doc : add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719 ] - : add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719 [ 8ab24d21c9 ] - doc : add islandryu to collaborators (Shima Ryuhei) #58714 ] - : add islandryu to collaborators (Shima Ryuhei) #58714 [ 430e66b9b8 ] - (SEMVER-MINOR) esm : implement import.meta.main (Joe) #57804 ] - : implement (Joe) #57804 [ 62f7926b6a ] - (SEMVER-MINOR) fs : allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490 ] - : allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490 [ 65f19a00c3 ] - (SEMVER-MINOR) permission : propagate permission model flags on spawn (Rafael Gonzaga) #58853 ] - : propagate permission model flags on spawn (Rafael Gonzaga) #58853 [ ccca1517f9 ] - (SEMVER-MINOR) sqlite : add support for readBigInts option in db connection level (Miguel Marcondes Filho) #58697 ] - : add support for option in db connection level (Miguel Marcondes Filho) #58697 [ 48003e87e8 ] - (SEMVER-MINOR) src,permission : add support to permission.has(addon) (Rafael Gonzaga) #58951 ] - : add support to (Rafael Gonzaga) #58951 [ fe4290a0e6 ] - (SEMVER-MINOR) url : add fileURLToPathBuffer API (James M Snell) #58700 ] - : add API (James M Snell) #587...

First seen: 2025-08-17 07:33

Last seen: 2025-08-18 05:40