From 10fdf733f0a32157180a123fc9fd16841ab1bd72 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 5 Jun 2023 12:47:57 +0200 Subject: [PATCH 01/12] Add prototype beta changeset --- .changeset/pre.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000..adeac129 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,16 @@ +{ + "mode": "pre", + "tag": "prototype-search-for-facet-values", + "initialVersions": { + "eslint-config-meilisearch": "0.0.0", + "@meilisearch/instant-meilisearch": "0.13.1", + "@meilisearch/angular-playground": "0.0.0", + "@meilisearch/geo-playground": "0.0.0", + "@meilisearch/vanilla-playground": "0.0.0", + "@meilisearch/local-react-playground": "0.0.0", + "@meilisearch/node-playground": "0.0.0", + "@meilisearch/react-playground": "0.0.0", + "@meilisearch/vue3-ts-playground": "0.0.0" + }, + "changesets": [] +} From acd8fdae54212594b14b838ea0db9f43398e6b09 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Tue, 6 Jun 2023 16:28:21 +0200 Subject: [PATCH 02/12] Add compatibility with searchable on facetRefinements --- packages/instant-meilisearch/README.md | 10 ++--- packages/instant-meilisearch/package.json | 2 +- .../src/client/instant-meilisearch-client.ts | 41 +++++++++++++++---- .../instant-meilisearch/src/types/types.ts | 11 ++++- .../src/components/SingleIndex.jsx | 4 +- yarn.lock | 8 ++-- 6 files changed, 56 insertions(+), 20 deletions(-) diff --git a/packages/instant-meilisearch/README.md b/packages/instant-meilisearch/README.md index b9093440..ad2a80c0 100644 --- a/packages/instant-meilisearch/README.md +++ b/packages/instant-meilisearch/README.md @@ -701,11 +701,11 @@ The `refinementList` widget is one of the most common widgets you can find in a - ✅ limit: How many facet values to retrieve. - ✅ showMore: Whether to display a button that expands the number of items. - ✅ showMoreLimit: The maximum number of displayed items. Does not work when showMoreLimit > limit. -- ❌ searchable: Whether to add a search input to let the user search for more facet values. Not supported by Meilisearch. If you'd like to see it implemented [please vote](https://roadmap.meilisearch.com/c/64-search-for-facet-values?utm_medium=social&utm_source=portal_share). -- ❌ searchablePlaceholder: The value of the search input’s placeholder. Not supported, see `searchable`. -- ❌ searchableIsAlwaysActive: When false, disables the facet search input. Not supported, see `searchable`. -- ❌ searchableEscapeFacetValues: When true, escapes the facet values. Not supported, see `searchable`. -- ❌ sortBy: Not supported natively but can be implemented manually using `transformItems` options. +- ✅ searchable: Whether to add a search input to let the user search for more facet values. Not supported by Meilisearch. If you'd like to see it implemented [please vote](https://roadmap.meilisearch.com/c/64-search-for-facet-values?utm_medium=social&utm_source=portal_share). +- ✅ searchablePlaceholder: The value of the search input’s placeholder. Not supported, see `searchable`. +- ✅ searchableIsAlwaysActive: When false, disables the facet search input. Not supported, see `searchable`. +- ❌ searchableEscapeFacetValues: When true, escapes the facet values. +- ❌ sortBy: Not supported but can be implemented manually using `transformItems` options. - ✅ transformItems: A function to transform the items passed to the templates. - ✅ templates: The templates to use for the widget. - ✅ cssClasses: The CSS classes to override. diff --git a/packages/instant-meilisearch/package.json b/packages/instant-meilisearch/package.json index 4648383a..f0bc62a0 100644 --- a/packages/instant-meilisearch/package.json +++ b/packages/instant-meilisearch/package.json @@ -47,7 +47,7 @@ "templates" ], "dependencies": { - "meilisearch": "^0.33.0" + "meilisearch": "0.33.0-prototype-search-for-facet-values.1" }, "devDependencies": { "@babel/cli": "^7.21.0", diff --git a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts index c877242e..a2636679 100644 --- a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts +++ b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts @@ -8,6 +8,8 @@ import { FacetDistribution, PaginationState, MeilisearchConfig, + AlgoliaSearchForFacetValuesRequest, + AlgoliaSearchForFacetValuesResponse, } from '../types' import { getApiKey, @@ -132,13 +134,38 @@ export function instantMeiliSearch( throw new Error(e) } }, - searchForFacetValues: async function (_: any) { - return await new Promise((resolve, reject) => { - reject( - new Error('SearchForFacetValues is not compatible with Meilisearch') - ) - resolve([]) // added here to avoid compilation error - }) + searchForFacetValues: async function ( + requests: AlgoliaSearchForFacetValuesRequest + ): Promise { + console.log(requests) + + const results = [] + for (const request of requests) { + const index = request.indexName + const meilisearchRequest = { + facetQuery: request.params.facetQuery, + facetName: request.params.facetName, + } + + const meilisearchResponse = await meilisearchClient + .index(index) + .searchForFacetValues(meilisearchRequest) + + const facetHits = meilisearchResponse.facetHits.map((facetHit) => ({ + ...facetHit, + // not currently supported + highlighted: facetHit.value, + })) + const result = { + facetHits, + exhaustiveFacetsCount: false, + processingTimeMS: meilisearchResponse.processingTimeMs, + } + + results.push(result) + } + + return results }, } } diff --git a/packages/instant-meilisearch/src/types/types.ts b/packages/instant-meilisearch/src/types/types.ts index 94c94719..e5d592b4 100644 --- a/packages/instant-meilisearch/src/types/types.ts +++ b/packages/instant-meilisearch/src/types/types.ts @@ -1,5 +1,9 @@ import type { SearchClient } from 'instantsearch.js' -import type { MultipleQueriesQuery as AlgoliaMultipleQueriesQuery } from '@algolia/client-search' +import type { + MultipleQueriesQuery as AlgoliaMultipleQueriesQuery, + SearchForFacetValuesQueryParams as AlgoliaSearchForFacetValuesQueryParams, + SearchOptions as AlgoliaSearchOptions, +} from '@algolia/client-search' import type { MultiSearchQuery as MeiliSearchMultiSearchParams, MultiSearchResult, @@ -12,6 +16,11 @@ export type { SearchForFacetValuesResponse as AlgoliaSearchForFacetValuesResponse, } from '@algolia/client-search' +export type AlgoliaSearchForFacetValuesRequest = Array<{ + readonly indexName: string + readonly params: AlgoliaSearchForFacetValuesQueryParams & AlgoliaSearchOptions +}> + export type { Filter, FacetDistribution, diff --git a/playgrounds/local-react/src/components/SingleIndex.jsx b/playgrounds/local-react/src/components/SingleIndex.jsx index 4e70d38d..69ca9a49 100644 --- a/playgrounds/local-react/src/components/SingleIndex.jsx +++ b/playgrounds/local-react/src/components/SingleIndex.jsx @@ -50,9 +50,9 @@ const SingleIndex = () => ( ]} />

Genres

- +

Players

- +

Platforms

Misc

diff --git a/yarn.lock b/yarn.lock index 2fbf5e41..19123d07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10136,10 +10136,10 @@ media-typer@0.3.0: resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== -meilisearch@^0.33.0: - version "0.33.0" - resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.33.0.tgz#25982b193cdd22e9ec534a022dbde89c42951dc4" - integrity sha512-bYPb9WyITnJfzf92e7QFK8Rc50DmshFWxypXCs3ILlpNh8pT15A7KSu9Xgnnk/K3G/4vb3wkxxtFS4sxNkWB8w== +meilisearch@0.33.0-prototype-search-for-facet-values.1: + version "0.33.0-prototype-search-for-facet-values.1" + resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.33.0-prototype-search-for-facet-values.1.tgz#e8cfd380880dbf7c2c0de9e52ca581c05062a65f" + integrity sha512-tP2NHj4LIG/L7RQc8IdCOnn3u7MU5RDITf4vEjwToCREtoqadEGahypPfnjRMD7Iw/2j3ELk81SpbFArrSXpCg== dependencies: cross-fetch "^3.1.6" From 61542c3fe08cb13f06b61ea06fe6ff0b9e0be1b9 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Thu, 8 Jun 2023 15:59:42 +0200 Subject: [PATCH 03/12] Add changeset for searchable parameter --- .changeset/sharp-wasps-exist.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sharp-wasps-exist.md diff --git a/.changeset/sharp-wasps-exist.md b/.changeset/sharp-wasps-exist.md new file mode 100644 index 00000000..ee93f5c1 --- /dev/null +++ b/.changeset/sharp-wasps-exist.md @@ -0,0 +1,5 @@ +--- +"@meilisearch/instant-meilisearch": patch +--- + +Add compatibility with the `searchable` parameter of the [`RefinementList`](https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/) widget From ce8053202f51b975db5acfbd11fd367a040d4be1 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Thu, 8 Jun 2023 16:10:37 +0200 Subject: [PATCH 04/12] Merge --- .changeset/pre.json | 2 +- .../src/client/instant-meilisearch-client.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index adeac129..81130f7d 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -12,5 +12,5 @@ "@meilisearch/react-playground": "0.0.0", "@meilisearch/vue3-ts-playground": "0.0.0" }, - "changesets": [] + "changesets": ["sharp-wasps-exist"] } diff --git a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts index a2636679..ad865aff 100644 --- a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts +++ b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts @@ -141,12 +141,22 @@ export function instantMeiliSearch( const results = [] for (const request of requests) { + const searchContext: SearchContext = createSearchContext( + request, + instantMeiliSearchOptions + ) + + const meilisearchSearchQuery = adaptSearchParams(searchContext) + const index = request.indexName - const meilisearchRequest = { + const meilisearchRequest: any = { + ...meilisearchSearchQuery, facetQuery: request.params.facetQuery, facetName: request.params.facetName, } + delete meilisearchRequest.indexUid + const meilisearchResponse = await meilisearchClient .index(index) .searchForFacetValues(meilisearchRequest) From da2e306d540d98709c22f101feeb45cfe13f4226 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Thu, 8 Jun 2023 17:10:48 +0200 Subject: [PATCH 05/12] Add a facet search context --- .../src/client/instant-meilisearch-client.ts | 8 ++--- .../instant-meilisearch/src/contexts/index.ts | 2 +- .../src/contexts/search-context.ts | 35 +++++++++++++++++++ .../instant-meilisearch/src/types/types.ts | 13 +++---- 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts index ad865aff..6dd4e10b 100644 --- a/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts +++ b/packages/instant-meilisearch/src/client/instant-meilisearch-client.ts @@ -8,7 +8,7 @@ import { FacetDistribution, PaginationState, MeilisearchConfig, - AlgoliaSearchForFacetValuesRequest, + AlgoliaSearchForFacetValuesRequests, AlgoliaSearchForFacetValuesResponse, } from '../types' import { @@ -21,7 +21,7 @@ import { adaptSearchParams, SearchResolver, } from '../adapter' -import { createSearchContext } from '../contexts' +import { createSearchContext, createFacetSearchContext } from '../contexts' import { SearchCache, initFacetDistribution, @@ -135,13 +135,13 @@ export function instantMeiliSearch( } }, searchForFacetValues: async function ( - requests: AlgoliaSearchForFacetValuesRequest + requests: AlgoliaSearchForFacetValuesRequests ): Promise { console.log(requests) const results = [] for (const request of requests) { - const searchContext: SearchContext = createSearchContext( + const searchContext: SearchContext = createFacetSearchContext( request, instantMeiliSearchOptions ) diff --git a/packages/instant-meilisearch/src/contexts/index.ts b/packages/instant-meilisearch/src/contexts/index.ts index 02006fa7..49a74346 100644 --- a/packages/instant-meilisearch/src/contexts/index.ts +++ b/packages/instant-meilisearch/src/contexts/index.ts @@ -1 +1 @@ -export { createSearchContext } from './search-context' +export { createSearchContext, createFacetSearchContext } from './search-context' diff --git a/packages/instant-meilisearch/src/contexts/search-context.ts b/packages/instant-meilisearch/src/contexts/search-context.ts index bb8da283..17394ab7 100644 --- a/packages/instant-meilisearch/src/contexts/search-context.ts +++ b/packages/instant-meilisearch/src/contexts/search-context.ts @@ -2,6 +2,7 @@ import { InstantMeiliSearchOptions, AlgoliaMultipleQueriesQuery, SearchContext, + AlgoliaSearchForFacetValuesRequest, } from '../types' import { createPaginationState } from './pagination-context' @@ -40,3 +41,37 @@ export function createSearchContext( } return searchContext } + +// TODO: avoid code duplication +/** + * @param {AlgoliaMultipleQueriesQuery} searchRequest + * @param {Context} options + * @returns {SearchContext} + */ +export function createFacetSearchContext( + searchRequest: AlgoliaSearchForFacetValuesRequest, + options: InstantMeiliSearchOptions +): SearchContext { + // Split index name and possible sorting rules + const [indexUid, ...sortByArray] = searchRequest.indexName.split(':') + const { params: instantSearchParams } = searchRequest + + const paginationState = createPaginationState( + options.finitePagination, + instantSearchParams?.hitsPerPage, + instantSearchParams?.page + ) + + const sortState = createSortState(sortByArray.join(':')) + + const searchContext: SearchContext = { + ...options, + ...instantSearchParams, + sort: sortState, + indexUid, + pagination: paginationState, + placeholderSearch: options.placeholderSearch !== false, // true by default + keepZeroFacets: !!options.keepZeroFacets, // false by default + } + return searchContext +} diff --git a/packages/instant-meilisearch/src/types/types.ts b/packages/instant-meilisearch/src/types/types.ts index e5d592b4..a8e44d73 100644 --- a/packages/instant-meilisearch/src/types/types.ts +++ b/packages/instant-meilisearch/src/types/types.ts @@ -1,8 +1,7 @@ import type { SearchClient } from 'instantsearch.js' import type { MultipleQueriesQuery as AlgoliaMultipleQueriesQuery, - SearchForFacetValuesQueryParams as AlgoliaSearchForFacetValuesQueryParams, - SearchOptions as AlgoliaSearchOptions, + multipleSearchForFacetValues, } from '@algolia/client-search' import type { MultiSearchQuery as MeiliSearchMultiSearchParams, @@ -16,10 +15,12 @@ export type { SearchForFacetValuesResponse as AlgoliaSearchForFacetValuesResponse, } from '@algolia/client-search' -export type AlgoliaSearchForFacetValuesRequest = Array<{ - readonly indexName: string - readonly params: AlgoliaSearchForFacetValuesQueryParams & AlgoliaSearchOptions -}> +export type AlgoliaSearchForFacetValuesRequests = Parameters< + ReturnType +>[0] + +export type AlgoliaSearchForFacetValuesRequest = + AlgoliaSearchForFacetValuesRequests[0] export type { Filter, From 458bbf3090fe9c1b95961de8bcd30f3a72b4f700 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 12 Jun 2023 11:41:28 +0200 Subject: [PATCH 06/12] Update changeset --- .changeset/{sharp-wasps-exist.md => curly-elephants-juggle.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .changeset/{sharp-wasps-exist.md => curly-elephants-juggle.md} (100%) diff --git a/.changeset/sharp-wasps-exist.md b/.changeset/curly-elephants-juggle.md similarity index 100% rename from .changeset/sharp-wasps-exist.md rename to .changeset/curly-elephants-juggle.md From 945a111a3596d13a2113ed39c3f3be490178ad76 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 12 Jun 2023 11:47:26 +0200 Subject: [PATCH 07/12] Update pre mode --- .changeset/pre.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 81130f7d..1f8b7341 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -2,9 +2,11 @@ "mode": "pre", "tag": "prototype-search-for-facet-values", "initialVersions": { + "@meilisearch/autocomplete-client": "0.2.1", "eslint-config-meilisearch": "0.0.0", - "@meilisearch/instant-meilisearch": "0.13.1", + "@meilisearch/instant-meilisearch": "0.13.2", "@meilisearch/angular-playground": "0.0.0", + "@meilisearch/autocomplete-playground": "0.0.0", "@meilisearch/geo-playground": "0.0.0", "@meilisearch/vanilla-playground": "0.0.0", "@meilisearch/local-react-playground": "0.0.0", @@ -12,5 +14,7 @@ "@meilisearch/react-playground": "0.0.0", "@meilisearch/vue3-ts-playground": "0.0.0" }, - "changesets": ["sharp-wasps-exist"] + "changesets": [ + "sharp-wasps-exist" + ] } From c18b071cd8021443b44036ec174750d7916680ce Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 12 Jun 2023 11:48:03 +0200 Subject: [PATCH 08/12] Update pre mode --- .changeset/pre.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 1f8b7341..c7535455 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -14,7 +14,5 @@ "@meilisearch/react-playground": "0.0.0", "@meilisearch/vue3-ts-playground": "0.0.0" }, - "changesets": [ - "sharp-wasps-exist" - ] + "changesets": [] } From 2fff8b3e1241267a5d64f279125ce81b270b7d04 Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 12 Jun 2023 11:54:05 +0200 Subject: [PATCH 09/12] Update pre mode --- .changeset/config.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.changeset/config.json b/.changeset/config.json index c88c9515..095a73a3 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -13,6 +13,8 @@ "@meilisearch/angular-playground", "@meilisearch/vue3-ts-playground", "@meilisearch/react-playground", - "@meilisearch/local-react-playground" + "@meilisearch/local-react-playground", + "@meilisearch/node-playground", + "@meilisearch/autocomplete-playground" ] } From 0432bbe417a21fd861e284b4fedbd000c86dd7aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:58:02 +0200 Subject: [PATCH 10/12] Version Packages (prototype-search-for-facet-values) (#1158) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 4 +++- packages/autocomplete-client/CHANGELOG.md | 7 +++++++ packages/autocomplete-client/package.json | 4 ++-- packages/autocomplete-client/src/package-version.ts | 2 +- packages/instant-meilisearch/CHANGELOG.md | 6 ++++++ packages/instant-meilisearch/package.json | 2 +- packages/instant-meilisearch/src/package-version.ts | 2 +- playgrounds/angular/package.json | 2 +- playgrounds/autocomplete/package.json | 2 +- playgrounds/geo-javascript/package.json | 2 +- playgrounds/javascript/package.json | 2 +- playgrounds/local-react/package.json | 2 +- playgrounds/node-env/package.json | 2 +- playgrounds/react/package.json | 2 +- playgrounds/vue3-ts/package.json | 2 +- 15 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index c7535455..b13aef0c 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -14,5 +14,7 @@ "@meilisearch/react-playground": "0.0.0", "@meilisearch/vue3-ts-playground": "0.0.0" }, - "changesets": [] + "changesets": [ + "curly-elephants-juggle" + ] } diff --git a/packages/autocomplete-client/CHANGELOG.md b/packages/autocomplete-client/CHANGELOG.md index cfbfe5fc..2ae8880b 100644 --- a/packages/autocomplete-client/CHANGELOG.md +++ b/packages/autocomplete-client/CHANGELOG.md @@ -1,5 +1,12 @@ # @meilisearch/autocomplete-client +## 0.2.2-prototype-search-for-facet-values.0 + +### Patch Changes + +- Updated dependencies [458bbf3] + - @meilisearch/instant-meilisearch@0.13.3-prototype-search-for-facet-values.0 + ## 0.2.1 ### Patch Changes diff --git a/packages/autocomplete-client/package.json b/packages/autocomplete-client/package.json index 2795f2cb..aa7abd32 100644 --- a/packages/autocomplete-client/package.json +++ b/packages/autocomplete-client/package.json @@ -1,6 +1,6 @@ { "name": "@meilisearch/autocomplete-client", - "version": "0.2.1", + "version": "0.2.2-prototype-search-for-facet-values.0", "private": false, "description": "The search client to use Meilisearch with autocomplete.js.", "homepage": "https://github.com/meilisearch/instant-meilisearch/tree/main/packages/autocomplete-client", @@ -47,7 +47,7 @@ "url": "https://github.com/meilisearch/instant-meilisearch.git" }, "dependencies": { - "@meilisearch/instant-meilisearch": "*" + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0" }, "devDependencies": { "@algolia/autocomplete-js": "^1.7.4", diff --git a/packages/autocomplete-client/src/package-version.ts b/packages/autocomplete-client/src/package-version.ts index f92d98d0..63962166 100644 --- a/packages/autocomplete-client/src/package-version.ts +++ b/packages/autocomplete-client/src/package-version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '0.2.1' +export const PACKAGE_VERSION = '0.2.2-prototype-search-for-facet-values.0' diff --git a/packages/instant-meilisearch/CHANGELOG.md b/packages/instant-meilisearch/CHANGELOG.md index 4d6df776..434a3835 100644 --- a/packages/instant-meilisearch/CHANGELOG.md +++ b/packages/instant-meilisearch/CHANGELOG.md @@ -1,5 +1,11 @@ # @meilisearch/instant-meilisearch +## 0.13.3-prototype-search-for-facet-values.0 + +### Patch Changes + +- 458bbf3: Add compatibility with the `searchable` parameter of the [`RefinementList`](https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/) widget + ## 0.13.2 ### Patch Changes diff --git a/packages/instant-meilisearch/package.json b/packages/instant-meilisearch/package.json index f0bc62a0..f6568e99 100644 --- a/packages/instant-meilisearch/package.json +++ b/packages/instant-meilisearch/package.json @@ -1,6 +1,6 @@ { "name": "@meilisearch/instant-meilisearch", - "version": "0.13.2", + "version": "0.13.3-prototype-search-for-facet-values.0", "private": false, "description": "The search client to use Meilisearch with InstantSearch.", "homepage": "https://github.com/meilisearch/instant-meilisearch", diff --git a/packages/instant-meilisearch/src/package-version.ts b/packages/instant-meilisearch/src/package-version.ts index fb19c274..7c189e81 100644 --- a/packages/instant-meilisearch/src/package-version.ts +++ b/packages/instant-meilisearch/src/package-version.ts @@ -1 +1 @@ -export const PACKAGE_VERSION = '0.13.2' +export const PACKAGE_VERSION = '0.13.3-prototype-search-for-facet-values.0' diff --git a/playgrounds/angular/package.json b/playgrounds/angular/package.json index 47889a3f..6dac45f9 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": "0.13.2", + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0", "algoliasearch": "^4.14.3", "angular-instantsearch": "^4.4.1", "instantsearch.js": "^4.14.0", diff --git a/playgrounds/autocomplete/package.json b/playgrounds/autocomplete/package.json index 02e9d1f8..15751618 100644 --- a/playgrounds/autocomplete/package.json +++ b/playgrounds/autocomplete/package.json @@ -26,7 +26,7 @@ "@algolia/autocomplete-plugin-query-suggestions": "^1.7.4", "@algolia/autocomplete-plugin-tags": "^1.9.2", "@algolia/autocomplete-theme-classic": "^1.7.4", - "@meilisearch/autocomplete-client": "*" + "@meilisearch/autocomplete-client": "0.2.2-prototype-search-for-facet-values.0" }, "devDependencies": { "@babel/core": "^7.13.1", diff --git a/playgrounds/geo-javascript/package.json b/playgrounds/geo-javascript/package.json index 54642603..e5b068fe 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": "0.13.2", + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0", "eslint-config-meilisearch": "*" }, "browserslist": [ diff --git a/playgrounds/javascript/package.json b/playgrounds/javascript/package.json index 62c53837..8d78d0af 100644 --- a/playgrounds/javascript/package.json +++ b/playgrounds/javascript/package.json @@ -18,6 +18,6 @@ ], "license": "MIT", "dependencies": { - "@meilisearch/instant-meilisearch": "0.13.2" + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0" } } diff --git a/playgrounds/local-react/package.json b/playgrounds/local-react/package.json index 3d0ac0ed..1dd7c542 100644 --- a/playgrounds/local-react/package.json +++ b/playgrounds/local-react/package.json @@ -24,7 +24,7 @@ "author": "", "license": "ISC", "dependencies": { - "@meilisearch/instant-meilisearch": "0.13.2", + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0", "instantsearch.css": "^8.0.0", "react": "^17.0.1", "react-dom": "^17.0.1", diff --git a/playgrounds/node-env/package.json b/playgrounds/node-env/package.json index 0d365ce0..62caa1a7 100644 --- a/playgrounds/node-env/package.json +++ b/playgrounds/node-env/package.json @@ -15,6 +15,6 @@ ], "license": "MIT", "dependencies": { - "@meilisearch/instant-meilisearch": "*" + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0" } } diff --git a/playgrounds/react/package.json b/playgrounds/react/package.json index 2666c471..c6c03a10 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-dom": "^6.39.1", - "@meilisearch/instant-meilisearch": "0.13.2" + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0" }, "devDependencies": { "@babel/core": "^7.13.1", diff --git a/playgrounds/vue3-ts/package.json b/playgrounds/vue3-ts/package.json index 3ff335df..9e906afb 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": "0.13.2", + "@meilisearch/instant-meilisearch": "0.13.3-prototype-search-for-facet-values.0", "vue": "^3.2.45", "vue-instantsearch": "^4.7.2" }, From fce5239afd81b91652eefcf983e8c373dbf82a10 Mon Sep 17 00:00:00 2001 From: meili-bot <74670311+meili-bot@users.noreply.github.com> Date: Tue, 11 Jul 2023 21:56:18 -0300 Subject: [PATCH 11/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e29c8a20..2254bbdb 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ For general information on how to use Meilisearch—such as our API reference, t ## ⚡ Supercharge your Meilisearch experience -Say goodbye to server deployment and manual updates with [Meilisearch Cloud](https://www.meilisearch.com/pricing?utm_campaign=oss&utm_source=integration&utm_medium=meilisearch-js-plugins). No credit card required. +Say goodbye to server deployment and manual updates with [Meilisearch Cloud](https://www.meilisearch.com/pricing?utm_campaign=oss&utm_source=integration&utm_medium=meilisearch-js-plugins). Get started with a 14-day free trial! No credit card required. ## 🐱 Plugins From 664221d687229db6ae11ed762c8366abc09787da Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Thu, 13 Jul 2023 11:20:12 +0200 Subject: [PATCH 12/12] Remove pre changeset mode --- .changeset/pre.json | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index b13aef0c..00000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "mode": "pre", - "tag": "prototype-search-for-facet-values", - "initialVersions": { - "@meilisearch/autocomplete-client": "0.2.1", - "eslint-config-meilisearch": "0.0.0", - "@meilisearch/instant-meilisearch": "0.13.2", - "@meilisearch/angular-playground": "0.0.0", - "@meilisearch/autocomplete-playground": "0.0.0", - "@meilisearch/geo-playground": "0.0.0", - "@meilisearch/vanilla-playground": "0.0.0", - "@meilisearch/local-react-playground": "0.0.0", - "@meilisearch/node-playground": "0.0.0", - "@meilisearch/react-playground": "0.0.0", - "@meilisearch/vue3-ts-playground": "0.0.0" - }, - "changesets": [ - "curly-elephants-juggle" - ] -}