Skip to content

Commit

Permalink
[Main] Merge Release-3.0 to main (#2214)
Browse files Browse the repository at this point in the history
- [Release-3.0][Release] Increase version to 3.0.6 (#2211)
- Fixup v3.0.6 release notes
  • Loading branch information
MSNev committed Dec 8, 2023
1 parent 1859bc1 commit 7f804d8
Show file tree
Hide file tree
Showing 36 changed files with 383 additions and 371 deletions.
1 change: 1 addition & 0 deletions AISKU/README.md
Expand Up @@ -34,6 +34,7 @@ See [Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrad
| Version | Full Size | Raw Minified | GZip Size
|---------|-----------|--------------|-------------
| [<nightly3>](https://github.com/microsoft/ApplicationInsights-JS/tree/main/AISKU) | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg?compression=gzip&softmax=30000&max=35000)
| 3.0.6: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?compression=gzip&softmax=30000&max=35000)
| 3.0.5: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?compression=gzip&softmax=30000&max=35000)
| 3.0.4: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg?compression=gzip&softmax=30000&max=35000)
| 3.0.3: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.svg?compression=gzip&softmax=30000&max=35000)
Expand Down
2 changes: 1 addition & 1 deletion AISKU/Tests/Perf/src/AISKUPerf.ts
Expand Up @@ -19,7 +19,7 @@ export class AppInsightsInitPerfTestClass {
* should update version after new release
* version with doperf(): after 2.5.6
* */
var defaultVer = "3.0.5";
var defaultVer = "3.0.6";
this.version = ver? ver:this._getQueryParameterVersion(defaultVer);
this.perfEventsBuffer = [];
this.perfEventWaitBuffer = [];
Expand Down
2 changes: 1 addition & 1 deletion AISKU/Tests/Unit/src/AISKUSize.Tests.ts
Expand Up @@ -11,7 +11,7 @@ export class AISKUSizeCheck extends AITestClass {
private readonly MAX_BUNDLE_DEFLATE_SIZE = 54;
private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js";
// Automatically updated by version scripts
private readonly currentVer = "3.0.5";
private readonly currentVer = "3.0.6";
private readonly prodFilePath = `../browser/es5/ai.${this.currentVer[0]}.min.js`;

public testInitialize() {
Expand Down
2 changes: 1 addition & 1 deletion AISKU/Tests/Unit/src/CdnPackaging.tests.ts
Expand Up @@ -16,7 +16,7 @@ const enum CdnFormat {

export class CdnPackagingChecks extends AITestClass {
// Automatically updated by version scripts
private readonly currentVer = "3.0.5";
private readonly currentVer = "3.0.6";

public testInitialize() {
}
Expand Down
6 changes: 3 additions & 3 deletions AISKU/Tests/es6-module-type-check/package.json
@@ -1,7 +1,7 @@
{
"name": "@microsoft/applicationinsights-test-module-type-check",
"author": "Microsoft Application Insights Team and Contributors",
"version": "3.0.5",
"version": "3.0.6",
"description": "Microsoft Application Insights ES6 Module and Type check Example",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"keywords": [
Expand Down Expand Up @@ -32,7 +32,7 @@
"tslib": "*"
},
"dependencies": {
"@microsoft/applicationinsights-common": "3.0.5",
"@microsoft/applicationinsights-web": "3.0.5"
"@microsoft/applicationinsights-common": "3.0.6",
"@microsoft/applicationinsights-web": "3.0.6"
}
}
16 changes: 8 additions & 8 deletions AISKU/package.json
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-web",
"version": "3.0.5",
"version": "3.0.6",
"description": "Microsoft Application Insights JavaScript SDK - Web",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -63,13 +63,13 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-analytics-js": "3.0.5",
"@microsoft/applicationinsights-channel-js": "3.0.5",
"@microsoft/applicationinsights-cfgsync-js": "3.0.5",
"@microsoft/applicationinsights-common": "3.0.5",
"@microsoft/applicationinsights-core-js": "3.0.5",
"@microsoft/applicationinsights-dependencies-js": "3.0.5",
"@microsoft/applicationinsights-properties-js": "3.0.5",
"@microsoft/applicationinsights-analytics-js": "3.0.6",
"@microsoft/applicationinsights-channel-js": "3.0.6",
"@microsoft/applicationinsights-cfgsync-js": "3.0.6",
"@microsoft/applicationinsights-common": "3.0.6",
"@microsoft/applicationinsights-core-js": "3.0.6",
"@microsoft/applicationinsights-dependencies-js": "3.0.6",
"@microsoft/applicationinsights-properties-js": "3.0.6",
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
2 changes: 1 addition & 1 deletion AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts
Expand Up @@ -7,7 +7,7 @@ export class AISKULightSizeCheck extends AITestClass {
private readonly MAX_RAW_DEFLATE_SIZE = 34;
private readonly MAX_BUNDLE_DEFLATE_SIZE = 34;
private readonly rawFilePath = "../dist/es5/applicationinsights-web-basic.min.js";
private readonly currentVer = "3.0.5";
private readonly currentVer = "3.0.6";
private readonly prodFilePath = `../browser/es5/aib.${this.currentVer[0]}.min.js`;

public testInitialize() {
Expand Down
8 changes: 4 additions & 4 deletions AISKULight/package.json
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-web-basic",
"version": "3.0.5",
"version": "3.0.6",
"description": "Microsoft Application Insights JavaScript SDK - Web Basic",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -57,9 +57,9 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-common": "3.0.5",
"@microsoft/applicationinsights-channel-js": "3.0.5",
"@microsoft/applicationinsights-core-js": "3.0.5",
"@microsoft/applicationinsights-common": "3.0.6",
"@microsoft/applicationinsights-channel-js": "3.0.6",
"@microsoft/applicationinsights-core-js": "3.0.6",
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Expand Up @@ -2,6 +2,17 @@

> Note: ES3/IE8 compatibility will be removed in the future v3.x.x releases (scheduled for mid-late 2022), so if you need to retain ES3 compatibility you will need to remain on the 2.x.x versions of the SDK or your runtime will need install polyfill's to your ES3 environment before loading / initializing the SDK.
## 3.0.6 (Dec 7th, 2023)

This release fixes an issue with the `sendBeacon` usage during page unload, where the SDK was not correctly splitting the payload into multiple requests when the payload size exceeded the maximum allowed size for a single request. This issue was introduced in the 3.0.4 release and only affects the `sendBeacon` usage during page unload, it does not affect the `fetch` usage during page unload.

### Changelog

- #2195 [BUG] Beacon sender causes flood of thousands of requests on page unload
- #2201 [BUG] applicationinsights.azure.com/v2/track making hundreds of thousands of requests when third party cookies are disabled
- #2205 [BUG] Duplicate customEvent entries
- #2204 [BUG] Beacon sender reports error for success when diagnostics are enabled

## 3.0.5 (Nov 1st, 2023)

### Changelog
Expand Down
4 changes: 2 additions & 2 deletions channels/1ds-post-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@microsoft/1ds-post-js",
"version": "4.0.4",
"version": "4.0.5",
"description": "Microsoft Application Insights JavaScript SDK - 1ds-post-channel-js",
"author": "Microsoft Application Insights Team",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
Expand All @@ -27,7 +27,7 @@
"dependencies": {
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/1ds-core-js": "4.0.4",
"@microsoft/1ds-core-js": "4.0.5",
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
Expand Up @@ -2249,7 +2249,7 @@ export class SenderTests extends AITestClass {
QUnit.assert.ok(baseData.ver);
QUnit.assert.equal(2, baseData.ver);

QUnit.assert.equal("javascript:3.0.5", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
QUnit.assert.equal("javascript:3.0.6", appInsightsEnvelope.tags["ai.internal.sdkVersion"]);
}
})

Expand Down
6 changes: 3 additions & 3 deletions channels/applicationinsights-channel-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-channel-js",
"version": "3.0.5",
"version": "3.0.6",
"description": "Microsoft Application Insights JavaScript SDK Channel",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -53,8 +53,8 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "3.0.5",
"@microsoft/applicationinsights-common": "3.0.5",
"@microsoft/applicationinsights-core-js": "3.0.6",
"@microsoft/applicationinsights-common": "3.0.6",
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
6 changes: 3 additions & 3 deletions channels/tee-channel-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-teechannel-js",
"version": "3.0.5",
"version": "3.0.6",
"description": "Microsoft Application Insights JavaScript SDK Tee Channel",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -54,8 +54,8 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "3.0.5",
"@microsoft/applicationinsights-common": "3.0.5",
"@microsoft/applicationinsights-core-js": "3.0.6",
"@microsoft/applicationinsights-common": "3.0.6",
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down

0 comments on commit 7f804d8

Please sign in to comment.