Skip to content

Commit 5b6be19

Browse files
committed
Create changeset
1 parent b563e4b commit 5b6be19

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.changeset/metal-emus-pump.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
"@meilisearch/instant-meilisearch": major
3+
"@meilisearch/autocomplete-client": patch
4+
---
5+
6+
Added ability to override a selection of Meilisearch search parameters.
7+
8+
⚠️ The returned value of the core `instantMeiliSearch` function has changed!
9+
10+
This change was necessary for the aforementioned ability to be implemented and
11+
applied in a clean manner.
12+
The necessary migration should be of minimal impact.
13+
14+
### Migration
15+
16+
Change the following
17+
18+
```js
19+
// 1.
20+
const client = instantMeiliSearch(/*...*/)
21+
// 2.
22+
const searchClient = instantMeiliSearch(/*...*/)
23+
// 3.
24+
instantsearch({
25+
indexName: 'movies',
26+
searchClient: instantMeiliSearch(/*...*/),
27+
})
28+
```
29+
30+
to the following
31+
32+
```js
33+
// 1.
34+
const { searchClient: client } = instantMeiliSearch(/*...*/)
35+
// 2.
36+
const { searchClient } = instantMeiliSearch(/*...*/)
37+
// 3.
38+
instantsearch({
39+
indexName: 'movies',
40+
searchClient: instantMeiliSearch(/*...*/).searchClient,
41+
})
42+
```

0 commit comments

Comments
 (0)