Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Main] [Release] Increase version to 3.1.0 #2273

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AISKU/README.md
Original file line number Diff line number Diff line change
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.1.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.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.8: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.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.7: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.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.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)
Expand Down
2 changes: 1 addition & 1 deletion AISKU/Tests/Perf/src/AISKUPerf.ts
Original file line number Diff line number Diff line change
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.8";
var defaultVer = "3.1.0";
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class AISKUSizeCheck extends AITestClass {
private readonly MAX_BUNDLE_DEFLATE_SIZE = 55;
private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js";
// Automatically updated by version scripts
private readonly currentVer = "3.0.8";
private readonly currentVer = "3.1.0";
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const enum CdnFormat {

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

public testInitialize() {
}
Expand Down
6 changes: 3 additions & 3 deletions AISKU/Tests/es6-module-type-check/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/applicationinsights-test-module-type-check",
"author": "Microsoft Application Insights Team and Contributors",
"version": "3.0.8",
"version": "3.1.0",
"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.8",
"@microsoft/applicationinsights-web": "3.0.8"
"@microsoft/applicationinsights-common": "3.1.0",
"@microsoft/applicationinsights-web": "3.1.0"
}
}
16 changes: 8 additions & 8 deletions AISKU/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-web",
"version": "3.0.8",
"version": "3.1.0",
"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.3",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-analytics-js": "3.0.8",
"@microsoft/applicationinsights-channel-js": "3.0.8",
"@microsoft/applicationinsights-cfgsync-js": "3.0.8",
"@microsoft/applicationinsights-common": "3.0.8",
"@microsoft/applicationinsights-core-js": "3.0.8",
"@microsoft/applicationinsights-dependencies-js": "3.0.8",
"@microsoft/applicationinsights-properties-js": "3.0.8",
"@microsoft/applicationinsights-analytics-js": "3.1.0",
"@microsoft/applicationinsights-channel-js": "3.1.0",
"@microsoft/applicationinsights-cfgsync-js": "3.1.0",
"@microsoft/applicationinsights-common": "3.1.0",
"@microsoft/applicationinsights-core-js": "3.1.0",
"@microsoft/applicationinsights-dependencies-js": "3.1.0",
"@microsoft/applicationinsights-properties-js": "3.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 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
Original file line number Diff line number Diff line change
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.8";
private readonly currentVer = "3.1.0";
private readonly prodFilePath = `../browser/es5/aib.${this.currentVer[0]}.min.js`;

