v0.27.0-beta.0
Pre-release
Pre-release
This version makes this package compatible with Meilisearch v0.28.0rc1 π
Check out the changelog of Meilisearch v0.28.0rc1 for more information on the changes.
π₯ Breaking changes
client.updateKey(key: string, options: KeyPayload): Promise<Key>
now can just update thedescription
and/or the name. #1266- The type
EnqueuedTask
now returns antaskUid
instead of anuid
client.getTasks(...)
andindex.getTasks()
now returns a TasksResults type containing the following fields:results
,limit
,from
,next
#1269index.search
changes in the response parameters: #1263nbHits
replaced withestimatedTotalHits
exhaustiveNbHits
is deletedexhaustiveFacetsCount
is deleted
index.search
changes in the request parameters: #1263matches
renamedshowMatchesPosition
_matchesInfo
response parameter is renamed_matchesPosition
facetsDistribution
request parameter is renamedfacets
.facetsDistribution
response parameter is renamedfacetDistribution
.
- The
Index
type and returnedIndexObject
does not contain aname
field anymore client.getIndexes
andclient.getRawIndexes
now returns anIndexesResults
type containing the following fields:results
,limit
,offset
,total
#1269index.getDocuments
andclient.getDocuments
now returns anDocumentsResults
type containing the following fields:results
,limit
,offset
,total
#1269index.getDocuments
query parameterattributesToRetrieve
is now calledfields
#1264client.getDumpStatus
has been removed #1267client.createDump()
now returns anEnqueuedTask
#1267client.generateTenantToken(apiKeyUid, searchRules, options)
has now a mandatoryapiKeyUid
parameter which should contain the uid of a specific API key. #1268
π Enhancements
client.getKeys(parameters: KeysQuery = {})
now accepts pagination parameters:limit
,offset
#1269client.getKey(keyOrUid: string)
can now also find keys based on their key uid. #1266client.createKey(options: KeyCreation)
lets you specify a custom uid (optionally) to create a new Key #1269- The returned
Key
now has an additionalname
anduid
string fields. #1266 - The
indexUid
field in bothEnqueuedTask
andTask
can be null #1259 client.getTasks(parameters: TasksQuery = {})
andindex.getTasks(parameters: TasksQuery)
now accepts pagination parameters:limit
,from
,next
and filters parameters:type
,status
,indexUid
(same forindex.getTasks
) #1269client.getIndexes
andclient.getRawIndexes
now accepts pagination parameters:limit
,offset
#1269index.getDocuments
now accepts pagination parameters:limit
,offset
#1269new MeiliSearch({ host, apiKey, headers, clientAgents })
now accept a new parameterclientAgents
that should contain the agent from which the library is used. #1272
Thanks again to @bidoubiwa ! π