Skip to content

Commit ebcc557

Browse files
JasonBerryHaroenv
authored andcommittedJul 11, 2024
fix(deps): update search-insights and instantsearch dependencies (#1268)
1 parent 89c68d1 commit ebcc557

File tree

12 files changed

+52
-104
lines changed

12 files changed

+52
-104
lines changed
 

‎examples/instantsearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@algolia/autocomplete-theme-classic": "1.17.3",
1616
"@algolia/client-search": "4.16.0",
1717
"algoliasearch": "4.16.0",
18-
"instantsearch.js": "4.53.0"
18+
"instantsearch.js": "4.73.1"
1919
},
2020
"devDependencies": {
2121
"parcel": "2.8.3"

‎examples/playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@algolia/client-search": "4.16.0",
1818
"algoliasearch": "4.16.0",
1919
"preact": "10.13.2",
20-
"search-insights": "2.13.0"
20+
"search-insights": "^2.15.0"
2121
},
2222
"devDependencies": {
2323
"parcel": "2.8.3"

‎examples/query-suggestions-with-hits/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@algolia/client-search": "4.16.0",
1818
"algoliasearch": "4.16.0",
1919
"preact": "10.13.2",
20-
"search-insights": "2.13.0"
20+
"search-insights": "^2.15.0"
2121
},
2222
"devDependencies": {
2323
"parcel": "2.8.3"

‎examples/react-instantsearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"algoliasearch": "4.16.0",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0",
20-
"react-instantsearch": "7.11.3"
20+
"react-instantsearch": "7.12.1"
2121
},
2222
"devDependencies": {
2323
"@types/react": "^18.0.26",

‎examples/reshape/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"algoliasearch": "4.16.0",
2020
"preact": "10.13.2",
2121
"ramda": "0.27.1",
22-
"search-insights": "2.13.0"
22+
"search-insights": "^2.15.0"
2323
},
2424
"devDependencies": {
2525
"@algolia/autocomplete-core": "1.17.3",

‎examples/tags-in-searchbox/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"algoliasearch": "4.16.0",
1717
"preact": "10.13.2",
1818
"ramda": "0.27.1",
19-
"search-insights": "2.13.0"
19+
"search-insights": "^2.15.0"
2020
},
2121
"devDependencies": {
2222
"parcel": "2.8.3"

‎examples/tags-with-hits/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"algoliasearch": "4.16.0",
1717
"preact": "10.13.2",
1818
"ramda": "0.27.1",
19-
"search-insights": "2.13.0"
19+
"search-insights": "^2.15.0"
2020
},
2121
"devDependencies": {
2222
"parcel": "2.8.3"

‎examples/vue-instantsearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@algolia/autocomplete-theme-classic": "1.17.3",
1818
"algoliasearch": "4.16.0",
1919
"vue": "3.2.47",
20-
"vue-instantsearch": "4.8.8"
20+
"vue-instantsearch": "4.18.1"
2121
},
2222
"devDependencies": {
2323
"@vitejs/plugin-vue": "1.9.3",

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"rollup-plugin-filesize": "9.1.2",
8181
"rollup-plugin-license": "2.9.1",
8282
"rollup-plugin-terser": "7.0.2",
83+
"search-insights": "^2.15.0",
8384
"shipjs": "0.26.1",
84-
"search-insights": "2.13.0",
8585
"start-server-and-test": "1.15.2",
8686
"stylelint": "13.13.1",
8787
"stylelint-a11y": "1.2.3",
@@ -96,5 +96,6 @@
9696
},
9797
"resolutions": {
9898
"bundlesize/brotli-size": "4.0.0"
99-
}
99+
},
100+
"dependencies": {}
100101
}

