Releases: meilisearch/meilisearch-js
Releases · meilisearch/meilisearch-js
v0.17.1 🌻
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 🌻
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
Index
class:primaryKey
. You can now useclient.getIndex('books').primarykey
to access the primary key of your index (#715) @bidoubiwa client.updateIndex()
lets you update an index without having to use theIndex
class (#715) @bidoubiwaclient.deleteIndex()
lets you delete an index without having to use theIndex
class (#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 anIndex
object 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 anIndex
object 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 ! 🎉
v0.16.1 🌻
v0.16.0 🌻
v0.15.0 🌻
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 🌻
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 🌻
Changes
- Add
dumps
features (#616) @neupauer
Related docs: https://docs.meilisearch.com/references/dump.html - Add nbhits to types declarations (#625) @bidoubiwa
- Update dependencies
Thanks again to @bidoubiwa, @curquiza, @eskombro and @neupauer! 🎉
v0.14.0 🌻
Changes
Breaking changes
- Remove axios and change browser bundle name (#573) @bidoubiwa
- The commonJS bundle
cjs
has been removed and replaced with anumd
bundle. Theumd
bundle works on both browsers and node. - The
main
in package.json was previously a path to thecjs
bundle, it is now a path to theumd
bundle. - The browser bundle was previously named
meilisearch.browser.js
it is now renamed tomeilisearch.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:
- The commonJS 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 🌻
Changes
- Update index tests (#563) @bidoubiwa
Thanks again to @bidoubiwa, @curquiza, and @eskombro! 🎉
v0.13.0 🌻
Changes
Breaking changes
- Fix fieldsDistribution being typed as fieldsFrequency (#548) @MicroDroid
Thanks again to @MicroDroid, @bidoubiwa, and @niemannd! 🎉