@microsoft/1ds-post-js 4.4.0-nightlybeta3.2504-20 → 4.4.0-nightlybeta3.2505-12

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.
Files changed (50) hide show
  1. package/README.md +1 -0
  2. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2504-20.gbl.js → ms.post-4.4.0-nightlybeta3.2505-12.gbl.js} +173 -44
  3. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.gbl.js.map +1 -0
  4. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.gbl.min.js +7 -0
  5. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.integrity.json +46 -0
  7. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2504-20.js → ms.post-4.4.0-nightlybeta3.2505-12.js} +173 -44
  8. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.js.map +1 -0
  9. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.min.js +7 -0
  10. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2505-12.min.js.map +1 -0
  11. package/bundle/es5/ms.post.gbl.js +172 -43
  12. package/bundle/es5/ms.post.gbl.js.map +1 -1
  13. package/bundle/es5/ms.post.gbl.min.js +2 -2
  14. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.post.integrity.json +17 -17
  16. package/bundle/es5/ms.post.js +172 -43
  17. package/bundle/es5/ms.post.js.map +1 -1
  18. package/bundle/es5/ms.post.min.js +2 -2
  19. package/bundle/es5/ms.post.min.js.map +1 -1
  20. package/dist/es5/ms.post.js +170 -41
  21. package/dist/es5/ms.post.js.map +1 -1
  22. package/dist/es5/ms.post.min.js +2 -2
  23. package/dist/es5/ms.post.min.js.map +1 -1
  24. package/dist-es5/BatchNotificationActions.js +1 -1
  25. package/dist-es5/ClockSkewManager.js +1 -1
  26. package/dist-es5/DataModels.js +1 -1
  27. package/dist-es5/EventBatch.js +1 -1
  28. package/dist-es5/HttpManager.js +32 -17
  29. package/dist-es5/HttpManager.js.map +1 -1
  30. package/dist-es5/Index.js +1 -1
  31. package/dist-es5/InternalConstants.js +1 -1
  32. package/dist-es5/KillSwitch.js +1 -1
  33. package/dist-es5/PostChannel.js +10 -4
  34. package/dist-es5/PostChannel.js.map +1 -1
  35. package/dist-es5/RetryPolicy.js +1 -1
  36. package/dist-es5/Serializer.js +26 -4
  37. package/dist-es5/Serializer.js.map +1 -1
  38. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  39. package/dist-es5/__DynamicConstants.js +1 -1
  40. package/dist-es5/typings/XDomainRequest.js +1 -1
  41. package/package.json +2 -2
  42. package/types/1ds-post-js.d.ts +27 -1
  43. package/types/1ds-post-js.namespaced.d.ts +28 -32
  44. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.gbl.js.map +0 -1
  45. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.gbl.min.js +0 -7
  46. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.gbl.min.js.map +0 -1
  47. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.integrity.json +0 -46
  48. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.js.map +0 -1
  49. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.min.js +0 -7
  50. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2504-20.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2504-20
2
+ * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2505-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2504-20
2
+ * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2505-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2504-20
2
+ * 1DS JS SDK POST plugin, 4.4.0-nightlybeta3.2505-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/1ds-post-js",
3
- "version": "4.4.0-nightlybeta3.2504-20",
3
+ "version": "4.4.0-nightlybeta3.2505-12",
4
4
  "description": "Microsoft Application Insights JavaScript SDK - 1ds-post-channel-js",
5
5
  "author": "Microsoft Application Insights Team",
6
6
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@microsoft/applicationinsights-shims": "3.0.1",
29
29
  "@microsoft/dynamicproto-js": "^2.0.3",
30
- "@microsoft/1ds-core-js": "4.4.0-nightlybeta3.2504-20",
30
+ "@microsoft/1ds-core-js": "4.4.0-nightlybeta3.2505-12",
31
31
  "@nevware21/ts-utils": ">= 0.11.8 < 2.x",
32
32
  "@nevware21/ts-async": ">= 0.5.4 < 2.x"
33
33
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2504-20
2
+ * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2505-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -63,6 +63,19 @@ export declare interface IChannelConfiguration {
63
63
  * default transmission profile timers, autoFlushEventsLimit and eventsLimitInMem config values.
64
64
  */
65
65
  disableAutoBatchFlushLimit?: boolean;
66
+ /**
67
+ * [Optional] Sets the record and request size limit in bytes for serializer.
68
+ * Default for record size (sync) is 65000, record size (async) is 2000000.
69
+ * Default for request size (sync) is 65000, request size (async) is 3145728.
70
+ * @since 3.3.7
71
+ */
72
+ requestLimit?: IRequestSizeLimit;
73
+ /**
74
+ * [Optional] Sets the limit number of events per batch.
75
+ * Default is 500
76
+ * @since 3.3.7
77
+ */
78
+ maxEvtPerBatch?: number;
66
79
  /**
67
80
  * [Optional] The HTTP override that should be used to send requests, as an IXHROverride object.
68
81
  * By default during the unload of a page or if the event specifies that it wants to use sendBeacon() or sync fetch (with keep-alive),
@@ -266,6 +279,19 @@ export declare interface IPostChannel extends ITelemetryPlugin {
266
279
  addResponseHandler(responseHandler: (responseText: string) => void): IUnloadHook;
267
280
  }
268
281
 
282
+ export declare interface IRequestSizeLimit {
283
+ /**
284
+ * Request size limit in bytes for serializer.
285
+ * The value should be two numbers array, with format [async request size limit, sync request size limit]
286
+ */
287
+ requestLimit?: number[];
288
+ /**
289
+ * Record size limit in bytes for serializer.
290
+ * The value should be two numbers array, with format [async record size limit, sync record size limit]
291
+ */
292
+ recordLimit?: number[];
293
+ }
294
+
269
295
  export { IXHROverride }
