@algolia/client-search 5.47.0 → 5.48.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 +4 -4
- package/dist/browser.d.ts +2 -2
- package/dist/builds/browser.js +2 -2
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +2 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +2 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +2 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/src/searchClient.cjs +1 -1
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +1 -1
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +2 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -40,11 +40,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
40
40
|
### With a package manager
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
yarn add @algolia/client-search@5.
|
|
43
|
+
yarn add @algolia/client-search@5.48.0
|
|
44
44
|
# or
|
|
45
|
-
npm install @algolia/client-search@5.
|
|
45
|
+
npm install @algolia/client-search@5.48.0
|
|
46
46
|
# or
|
|
47
|
-
pnpm add @algolia/client-search@5.
|
|
47
|
+
pnpm add @algolia/client-search@5.48.0
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Without a package manager
|
|
@@ -52,7 +52,7 @@ pnpm add @algolia/client-search@5.47.0
|
|
|
52
52
|
Add the following JavaScript snippet to the <head> of your website:
|
|
53
53
|
|
|
54
54
|
```html
|
|
55
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/client-search@5.
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/client-search@5.48.0/dist/builds/browser.umd.js"></script>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -1056,7 +1056,7 @@ type InsideBoundingBox = string | Array<Array<number>>;
|
|
|
1056
1056
|
type NumericFilters = Array<NumericFilters> | string;
|
|
1057
1057
|
|
|
1058
1058
|
/**
|
|
1059
|
-
* Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters
|
|
1059
|
+
* Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters are applied _after_ sort-by attributes. - Optional filters are applied _before_ custom ranking attributes (in the default [ranking](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria)). - Optional filters don\'t work with numeric attributes. - On virtual replicas, optional filters are applied _after_ the replica\'s [relevant sort](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort).
|
|
1060
1060
|
*/
|
|
1061
1061
|
type OptionalFilters = Array<OptionalFilters> | string;
|
|
1062
1062
|
|
|
@@ -3054,7 +3054,7 @@ type AccountCopyIndexOptions = {
|
|
|
3054
3054
|
batchSize?: number | undefined;
|
|
3055
3055
|
};
|
|
3056
3056
|
|
|
3057
|
-
declare const apiClientVersion = "5.
|
|
3057
|
+
declare const apiClientVersion = "5.48.0";
|
|
3058
3058
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3059
3059
|
transporter: _algolia_client_common.Transporter;
|
|
3060
3060
|
/**
|
package/dist/builds/browser.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// builds/browser.ts
|
|
2
|
-
import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
3
2
|
import {
|
|
4
3
|
createBrowserLocalStorageCache,
|
|
5
4
|
createFallbackableCache,
|
|
6
5
|
createMemoryCache,
|
|
7
6
|
createNullLogger
|
|
8
7
|
} from "@algolia/client-common";
|
|
8
|
+
import { createXhrRequester } from "@algolia/requester-browser-xhr";
|
|
9
9
|
|
|
10
10
|
// src/searchClient.ts
|
|
11
11
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getAlgoliaAgent,
|
|
17
17
|
shuffle
|
|
18
18
|
} from "@algolia/client-common";
|
|
19
|
-
var apiClientVersion = "5.
|
|
19
|
+
var apiClientVersion = "5.48.0";
|
|
20
20
|
function getDefaultHosts(appId) {
|
|
21
21
|
return [
|
|
22
22
|
{
|