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.1 #525

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 7, 2024

Bumps wretch from 2.5.2 to 2.8.1.

Release notes

Sourced from wretch's releases.

2.8.1

2.8.1 (2024-03-07)

🐛 Bug fix(es)

  • Fix error callback type missing addons extensions (99a21a8), closes #222
export const apiClient = wretch('https://localhost:3000')
  .addon(QueryStringAddon)
  .resolve((chain) => {
    return chain.unauthorized((_error, request) => {
      // request type used to be wrong (missing .query() from the addon)
      // and it would clash with what was expected by the callback definition
      // now the type should be correct ✨ 
      return request
        .fetch()
        .unauthorized((error) => {
          throw error;
        })
        .json();
    });
  });

⬆️ Version update(s)

  • Bump follow-redirects from 1.15.1 to 1.15.4 (04fada6)

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 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
        });
    }
</tr></table> 

... (truncated)

Changelog

Sourced from wretch's changelog.

2.8.1 (2024-03-07)

⬆️ Version update(s)

  • Bump follow-redirects from 1.15.1 to 1.15.4 (04fada6)

🐛 Bug fix(es)

  • Fix error callback type missing addons extensions (99a21a8), closes #222

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

... (truncated)

Commits
  • d2cb522 2.8.1 tag
  • 99a21a8 🐛 Fix error callback type missing addons extensions
  • 78100d8 Merge pull request #214 from elbywan/dependabot/npm_and_yarn/follow-redirects...
  • 04fada6 ⬆️ Bump follow-redirects from 1.15.1 to 1.15.4
  • 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()
  • 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.1.
- [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.1)

---
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 Mar 7, 2024

The following labels could not be found: dependencies.

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