Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

chore(deps): bump wretch from 2.5.2 to 2.8.0 #511

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 23, 2024

Bumps wretch from 2.5.2 to 2.8.0.

Release notes

Sourced from wretch's releases.

2.8.0

2.8.0 (2023-12-30)

🏭 New feature(s)

  • addon.resolver can now be a function (0bf9aa8), closes #212
const fetcher = wretch("https://jsonplaceholder.typicode.com").addon({
  // resolver can now be a function and to re-use the previously defined methods of the response chain:
  resolver: (chain) => ['res', 'json', 'text', 'blob', 'formData', 'arrayBuffer'].reduce((acc, method) => ({
    ...acc,
    // overrides .json, .text… methods to chain .then & .catch
    [method](https://github.com/elbywan/wretch/blob/HEAD/cb) {
      return chain[method](https://github.com/elbywan/wretch/blob/HEAD/cb)
        .then(ret => (console.log('[hook] ok')))
        .catch(error => {
          console.error('[hook] error', error.response.url, error.response.status)
          throw error
        });
    }
  }), {})
});
(async function () {
await fetcher.get("/todos/1").json(console.log);
// { userId: 1, id: 1, title: 'delectus aut autem', completed: false }
// [hook] ok
await fetcher.get("/bad-route").notFound(error => {
console.log('handled error :)')
}).text(console.log);
// handled error :)
// [hook] ok
await fetcher.get("/bad-route").text(console.log).catch(() => console.log('unhandled error :('));
// [hook] error https://jsonplaceholder.typicode.com/bad-route 404
// unhandled error :(
})()

2.7.1

2.7.1 (2023-11-19)

🐛 Bug fix(es)

  • Fix passing a HeadersInit (Header / array) argument to headers() (f32845a), closes #205

... (truncated)

Changelog

Sourced from wretch's changelog.

2.8.0 (2023-12-30)

🏭 New feature(s)

  • addon.resolver can now be a function (0bf9aa8), closes #212

2.7.1 (2023-11-19)

⬆️ Version update(s)

  • Bump @​babel/traverse from 7.19.4 to 7.23.2 (922005e)
  • Upgrade dependencies (d774826)

🐛 Bug fix(es)

  • Fix passing Headers/entries array as an argument to headers() (f32845a), closes #205

2.7.0 (2023-09-12)

🏭 New feature(s)

  • Support FileList objects in the form data addon (3582809), closes #201

📝 Documentation update(s)

  • Mention file names in the form data addon doc (411fb09), closes #197

2.6.0 (2023-06-28)

⬆️ Version update(s)

  • Bump engine.io and socket.io (3ef1738)
  • Bump socket.io-parser from 4.2.2 to 4.2.3 (b42aa0f)
  • Upgrade dependencies (b183cf7)

🏭 New feature(s)

... (truncated)

Commits
  • 4c48e5d 2.8.0 tag
  • 0bf9aa8 🏭 addon.resolver can now be a function
  • c65dd5c Revert changelog version
  • 5b17cfd 2.7.1 tag
  • d774826 ⬆️ Upgrade dependencies
  • f32845a 🐛 Fix passing Headers/entries array as an argument to headers()
  • 9e6fa07 Merge pull request #204 from elbywan/dependabot/npm_and_yarn/babel/traverse-7...
  • 922005e ⬆️ Bump @​babel/traverse from 7.19.4 to 7.23.2
  • a804cac 2.7.0 tag
  • 3582809 🏭 Support FileList objects in the form data addon
  • 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [wretch](https://github.com/elbywan/wretch) from 2.5.2 to 2.8.0.
- [Release notes](https://github.com/elbywan/wretch/releases)
- [Changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md)
- [Commits](elbywan/wretch@2.5.2...2.8.0)

---
updated-dependencies:
- dependency-name: wretch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 23, 2024

The following labels could not be found: dependencies.

Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 7, 2024

Superseded by #525.

@dependabot dependabot bot closed this Mar 7, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/wretch-2.8.0 branch March 7, 2024 23:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants