Skip to content

Commit 29c7e2e

Browse files
fix(deps): Update dependency p-timeout to v8 (#452)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [p-timeout](https://redirect.github.com/sindresorhus/p-timeout) | [`^7.0.0` → `^8.0.0`](https://renovatebot.com/diffs/npm/p-timeout/7.0.2/8.0.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/p-timeout/8.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/p-timeout/7.0.2/8.0.0?slim=true) | --- ### Release Notes <details> <summary>sindresorhus/p-timeout (p-timeout)</summary> ### [`v8.0.0`](https://redirect.github.com/sindresorhus/p-timeout/releases/tag/v8.0.0) [Compare Source](https://redirect.github.com/sindresorhus/p-timeout/compare/v7.0.2...v8.0.0) ##### Breaking - Require Node.js 22 [`c633f8f`](https://redirect.github.com/sindresorhus/p-timeout/commit/c633f8f) - Call `.cancel()` on the input on every timeout and abort ([#&#8203;47](https://redirect.github.com/sindresorhus/p-timeout/issues/47)) [`d938bcd`](https://redirect.github.com/sindresorhus/p-timeout/commit/d938bcd) - Before, only a timeout without a [`fallback`](https://redirect.github.com/sindresorhus/p-timeout#fallback) called it. Now a timeout with a `fallback`, an abort of [`signal`](https://redirect.github.com/sindresorhus/p-timeout#signal), and an already aborted `signal` also call it. - Cancellation is best-effort. If `.cancel()` throws, the error is ignored and the promise still settles. Before, the error escaped the timer as an uncaught exception and the promise never settled. - `.cancel()` runs after the outcome is decided, so it cannot change the outcome. - A `fallback` that returns the input itself now gets a cancelled input. - Reject with the exact abort reason, even when it is `null` [`f2b3ae3`](https://redirect.github.com/sindresorhus/p-timeout/commit/f2b3ae3) - `controller.abort(null)` used to reject with a generic `AbortError`. ##### Improvements - Only create a `TimeoutError` when the timeout can reject with it [`bcc57d3`](https://redirect.github.com/sindresorhus/p-timeout/commit/bcc57d3) - Capturing a stack trace is expensive, and most promises settle before the timeout. ##### Fixes - Fix timeouts above `2 ** 31 - 1` milliseconds firing immediately [`7273802`](https://redirect.github.com/sindresorhus/p-timeout/commit/7273802) - They now never time out, the same as `Infinity`. - Fix custom `clearTimeout` being called with `undefined` when no timer exists [`f6e3d89`](https://redirect.github.com/sindresorhus/p-timeout/commit/f6e3d89) - Fix cleanup failures changing the outcome or leaking the abort listener [`0beb15c`](https://redirect.github.com/sindresorhus/p-timeout/commit/0beb15c) - Reject with a clear `TypeError` for invalid `customTimers` [`beaa523`](https://redirect.github.com/sindresorhus/p-timeout/commit/beaa523) - Before, this failed with an unrelated error, or was ignored when the input settled synchronously or the timeout was `Infinity`. *** </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month (`* 0-3 1 * *`) - 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 [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTUuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5NS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 parent 6985dc9 commit 29c7e2e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"modern-errors-bugs": "^5.0.0",
102102
"p-map": "^7.0.0",
103103
"p-queue": "^10.0.0",
104-
"p-timeout": "^7.0.0",
104+
"p-timeout": "^8.0.0",
105105
"path-exists": "^5.0.0",
106106
"path-type": "^6.0.0",
107107
"semver": "^7.5.4",

‎pnpm-lock.yaml‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)