Skip to content

Commit

Permalink
[Release] Increase version to 3.0.0 (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev committed Apr 12, 2023
1 parent cd07499 commit 053a8a0
Show file tree
Hide file tree
Showing 27 changed files with 151 additions and 120 deletions.
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 = "2.8.12";
var defaultVer = "3.0.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 = 47;
private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js";
// Automatically updated by version scripts
private readonly currentVer = "2.8.12";
private readonly currentVer = "3.0.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 = "2.8.12";
private readonly currentVer = "3.0.0";

public testInitialize() {
}
Expand Down
14 changes: 7 additions & 7 deletions AISKU/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/applicationinsights-web",
"version": "2.8.12",
"version": "3.0.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 @@ -69,12 +69,12 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-analytics-js": "2.8.12",
"@microsoft/applicationinsights-channel-js": "2.8.12",
"@microsoft/applicationinsights-common": "2.8.12",
"@microsoft/applicationinsights-core-js": "2.8.12",
"@microsoft/applicationinsights-dependencies-js": "2.8.12",
"@microsoft/applicationinsights-properties-js": "2.8.12",
"@microsoft/applicationinsights-analytics-js": "3.0.0",
"@microsoft/applicationinsights-channel-js": "3.0.0",
"@microsoft/applicationinsights-common": "3.0.0",
"@microsoft/applicationinsights-core-js": "3.0.0",
"@microsoft/applicationinsights-dependencies-js": "3.0.0",
"@microsoft/applicationinsights-properties-js": "3.0.0",
"@nevware21/ts-utils": ">= 0.9.4 < 2.x"
},
"license": "MIT"
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 = 32;
private readonly MAX_BUNDLE_DEFLATE_SIZE = 32;
private readonly rawFilePath = "../dist/es5/applicationinsights-web-basic.min.js";
private readonly currentVer = "2.8.12";
private readonly currentVer = "3.0.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": "2.8.12",
"version": "3.0.0",
"description": "Microsoft Application Insights Javascript SDK core and channel",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"author": "Microsoft Application Insights Team",
Expand Down Expand Up @@ -54,9 +54,9 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-common": "2.8.12",
"@microsoft/applicationinsights-channel-js": "2.8.12",
"@microsoft/applicationinsights-core-js": "2.8.12",
"@microsoft/applicationinsights-common": "3.0.0",
"@microsoft/applicationinsights-channel-js": "3.0.0",
"@microsoft/applicationinsights-core-js": "3.0.0",
"@nevware21/ts-utils": ">= 0.9.4 < 2.x"
},
"license": "MIT"
Expand Down
27 changes: 27 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

> 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.0 (Apr 12th, 2023)

#### Major release with breaking changes from v2.x see [v3.x Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrade/v3_BreakingChanges.html) for details.

Maintained from the `main` branch, v2.x is in maintenance mode on the `master` branch

### Changelog

- All code from 2.8.12 has been merged into the `main` branch and therefore this release

#### Major Changes

- Removed ES3 (IE8) Support
- Enabled dynamic config changes after initialization
- #1427 Dynamically updating config (for extensions in my case)

- Too many individual commits to include as most revolve around the breaking changes and enabling dynamic configuration support for each extension
- All Extensions now **share** the same configuration object `core.config` in previous releases each component maintained their own copy with their own default values, now all defaults and configuration values are exposed on the shared config.
- By default the config object passed in during initialization is NOT the same object as that used as the shared config. Any previous assumptions around this being the same object will now be broken as this was a previously unsupported scenario.
- All properties of the config object are now using get/set functions (via Object.defineProperty) to allow listeners to be registered (`core.onCfgChange` and internally `onConfigChange`) so that the callback function will be called if any referenced config property is changed. Yes, this means you can register your own configuration listener via `core.onCfgChange` see the [AISku Manual Test](./AISKU/Tests/Manual//HelloWorld.html) for an example.
- All properties present during initialization are converted into dynamic properties and may be monitored, properties added "after" creation (initialization) are not. This is to continue to support IE which does not support `Proxy` implementation which also means we are not using the `Proxy` class.
- Extensions are now responsible for listening and responding to the configuration changes that they want to support
- Updating the config `extensions` and `channels` is NOT supported, you must use the individual plugin add / remove functions if you want to dynamically add / remove extensions / channels
- Support for parallel channels was removed from the Core and SKU's and extracted to the new `TeeChannel`, if you require this support you will need to use npm and include this module.
- v2.x Extension support.
- While the basic API and support for Backward compatibility for the v2.x extension (plugin) API was maintained, due to the breaking changes (specifically the removal of the namespaced helpers) this will only support self contained components (without recompiling). Any npm module that attempts to import and use a removed helper function will potentially break and will need to be updated to use the newer or replacement helper functions (see the v3.x Breaking Changes for details), if you find an issue and are not able to work around please [raise an issue](https://github.com/microsoft/ApplicationInsights-JS/issues).

## 2.8.12 (Apr, 11th, 2023)

### Changelog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ export class SenderTests extends AITestClass {
QUnit.assert.ok(baseData.ver);
QUnit.assert.equal(2, baseData.ver);

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

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": "2.8.12",
"version": "3.0.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 @@ -51,8 +51,8 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "2.8.12",
"@microsoft/applicationinsights-common": "2.8.12",
"@microsoft/applicationinsights-core-js": "3.0.0",
"@microsoft/applicationinsights-common": "3.0.0",
"@nevware21/ts-utils": ">= 0.9.4 < 2.x"
},
"license": "MIT"
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": "2.8.12",
"version": "3.0.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 @@ -52,8 +52,8 @@
"dependencies": {
"@microsoft/dynamicproto-js": "^2.0.2",
"@microsoft/applicationinsights-shims": "3.0.1",
"@microsoft/applicationinsights-core-js": "2.8.12",
"@microsoft/applicationinsights-common": "2.8.12",
"@microsoft/applicationinsights-core-js": "3.0.0",
"@microsoft/applicationinsights-common": "3.0.0",
"@nevware21/ts-utils": ">= 0.9.4 < 2.x"
},
"license": "MIT"
Expand Down
Loading

0 comments on commit 053a8a0

Please sign in to comment.