v0.17.0 🌻
Changes
- Introduction of the 
index()method that replacesgetIndex().getIndex()is still available but does HTTP call, so this should be only used to fetch information from the MeiliSearch instance. See our Getting Started to use this package the right way (#715) @bidoubiwa - Add a new attribute in the 
Indexclass:primaryKey. You can now useclient.getIndex('books').primarykeyto access the primary key of your index (#715) @bidoubiwa client.updateIndex()lets you update an index without having to use theIndexclass (#715) @bidoubiwaclient.deleteIndex()lets you delete an index without having to use theIndexclass (#715) @bidoubiwaindex.fetchInfo()returns the same instance with updated information found in MeiliSearch (#715) @bidoubiwaStatic Index.create()creates an index in MeiliSearch (#715) @bidoubiwa- Update dependencies
 
Breaking changes ⚠️ 
getIndex()is still present but does an HTTP call. This method should be only used to fetch information from the MeiliSearch instance, not to manipulate anIndexobject in your code base. Useindex()instead. See our Getting Started to be sure using this SDK the most optimized way (#715) @bidoubiwaindex.updateIndex()is now calledindex.update()and now returns anIndexobject instead of the JSON response of MeiliSearch (#715) @bidoubiwaindex.deleteIndex()is now calledindex.delete()(#715) @bidoubiwaindex.show()is now calledindex.getRawInfo()(#715) @bidoubiwaclient.getOrCreateIndex()now does at least one HTTP call (and two sometimes) (#715) @bidoubiwa
Thanks again to @bidoubiwa, @curquiza, and @eskombro ! 🎉