v0.18.0 🐹
This package version is compatible with MeiliSearch v0.25.0 (#247)
⚠️ 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? - Remove
GetOrCreateIndexmethod (#255) @alallema - Remove
DeleteIfExistsmethod (#256) @alallema - Remove
DeleteIndexIfExistsmethod (#257) @alallema - Redesign update API to task API (#262) @alallema
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
CreateIndex(),UpdateIndex(),DeleteIndex()are now asynchrone and return ataskresponse instead of anIndex.WaitForPendingUpdate()is renamed intoWaitForTaskand is accessible fromindexand fromclient.- the current
index.WaitForTask()method call/tasks/:uid index.GetUpdateStatusis renamedindex.GetTaskindex.GetAllUpdateStatusis renamedindex.GetTasks- new method
client.WaitForTask()call/tasks/:uid - new method
client.WaitForTask() - new method
client.GetTasksthat calls/tasks - new method
client.GetTaskthat calls/tasks/:uid
Notes: The only two methods that now return anIndexareclient.Index()andclient.GetIndex()
- All the actions on indexes are now asynchronous check out the task API references and the asynchronous tasks guide
- Change
client.GetKeysdoes not return an object of keys, but aResultKeywith an array of keys inside. Check out keys API references. - Change MeilisearchApiMessage to MeilisearchApiError (#248) @mmachatschek
- Changes related to the next MeiliSearch release (v0.25.0) (#247)
🚀 Enhancements
- Add methods for new document formats (#235) @theag3nt
- Addition related to API keys (#264) @alallema
- Granular management of API keys is now added to MeiliSearch. New methods have been created to manage this:
client.GetKeyget information about a specific API key.client.CreateKeycreate a new API key.client.DeleteKeydelete an API key.client.UpdateKeyupdate 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
- Fix the /stats response json unmarshaling (#250) @roelofjan-elsinga
Thanks again to @alallema, @dichotommy, @mmachatschek, @roelofjan-elsinga and @theag3nt! 🎉