Skip to content

chore(deps): bump debounce from 1.2.1 to 4.0.0 - #3947

Merged
rpl merged 2 commits into
masterfrom
dependabot/npm_and_yarn/debounce-4.0.0
Nov 26, 2026
Merged

rpl merged 2 commits into
masterfrom
dependabot/npm_and_yarn/debounce-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps debounce from 1.2.1 to 4.0.0.

Release notes

Sourced from debounce's releases.

v4.0.0

Breaking

  • Require Node.js 22 c00dc79
  • Throw a RangeError for a wait that a timer cannot wait for e1fde61
    • This includes NaN, a non-numeric string, and a value larger than 2147483647 (about 24.8 days). Before, NaN did not wait at all, and a larger value re-armed a timer every millisecond.
  • Do not throw when different instances call a debounced method on a shared prototype d782617

Improvements

  • Keep readonly rest parameters in the TypeScript types d782617
    • Before, a debounced (...values: readonly number[]) => … function could not be called.

Fixes

  • Fix .flush() calling the function a second time, with no arguments, after an immediate call d0f2093
  • Fix .trigger() running a call from a wait that already ended in immediate mode d0f2093
  • Fix .trigger() dropping a call that the function makes to its debounced function d0f2093
  • Fix .trigger() running the function a second time if it throws d0f2093

sindresorhus/debounce@v3.0.0...v4.0.0

v3.0.0

Breaking

  • Require Node.js 20 32bdae9
  • This package is now pure ESM. Please read this.
  • Removed named export. Only a default export now.

sindresorhus/debounce@v2.2.0...v3.0.0

v2.2.0

  • Add .isPending property to the debounced function (#44) 1151e14

sindresorhus/debounce@v2.1.1...v2.2.0

v2.1.1

  • Fix the class context validation (#43) 205fd8f

sindresorhus/debounce@v2.1.0...v2.1.1

v2.1.0

  • Add .trigger() function (#41) 1fe9160

sindresorhus/debounce@v2.0.0...v2.1.0

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by sindresorhus, a new releaser for debounce since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/debounce-4.0.0 branch from 0fa3efa to 629b9dc Compare November 25, 2026 15:41
Bumps [debounce](https://github.com/sindresorhus/debounce) from 1.2.1 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/debounce/releases)
- [Commits](sindresorhus/debounce@1.2.1...v4.0.0)

---
updated-dependencies:
- dependency-name: debounce
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/debounce-4.0.0 branch from 629b9dc to c7fb864 Compare November 25, 2026 19:22
Comment thread src/watcher.js
Comment on lines +33 to +36
onChange = debounce(onChange, debounceTime, {
// Allow multiple files to be changed before reloading the extension.
immediate: false,
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: debounce v4.0.0 was raising an error because it is now expecting an option object as its last parameter (and immediate is the options property name that the error previously raised was reporting as the one meant to be used in debounce v4.0.0).

@rpl
rpl merged commit 89dec05 into master Nov 26, 2026
8 checks passed
@rpl
rpl deleted the dependabot/npm_and_yarn/debounce-4.0.0 branch November 26, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants