🔥 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 mainwretch
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