public testInitialize() {
Expand Down
8 changes: 4 additions & 4 deletions AISKULight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-web-basic",
"version": "3.0.8",
"version": "3.1.0",
"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.3",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-common": "3.0.8",
"@microsoft/applicationinsights-channel-js": "3.0.8",
"@microsoft/applicationinsights-core-js": "3.0.8",
"@microsoft/applicationinsights-common": "3.1.0",
"@microsoft/applicationinsights-channel-js": "3.1.0",
"@microsoft/applicationinsights-core-js": "3.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
60 changes: 57 additions & 3 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,79 @@

> 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.1.0 (Feb ??, 2024)
## 3.1.0 (Feb 14th, 2024)

### Potential break change
### Interface changes / Breaking changes

This release includes support for a new Offline Channel which has changed the `IChannelsControls` interface to include additional support for the new `offline` channel. This change is to support the new `offline` channel and is a breaking change for any custom channels that implement the `IChannelsControls` interface. If you have a custom channel that implements the `IChannelsControls` interface you will need to update your implementation to include the new `offline` channel.

### Configuration default changes

As this is a minor version bump we have also change some default values for the following configuration options:

- `disableUserInitMessage` is now `true` by default to disable the user init message.

### Potential breaking change

This release contains a potential break change with 'tags' type [change](https://github.com/microsoft/ApplicationInsights-JS/pull/2269)

While the interface changes are breaking changes, the changes are not expected to affect the majority of users as when the code attempted to serialize the `tags` property it would have failed due to the `Tags[]` type being used instead of the correct `Tags` type.

#### Old

```ts
tags?: Tags & Tags[];
```

#### New

```ts
tags?: Tags;

```

### Changelog
#### New Offline Channel

This release also includes the new `offline` channel which is a new channel that is designed to support offline scenarios. The `offline` channel is designed to store telemetry items in local storage and then send them when the user comes back online.
To take full advantage of the initial version you will need to implement your own IOfflineListener to handle situations where you may have "network" connectivity but not internet access. As the `navigator.onLine` property if available will only tell you if you have network connectivity and not internet access.

### Changelog

- #2186 [main] offlineListener preparation
- #2241 [Main][Task]26451789: Add Offline Support
- #2259 [Main][Task]26694421: Add Offline Support Publish Group
- #2267 [Main][Task]26681220: Better handle timers in offline channel
- #2028 [BUG] AI (Internal): 72 tracking
- Sets the default value for the `disableUserInitMessage` to `true` (was previously false since adding)
- #2193 [main] Add extra config in sender to let users define transports type
- #2200 [main] [doc] Highlight an issue with the default UMD module format when loading from the CDN into an environment that may have require.js
- #2208 [Main][Task]26079397: Add disableBeaconSplit sender config and fix potential duplicated events during unload/fallback sender
- #2236 [Main][Task]26396663: Set default disableBeaconSplit to true
- #2204 [BUG] Beacon sender reports error for success when diagnostics are enabled
- #2214 [main] Merge Release-3.0 to main
- #2221 [main] Fixup the ci.yml to address internal hash changes between different node versions
- #2216 [Main][Task]26138416: Fix FetchKeepAliveSender send duplicated events during unload
- #2228 [main] minor release preparation
- #2229 [main] [doc] add requireJs problem in SdkLoadFailure.md
- #2132 [BUG] Submitting NaN via trackEvent results in HTTP 400 Error Code
- #2238 [Main] Merge release-3.0 to main
- #2244 Internal Task: Update npm pack sequence
- #2249 [main][1ds] Enhance Retry Policy Testing for Alignment with Collector Policy
- #2245 [main] [snippet update] add functions to set configs of snippet
- #2250 [main] [doc] minor comment update for avoidOptions
- #2251 [Main][1DS][Post] Add support for the ext.metadata to NOT be included
- #2253 [Main] Update Tests to support upcoming change in nevware21/tsutils dumpObj to better support JSON stringify and handle PURE comments
- #2255 [main] #2225 pass customer exception id into telemetry
- #2247 [main] [1ds-post] export add header func for auth-plugin to consume
- #2209 [BUG] stopTrackEvent requires property values to be strings
- #2268 [main] Add example of how to use stopTrackEvent #2209
- #2270 [main] correct types define for stopTrackEvent and stopTrackPage for #2209
- #2258 [BUG] ITelemetryItem uses intersection type instead of union type for tags property
- #2269 [main] **[Possible Break]** Removed Tags[] from ITelemetryItem as this was breaking later versions of TypeScript by using the intersection type instead of union type for tags property
- #2272 [release 3.0.8] Fix channel test
- #2271 Cherry-pick from release-3.0 branch
- [Release-3.0] [Release] Increase version to 3.0.8 ([Release-3.0] [Release] Increase version to 3.0.8 #2264)
- [Release-3.0] Update namespaced types (DTS) generation to include referenced bundles


## 3.0.8 (Feb, 7th, 2024)
Expand Down
4 changes: 2 additions & 2 deletions channels/1ds-post-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/1ds-post-js",
"version": "4.0.6",
"version": "4.1.0",
"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.3",
"@microsoft/1ds-core-js": "4.0.6",
"@microsoft/1ds-core-js": "4.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
6 changes: 3 additions & 3 deletions channels/applicationinsights-channel-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-channel-js",
"version": "3.0.8",
"version": "3.1.0",
"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.3",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "3.0.8",
"@microsoft/applicationinsights-common": "3.0.8",
"@microsoft/applicationinsights-core-js": "3.1.0",
"@microsoft/applicationinsights-common": "3.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
6 changes: 3 additions & 3 deletions channels/offline-channel-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-offlinechannel-js",
"version": "0.0.1",
"version": "0.1.0",
"description": "Microsoft Application Insights JavaScript SDK Offline Channel",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -28,8 +28,8 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.3",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "3.0.8",
"@microsoft/applicationinsights-common": "3.0.8",
"@microsoft/applicationinsights-core-js": "3.1.0",
"@microsoft/applicationinsights-common": "3.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
6 changes: 3 additions & 3 deletions channels/tee-channel-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-teechannel-js",
"version": "3.0.8",
"version": "3.1.0",
"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.3",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "3.0.8",
"@microsoft/applicationinsights-common": "3.0.8",
"@microsoft/applicationinsights-core-js": "3.1.0",
"@microsoft/applicationinsights-common": "3.1.0",
"@nevware21/ts-utils": ">= 0.10.5 < 2.x",
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
},
Expand Down
Loading
Loading