looker-open-source / components

Looker's UI Components, Design Infrastructure and more
https://components.looker.com
MIT License
62 stars 31 forks source link

chore(deps): bump use-debounce from 5.2.1 to 7.0.0 #2862

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps use-debounce from 5.2.1 to 7.0.0.

Release notes

Sourced from use-debounce's releases.

7.0.0 isPending is sync

6.0.1

Clarifying API and major under hood improvements

  • breakind change: removed callback field, instead of this useDebouncedCallback and useThrottledCallback returns a callable function: Old:

    const { callback, pending } = useDebouncedCallback(/*...*/);
    // ...
    debounced.callback();
    

    New:

    const debounced = useDebouncedCallback(/*...*/);
    // ...
    debounced();
    /**
     * Also debounced has fields:
     * {
     *   cancel: () => void
     *   flush: () => void
     *   isPending: () => boolean
     * }
     * So you can call debounced.cancel(), debounced.flush(), debounced.isPending()
     */
    

    It makes easier to understand which cancel \ flush or isPending is called in case you have several debounced functions in your component

  • breaking change: Now useDebounce, useDebouncedCallback and useThrottledCallback has isPending method instead of pending

    Old:

    const { callback, pending } = useDebouncedCallback(/*...*/);
    

    New:

... (truncated)

Changelog

Sourced from use-debounce's changelog.

7.0.0

  • breaking change useDebounce hook changed isPending behavior from async reacting to the sync. Now isPending returns True as soon as the new value is sent to the hook.
  • Dev dependencies updated

6.0.1

6.0.0

  • breakind change: removed callback field, instead of this useDebouncedCallback and useThrottledCallback returns a callable function: Old:

    const { callback, pending } = useDebouncedCallback(/*...*/);
    // ...
    debounced.callback();
    

    New:

    const debounced = useDebouncedCallback(/*...*/);
    // ...
    debounced();
    /**
     * Also debounced has fields:
     * {
     *   cancel: () => void
     *   flush: () => void
     *   isPending: () => boolean
     * }
     * So you can call debounced.cancel(), debounced.flush(), debounced.isPending()
     */
    

    It makes easier to understand which cancel \ flush or isPending is called in case you have several debounced functions in your component

  • breaking change: Now useDebounce, useDebouncedCallback and useThrottledCallback has isPending method instead of pending

    Old:

    const { callback, pending } = useDebouncedCallback(/*...*/);
    

    New:

    const { isPending } = useDebouncedCallback(/*...*/);
    

... (truncated)

Commits
  • ef6a4e5 Merge pull request #115 from xnimorz/dependabot/npm_and_yarn/acorn-6.4.2
  • 4d25640 change isPending from async to sync way
  • fdf5f90 Bump acorn from 6.2.0 to 6.4.2
  • a5a1383 Merge pull request #114 from xnimorz/dependabot/npm_and_yarn/postcss-7.0.36
  • 7b879d1 Bump postcss from 7.0.35 to 7.0.36
  • 404698c Merge pull request #111 from xnimorz/dependabot/npm_and_yarn/ws-6.2.2
  • b56abf7 Bump ws from 6.2.1 to 6.2.2
  • ce979d5 Merge pull request #110 from xnimorz/dependabot/npm_and_yarn/browserslist-4.16.6
  • 9a66c2f Bump browserslist from 4.14.5 to 4.16.6
  • 22b7eb9 Merge pull request #107 from xnimorz/dependabot/npm_and_yarn/lodash-4.17.21
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 3 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.