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

chore: bump swr from 1.2.0 to 1.2.1 in /site #152

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 3, 2022

Bumps swr from 1.2.0 to 1.2.1.

Release notes

Sourced from swr's releases.

1.2.1

Highlights of This Release

shouldRetryOnError accepts a function

Previously shouldRetryOnError is either true or false. Now it accepts a function that conditionally determines if SWR should retry. Here's a simple example:

const fetcher = url => fetch(url).then(res => {
  // Fetcher throws if the response code is not 2xx.
  if (!res.ok) throw res
  return res.json()
})
useSWR(key, fetcher, {
shouldRetryOnError: (error) => {
// We skip retrying if the API is returning 404:
if (error.status === 404) return false
return true
}
})

Thanks to @​sairajchouhan for contributing!

What's Changed

New Contributors

Full Changelog: vercel/swr@1.2.0...1.2.1

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 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)

@bryphe-coder bryphe-coder self-assigned this Feb 3, 2022
@codecov
Copy link

codecov bot commented Feb 3, 2022

Codecov Report

Merging #152 (a4f00be) into main (fb020a5) will increase coverage by 3.38%.
The diff coverage is n/a.

❗ Current head a4f00be differs from pull request most recent head 0eec37d. Consider uploading reports for the commit 0eec37d to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
+ Coverage   67.33%   70.72%   +3.38%     
==========================================
  Files         101       98       -3     
  Lines        5101     4314     -787     
  Branches       68       68              
==========================================
- Hits         3435     3051     -384     
+ Misses       1355     1018     -337     
+ Partials      311      245      -66     
Flag Coverage Δ
unittest-go-macos-latest 68.19% <ø> (+3.86%) ⬆️
unittest-go-ubuntu-latest 70.25% <ø> (+4.36%) ⬆️
unittest-go-windows-latest 68.16% <ø> (+4.05%) ⬆️
unittest-js 64.92% <ø> (ø)
Impacted Files Coverage Δ
provisionersdk/transport.go 52.77% <0.00%> (-2.55%) ⬇️
provisioner/terraform/serve.go 66.66% <0.00%> (-2.09%) ⬇️
provisioner/terraform/provision.go 73.68% <0.00%> (-2.02%) ⬇️
peer/conn.go 78.90% <0.00%> (-1.10%) ⬇️
coderd/coderd.go 91.80% <0.00%> (-1.06%) ⬇️
codersdk/workspaces.go 73.95% <0.00%> (-0.79%) ⬇️
coderd/cmd/root.go 85.71% <0.00%> (-0.40%) ⬇️
coderd/coderdtest/coderdtest.go 100.00% <0.00%> (ø)
coderd/provisioners.go
codersdk/provisioners.go
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb020a5...0eec37d. Read the comment docs.

Copy link
Contributor

@bryphe-coder bryphe-coder left a comment

Choose a reason for hiding this comment

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

Approved; non-breaking addition to the swr API

@bryphe-coder
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/site/swr-1.2.1 branch from a4f00be to 1f6fbb0 Compare February 3, 2022 21:13
@bryphe-coder
Copy link
Contributor

@dependabot rebase

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/site/swr-1.2.1 branch from 1f6fbb0 to 0eec37d Compare February 3, 2022 23:15
@bryphe-coder bryphe-coder merged commit 7884b43 into main Feb 3, 2022
@bryphe-coder bryphe-coder deleted the dependabot/npm_and_yarn/site/swr-1.2.1 branch February 3, 2022 23:32
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.

None yet

1 participant