Releases: meilisearch/meilisearch-js
v0.25.1 🌻
This version makes this package compatible with Meilisearch v0.27.0 🎉
Check out the changelog of Meilisearch v0.27.0 for more information on the changes.
Even if the minor version improved, this PR does not introduce a breaking-change!
🚀 Enhancements
- Ensure nested field support #1192
- Add the typo tolerance setting #1197
- Add
typoTolerance
parameter in theSettings
type. - Creation of:
index.getTypoTolerance
,index.updateTypoTolerance
,index.resetTypoTolerance
- Add
- Add
highlightPreTag
&highlightPostTag
&cropMarker
#1196
🐛 Bug Fixes
- Make updateDocuments accept partial documents in typing (#1209) @bidoubiwa
Thanks again to @bidoubiwa and @mmachatschek! 🎉
v0.26.0-beta.0
This beta version makes this package compatible with MeiliSearch v0.27.0rc1 🎉
Check out the changelog of MeiliSearch v0.27.0rc1 for more information on the changes.
🚀 Enhancements
v0.25.0 🌻
This version makes this package compatible with MeiliSearch v0.25 up to v0.26.0 🎉
Check out the changelog of MeiliSearch v0.26.0 for more information about the
🚀 Enhancements
- Added new method
generateTenantToken()
as a result of the addition of the multi-tenant functionality.
This method creates a JWT tenant token that will allow the user to have multi-tenant indexes and thus restrict access to documents based on the end-user making the search request. (#1162) @bidoubiwa - Complete details field in tasks (#1151) @bidoubiwa
- Add a validator on the provided host (#1168) @bidoubiwa
⚠️ Breaking changes
- Add new method to
getAllRawIndexes()
, changegetIndexes()
behavior (#1045) @K-Kumar-01client.getIndexes
now returns an array ofIndex
instances.client.getRawIndexes
now returns an array of object containing the indexes information returned by meilisearch
- Change how the library exports bundles (#1161) @bidoubiwa
🔒 Security
- [Security] build(deps): bump shelljs from 0.8.4 to 0.8.5 (#1134)
Thanks again to @K-Kumar-01, @bidoubiwa, @dichotommy, and @psvnlsaikumar! 🎉
v0.24.0 🌻
This package version is compatible with MeiliSearch v0.25.0 🎉
⚠️ Breaking changes
- This package is only compatible with MeiliSearch v0.25.0 and later, but not with v0.24.0 and older. Be sure you are using at least MeiliSearch v0.24.0 or newer before doing the upgrade.
Why isn't it compatible?- MeiliSearch v0.25.0 uses
Authorization
header instead ofX-Meili-API-Key
- MeiliSearch v0.25.0 has a new API regarding the updates that have been renamed into tasks. More details in the following points
- MeiliSearch v0.25.0 uses
- Changes related to the new task API (#1123) @bidoubiwa Check out the task API references and the asynchronous tasks guide
createIndex
,updateIndex
anddeleteIndex
are now asynchrone regarding MeiliSearch and do not return aIndex
instance anymore, but a task object. Please useindex()
method instead.- Rename
index.getAllUpdateStatus
intoindex.getTasks
- Rename
index.getUpdateStatus
intoindex.getTask
waitForPendingUpdate
is renamed intowaitForTask
and is accessible fromindex
and fromclient
- Remove
getOrCreateIndex
method (#1125) @bidoubiwa - Remove
deleteIndexIfExists
method (#1124) @bidoubiwa client.getKeys()
does not return an object of keys, but an array of keys. Check out keys API references.
🚀 Enhancements
- Add API keys methods (#1123) @bidoubiwa
client.createKey()
client.updateKey()
client.deleteKey()
client.getKey()
Check out the documentation guide.
- Add new methods
client.getTasks()
andclient.getTask()
Thanks again to @bidoubiwa, @alallema and @curquiza ! 🎉
v0.24.0-beta.1
This package version is compatible with MeiliSearch v0.25.0.rc3 🎉
⚠️ Breaking changes
- Wrap keys results inside
results
object #1132
Thanks again to @bidoubiwa! 🎉
v0.24.0-beta.0
This package version is compatible with MeiliSearch v0.25.0.rc3 🎉
⚠️ Breaking changes
- Changes related to the next MeiliSearch release (v0.24.0) (#1108)
- Change update API to task API #1123
- Remove deleteIfExists method #1124
- Remove get or create index #1125
- Change key methods #1123
Thanks again to @bidoubiwa! 🎉
v0.23.0 🌻
This package version is compatible with MeiliSearch v0.24.0 🎉
⚠️ Breaking changes
- Changes related to the next MeiliSearch release (v0.24.0) (#1074)
Errors API changes
MeiliSearchApiError
interface receives an update in the fields naming. Error fields are replaced by the following:
errorCode
->code
errorLink
->link
errorType
->type
When an update fails, previously the error fields in the update body were also namederrorCode
, errorLink
, ...
Now error fields are moved inside the error
and the naming is changing the same way it did in MeiliSearchApiError
.
{
"status": "failed",
"updateId": 1,
// ...
"error": {
"message": "Document `:documentId` not found.",
"code": "document_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#document_not_found"
},
}
Thanks again to @bidoubiwa! 🎉
v0.23.0-beta.0
Beta
The beta
version is compatible with the latest rc
of MeiliSearch.
v0.22.3 🌻
v0.22.2 🌻
Changes
- Add extended JSDoc for each function (#1058) @blenderskool
Thanks again to @K-Kumar-01, @Toshiuk, @alallema, @bidoubiwa, @blenderskool, @curquiza, and Flavio Toshiuk Junior! 🎉