Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use-debounce ^10.0.0 #1074

Merged
merged 2 commits into from
Mar 6, 2024
Merged

fix: use-debounce ^10.0.0 #1074

merged 2 commits into from
Mar 6, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
use-debounce ^9.0.4 -> ^10.0.0 age adoption passing confidence

Release Notes

xnimorz/use-debounce (use-debounce)

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

Configuration

📅 Schedule: Branch creation - "after 3:00 am and before 6:00 am on Monday and Friday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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 has been generated by Mend Renovate. View repository job log here.

Copy link

changeset-bot bot commented Feb 15, 2024

🦋 Changeset detected

Latest commit: 112d66c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wingman-fe Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@renovate renovate bot force-pushed the renovate-use-debounce-10.x branch from a3c365f to 8a6e67a Compare February 22, 2024 17:15
@renovate renovate bot force-pushed the renovate-use-debounce-10.x branch from 8a6e67a to ef939b4 Compare February 29, 2024 16:28
Copy link
Member

@72636c 72636c left a comment

Choose a reason for hiding this comment

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

Changelog seems reasonable and I could still play around with components in Storybook

@renovate renovate bot requested a review from a team as a code owner March 6, 2024 02:03
@72636c 72636c merged commit 13bb746 into master Mar 6, 2024
3 checks passed
@72636c 72636c deleted the renovate-use-debounce-10.x branch March 6, 2024 02:03
@seek-oss-ci seek-oss-ci mentioned this pull request Mar 6, 2024
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.

1 participant