270
296
 
271
297
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2504-20
2
+ * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2505-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -219,7 +219,9 @@ declare namespace oneDS {
219
219
  DefaultThrottleMsgKey = 109,
220
220
  CdnDeprecation = 110,
221
221
  SdkLdrUpdate = 111,
222
- InitPromiseException = 112
222
+ InitPromiseException = 112,
223
+ StatsBeatManagerException = 113,
224
+ StatsBeatException = 114
223
225
  }
224
226
 
225
227
  const enum eLoggingSeverity {
@@ -344,7 +346,6 @@ declare namespace oneDS {
344
346
  */
345
347
  addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
346
348
  pollInternalLogs?(eventName?: string): ITimerHandler;
347
- getStatsBeat?(statsBeatConfig?: IStatsBeatConfig): IStatsBeat;
348
349
  stopPollingInternalLogs?(): void;
349
350
  /**
350
351
  * Return a new instance of the IProcessTelemetryContext for processing events
@@ -536,6 +537,19 @@ declare namespace oneDS {
536
537
  * default transmission profile timers, autoFlushEventsLimit and eventsLimitInMem config values.
537
538
  */
538
539
  disableAutoBatchFlushLimit?: boolean;
540
+ /**
541
+ * [Optional] Sets the record and request size limit in bytes for serializer.
542
+ * Default for record size (sync) is 65000, record size (async) is 2000000.
543
+ * Default for request size (sync) is 65000, request size (async) is 3145728.
544
+ * @since 3.3.7
545
+ */
546
+ requestLimit?: IRequestSizeLimit;
547
+ /**
548
+ * [Optional] Sets the limit number of events per batch.
549
+ * Default is 500
550
+ * @since 3.3.7
551
+ */
552
+ maxEvtPerBatch?: number;
539
553
  /**
540
554
  * [Optional] The HTTP override that should be used to send requests, as an IXHROverride object.
541
555
  * By default during the unload of a page or if the event specifies that it wants to use sendBeacon() or sync fetch (with keep-alive),
@@ -1000,11 +1014,6 @@ declare namespace oneDS {
1000
1014
  * @since 3.3.2
1001
1015
  */
1002
1016
  expCfg?: IExceptionConfig;
1003
- /**
1004
- * [Optional] Internal SDK configuration for developers
1005
- * @internal
1006
- */
1007
- _sdk?: IInternalSdkConfiguration;
1008
1017
  }
1009
1018
 
1010
1019
  interface ICookieMgr {
@@ -1461,18 +1470,6 @@ declare namespace oneDS {
1461
1470
  createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
1462
1471
  }
1463
1472
 
1464
- /**
1465
- * Internal SDK configuration options
1466
- * @internal
1467
- */
1468
- interface IInternalSdkConfiguration {
1469
- /**
1470
- * [Optional] Enable Internal StatsBeat
1471
- * @internal
1472
- */
1473
- stats?: boolean;
1474
- }
1475
-
1476
1473
  /**
1477
1474
  * An alternate interface which provides automatic removal during unloading of the component
1478
1475
  */
@@ -2084,18 +2081,17 @@ declare namespace oneDS {
2084
2081
  getProperty: (key: string) => string;
2085
2082
  }
2086
2083
 
2087
- interface IStatsBeat {
2088
- initialize(core: IAppInsightsCore, statsBeatConfig: IStatsBeatConfig): void;
2089
- isInitialized(): boolean;
2090
- count(status: number, payloadData: IPayloadData, endpoint: string): void;
2091
- countException(endpoint: string, exceptionType: string): void;
2092
- getEndpoint(): string;
2093
- }
2094
-
2095
- interface IStatsBeatConfig {
2096
- ikey: string;
2097
- endpoint: string;
2098
- version?: string;
2084
+ interface IRequestSizeLimit {
2085
+ /**
2086
+ * Request size limit in bytes for serializer.
2087
+ * The value should be two numbers array, with format [async request size limit, sync request size limit]
2088
+ */
2089
+ requestLimit?: number[];
2090
+ /**
2091
+ * Record size limit in bytes for serializer.
2092
+ * The value should be two numbers array, with format [async record size limit, sync record size limit]
2093
+ */
2094
+ recordLimit?: number[];
2099
2095
  }
2100
2096
 
2101
2097
  interface ITelemetryInitializerHandler extends ILegacyUnloadHook {