@algolia/ingestion 1.49.1 → 1.50.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 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/ingestion@1.49.1
43
+ yarn add @algolia/ingestion@1.50.0
44
44
  # or
45
- npm install @algolia/ingestion@1.49.1
45
+ npm install @algolia/ingestion@1.50.0
46
46
  # or
47
- pnpm add @algolia/ingestion@1.49.1
47
+ pnpm add @algolia/ingestion@1.50.0
48
48
  ```
49
49
 
50
50
  ### Without a package manager
@@ -52,7 +52,7 @@ pnpm add @algolia/ingestion@1.49.1
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/ingestion@1.49.1/dist/builds/browser.umd.js"></script>
55
+ <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.50.0/dist/builds/browser.umd.js"></script>
56
56
  ```
57
57
 
58
58
  ### Usage
package/dist/browser.d.ts CHANGED
@@ -2501,7 +2501,7 @@ type ChunkedPushOptions = {
2501
2501
  objects: Array<Record<string, unknown>>;
2502
2502
  };
2503
2503
 
2504
- declare const apiClientVersion = "1.49.1";
2504
+ declare const apiClientVersion = "1.50.0";
2505
2505
  declare const REGIONS: readonly ["eu", "us"];
2506
2506
  type Region = (typeof REGIONS)[number];
2507
2507
  type RegionOptions = {
@@ -9,7 +9,7 @@ import { createXhrRequester } from "@algolia/requester-browser-xhr";
9
9
 
10
10
  // src/ingestionClient.ts
11
11
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
12
- var apiClientVersion = "1.49.1";
12
+ var apiClientVersion = "1.50.0";
13
13
  var REGIONS = ["eu", "us"];
14
14
  function getDefaultHosts(region) {
15
15
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -2186,6 +2186,7 @@ function ingestionClient(appId, apiKey, region, options) {
2186
2186
  if (!region || region && (typeof region !== "string" || !REGIONS.includes(region))) {
2187
2187
  throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(", ")}`);
2188
2188
  }
2189
+ const { compression: _compression, ...browserOptions } = options || {};
2189
2190
  return createIngestionClient({
2190
2191
  appId,
2191
2192
  apiKey,
@@ -2204,7 +2205,7 @@ function ingestionClient(appId, apiKey, region, options) {
2204
2205
  hostsCache: createFallbackableCache({
2205
2206
  caches: [createBrowserLocalStorageCache({ key: `${apiClientVersion}-${appId}` }), createMemoryCache()]
2206
2207
  }),
2207
- ...options
2208
+ ...browserOptions
2208
2209
  });
2209
2210
  }
2210
2211
  export {