Releases: meilisearch/meilisearch-js
v0.20.2 🌻
Changes
- [Security] Bump tmpl from 1.0.4 to 1.0.5 (#1003)
- Refactor types and architecture (#1004) @bidoubiwa
With the refactor comes a better handling of info boxes:
Thanks again to @bidoubiwa, and @johnniehard! 🎉
v0.20.1 🌻
This package version is compatible with MeiliSearch v0.22.0 🎉
Changes
- Add get/update/delete sortable attributes methods (#995) @bidoubiwa
- Changes related to the next MeiliSearch release (v0.22.0) (#992)
Thanks again to @bidoubiwa, @curquiza! 🎉
v0.20.0 🌻
This version makes this package compatible with MeiliSearch v0.21.0
🎉 Check out the changelog of MeiliSearch v0.21.0
Changes
- Add new processing status in wait for pending update (#938) @bidoubiwa
- Updates now return
processingas their status when they are in process (see doc). waitForPendingUpdatewaits for the update to be both notenqueuednorprocessing. Meaning it may stop when encounteringprocessedorfailed.
- Updates now return
- Implement synonyms and stop words accepting null value as update (#946) @bidoubiwa
nullis now accepted as a parameter inupdateSynonymsandupdateStopWords- When using
nullas a parameter inupdateSynonymsandupdateStopWordsthe setting will be reset to their default value.
- Remove node 10 support from pre-release tests (#951) @bidoubiwa
- Add searchGet method to handle search on GET (#973) @bidoubiwa
- Use
searchGetwhen search requests must be done on using theGETmethod in the http route. This is not recommended as search is slower usingGETthan the default method of/searchwhich isPOST
- Use
Breaking changes ⚠️
- Rename attributesForFaceting into FilterableAttributes (#941) @bidoubiwa
- the following method changes their name:
getAttributesForFaceting->getFilterableAttributes
updateAttributesForFaceting->updateFilterableAttributes
resetAttributesForFaceting->resetFilterableAttributes updateSettingsdoes not acceptattributesForFacetingand acceptsfilterableAttributesas a parameter- See filterableAttributes documentation to understand how it works in MeiliSearch v0.21.0.
- the following method changes their name:
- Remove facetFilters and filters and replace with filter parameter (#944) @bidoubiwa
- the search parameters
facetFiltersandfiltershave been merged into one search parameter calledfilter(withouts) - See guide on filter to understand how it works in MeiliSearch v0.21.0
- the search parameters
- Change fieldsDistribution to fieldDistribution (#945) @bidoubiwa
getStatsnow returnsfieldDistributionattribute instead offieldsDistribution
- Change builDate with commitDate (#937) @bidoubiwa
getVersionnow returns acommitDateinstead of abuilDate
- Changes related to the next MeiliSearch release (v0.21.0) (#875)
Thanks again to @bidoubiwa, @curquiza, @erfanium, @mdubus ! 🎉
v0.19.0 🌻
Changes
- Adding the possibility to send body null and tests (#890) @alallema
- Adding delete if exists methods (#918) @sanders41
- Fixes stats cors issue (#919) @bidoubiwa
- [Security] Bump glob-parent from 5.1.1 to 5.1.2 (#917)
- [Security] Bump ws from 7.4.2 to 7.4.6 (#905)
Breaking changes ⚠️
- Remove guaranteed compatibility with versions to 10> and 15< (#914) @bidoubiwa
Thanks again to @alallema, @bidoubiwa, @curquiza, and @sanders41! 🎉
v0.18.2 🌻
v0.18.1 🌻
Changes
- Update types to be more accurate (#781) @bidoubiwa
- Export types that were not exported before (#781) @bidoubiwa:
- Fixes getKeys() method that threw an error (#791) @bidoubiwa
Thanks again to @bidoubiwa, @curquiza, and @react-learner! 🎉
v0.18.0 🌻
Changes
- Upgrade typescript dependency from 3.9.7 to 4.1.3 (#766)
Breaking changes ⚠️
- Default export to Named export (#756) @bidoubiwa
We have changed how you import MeiliSearch-js in your project. Before this release, the import of MeiliSearch was only possible in default mode: import MeiliSearch from 'meilisearch'
New usage
ES:
import { MeiliSearch } from 'meilisearch' // ES
const client = new MeiliSearch(..)Node
const { MeiliSearch } = require('meilisearch') // Node
const client = new MeiliSearch(..)Typescript usage
import { MeiliSearch, SearchResponse } from 'meilisearch' // ES
// SearchResponseThanks again to @bidoubiwa, @curquiza! 🎉
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
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 ! 🎉

