github elbywan/wretch 2.0.0

latest releases: 2.11.0, 2.10.0, 2.9.1...
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:

typesafe.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

Don't miss a new wretch release

NewReleases is sending notifications on new releases.