Introducing Node.js 22 Support
Ampt now supports Node.js 22, bringing several exciting new features and improvements to your applications.
- Ben Miner

We are excited to announce that Ampt now supports Node.js 22. With its official LTS release in October, Node.js 22 brings several exciting new features and improvements to the Ampt platform.
What's New in Node.js 22?
V8 version 12.4
Node.js 22 now uses V8 version 12.4, which brings performance improvements and new methods for Array
and Set
.
New Array.fromAsync
method:
Array.fromAsync() Exampleconst asyncIterable = { async *[Symbol.asyncIterator]() { yield 1; yield 2; yield 3; }, }; const result = await Array.fromAsync(asyncIterable); console.log(result); // [1, 2, 3]
New Set
methods including union
and intersection
:
New Set Methodsconst set1 = new Set([1, 2, 3]); const set2 = new Set([3, 4, 5]); const union = Set.union(set1, set2); console.log(union); // Set { 1, 2, 3, 4, 5 } const set3 = new Set([1, 2, 3]); const set4 = new Set([3, 4, 5]); const intersection = Set.intersection(set3, set4); console.log(intersection); // Set { 3 }
globSync
and glob
Node.js 22 now supports globSync
and glob
methods, which allow you to match file paths using glob patterns.
javascriptimport { globSync } from 'node:fs'; const files = globSync('**/*.js'); console.log(files);
Migrating your Ampt Apps to Node.js 22
To migrate your Ampt apps to Node.js 22, you can simply update the runtime
in the ampt
section of your package.json
to nodejs22
.
json"ampt": { "runtime": "nodejs22" }
note
Node.js 22 is now the default runtime for all new Ampt apps.
For more information about Node.js 22, see the official blog post and documentation.