diff --git a/.changeset/calm-beans-talk.md b/.changeset/calm-beans-talk.md new file mode 100644 index 00000000..115f66af --- /dev/null +++ b/.changeset/calm-beans-talk.md @@ -0,0 +1,5 @@ +--- +"@meilisearch/instant-meilisearch": minor +--- + +rolling back the v1.0 release diff --git a/packages/instant-meilisearch/CHANGELOG.md b/packages/instant-meilisearch/CHANGELOG.md index 7ccf45fd..5909a260 100644 --- a/packages/instant-meilisearch/CHANGELOG.md +++ b/packages/instant-meilisearch/CHANGELOG.md @@ -1,6 +1,52 @@ # @meilisearch/instant-meilisearch -## 1.0.0 +## 0.14.0 + +### Major Changes + +- 5b6be19: Added ability to override a selection of Meilisearch search parameters. + + ⚠️ The returned value of the core `instantMeiliSearch` function has changed! + + This change was necessary for the aforementioned ability to be implemented and + applied in a clean manner. + The necessary migration should be of minimal impact. + + ### Migration + + Change the following + + ```js + // 1. + const client = instantMeiliSearch(/*...*/); + // 2. + const searchClient = instantMeiliSearch(/*...*/); + // 3. + instantsearch({ + indexName: "movies", + searchClient: instantMeiliSearch(/*...*/), + }); + ``` + + to the following + + ```js + // 1. + const { searchClient: client } = instantMeiliSearch(/*...*/); + // 2. + const { searchClient } = instantMeiliSearch(/*...*/); + // 3. + instantsearch({ + indexName: "movies", + searchClient: instantMeiliSearch(/*...*/).searchClient, + }); + ``` + +### Patch Changes + +- 06377ef: Fixes issue where backslashes ("\") and quotes (`"`) are not escaped in filters. + +## [DEPRECATED] 1.0.0 ### Major Changes diff --git a/packages/instant-meilisearch/__tests__/assets/games.json b/packages/instant-meilisearch/__tests__/assets/games.json index 5481b5b9..1d8cefa9 100644 --- a/packages/instant-meilisearch/__tests__/assets/games.json +++ b/packages/instant-meilisearch/__tests__/assets/games.json @@ -374,4 +374,4 @@ "red" ] } -] +] \ No newline at end of file diff --git a/packages/instant-meilisearch/package.json b/packages/instant-meilisearch/package.json index d5e3ed16..757029fc 100644 --- a/packages/instant-meilisearch/package.json +++ b/packages/instant-meilisearch/package.json @@ -1,6 +1,6 @@ { "name": "@meilisearch/instant-meilisearch", - "version": "1.0.0", + "version": "0.14.0", "private": false, "description": "The search client to use Meilisearch with InstantSearch.", "homepage": "https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/instant-meilisearch", @@ -78,4 +78,4 @@ "tslib": "^2.6.1", "typescript": "^4.9.5" } -} +} \ No newline at end of file diff --git a/playgrounds/angular/package.json b/playgrounds/angular/package.json index 4a024c99..5ae89c4d 100644 --- a/playgrounds/angular/package.json +++ b/playgrounds/angular/package.json @@ -19,7 +19,7 @@ "@angular/platform-browser": "~15.1.0", "@angular/platform-browser-dynamic": "~15.1.0", "@angular/router": "~15.1.0", - "@meilisearch/instant-meilisearch": "1.0.0", + "@meilisearch/instant-meilisearch": "0.14.0", "algoliasearch": "^4.17.2", "angular-instantsearch": "^4.4.1", "instantsearch.js": "^4.56.2", @@ -39,4 +39,4 @@ "browserslist": [ "defaults" ] -} +} \ No newline at end of file diff --git a/playgrounds/autocomplete/assets/games.json b/playgrounds/autocomplete/assets/games.json index 5481b5b9..1d8cefa9 100644 --- a/playgrounds/autocomplete/assets/games.json +++ b/playgrounds/autocomplete/assets/games.json @@ -374,4 +374,4 @@ "red" ] } -] +] \ No newline at end of file diff --git a/playgrounds/geo-javascript/package.json b/playgrounds/geo-javascript/package.json index 24cedc2a..9c9386ca 100644 --- a/playgrounds/geo-javascript/package.json +++ b/playgrounds/geo-javascript/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@babel/core": "^7.20.12", - "@meilisearch/instant-meilisearch": "1.0.0", + "@meilisearch/instant-meilisearch": "0.14.0", "eslint-config-meilisearch": "*" }, "browserslist": [ @@ -22,4 +22,4 @@ "dependencies": { "scriptjs": "^2.5.9" } -} +} \ No newline at end of file diff --git a/playgrounds/javascript/package.json b/playgrounds/javascript/package.json index f2299779..98727d23 100644 --- a/playgrounds/javascript/package.json +++ b/playgrounds/javascript/package.json @@ -18,6 +18,6 @@ ], "license": "MIT", "dependencies": { - "@meilisearch/instant-meilisearch": "1.0.0" + "@meilisearch/instant-meilisearch": "0.14.0" } -} +} \ No newline at end of file diff --git a/playgrounds/local-react/assets/games.json b/playgrounds/local-react/assets/games.json index 5481b5b9..1d8cefa9 100644 --- a/playgrounds/local-react/assets/games.json +++ b/playgrounds/local-react/assets/games.json @@ -374,4 +374,4 @@ "red" ] } -] +] \ No newline at end of file diff --git a/playgrounds/local-react/package.json b/playgrounds/local-react/package.json index 9f196d68..01dd7aa4 100644 --- a/playgrounds/local-react/package.json +++ b/playgrounds/local-react/package.json @@ -24,7 +24,7 @@ "author": "", "license": "ISC", "dependencies": { - "@meilisearch/instant-meilisearch": "1.0.0", + "@meilisearch/instant-meilisearch": "0.14.0", "instantsearch.css": "^8.0.0", "react": "^17.0.1", "react-dom": "^17.0.1", @@ -39,4 +39,4 @@ "cypress": "^8.6.0", "eslint-config-meilisearch": "*" } -} +} \ No newline at end of file diff --git a/playgrounds/react/package.json b/playgrounds/react/package.json index 3aa057b3..3959fe4a 100644 --- a/playgrounds/react/package.json +++ b/playgrounds/react/package.json @@ -23,7 +23,7 @@ "react": "^17.0.1", "react-dom": "^17.0.1", "react-instantsearch": "^7.1.0", - "@meilisearch/instant-meilisearch": "1.0.0" + "@meilisearch/instant-meilisearch": "0.14.0" }, "devDependencies": { "@babel/core": "^7.13.1", @@ -31,4 +31,4 @@ "@babel/preset-react": "^7.22.5", "eslint-config-meilisearch": "*" } -} +} \ No newline at end of file diff --git a/playgrounds/vue3-ts/package.json b/playgrounds/vue3-ts/package.json index 52364932..b2c4f301 100644 --- a/playgrounds/vue3-ts/package.json +++ b/playgrounds/vue3-ts/package.json @@ -12,7 +12,7 @@ "test:types": "yarn tsc" }, "dependencies": { - "@meilisearch/instant-meilisearch": "1.0.0", + "@meilisearch/instant-meilisearch": "0.14.0", "vue": "^3.2.45", "vue-instantsearch": "^4.10.8" }, @@ -23,4 +23,4 @@ "vue-tsc": "^1.0.11", "eslint-config-meilisearch": "*" } -} +} \ No newline at end of file