@algolia/client-search 5.4.0 → 5.4.3

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.
@@ -116,4 +116,9 @@ export type BaseSearchResponse = Record<string, any> & {
116
116
  * Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
117
117
  */
118
118
  queryID?: string;
119
+
120
+ /**
121
+ * Whether automatic events collection is enabled for the application.
122
+ */
123
+ _automaticInsights?: boolean;
119
124
  };
@@ -2,8 +2,4 @@
2
2
 
3
3
  import type { HighlightResultOption } from './highlightResultOption';
4
4
 
5
- export type HighlightResult =
6
- | HighlightResultOption
7
- | HighlightResultOption[]
8
- | Record<string, HighlightResultOption>
9
- | { [key: string]: HighlightResult };
5
+ export type HighlightResult = HighlightResult[] | HighlightResultOption | { [key: string]: HighlightResult };
@@ -4,20 +4,20 @@ export type SearchPagination = {
4
4
  /**
5
5
  * Page of search results to retrieve.
6
6
  */
7
- page: number;
7
+ page?: number;
8
8
 
9
9
  /**
10
10
  * Number of results (hits).
11
11
  */
12
- nbHits: number;
12
+ nbHits?: number;
13
13
 
14
14
  /**
15
15
  * Number of pages of results.
16
16
  */
17
- nbPages: number;
17
+ nbPages?: number;
18
18
 
19
19
  /**
20
20
  * Number of hits per page.
21
21
  */
22
- hitsPerPage: number;
22
+ hitsPerPage?: number;
23
23
  };
@@ -2,8 +2,4 @@
2
2
 
3
3
  import type { SnippetResultOption } from './snippetResultOption';
4
4
 
5
- export type SnippetResult =
6
- | Record<string, SnippetResultOption>
7
- | SnippetResultOption
8
- | SnippetResultOption[]
9
- | { [key: string]: SnippetResult };
5
+ export type SnippetResult = SnippetResult[] | SnippetResultOption | { [key: string]: SnippetResult };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.4.0",
2
+ "version": "5.4.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -48,18 +48,18 @@
48
48
  "index.d.ts"
49
49
  ],
50
50
  "dependencies": {
51
- "@algolia/client-common": "5.4.0",
52
- "@algolia/requester-browser-xhr": "5.4.0",
53
- "@algolia/requester-fetch": "5.4.0",
54
- "@algolia/requester-node-http": "5.4.0"
51
+ "@algolia/client-common": "5.4.3",
52
+ "@algolia/requester-browser-xhr": "5.4.3",
53
+ "@algolia/requester-fetch": "5.4.3",
54
+ "@algolia/requester-node-http": "5.4.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@arethetypeswrong/cli": "0.15.4",
58
- "@types/node": "22.5.1",
59
- "publint": "0.2.10",
60
- "rollup": "4.21.2",
61
- "tsup": "8.2.4",
62
- "typescript": "5.5.4"
57
+ "@arethetypeswrong/cli": "0.16.2",
58
+ "@types/node": "22.5.5",
59
+ "publint": "0.2.11",
60
+ "rollup": "4.21.3",
61
+ "tsup": "8.3.0",
62
+ "typescript": "5.6.2"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">= 14.0.0"