Commit 5385bc8
authored
fix(deps): Update dependency p-queue to v9 (#336)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [p-queue](https://redirect.github.com/sindresorhus/p-queue) | dependencies | major | [`^8.1.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/p-queue/8.1.1/9.0.1) |
---
### Release Notes
<details>
<summary>sindresorhus/p-queue (p-queue)</summary>
### [`v9.0.1`](https://redirect.github.com/sindresorhus/p-queue/releases/tag/v9.0.1)
[Compare Source](https://redirect.github.com/sindresorhus/p-queue/compare/v9.0.0...v9.0.1)
- Fix: Remove abort listener when operation completes ([#​235](https://redirect.github.com/sindresorhus/p-queue/issues/235)) [`e9074f0`](https://redirect.github.com/sindresorhus/p-queue/commit/e9074f0)
***
### [`v9.0.0`](https://redirect.github.com/sindresorhus/p-queue/releases/tag/v9.0.0)
[Compare Source](https://redirect.github.com/sindresorhus/p-queue/compare/v8.1.1...v9.0.0)
##### Breaking
- Require Node.js 20 [`b2600d5`](https://redirect.github.com/sindresorhus/p-queue/commit/b2600d5)
- Remove `throwOnTimeout` option - timeouts now always throw [`e48716f`](https://redirect.github.com/sindresorhus/p-queue/commit/e48716f)
- It was a mistake to not throw on timeouts and the option made it complicated to handle types.
- If you really need the old behavior back:
```ts
const result = await queue.add(fn).catch(error => {
if (error instanceof TimeoutError) {
return undefined;
}
throw error;
});
```
##### Improvements
- Rename `carryoverConcurrencyCount` option to `carryoverIntervalCount` [`a6096de`](https://redirect.github.com/sindresorhus/p-queue/commit/a6096de)
- The old name still works, but will be removed in the next major version.
- Add [`.onError()`](https://redirect.github.com/sindresorhus/p-queue#onerror) [`7c27e1d`](https://redirect.github.com/sindresorhus/p-queue/commit/7c27e1d)
- Add [`.onPendingZero()`](https://redirect.github.com/sindresorhus/p-queue#onpendingzero) ([#​230](https://redirect.github.com/sindresorhus/p-queue/issues/230)) [`62efb74`](https://redirect.github.com/sindresorhus/p-queue/commit/62efb74)
- Add [`pendingZero`](https://redirect.github.com/sindresorhus/p-queue#pendingzero) event ([#​230](https://redirect.github.com/sindresorhus/p-queue/issues/230)) [`62efb74`](https://redirect.github.com/sindresorhus/p-queue/commit/62efb74)
- Add [`.runningTasks`](https://redirect.github.com/sindresorhus/p-queue#runningtasks) [`fad8ee4`](https://redirect.github.com/sindresorhus/p-queue/commit/fad8ee4)
- Add [`.isSaturated`](https://redirect.github.com/sindresorhus/p-queue#issaturated) [`fad8ee4`](https://redirect.github.com/sindresorhus/p-queue/commit/fad8ee4)
- Add [`.onRateLimit()`](https://redirect.github.com/sindresorhus/p-queue#onratelimit) [`701453e`](https://redirect.github.com/sindresorhus/p-queue/commit/701453e)
- Add [`.onRateLimitCleared()`](https://redirect.github.com/sindresorhus/p-queue#onratelimitcleared) [`701453e`](https://redirect.github.com/sindresorhus/p-queue/commit/701453e)
- Add [`.isRateLimited`](https://redirect.github.com/sindresorhus/p-queue#isratelimited) [`701453e`](https://redirect.github.com/sindresorhus/p-queue/commit/701453e)
- Add [`rateLimit`](https://redirect.github.com/sindresorhus/p-queue#ratelimit) event [`701453e`](https://redirect.github.com/sindresorhus/p-queue/commit/701453e)
- Add [`rateLimitCleared`](https://redirect.github.com/sindresorhus/p-queue#ratelimitcleared) event [`701453e`](https://redirect.github.com/sindresorhus/p-queue/commit/701453e)
##### Fixes
- Fix stack overflow with many aborted tasks [`81cbae2`](https://redirect.github.com/sindresorhus/p-queue/commit/81cbae2)
- Fix interval cap race condition with high concurrency [`7fea658`](https://redirect.github.com/sindresorhus/p-queue/commit/7fea658)
- Fix interval timing when queue becomes empty between task additions [`7b3f53e`](https://redirect.github.com/sindresorhus/p-queue/commit/7b3f53e)
- Fix priority default handling for undefined values [`439d512`](https://redirect.github.com/sindresorhus/p-queue/commit/439d512)
***
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yMi4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->1 parent 9329fc2 commit 5385bc8
2 files changed
+19
-7
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments