From edf078bf560d1e4c32c55b9105f11ee1783cdf18 Mon Sep 17 00:00:00 2001 From: Dhaya <154633+dhayab@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:44:11 +0200 Subject: [PATCH 1/3] chore: update search client to v5 - most instantsearch.js samples show usage with CDN, I didn't migrate usage to import - secured-api-keys samples have updated code in server.js to properly generate secured api key - vue samples server-side-rendering and vue3-vue-cli are not updated to use algoliasearch v5 --- instantsearch.js/algolia-insights/index.html | 2 +- instantsearch.js/algolia-insights/src/app.js | 4 +- .../autocomplete-results-page/index.html | 2 +- .../autocomplete-results-page/src/app.js | 3 +- .../conditional-request/index.html | 2 +- .../conditional-request/src/app.js | 3 +- instantsearch.js/facet-dropdown/index.html | 2 +- instantsearch.js/facet-dropdown/src/app.js | 3 +- .../geo-search-control/index.html | 2 +- .../geo-search-control/src/app.js | 3 +- .../geo-search-custom-marker/index.html | 2 +- .../geo-search-custom-marker/src/app.js | 3 +- instantsearch.js/geo-search-hits/index.html | 2 +- instantsearch.js/geo-search-hits/src/app.js | 3 +- .../geo-search-tourism/index.html | 2 +- .../geo-search-tourism/src/app.js | 3 +- instantsearch.js/infinite-scroll/index.html | 2 +- instantsearch.js/infinite-scroll/src/app.js | 3 +- .../multi-index-autocomplete/index.html | 2 +- .../multi-index-autocomplete/src/app.js | 3 +- instantsearch.js/multi-index-hits/index.html | 2 +- instantsearch.js/multi-index-hits/src/app.js | 3 +- instantsearch.js/query-suggestions/index.html | 2 +- instantsearch.js/query-suggestions/src/app.js | 3 +- .../refresh-cache-periodically/index.html | 2 +- .../refresh-cache-periodically/src/app.js | 3 +- .../refresh-cache-user-action/index.html | 2 +- .../refresh-cache-user-action/src/app.js | 3 +- instantsearch.js/render-state/package.json | 4 +- instantsearch.js/render-state/src/app.js | 2 +- instantsearch.js/routing-basic/index.html | 2 +- instantsearch.js/routing-basic/src/app.js | 3 +- .../routing-seo-friendly/index.html | 2 +- .../routing-seo-friendly/src/app.js | 3 +- instantsearch.js/secured-api-keys/index.html | 84 +++++---- .../secured-api-keys/package.json | 2 +- instantsearch.js/secured-api-keys/server.js | 12 +- instantsearch.js/secured-api-keys/src/app.js | 3 +- .../segment-connector/package.json | 4 +- instantsearch.js/segment-connector/src/app.js | 2 +- .../algolia-insights/package.json | 4 +- .../algolia-insights/src/App.jsx | 2 +- .../conditional-debouncing/package.json | 4 +- .../conditional-debouncing/src/App.jsx | 2 +- .../conditional-request/package.json | 4 +- .../conditional-request/src/App.jsx | 2 +- .../facet-dropdown/package.json | 6 +- .../facet-dropdown/src/App.tsx | 2 +- react-instantsearch/geo-search/package.json | 4 +- react-instantsearch/geo-search/src/App.tsx | 2 +- .../infinite-scroll/package.json | 4 +- .../infinite-scroll/src/App.jsx | 2 +- .../multi-index-hits/package.json | 4 +- .../multi-index-hits/src/App.jsx | 2 +- .../query-suggestions/package.json | 6 +- .../query-suggestions/src/searchClient.ts | 2 +- .../range-slider-with-radix-ui/package.json | 4 +- .../range-slider-with-radix-ui/src/App.jsx | 2 +- .../package.json | 4 +- .../src/App.jsx | 2 +- react-instantsearch/recommend/package.json | 4 +- react-instantsearch/recommend/src/config.ts | 2 +- .../remix/app/routes/index.tsx | 2 +- react-instantsearch/remix/package.json | 4 +- .../routing-basic/package.json | 4 +- react-instantsearch/routing-basic/src/App.jsx | 2 +- .../routing-seo-friendly/package.json | 4 +- .../routing-seo-friendly/src/App.jsx | 2 +- .../secured-api-keys/.gitignore | 1 + .../dist/assets/index-C3dZlyBg.js | 74 -------- .../dist/assets/index-PS03zNFl.css | 1 - .../secured-api-keys/dist/favicon.png | Bin 1922 -> 0 bytes .../secured-api-keys/dist/index.html | 37 ---- .../secured-api-keys/dist/manifest.json | 15 -- .../secured-api-keys/package.json | 4 +- .../secured-api-keys/server.js | 12 +- .../secured-api-keys/src/index.jsx | 2 +- .../algolia-insights/package.json | 4 +- .../algolia-insights/src/App.vue | 2 +- .../autocomplete-results-page/package.json | 4 +- .../autocomplete-results-page/src/App.vue | 2 +- .../conditional-request/package.json | 4 +- .../conditional-request/src/App.vue | 6 +- .../debounced-search-box/package.json | 4 +- .../debounced-search-box/src/App.vue | 2 +- .../extending-widgets/package.json | 4 +- .../extending-widgets/src/App.vue | 2 +- vue-instantsearch/geo-search/package.json | 4 +- vue-instantsearch/geo-search/src/App.vue | 2 +- .../infinite-scroll/package.json | 4 +- vue-instantsearch/infinite-scroll/src/App.vue | 2 +- .../loading-indicator/package.json | 4 +- .../loading-indicator/src/App.vue | 2 +- .../multi-index-autocomplete/package.json | 4 +- .../multi-index-autocomplete/src/App.vue | 2 +- .../multi-index-hits/package.json | 4 +- .../multi-index-hits/src/App.vue | 2 +- .../query-suggestions/package.json | 4 +- .../query-suggestions/src/App.vue | 4 +- vue-instantsearch/refresh/package.json | 4 +- vue-instantsearch/refresh/src/App.vue | 2 +- vue-instantsearch/routing-basic/package.json | 4 +- vue-instantsearch/routing-basic/src/App.vue | 2 +- .../routing-seo-friendly/package.json | 4 +- .../routing-seo-friendly/src/App.vue | 10 +- .../routing-state-mapping/package.json | 4 +- .../routing-state-mapping/src/App.vue | 2 +- .../routing-vue-router/package.json | 4 +- .../routing-vue-router/src/views/Home.vue | 4 +- .../secured-api-keys/package.json | 4 +- vue-instantsearch/secured-api-keys/server.js | 12 +- .../secured-api-keys/src/App.vue | 2 +- vue-instantsearch/vue3-ssr-vite/package.json | 4 +- vue-instantsearch/vue3-ssr-vite/src/main.js | 2 +- .../vue3-ssr-vue-cli/package.json | 4 +- vue-instantsearch/vue3-ssr-vue-cli/src/app.js | 4 +- vue-instantsearch/vue3-vite/package.json | 4 +- vue-instantsearch/vue3-vite/src/App.vue | 171 +++++++++--------- 118 files changed, 322 insertions(+), 425 deletions(-) delete mode 100644 react-instantsearch/secured-api-keys/dist/assets/index-C3dZlyBg.js delete mode 100644 react-instantsearch/secured-api-keys/dist/assets/index-PS03zNFl.css delete mode 100644 react-instantsearch/secured-api-keys/dist/favicon.png delete mode 100644 react-instantsearch/secured-api-keys/dist/index.html delete mode 100644 react-instantsearch/secured-api-keys/dist/manifest.json diff --git a/instantsearch.js/algolia-insights/index.html b/instantsearch.js/algolia-insights/index.html index 6e96e426d3..5333c3e080 100644 --- a/instantsearch.js/algolia-insights/index.html +++ b/instantsearch.js/algolia-insights/index.html @@ -39,7 +39,7 @@