File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments