Skip to content

Commit a8272f4

Browse files
bors[bot]curquiza
andauthored
Merge #667
667: Changes about the MeiliSearch's next release (v0.16.0) r=curquiza a=curquiza Related to this issue: meilisearch/integration-guides#52 - [x] Update README - [x] Update dump status #669 - [x] Remove the methods related to health update #670 This PR: - gathers the changes related to the next release of MeiliSearch (v0.16.0) so that this package is ready when the official release is out. - should pass the tests against the [latest prerelease of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases). This should be tested locally. - might eventually fail until the MeiliSearch v0.16.0 is out. ⚠️ This PR should NOT be merged until the MeiliSearch's next release (v0.16.0) is out. Co-authored-by: Clementine Urquizar <[email protected]> Co-authored-by: Clémentine Urquizar <[email protected]>
2 parents 2ccac57 + 4b9d770 commit a8272f4

File tree

4 files changed

+3
-45
lines changed

4 files changed

+3
-45
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ controller.abort()
265265

266266
## 🤖 Compatibility with MeiliSearch
267267

268-
This package only guarantees the compatibility with the [version v0.15.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.15.0).
268+
This package only guarantees the compatibility with the [version v0.16.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.16.0).
269269

270270
## 💡 Learn More
271271

src/meilisearch.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -107,45 +107,6 @@ class MeiliSearch implements Types.MeiliSearchInterface {
107107
return await this.httpRequest.get(url).then(() => true)
108108
}
109109

110-
/**
111-
* Change the healthyness to healthy
112-
* @memberof MeiliSearch
113-
* @method setHealthy
114-
*/
115-
async setHealthy(): Promise<void> {
116-
const url = '/health'
117-
118-
return await this.httpRequest.put(url, {
119-
health: true,
120-
})
121-
}
122-
123-
/**
124-
* Change the healthyness to unhealthy
125-
* @memberof MeiliSearch
126-
* @method setUnhealthy
127-
*/
128-
async setUnhealthy(): Promise<void> {
129-
const url = '/health'
130-
131-
return await this.httpRequest.put(url, {
132-
health: false,
133-
})
134-
}
135-
136-
/**
137-
* Set the healthyness to health value
138-
* @memberof MeiliSearch
139-
* @method changeHealthTo
140-
*/
141-
async changeHealthTo(health: boolean): Promise<void> {
142-
const url = '/health'
143-
144-
return await this.httpRequest.put(url, {
145-
health,
146-
})
147-
}
148-
149110
///
150111
/// STATS
151112
///

src/types.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface Update {
175175

176176
export interface EnqueuedDump {
177177
uid: string
178-
status: 'processing' | 'dump_process_failed' | 'done'
178+
status: 'in_progress' | 'failed' | 'done'
179179
}
180180

181181
/*
@@ -229,9 +229,6 @@ export interface MeiliSearchInterface {
229229
createIndex: <T>(uid: string, options?: IndexOptions) => Promise<Index<T>>
230230
getKeys: () => Promise<Keys>
231231
isHealthy: () => Promise<true>
232-
setHealthy: () => Promise<void>
233-
setUnhealthy: () => Promise<void>
234-
changeHealthTo: (health: boolean) => Promise<void>
235232
stats: () => Promise<Stats>
236233
version: () => Promise<Version>
237234
createDump: () => Promise<EnqueuedDump>

tests/dump_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe.each([
1919
test(`${permission} key: create a new dump`, async () => {
2020
await client.createDump().then((response) => {
2121
expect(response.uid).toBeDefined()
22-
expect(response.status).toEqual('processing')
22+
expect(response.status).toEqual('in_progress')
2323
})
2424
})
2525

0 commit comments

Comments
 (0)