algoliasearch 5.8.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/builds/browser.ts +69 -20
- package/builds/fetch.ts +69 -20
- package/builds/models.ts +65 -20
- package/builds/node.ts +69 -20
- package/dist/algoliasearch.umd.js +15 -8
- package/dist/browser.d.ts +32 -21
- package/dist/browser.js +2377 -12
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/fetch.d.ts +32 -21
- package/dist/fetch.js +2422 -12
- package/dist/fetch.js.map +1 -1
- package/dist/lite/browser.d.ts +18 -18
- package/dist/lite/builds/browser.js +1 -1
- package/dist/lite/builds/browser.js.map +1 -1
- package/dist/lite/builds/browser.min.js +1 -1
- package/dist/lite/builds/browser.min.js.map +1 -1
- package/dist/lite/builds/browser.umd.js +2 -2
- package/dist/lite/builds/node.cjs +1 -1
- package/dist/lite/builds/node.cjs.map +1 -1
- package/dist/lite/builds/node.js +1 -1
- package/dist/lite/builds/node.js.map +1 -1
- package/dist/lite/node.d.cts +18 -18
- package/dist/lite/node.d.ts +18 -18
- package/dist/lite/src/liteClient.cjs +1 -1
- package/dist/lite/src/liteClient.cjs.map +1 -1
- package/dist/lite/src/liteClient.js +1 -1
- package/dist/lite/src/liteClient.js.map +1 -1
- package/dist/node.cjs +2407 -15
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +32 -21
- package/dist/node.d.ts +32 -21
- package/dist/node.js +2422 -12
- package/dist/node.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/lite/builds/browser.ts +0 -1
- package/lite/builds/node.ts +0 -1
- package/lite/model/bannerImage.ts +1 -1
- package/lite/model/baseGetApiKeyResponse.ts +1 -1
- package/lite/model/baseIndexSettings.ts +2 -2
- package/lite/model/baseRecommendIndexSettings.ts +1 -1
- package/lite/model/baseSearchResponse.ts +5 -0
- package/lite/model/index.ts +0 -1
- package/lite/model/indexSettingsAsSearchParams.ts +1 -1
- package/lite/model/recommendHit.ts +1 -1
- package/lite/model/trendingFacetHit.ts +1 -1
- package/lite/model/widgets.ts +5 -2
- package/lite/src/liteClient.ts +1 -4
- package/lite.d.ts +0 -1
- package/lite.js +0 -1
- package/package.json +17 -14
- package/lite/model/banners.ts +0 -10
package/lite/src/liteClient.ts
CHANGED
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
|
|
25
25
|
import type { SearchResponse } from '../model/searchResponse';
|
|
26
26
|
|
|
27
|
-
export const apiClientVersion = '5.
|
|
27
|
+
export const apiClientVersion = '5.9.0';
|
|
28
28
|
|
|
29
29
|
function getDefaultHosts(appId: string): Host[] {
|
|
30
30
|
return (
|
|
@@ -61,7 +61,6 @@ function getDefaultHosts(appId: string): Host[] {
|
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
65
64
|
export function createLiteClient({
|
|
66
65
|
appId: appIdOption,
|
|
67
66
|
apiKey: apiKeyOption,
|
|
@@ -214,7 +213,6 @@ export function createLiteClient({
|
|
|
214
213
|
requests: getRecommendationsParams,
|
|
215
214
|
};
|
|
216
215
|
|
|
217
|
-
// eslint-disable-next-line no-param-reassign
|
|
218
216
|
getRecommendationsParams = newSignatureRequest;
|
|
219
217
|
}
|
|
220
218
|
|
|
@@ -276,7 +274,6 @@ export function createLiteClient({
|
|
|
276
274
|
}),
|
|
277
275
|
};
|
|
278
276
|
|
|
279
|
-
// eslint-disable-next-line no-param-reassign
|
|
280
277
|
searchMethodParams = newSignatureRequest;
|
|
281
278
|
}
|
|
282
279
|
|
package/lite.d.ts
CHANGED
package/lite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.9.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -73,27 +73,30 @@
|
|
|
73
73
|
"lite.d.ts"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@algolia/client-abtesting": "5.
|
|
77
|
-
"@algolia/client-analytics": "5.
|
|
78
|
-
"@algolia/client-common": "5.
|
|
79
|
-
"@algolia/client-
|
|
80
|
-
"@algolia/client-
|
|
81
|
-
"@algolia/
|
|
82
|
-
"@algolia/
|
|
83
|
-
"@algolia/
|
|
84
|
-
"@algolia/
|
|
76
|
+
"@algolia/client-abtesting": "5.9.0",
|
|
77
|
+
"@algolia/client-analytics": "5.9.0",
|
|
78
|
+
"@algolia/client-common": "5.9.0",
|
|
79
|
+
"@algolia/client-insights": "5.9.0",
|
|
80
|
+
"@algolia/client-personalization": "5.9.0",
|
|
81
|
+
"@algolia/client-query-suggestions": "5.9.0",
|
|
82
|
+
"@algolia/ingestion": "1.9.0",
|
|
83
|
+
"@algolia/monitoring": "1.9.0",
|
|
84
|
+
"@algolia/recommend": "5.9.0",
|
|
85
|
+
"@algolia/requester-browser-xhr": "5.9.0",
|
|
86
|
+
"@algolia/requester-fetch": "5.9.0",
|
|
87
|
+
"@algolia/requester-node-http": "5.9.0"
|
|
85
88
|
},
|
|
86
89
|
"devDependencies": {
|
|
87
|
-
"@algolia/requester-testing": "5.
|
|
90
|
+
"@algolia/requester-testing": "5.9.0",
|
|
88
91
|
"@arethetypeswrong/cli": "0.16.4",
|
|
89
|
-
"@types/node": "22.7.
|
|
92
|
+
"@types/node": "22.7.5",
|
|
90
93
|
"jsdom": "25.0.1",
|
|
91
94
|
"publint": "0.2.11",
|
|
92
95
|
"rollup": "4.24.0",
|
|
93
96
|
"tsup": "8.3.0",
|
|
94
|
-
"typescript": "5.6.
|
|
97
|
+
"typescript": "5.6.3",
|
|
95
98
|
"vitest": "2.1.2",
|
|
96
|
-
"vitest-environment-miniflare": "2.14.
|
|
99
|
+
"vitest-environment-miniflare": "2.14.4"
|
|
97
100
|
},
|
|
98
101
|
"engines": {
|
|
99
102
|
"node": ">= 14.0.0"
|
package/lite/model/banners.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
import type { Banner } from './banner';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* banners defined in the merchandising studio for the given search.
|
|
7
|
-
*/
|
|
8
|
-
export type Banners = {
|
|
9
|
-
banners?: Banner;
|
|
10
|
-
};
|