Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 19, 2025

Note

Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to mend[bot].

This notice will be removed on 2025-10-07.


This PR contains the following updates:

Package Change Age Confidence
use-debounce 7.0.1 -> 10.0.6 age confidence

Release Notes

xnimorz/use-debounce (use-debounce)

v10.0.6

Compare Source

What's Changed

Full Changelog: xnimorz/use-debounce@10.0.5...10.0.6

v10.0.5

Compare Source

  • Fixed issue #​192, where isPending remains true with leading: true configuration, thanks to @​elrion018

v10.0.4

Compare Source

  • Fix behaviour for strictMode react when leading is set to true and trailing is true

v10.0.3

Compare Source

v10.0.2

Compare Source

  • Fixed: isPending does not reset the state if the tracked value hasn't changed.. See #​178

v10.0.1

Compare Source

  • Fixed flush method return args, thanks to @​h

v10.0.0

Compare Source

  • Major breaking change: replaced index.modern.js with index.mjs. Might require a little change in your build pipeline
  • Major breaking change: New option debounceOnServer: if you put the option to true, it will run debouncing on server (via setTimeout). The new option can break your current server behaviour, as v9.x, it runs all the time and might cause unnessesary server CPU utilisation. Now, by default, debounced callbacks do not happen on server.
  • Minor breaking change: Replaced useState for useDebounce with useReducer. It might lead to reduced amount of re-renders, as useState is known to have excess re-renders in some corner: https://stackoverflow.com/questions/57652176/react-hooks-usestate-setvalue-still-rerender-one-more-time-when-value-is-equal
  • Minor breaking change: useDebouncedCallback now updates function to call asap. Meaning, if you re-called the hook and it should trigger immediately, it will trigger the newest function all the time.
  • Lib size:
    914 B: index.js.gz
    851 B: index.js.br
    883 B: index.mjs.gz
    826 B: index.mjs.br
    938 B: index.module.js.gz
    873 B: index.module.js.br
    989 B: index.umd.js.gz
    919 B: index.umd.js.br
  • [Internal] Replaced Enzyme with @​testing-library
  • [Internal] yarn classic => npm
  • [Internal] Updated devDependencies

v9.0.4

Compare Source

v9.0.3

Compare Source

  • Represent correct return type from useDebounce(), see issue, thanks to @​appden

v9.0.2

Compare Source

  • Reverted 9.0.0. We will revisit these changes later

v9.0.1

Compare Source

Fix the bug with the incorrect import path. Now it's index.cjs, instead of index.js

v9.0.0

Compare Source

  • Moved use-debounce to support modules see issue Thanks to @​matewilk
  • breaking change The path to dist/index.js is changed. Now it's dist/index.cjs.

v8.0.4

Compare Source

v8.0.3

Compare Source

v8.0.2

Compare Source

v8.0.1

Compare Source

  • update library exports section to make exports work correctly with jest@​28

v8.0.0

Compare Source

  • breaking change useDebounce changed its build system to microbundle. For now we have several entries:

index.js is for commonJS approach
index.modern.js for esnext module system
index.umd.js for UMD.
All the files are in dist folder.

If you have any paths which have esm or lib, please, replace them to dist:

Before:

import useDebounceCallback from 'use-debounce/lib/useDebounceCallback';

After:

import { useDebounceCallback } from 'use-debounce';
  • Fixed issue with incorrect VSCode autocomplete #​131 Thanks to @​c-ehrlich for reporting
  • Fixed useDebounce behaviour with react-devtools tab when devtools have a component with useDebounce or useDebounceCallback opened. #​129 Thanks to @​alexniarchos for reporting
  • Fixed issue with leading: true #​124 Thanks to @​mntnoe for reporting

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
code-in-the-dark-editor Ready Ready Preview Comment Sep 25, 2025 3:04pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants