Node.js 15 makes 7 of my packages obsolete. This is a good thing.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👌" title="Ok hand" aria-label="Emoji: Ok hand">
1. https://github.com/sindresorhus/delay
You">https://github.com/sindresor... can await setTimeout now:
const {setTimeout} = require(& #39;timers/promises& #39;);
await setTimeout(1000);
You">https://github.com/sindresor... can await setTimeout now:
const {setTimeout} = require(& #39;timers/promises& #39;);
await setTimeout(1000);
2. https://github.com/sindresorhus/p-cancelable
Node.js">https://github.com/sindresor... now supports AbortController: https://developer.mozilla.org/en-US/docs/Web/API/AbortController">https://developer.mozilla.org/en-US/doc...
Node.js">https://github.com/sindresor... now supports AbortController: https://developer.mozilla.org/en-US/docs/Web/API/AbortController">https://developer.mozilla.org/en-US/doc...
3. https://github.com/sindresorhus/p-any
This">https://github.com/sindresor... was added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any">https://developer.mozilla.org/en-US/doc...
This">https://github.com/sindresor... was added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any">https://developer.mozilla.org/en-US/doc...
4. https://github.com/sindresorhus/aggregate-error
This">https://github.com/sindresor... was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError">https://developer.mozilla.org/en-US/doc...
This">https://github.com/sindresor... was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError">https://developer.mozilla.org/en-US/doc...
5. https://github.com/sindresorhus/replace-string
This">https://github.com/sindresor... was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll">https://developer.mozilla.org/en-US/doc...
This">https://github.com/sindresor... was also added to JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll">https://developer.mozilla.org/en-US/doc...
6. https://github.com/sindresorhus/loud-rejection
7.">https://github.com/sindresor... https://github.com/sindresorhus/hard-rejection
Node.js">https://github.com/sindresor... now throws on unhandled Promise rejections.
7.">https://github.com/sindresor... https://github.com/sindresorhus/hard-rejection
Node.js">https://github.com/sindresor... now throws on unhandled Promise rejections.
Node.js 15 highlights: https://nodejs.medium.com/node-js-v15-0-0-is-here-deb00750f278">https://nodejs.medium.com/node-js-v...
I think it& #39;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.
And in JS:
- Promisification of existing APIs
- UUID generation
- https://github.com/sindresorhus/p-map">https://github.com/sindresor... (with concurrency option)
- Escape regex method
- Better Unicode-aware string handling, like https://github.com/sindresorhus/string-length
-">https://github.com/sindresor... BigDecimal
- Promisification of existing APIs
- UUID generation
- https://github.com/sindresorhus/p-map">https://github.com/sindresor... (with concurrency option)
- Escape regex method
- Better Unicode-aware string handling, like https://github.com/sindresorhus/string-length
-">https://github.com/sindresor... 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.