‎packages/autocomplete-plugin-algolia-insights/src/__tests__/createAlgoliaInsightsPlugin.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ describe('createAlgoliaInsightsPlugin', () => {
453453
expect(document.body).toMatchInlineSnapshot(`
454454
<body>
455455
<script
456-
src="https://cdn.jsdelivr.net/npm/search-insights@2.13.0/dist/search-insights.min.js"
456+
src="https://cdn.jsdelivr.net/npm/search-insights@2.15.0/dist/search-insights.min.js"
457457
/>
458458
<form>
459459
<input />
@@ -465,7 +465,7 @@ describe('createAlgoliaInsightsPlugin', () => {
465465
`);
466466
expect((window as any).AlgoliaAnalyticsObject).toBe('aa');
467467
expect((window as any).aa).toEqual(expect.any(Function));
468-
expect((window as any).aa.version).toBe('2.13.0');
468+
expect((window as any).aa.version).toBe('2.15.0');
469469
});
470470

471471
it('notifies when the script fails to be added', () => {
@@ -1026,7 +1026,7 @@ describe('createAlgoliaInsightsPlugin', () => {
10261026
test('sends a `clickedObjectIDsAfterSearch` event with additional parameters if client supports it', async () => {
10271027
const insightsClient = jest.fn();
10281028
// @ts-ignore
1029-
insightsClient.version = '2.13.0';
1029+
insightsClient.version = '2.15.0';
10301030
const insightsPlugin = createAlgoliaInsightsPlugin({ insightsClient });
10311031

10321032
const { inputElement } = createPlayground(createAutocomplete, {

‎packages/autocomplete-plugin-algolia-insights/src/createAlgoliaInsightsPlugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
} from './types';
2929

3030
const VIEW_EVENT_DELAY = 400;
31-
const ALGOLIA_INSIGHTS_VERSION = '2.13.0';
31+
const ALGOLIA_INSIGHTS_VERSION = '2.15.0';
3232
const ALGOLIA_INSIGHTS_SRC = `https://cdn.jsdelivr.net/npm/search-insights@${ALGOLIA_INSIGHTS_VERSION}/dist/search-insights.min.js`;
3333

3434
type SendViewedObjectIDsParams = {

‎yarn.lock

+37-90
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,6 @@
180180
"@algolia/logger-common" "4.16.0"
181181
"@algolia/requester-common" "4.16.0"
182182

183-
"@algolia/ui-components-highlight-vdom@^1.2.1":
184-
version "1.2.1"
185-
resolved "https://registry.yarnpkg.com/@algolia/ui-components-highlight-vdom/-/ui-components-highlight-vdom-1.2.1.tgz#c430c9f090ef8c68477ef4b685324ed231ce0c13"
186-
integrity sha512-IlYgIaCUEkz9ezNbwugwKv991oOHhveyq6nzL0F1jDzg1p3q5Yj/vO4KpNG910r2dwGCG3nEm5GtChcLnarhFA==
187-
dependencies:
188-
"@algolia/ui-components-shared" "1.2.1"
189-
"@babel/runtime" "^7.0.0"
190-
191-
"@algolia/ui-components-shared@1.2.1", "@algolia/ui-components-shared@^1.2.1":
192-
version "1.2.1"
193-
resolved "https://registry.yarnpkg.com/@algolia/ui-components-shared/-/ui-components-shared-1.2.1.tgz#62e3a04fc11623f149312942cd764d4528dd994c"
194-
integrity sha512-a7mYHf/GVQfhAx/HRiMveKkFvHspQv/REdG+C/FIOosiSmNZxX7QebDwJkrGSmDWdXO12D0Qv1xn3AytFcEDlQ==
195-
196183
"@ampproject/remapping@^2.2.0":
197184
version "2.2.0"
198185
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
@@ -1187,7 +1174,7 @@
11871174
core-js-pure "^3.20.2"
11881175
regenerator-runtime "^0.13.4"
11891176

1190-
"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.8", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
1177+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.13.8", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
11911178
version "7.21.0"
11921179
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"
11931180
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
@@ -4228,17 +4215,10 @@ ajv@^8.0.1:
42284215
require-from-string "^2.0.2"
42294216
uri-js "^4.2.2"
42304217

4231-
algoliasearch-helper@3.22.1:
4232-
version "3.22.1"
4233-
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.22.1.tgz#c4b91265aa2e58eea4413bc57c4611eaf391e597"
4234-
integrity sha512-fSxJ4YreH4kOME9CnKazbAn2tK/rvBoV37ETd6nTt4j7QfkcnW+c+F22WfuE9Q/sRpvOMnUwU/BXAVEiwW7p/w==
4235-
dependencies:
4236-
"@algolia/events" "^4.0.1"
4237-
4238-
algoliasearch-helper@^3.11.3:
4239-
version "3.12.0"
4240-
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.12.0.tgz#0fe39d49b0290e4aa5e1fe733bd24d857d258e94"
4241-
integrity sha512-/j1U3PEwdan0n6P/QqSnSpNSLC5+cEMvyljd5CnmNmUjDlGrys+vFEOwjVEnqELIiAGMHEA/Nl3CiKVFBUYqyQ==
4218+
algoliasearch-helper@3.22.2:
4219+
version "3.22.2"
4220+
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.22.2.tgz#e351833f3bbace34751e239d5a82b5696e561ae8"
4221+
integrity sha512-3YQ6eo7uYOCHeQ2ZpD+OoT3aJJwMNKEnwtu8WMzm81XmBOSCwRjQditH9CeSOQ38qhHkuGw23pbq+kULkIJLcw==
42424222
dependencies:
42434223
"@algolia/events" "^4.0.1"
42444224

@@ -5162,15 +5142,10 @@ caniuse-api@^3.0.0:
51625142
lodash.memoize "^4.1.2"
51635143
lodash.uniq "^4.5.0"
51645144

5165-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001179, caniuse-lite@^1.0.30001449:
5166-
version "1.0.30001473"
5167-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001473.tgz#3859898b3cab65fc8905bb923df36ad35058153c"
5168-
integrity sha512-ewDad7+D2vlyy+E4UJuVfiBsU69IL+8oVmTuZnH5Q6CIUbxNfI50uVpRHbUPDD6SUaN2o0Lh4DhTrvLG/Tn1yg==
5169-
5170-
caniuse-lite@^1.0.30001464:
5171-
version "1.0.30001474"
5172-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001474.tgz#13b6fe301a831fe666cce8ca4ef89352334133d5"
5173-
integrity sha512-iaIZ8gVrWfemh5DG3T9/YqarVZoYf0r188IjaGwx68j4Pf0SGY6CQkmJUIE+NZHkkecQGohzXmBGEwWDr9aM3Q==
5145+
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001179, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464:
5146+
version "1.0.30001640"
5147+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz"
5148+
integrity sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==
51745149

51755150
capital-case@^1.0.3, capital-case@^1.0.4:
51765151
version "1.0.4"
@@ -8496,42 +8471,23 @@ instantsearch-ui-components@0.7.0:
84968471
dependencies:
84978472
"@babel/runtime" "^7.1.2"
84988473

8499-
instantsearch.js@4.53.0:
8500-
version "4.53.0"
8501-
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.53.0.tgz#8dffe121681f514363762a4c70bc4c4344b9775d"
8502-
integrity sha512-YsKZo8yF/2/lc1FHwyP73k8IoIMPesP+8R4VSmWDf/No8EgELgpC7qgZOlQl/vLIoAAaDrKD/BfstposfMF8KQ==
8503-
dependencies:
8504-
"@algolia/events" "^4.0.1"
8505-
"@algolia/ui-components-highlight-vdom" "^1.2.1"
8506-
"@algolia/ui-components-shared" "^1.2.1"
8507-
"@types/dom-speech-recognition" "^0.0.1"
8508-
"@types/google.maps" "^3.45.3"
8509-
"@types/hogan.js" "^3.0.0"
8510-
"@types/qs" "^6.5.3"
8511-
algoliasearch-helper "^3.11.3"
8512-
hogan.js "^3.0.2"
8513-
htm "^3.0.0"
8514-
preact "^10.10.0"
8515-
qs "^6.5.1 < 6.10"
8516-
search-insights "^2.1.0"
8517-
8518-
instantsearch.js@4.72.1:
8519-
version "4.72.1"
8520-
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.72.1.tgz#75130e43f684464363d5c1753b4a0d04182b534b"
8521-
integrity sha512-NcSZPKmBBzvg2TWgucRVl9d+L/Pht909PwE0SUNcniQiIA0FXtE85sHjYhqWswnEr6pO2545c2uz7xIiTvBjOA==
8474+
instantsearch.js@4.73.1:
8475+
version "4.73.1"
8476+
resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.73.1.tgz#bf0d1aa5a2bf6fa40b0eab79e5d6d7fc6547af32"
8477+
integrity sha512-sO+eck5STiHiDFaNNoYzd62RDJwINgoi3yyOcEBi7PCs0rrpcj4hw0lTuw30cqloNjcM63exGdcRXX5r7Hl49g==
85228478
dependencies:
85238479
"@algolia/events" "^4.0.1"
85248480
"@types/dom-speech-recognition" "^0.0.1"
85258481
"@types/google.maps" "^3.45.3"
85268482
"@types/hogan.js" "^3.0.0"
85278483
"@types/qs" "^6.5.3"
8528-
algoliasearch-helper "3.22.1"
8484+
algoliasearch-helper "3.22.2"
85298485
hogan.js "^3.0.2"
85308486
htm "^3.0.0"
85318487
instantsearch-ui-components "0.7.0"
85328488
preact "^10.10.0"
85338489
qs "^6.5.1 < 6.10"
8534-
search-insights "^2.13.0"
8490+
search-insights "^2.15.0"
85358491

85368492
internal-slot@^1.0.3, internal-slot@^1.0.5:
85378493
version "1.0.5"
@@ -12508,25 +12464,25 @@ react-error-overlay@6.0.9:
1250812464
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
1250912465
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==
1251012466

12511-
react-instantsearch-core@7.11.3:
12512-
version "7.11.3"
12513-
resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.11.3.tgz#6fe3ead508457e3232df74171e5a51d852d16068"
12514-
integrity sha512-c5/odLJVc8hZgTzOXhC+IfXmC/M4UALZ2vvF9ts5TNbn7KB2M+AexmJt4g279X57sBSeUXHhOzFLrj3jAKvYvQ==
12467+
react-instantsearch-core@7.12.1:
12468+
version "7.12.1"
12469+
resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.12.1.tgz#dc3d60d7edcf611eb9bde7fe337e7530b9b26a24"
12470+
integrity sha512-nbA6bj1qL+fJfldxOlbbfbCbIGlB/X4qGHEAuQQBI20zMwR+nMa0qDXjre7N0nmoMt7Oyx5ijNxpwP/LRTVOgA==
1251512471
dependencies:
1251612472
"@babel/runtime" "^7.1.2"
12517-
algoliasearch-helper "3.22.1"
12518-
instantsearch.js "4.72.1"
12473+
algoliasearch-helper "3.22.2"
12474+
instantsearch.js "4.73.1"
1251912475
use-sync-external-store "^1.0.0"
1252012476

12521-
react-instantsearch@7.11.3:
12522-
version "7.11.3"
12523-
resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.11.3.tgz#6bb168155e6bf566561dc0430aeb140a9f1d95d6"
12524-
integrity sha512-zGFITpZYHdlUlrOsbSNHJY4OD4ZBZKFD+a+DCPDwlR8y0cO2mOlOnlB3IWOXvK3gOT7ckDB4ndcfFVDRTVtLDg==
12477+
react-instantsearch@7.12.1:
12478+
version "7.12.1"
12479+
resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.12.1.tgz#5e677dedd22b0046e2efc29278964b701f191ea2"
12480+
integrity sha512-CCJGWEPo4qVQ8LY3M9VlcgGJjF87/msJf7D0kVDRPLX/obPFtH8T6P2wOqPj7GJR8QGGdM15NlbQPbJAjPeadg==
1252512481
dependencies:
1252612482
"@babel/runtime" "^7.1.2"
1252712483
instantsearch-ui-components "0.7.0"
12528-
instantsearch.js "4.72.1"
12529-
react-instantsearch-core "7.11.3"
12484+
instantsearch.js "4.73.1"
12485+
react-instantsearch-core "7.12.1"
1253012486

1253112487
react-is@^16.13.1:
1253212488
version "16.13.1"
@@ -13264,20 +13220,10 @@ schema-utils@^2.6.5:
1326413220
ajv "^6.12.4"
1326513221
ajv-keywords "^3.5.2"
1326613222

13267-
search-insights@2.13.0:
13268-
version "2.13.0"
13269-
resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.13.0.tgz#a79fdcf4b5dad2fba8975b06f2ebc37a865032b7"
13270-
integrity sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==
13271-
13272-
search-insights@^2.1.0:
13273-
version "2.2.1"
13274-
resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.2.1.tgz#9c93344fbae5fbf2f88c1a81b46b4b5d888c11f7"
13275-
integrity sha512-JDfVGZbKqTtiKVZjAVbkNw9C9f0ib80yx6Ea17M3z4RvPmuD0GYWXuFwA9++dpbreBEMH4TC3lQ29Zq7O4b5oA==
13276-
13277-
search-insights@^2.13.0:
13278-
version "2.14.0"
13279-
resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.14.0.tgz#212626f1c5ee8d8e232af1f35c9afaa760a56d24"
13280-
integrity sha512-OLN6MsPMCghDOqlCtsIsYgtsC0pnwVTyT9Mu6A3ewOj1DxvzZF6COrn2g86E/c05xbktB0XN04m/t1Z+n+fTGw==
13223+
search-insights@^2.15.0:
13224+
version "2.15.0"
13225+
resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.15.0.tgz#61c7db9d13218ee966937ad2462385b05c0df624"
13226+
integrity sha512-ch2sPCUDD4sbPQdknVl9ALSi9H7VyoeVbsxznYz6QV55jJ8CI3EtwpO1i84keN4+hF5IeHWIeGvc08530JkVXQ==
1328113227

1328213228
"semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1:
1328313229
version "5.7.1"
@@ -14989,12 +14935,13 @@ vite@2.8.0:
1498914935
optionalDependencies:
1499014936
fsevents "~2.3.2"
1499114937

14992-
vue-instantsearch@4.8.8:
14993-
version "4.8.8"
14994-
resolved "https://registry.yarnpkg.com/vue-instantsearch/-/vue-instantsearch-4.8.8.tgz#68350799b9c9a6d953ba2aaa60ada9c0439a8995"
14995-
integrity sha512-cQylbVL5sdtSe1ZSh8BfuHtIXqMscI5dXvMs+i88ZaDLdNf+TZ9sWQ1dnl5fZUqRKMEYrjGuOLc/+UiR8GF6jg==
14938+
vue-instantsearch@4.18.1:
14939+
version "4.18.1"
14940+
resolved "https://registry.yarnpkg.com/vue-instantsearch/-/vue-instantsearch-4.18.1.tgz#5db1409ae3d11426a49d181f74b7307f27c96498"
14941+
integrity sha512-wjoawHpSnI6IVjoS2BfASIQhvOzaA0lTX39ZmllFBrBTxaK7FDLzOjGHPlyreSH8HEzE+pCpuprOTaKlFWyEXg==
1499614942
dependencies:
14997-
instantsearch.js "4.53.0"
14943+
instantsearch-ui-components "0.7.0"
14944+
instantsearch.js "4.73.1"
1499814945
mitt "^2.1.0"
1499914946

1500014947
vue@3.2.47:

0 commit comments

Comments
 (0)
Failed to load comments.