wretch

A tiny wrapper built around fetch with an intuitive syntax.

MIT License

Downloads
309.4K
Stars
4.5K
Committers
14

Bot releases are visible (Hide)

wretch - 2.1.2

Published by elbywan about 2 years ago

2.1.2 (2022-09-27)

ðŸŽĻ Code improvement(s)

  • Fix some linter warnings (c1029c8)

🐛 Bug fix(es)

  • Fix type inconsistencies in the body parsers (b7cae7e), closes #143

📝 Documentation update(s)

  • Fix throttling cache documentation link (f66859d)
wretch - 2.1.1

Published by elbywan about 2 years ago

2.1.1 (2022-09-03)

🐛 Bug fix(es)

  • Fix typo in function name resolveWithLatestReponse -> resolveWithLatestResponse #141 (d82cfd5), closes #141
wretch - 2.1.0

Published by elbywan about 2 years ago

2.1.0 (2022-09-03)

🏭 New feature(s)

  • Add ability to resolve with latest response to the retry middleware (60a7453), closes #141

📝 Documentation update(s)

  • Remove outdated documentation entries for the retry middleware (7a5620c)
wretch - 2.0.4

Published by elbywan about 2 years ago

2.0.4 (2022-08-18)

ðŸŽĻ Code improvement(s)

  • Harmonize WretchError types (1981837)
wretch - 2.0.3

Published by elbywan about 2 years ago

2.0.3 (2022-08-16)

ðŸŽĻ Code improvement(s)

  • Export WretchError from the root index (76f9096), closes #79
wretch - 2.0.2

Published by elbywan about 2 years ago

2.0.2 (2022-08-03)

🐛 Bug fix(es)

  • Fix defer and resolve return types. (0c59c6c), closes #140
wretch - 2.0.1

Published by elbywan about 2 years ago

2.0.1 (2022-08-02)

⮆ïļ Version update(s)

  • Add unpkg field to map to the right bundle. (ae87b64)
  • Upgrade dependencies. (b6a1258)

📝 Documentation update(s)

wretch - 2.0.0

Published by elbywan about 2 years ago

ðŸ”Ĩ This is a major version which implies that there are breaking changes.

Please refer to the migration guide for more details on how to migrate from v1.

Philosophy

Wretch has been completely rewritten with the following goals in mind:

  • reduce its size by making it modular
  • preserve the typescript type coverage
  • improve the API by removing several awkward choices

And because one tiny video can be more descriptive than a thousand words:

https://user-images.githubusercontent.com/3428394/182319457-504a0856-abdd-4c1d-bd04-df5a061e515d.mov

Main changes

  • The bundle size was cut down from ~3.2KB to ~1.9KB ðŸŠķ
  • wretch-middlewares is now deprecated and has been integrated into the main wretch package
  • Non-core features have been split from the main import and will need to be imported separately as Addons
  • API documentation is now autogenerated
  • Long running issues have been fixed as part of the refactor

Changelog

The full changelog is available here

wretch - v1.7.10

Published by elbywan over 2 years ago

1.7.10 (2022-05-21)

⮆ïļ Version update(s)

  • Bump minimist from 1.2.5 to 1.2.6 (6365ad0)
  • Bump moment from 2.24.0 to 2.29.2 (26e3889)
  • Bump to npm 8 (9d5758e)

🐛 Bug fix(es)

  • Ignore when the .perf promise throws (33407ea), closes #131

📝 Documentation update(s)

  • Update performance api node.js polyfill. (185420b)

✅ Test improvement(s)

  • Migrate to github actions. (4b93f43)
wretch - v1.7.8

Published by elbywan over 2 years ago

1.7.8 (2022-01-30)

⮆ïļ Version update(s)

  • Bump dependencies and npm audit. (881d17a)

🐛 Bug fix(es)

  • Fix error for opaque responses. (bbb5912), closes #121
  • Preserve exotic json content types when strigifying body. (d51c17b), closes #122
wretch - v1.7.7

Published by elbywan over 2 years ago

1.7.7 (2021-12-13)

🐛 Bug fix(es)

📝 Documentation update(s)

  • Update outdated badges. (f286481)
wretch - v1.7.6

Published by elbywan over 2 years ago

1.7.6 (2021-08-06)

⮆ïļ Version update(s)

🐛 Bug fix(es)

  • Prevent appending an extra ?/& for empty query strings. #114 (15464a8), closes #114

📝 Documentation update(s)

wretch - v1.7.9

Published by elbywan over 2 years ago

1.7.9 (2022-02-05)

🐛 Bug fix(es)

  • Body json serialization condition fix. (1c90fa3), closes #123
wretch - v1.7.5

Published by elbywan over 3 years ago

1.7.5 (2021-06-30)

⮆ïļ Version update(s)

  • Bump find-my-way from 2.2.1 to 2.2.5 (687a999)
  • Bump handlebars from 4.7.6 to 4.7.7 (0cb2ac2)
  • Bump hosted-git-info from 2.8.8 to 2.8.9 (c862315)
  • Bump ini from 1.3.5 to 1.3.7 (79fd31f)
  • Bump lodash from 4.17.19 to 4.17.21 (fe66a14)
  • Bump node-notifier from 8.0.0 to 8.0.1 (43cd685)
  • Bump ws from 7.3.1 to 7.4.6 (d0f89f1)
  • Bump y18n from 4.0.0 to 4.0.1 (6d0fbdc)
  • Upgrade dependencies. (805fade)

🐛 Bug fix(es)

  • Take into account the options argument headers when stringifying bo (23484fd), closes #75

📝 Documentation update(s)

  • Update readme import section (5970e6d)