jonocairns / aubri

Plex for audiobooks
MIT License
11 stars 2 forks source link

Bump use-debounce from 3.3.0 to 5.2.1 in /client #464

Closed dependabot-preview[bot] closed 3 years ago

dependabot-preview[bot] commented 3 years ago

Bumps use-debounce from 3.3.0 to 5.2.1.

Release notes

Sourced from use-debounce's releases.

Unmounted components fix

useThrottledCallback

  • Added useThrottledCallback

5.0.1

  • Fix typing to infer correct callback type (thanks to @lytc)

5.0.0

  • breaking change: Now useDebouncedCallback returns an object instead of array:

    Old:

    const [debouncedCallback, cancelDebouncedCallback, callPending] = useDebouncedCallback(/*...*/);
    

    New:

    const debounced = useDebouncedCallback(/*...*/);
    /**
     * debounced: {
     *   callback: (...args: T) => unknown, which is debouncedCallback
     *   cancel: () => void, which is cancelDebouncedCallback
     *   flush: () => void, which is callPending
     *   pending: () => boolean, which is a new function
     * } 
     */
    
  • breaking change: Now useDebounce returns an array of 2 fields instead of a plain array: Old:

    const [value, cancel, callPending] = useDebounce(/*...*/);
    

    New:

    const [value, fn] = useDebouncedCallback(/*...*/);
    /**
     * value is just a value without changes
     * But fn now is an object: { 
     *   cancel: () => void, which is cancel
     *   flush: () => void, which is callPending
     *   pending: () => boolean, which is a new function
     * } 
     */
    

... (truncated)

Changelog

Sourced from use-debounce's changelog.

5.2.1

5.2.0

  • Added useThrottledCallback

5.1.0

wait param is optional. If you don't provide a wait argument, use-debounce will postpone a callback with requestAnimationFrame if it's in browser environment, or through setTimeout(..., 0) otherwise.

5.0.4

  • Add an export for React Native

5.0.3

5.0.2

  • Add size-limit and configure it for esm modules. Now the size of the whole library is limited within 1 KB (thanks to @omgovich)

  • Add an export map to your package.json. (thanks to @omgovich)

  • Reduce bundle size (thanks to @omgovich): Before:

    esm/index.js  
    Size:       908 B with all dependencies, minified and gzipped
    

    esm/index.js
    Size: 873 B with all dependencies, minified and gzipped

    esm/index.js
    Size: 755 B with all dependencies, minified and gzipped

    Now:

    esm/index.js  
    Size:       826 B with all dependencies, minified and gzipped
    

    esm/index.js
    Size: 790 B with all dependencies, minified and gzipped

    esm/index.js
    Size: 675 B with all dependencies, minified and gzipped

... (truncated)

Commits


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 will not automatically merge this PR because it includes a major update to a production dependency.


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 badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 3 years ago

Superseded by #470.