Node.js 15 makes 7 of my packages obsolete. This is a good thing. 👌
1. github.com/sindresorhus/d…
You can await setTimeout now:
const {setTimeout} = require('timers/promises');
await setTimeout(1000);
2. github.com/sindresorhus/p…
Node.js now supports AbortController: developer.mozilla.org/en-US/docs/Web…
3. github.com/sindresorhus/p…
This was added to JavaScript: developer.mozilla.org/en-US/docs/Web…
4. github.com/sindresorhus/a…
This was also added to JavaScript: developer.mozilla.org/en-US/docs/Web…
5. github.com/sindresorhus/r…
This was also added to JavaScript: developer.mozilla.org/en-US/docs/Web…
6. github.com/sindresorhus/l…
7. github.com/sindresorhus/h…
Node.js now throws on unhandled Promise rejections.
Node.js 15 highlights: nodejs.medium.com/node-js-v15-0-…
I think it's great that we now get a larger "standard library". The benefit is that many of these things have been proven in user-land/production for years before being added, so we already know they are useful and work.
Some more things I'd like to see in Node.js:
- Fetch
- Web Streams
- Web Crypto
- Globbing
And in JS:
- Promisification of existing APIs
- UUID generation
- github.com/sindresorhus/p… (with concurrency option)
- Escape regex method
- Better Unicode-aware string handling, like github.com/sindresorhus/s…
- BigDecimal
To be clear, I have no intention of deprecating any of the mentioned packages for a long time. They will be maintained for many years to come. But when projects can target Node.js 16 (15 is not LTS), they can replace these with native which results in a smaller dependency tree.
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.
