v0.18.0 🐍
This package version is compatible with MeiliSearch v0.25.0 (#370)
⚠️ Breaking changes
- This package is only compatible with MeiliSearch v0.25.0 and later, but not with v0.24.0 and older. Be sure you are using at least MeiliSearch v0.25.0 or newer before doing the upgrade.
Why isn't it compatible?- MeiliSearch v0.25.0 uses
Authorization
header instead ofX-Meili-API-Key
(#371) - MeiliSearch v0.25.0 has a new API regarding the updates that have been renamed into tasks. More details in the following points
- MeiliSearch v0.25.0 uses
- Remove
delete_index_if_exists
andget_or_create_index
(#381) @alallema - Redesign update API to task API (#372) @alallema
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
create_index()
,update_index()
,delete_index()
are now asynchrone and return atask
response instead of anIndex
.index.create
andindex.delete
from index return atask
.wait_for_pending_update()
is renamed intowait_for_task
and is accessible fromindex
and fromclient
.- the current
index.wait_for_task()
method call/tasks/:uid
index.get_update_status
is renamedindex.get_task
index.get_all_update_status
is renamedindex.get_tasks
- new method
client.wait_for_task()
call/tasks/:uid
- new method
client.get_tasks
that calls/tasks
- new method
client.get_task
that calls/tasks/:uid
Notes: The only two methods that now return anIndex
areclient.index()
andclient.get_index()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
apiKey
toapi_key
to comply with pylint (#386) @alallema - Change
client.get_keys
does not return an object of keys, but an array of keys. Check out keys API references. - Changes related to the next MeiliSearch release (v0.25.0) (#370)
🚀 Enhancements
- Remove tests from wheel (#368) @sanders41
- Add type attribute to error handler (#388) @voloyev
- Addition related to API keys (#382) @alallema
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
- client.get_key get information about a specific API key.
- client.create_key create a new API key.
- client.delete_key delete an API key.
- client.update_key update an API key.
- Check out the documentation guide.
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
🐛 Bug Fixes
- Add redundant export to fix import error (#384) @sanders41
- Fix MeiliSearchApiError and MeiliSearchError double period in message (#390) @sanders41
Thanks again to @alallema, @sanders41, and @voloyev! 🎉