@ht-sdks/events-sdk-js-browser 1.3.2 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ht-sdks/events-sdk-js-browser",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ht-sdks/events-sdk-js-mono",
@@ -316,8 +316,7 @@ const defaultHightouchIntegration: HightouchioSettings = {
316
316
  addBundledMetadata: false,
317
317
  maybeBundledConfigIds: {},
318
318
  deliveryStrategy: {
319
- strategy: 'batching',
320
- config: { timeout: 1000, size: 10 }, // 1 second or 10 items
319
+ strategy: 'standard',
321
320
  },
322
321
  }
323
322
 
@@ -353,13 +352,14 @@ async function loadAnalytics(
353
352
  ...(settings.writeKey ? { apiKey: settings.writeKey } : {}),
354
353
  ...(options.apiHost ? { apiHost: options.apiHost } : {}),
355
354
  ...(options.protocol ? { protocol: options.protocol } : {}),
356
- // defaultHightouchIntegration defaults to 'batching'
357
- // allow the options override to turn it off
358
- ...(options.batching == false
355
+ // defaultHightouchIntegration defaults to 'standard'
356
+ // allow a simple options override to turn on 'batching'
357
+ ...(options.batching == true
359
358
  ? {
360
359
  deliveryStrategy: {
361
- strategy: 'standard',
362
- },
360
+ strategy: 'batching',
361
+ config: { timeout: 1000, size: 10 }, // 1 second or 10 items
362
+ } as HightouchioSettings['deliveryStrategy'],
363
363
  }
364
364
  : {}),
365
365
  }
@@ -153,7 +153,7 @@ export interface InitOptions {
153
153
  */
154
154
  apiHost?: string // Defaults to us-east-1.hightouch-events.com
155
155
  protocol?: string // Defaults to https
156
- batching?: boolean // Defaults to true
156
+ batching?: boolean // Defaults to false
157
157
  }
158
158
 
159
159
  /* analytics-classic stubs */
@@ -1,2 +1,2 @@
1
1
  // This file is generated.
2
- export const version = '1.3.2'
2
+ export const version = '1.4.0'