Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Bump swr from 1.1.0 to 1.1.1 #268

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 16, 2021

Bumps swr from 1.1.0 to 1.1.1.

Release notes

Sourced from swr's releases.

1.1.1

Highlights of This Release

Dynamic refreshInterval

You can now pass a function as refreshInterval, to dynamically return the interval (in millisecond) til the next request, based on the current data:

useSWR('key', fetcher, {
  refreshInterval: function (data: Data | undefined) {
    if (!data) return 3000 // Initial request 
    return data.next_update
  }
})

If return 0, polling will be stopped.

What's Changed

New Contributors

Full Changelog: vercel/swr@1.1.0...1.1.1

Commits
  • b78937f 1.1.1
  • 9337075 fix: Return undefined data if key's falsy under suspense mode (#1698)
  • 1146d52 fix: If newData is deeply to the latest state, broadcast the latest state (...
  • ba110c3 test: add refreshInterval function returns 0 (#1691)
  • 4663154 feat: refreshInterval as a function (#1690)
  • See full diff 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)

Bumps [swr](https://github.com/vercel/swr) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/vercel/swr/releases)
- [Commits](vercel/swr@1.1.0...1.1.1)

---
updated-dependencies:
- dependency-name: swr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 16, 2021
@hdl-service hdl-service added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 16, 2021
@hdl-service
Copy link
Contributor

@github-actions[bot]: changing LGTM is restricted to collaborators

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-actions github-actions bot merged commit e542d97 into master Dec 16, 2021
@hdl-service hdl-service deleted the dependabot/npm_and_yarn/swr-1.1.1 branch December 16, 2021 22:17
@hdl-service
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dependabot[bot], github-actions[bot]
To complete the pull request process, please assign yusukefs after the PR has been reviewed.
You can assign the PR to them by writing /assign @yusukefs in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant