Skip to content

Releases: meilisearch/meilisearch-js

v0.17.1 🌻

18 Jan 15:55
2cab038
Compare
Choose a tag to compare

Changes

  • Fix facetsDistribution type on SearchResponse (#738) @Nick-Mazuk
  • Fix double slash error and refactor api routes (#731) @bidoubiwa
  • Update dependencies and fix vulnerabilities

This release is compatible with the new release of MeiliSearch with no breaking changes.
Thanks again to @Nick-Mazuk, @bidoubiwa! 🎉

v0.17.0 🌻

30 Dec 10:41
43502c6
Compare
Choose a tag to compare

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 ! 🎉

v0.16.1 🌻

12 Nov 16:04
5dcbf03
Compare
Choose a tag to compare

Changes

  • Add exhaustiveNbHits to SearchResponse (#688) @bb

Thanks again to @bb, and @bidoubiwa! 🎉

v0.16.0 🌻

04 Nov 16:41
0383498
Compare
Choose a tag to compare

Changes

This package is ready to be used with a MeiliSearch v0.16.0 instance.

Breaking changes ⚠️

v0.15.0 🌻

29 Oct 15:28
22cedfc
Compare
Choose a tag to compare

Changes

  • Fix the non-standard (V8) captureStackTrace method call in the custom error instance (#634) @neupauer
  • Add an ErrorStatusCode enum (#638) @neupauer
  • Add ability to abort search request (#636) @neupauer

Breaking changes

Thanks again to @emulienfou, @emyann, @neupauer, and @bidoubiwa! 🎉

v0.14.2 🌻

15 Oct 16:04
36930fe
Compare
Choose a tag to compare

Changes

  • Resolve path removal of host url (#628) @bidoubiwa :
    Fixes problem where additional sub-routes in host address was ignored,
    for example: Given this address as a host "http://localhost:7700/api", the /api will not be ignored anymore.

Thanks again to Janne Keiski and @bidoubiwa ! 🎉

v0.14.1 🌻

14 Oct 14:54
1367d10
Compare
Choose a tag to compare

Changes

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

v0.14.0 🌻

22 Sep 12:20
d02be31
Compare
Choose a tag to compare

Changes

  • replaced Object.fromEntries() to support node < v12.0 (#583) @Asher-q

Breaking changes

  • Remove axios and change browser bundle name (#573) @bidoubiwa
    • The commonJS bundle cjs has been removed and replaced with an umd bundle. The umd bundle works on both browsers and node.
    • The main in package.json was previously a path to the cjs bundle, it is now a path to the umd bundle.
    • The browser bundle was previously named meilisearch.browser.js it is now renamed to meilisearch.umd.js. If you'r using a direct path or a CDN don't forgot to change that path with: /dist/bundles/meilisearch.umd.js.
      New path to browser bundle:
<script src="https://cdn.jsdelivr.net/npm/meilisearch@latest/dist/bundles/meilisearch.umd.js"></script>
  • Client object has changed. Axios related information has been removed, fetch related information has been added:

New client object:

{
  client: MeiliSearch {
    config: { host: 'http://127.0.0.1:7700', apiKey: 'masterKey' },
    httpRequest: HttpRequests {
      headers: [Object],
      baseUrl: 'http://127.0.0.1:7700',
      url: [URL]
    }
  }
}

Thanks again to @Asher-q and @bidoubiwa ! 🎉

v0.13.1 🌻

01 Sep 14:56
b81b4ac
Compare
Choose a tag to compare

Changes

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

v0.13.0 🌻

20 Aug 13:40
3d9ffac
Compare
Choose a tag to compare

Changes

  • allow for additional header and set correct content type for requests (#546) @niemannd

Breaking changes

Thanks again to @MicroDroid, @bidoubiwa, and @niemannd! 🎉