18 ^new^ - Node

Upgrade your dependencies or use --openssl-legacy-provider (not recommended for production). The node: Protocol Node 18 strongly encourages using the node: import prefix for built-in modules. This is mandatory if you use ES modules ( "type": "module" in package.json ).

Let’s be honest: in the JavaScript ecosystem, FOMO (Fear Of Missing Out) is real. The moment a new version of Node drops, many developers rush to update. But while the community clamors over Node 20, 22, or even 24, a quiet workhorse is powering millions of production applications: . node 18

// Good import readFile from 'node:fs/promises'; // Bad (in ESM, this might break with bundlers) import readFile from 'fs'; Short answer: No for new projects. Long answer: It depends. Let’s be honest: in the JavaScript ecosystem, FOMO

Because understanding Node 18 is the key to understanding the modern Node.js you use today. It wasn't just another release; it was a paradigm shift. // Good import readFile from 'node:fs/promises'; // Bad

test('asynchronous passing test', async (t) => assert.strictEqual(await Promise.resolve(2), 2); );

For small microservices or internal tools, Node 18's test runner eliminated configuration fatigue. No more jest.config.js , no more mocha --timeout . Just node --test and go. Streaming in Node has always been powerful but verbose. Node 18 shipped the Web Streams API as a global, matching the spec used in browsers.

Start
Meine HZ
Lesezeichen
eZeitung