@algolia/client-search 5.20.0 → 5.20.2

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/dist/worker.d.ts CHANGED
@@ -1352,7 +1352,7 @@ type IndexSettingsAsSearchParams = {
1352
1352
  */
1353
1353
  minProximity?: number;
1354
1354
  /**
1355
- * Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
1355
+ * Properties to include in the API response of search and browse requests. By default, all response properties are included. To reduce the response size, you can select which properties should be included. An empty list may lead to an empty API response (except properties you can\'t exclude). You can\'t exclude these properties: `message`, `warning`, `cursor`, `abTestVariantID`, or any property added by setting `getRankingInfo` to true. Your search depends on the `hits` field. If you omit this field, searches won\'t return any results. Your UI might also depend on other properties, for example, for pagination. Before restricting the response size, check the impact on your search experience.
1356
1356
  */
1357
1357
  responseFields?: Array<string>;
1358
1358
  /**
@@ -1493,7 +1493,7 @@ type Consequence = {
1493
1493
  /**
1494
1494
  * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
1495
1495
  */
1496
- userData?: any | null;
1496
+ userData?: Record<string, unknown>;
1497
1497
  };
1498
1498
 
1499
1499
  type TimeRange = {
@@ -3025,7 +3025,7 @@ type ReplaceAllObjectsOptions = {
3025
3025
  scopes?: Array<ScopeType>;
3026
3026
  };
3027
3027
 
3028
- declare const apiClientVersion = "5.20.0";
3028
+ declare const apiClientVersion = "5.20.2";
3029
3029
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
3030
3030
  transporter: _algolia_client_common.Transporter;
3031
3031
  /**
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.20.0",
2
+ "version": "5.20.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -49,17 +49,17 @@
49
49
  "index.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@algolia/client-common": "5.20.0",
53
- "@algolia/requester-browser-xhr": "5.20.0",
54
- "@algolia/requester-fetch": "5.20.0",
55
- "@algolia/requester-node-http": "5.20.0"
52
+ "@algolia/client-common": "5.20.2",
53
+ "@algolia/requester-browser-xhr": "5.20.2",
54
+ "@algolia/requester-fetch": "5.20.2",
55
+ "@algolia/requester-node-http": "5.20.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "0.17.3",
59
- "@types/node": "22.10.7",
60
- "publint": "0.3.2",
61
- "rollup": "4.30.1",
62
- "tsup": "8.3.5",
59
+ "@types/node": "22.13.1",
60
+ "publint": "0.3.4",
61
+ "rollup": "4.34.6",
62
+ "tsup": "8.3.6",
63
63
  "typescript": "5.7.3"
64
64
  },
65
65
  "engines": {