v0.26.0 🦀
Hello everyone!
This update is pretty big; we finally moved away from Isahc after multiple complaints over multiple years; sorry for the delay.
We're now using reqwest as the default client. Since reqwest also has issues on its own, I absolutely wanted to give you the option to configure your own HTTP client and get rid entirely of reqwest and tokio.
This was achieved by making the Client, Index, and many other structures generics over the HTTP client.
Since we made reqwest the default HTTP client, most of you shouldn’t suffer from these breaking changes.
If you want to create your own custom HTTP client, you can look at the examples where we showed how to use awc as your default client.
⚠️ Breaking changes
For wasm users
Hello, my fellow WASM users. After updating to this version, you may get an error message about a structure being Send when it shouldn’t.
The fix for you will be to enable the futures-unsend feature:
meilisearch_sdk = { version: "0.26.0", features = ["futures-unsend"] }
List of changes
- Feat trait to make clients customizable (#459) @shimatar0
- Use reqwest by default (#563) @irevoire
- fix(indexes): allow None
primary_keyinadd_or_updatefunction (#557) @khanhnt2 - with_distrinct_attribute accepts None (#576) @NoodleSamaChan
🚀 Enhancements
- Feat trait to make clients customizable (#459) @shimatar0
- fix(indexes): allow None
primary_keyinadd_or_updatefunction (#557) @khanhnt2 - Make the error type implement Send + Sync + 'static (#571) @irevoire
- created new snapshot method - fixes #537 (#572) @NoodleSamaChan
- with_distrinct_attribute accepts None (#576) @NoodleSamaChan
🐛 Bug Fixes
- add feature for clients that do not implement send (#579) @ezegrosfeld
⚙️ Maintenance/misc
- Add repository field to meilisearch-index-setting-macro (#561) @paolobarbolini
- Fix proximity precision codesample (#562) @ellnix
- Removed
no_runcode in doctest (#574) @NoodleSamaChan
Thanks again to @NoodleSamaChan, @curquiza, @ellnix, @ezegrosfeld, @irevoire, @khanhnt2, @meili-bors[bot], @paolobarbolini and @shimatar0! 🎉
Special thanks to @shimatar0, who made most of the work in this release over a year ago for more than a month; you rock 💪