Skip to content

v0.17.0 🌻

Choose a tag to compare

@meili-bot meili-bot released this 30 Dec 10:41
43502c6

Changes

  • Introduction of the index() method that replaces getIndex(). 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 Index class: primaryKey. You can now use client.getIndex('books').primarykey to access the primary key of your index (#715) @bidoubiwa
  • client.updateIndex() lets you update an index without having to use the Index class (#715) @bidoubiwa
  • client.deleteIndex() lets you delete an index without having to use the Index class (#715) @bidoubiwa
  • index.fetchInfo() returns the same instance with updated information found in MeiliSearch (#715) @bidoubiwa
  • Static 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 an Index object in your code base. Use index() instead. See our Getting Started to be sure using this SDK the most optimized way (#715) @bidoubiwa
  • index.updateIndex() is now called index.update() and now returns an Index object instead of the JSON response of MeiliSearch (#715) @bidoubiwa
  • index.deleteIndex() is now called index.delete() (#715) @bidoubiwa
  • index.show() is now called index.getRawInfo() (#715) @bidoubiwa
  • client.getOrCreateIndex() now does at least one HTTP call (and two sometimes) (#715) @bidoubiwa

Thanks again to @bidoubiwa, @curquiza, and @eskombro ! 🎉