Skip to content

Commit 83a68ff

Browse files
authored
Merge branch 'main' into meili-bot/code-samples-apr-23
2 parents 375c6e1 + 25115c6 commit 83a68ff

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ updates:
1212
- package-ecosystem: npm
1313
directory: "/"
1414
schedule:
15-
interval: weekly
15+
interval: "monthly"
1616
time: "04:00"
1717
open-pull-requests-limit: 10
1818
labels:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ import { MeiliSearch } from 'meilisearch'
160160
})()
161161
```
162162

163-
Tasks such as document addition always return a unique identifier. You can use this identifier `taskUid` to check the status (`enqueued`, `processing`, `succeeded` or `failed`) of a [task](https://www.meilisearch.com/docs/reference/api/tasks).
163+
Tasks such as document addition always return a unique identifier. You can use this identifier `taskUid` to check the status (`enqueued`, `canceled`, `processing`, `succeeded` or `failed`) of a [task](https://www.meilisearch.com/docs/reference/api/tasks).
164164

165165
### Basic search <!-- omit in toc -->
166166

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meilisearch",
3-
"version": "0.34.0",
3+
"version": "0.34.1",
44
"description": "The Meilisearch JS client for Node.js and the browser.",
55
"keywords": [
66
"meilisearch",

src/package-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const PACKAGE_VERSION = '0.34.0'
1+
export const PACKAGE_VERSION = '0.34.1'

src/types/types.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ export type Hit<T = Record<string, any>> = T & {
151151
_formatted?: Partial<T>
152152
_matchesPosition?: MatchesPosition<T>
153153
_rankingScore?: number
154-
_rankingScoreDetails?: RakingScoreDetails
154+
_rankingScoreDetails?: RankingScoreDetails
155155
}
156156

157-
export type RakingScoreDetails = {
157+
export type RankingScoreDetails = {
158158
words?: {
159159
order: number
160160
matchingWords: number
@@ -347,19 +347,21 @@ export const enum TaskStatus {
347347
TASK_PROCESSING = 'processing',
348348
TASK_FAILED = 'failed',
349349
TASK_ENQUEUED = 'enqueued',
350+
TASK_CANCELED = 'canceled',
350351
}
351352

352353
export const enum TaskTypes {
353-
INDEX_CREATION = 'indexCreation',
354-
INDEX_UPDATE = 'indexUpdate',
355-
INDEX_DELETION = 'indexDeletion',
356354
DOCUMENTS_ADDITION_OR_UPDATE = 'documentAdditionOrUpdate',
357355
DOCUMENT_DELETION = 'documentDeletion',
358-
SETTINGS_UPDATE = 'settingsUpdate',
356+
DUMP_CREATION = 'dumpCreation',
357+
INDEX_CREATION = 'indexCreation',
358+
INDEX_DELETION = 'indexDeletion',
359359
INDEXES_SWAP = 'indexSwap',
360-
TASK_DELETION = 'taskDeletion',
360+
INDEX_UPDATE = 'indexUpdate',
361+
SETTINGS_UPDATE = 'settingsUpdate',
361362
SNAPSHOT_CREATION = 'snapshotCreation',
362363
TASK_CANCELATION = 'taskCancelation',
364+
TASK_DELETION = 'taskDeletion',
363365
}
364366

365367
export type TasksQuery = {

0 commit comments

Comments
 (0)