Node.js 15 makes 7 of my packages obsolete. This is a good thing.

1. https://github.com/sindresorhus/delay
You can await setTimeout now:
const {setTimeout} = require('timers/promises');
await setTimeout(1000);
You can await setTimeout now:
const {setTimeout} = require('timers/promises');
await setTimeout(1000);
2. https://github.com/sindresorhus/p-cancelable
Node.js now supports AbortController: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
Node.js now supports AbortController: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
3. https://github.com/sindresorhus/p-any
This was added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any
This was added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any
4. https://github.com/sindresorhus/aggregate-error
This was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError
This was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError
5. https://github.com/sindresorhus/replace-string
This was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll
This was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll
6. https://github.com/sindresorhus/loud-rejection
7. https://github.com/sindresorhus/hard-rejection
Node.js now throws on unhandled Promise rejections.
7. https://github.com/sindresorhus/hard-rejection
Node.js now throws on unhandled Promise rejections.
Node.js 15 highlights: https://nodejs.medium.com/node-js-v15-0-0-is-here-deb00750f278
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
- Fetch
- Web Streams
- Web Crypto
- Globbing
And in JS:
- Promisification of existing APIs
- UUID generation
- https://github.com/sindresorhus/p-map (with concurrency option)
- Escape regex method
- Better Unicode-aware string handling, like https://github.com/sindresorhus/string-length
- BigDecimal
- Promisification of existing APIs
- UUID generation
- https://github.com/sindresorhus/p-map (with concurrency option)
- Escape regex method
- Better Unicode-aware string handling, like https://github.com/sindresorhus/string-length
- 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.