Skip to content

Commit 3f1f521

Browse files
authored
Merge pull request TrilonIO#11 from viperguynaz/master
Bump to 2.0.0 with bump to NG4
2 parents af21bdd + f8f846a commit 3f1f521

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 2.0.0 - NG4
4+
- Updated to Angular 4.0 (use version 1.0.0 for Angular 2.x)
5+
36
## 1.0.0 - Live!
47
- Added @types/applicationinsights-js types
58

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ export class YourRootModule { }
3838
Through out your application you can now use the AppInsightsService class to fire off AppInsights functionality.
3939

4040
```typescript
41+
import { AppInsightsService } from '@markpieszak/ng-application-insights';
42+
4143
export class ShoppingCartComponent {
4244
public cart: [];
4345
constructor(private appInsightsService: AppInsightsService) {}
4446

4547
saveCart(user) {
4648
// MOCK Example of sending a trackEvent()
4749
// Saving some sample user & cart product data
48-
this.appInsightsService.trackEvent('ShoppingCart Saved', { user, cart });
50+
this.appInsightsService.trackEvent('ShoppingCart Saved', { 'user': user.id, 'cart': cart.id });
4951
}
5052
}
5153
```
@@ -77,7 +79,7 @@ Modify systemjs.config.js...
7779
In System.Config.map, add:
7880

7981
```typescript
80-
'applicationinsights-js': 'npm:applicationinsights-js/JavaScript/JavaScriptSDK.Module/AppInsightsModule.js'
82+
'applicationinsights-js': 'npm:applicationinsights-js/JavaScript/JavaScriptSDK.Module/AppInsightsModule.js',
8183
'@markpieszak/ng-application-insights': 'npm:@markpieszak/ng-application-insights/dist/index.js'
8284
```
8385

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@markpieszak/ng-application-insights",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"scripts": {
55
"lint": "tslint src/**/*.ts",
66
"test": "tsc && karma start",
@@ -23,27 +23,27 @@
2323
"main": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"@angular/router": "^3.4.5",
26+
"@angular/router": "^4.0.1",
2727
"@types/applicationinsights-js": "^1.0.2",
2828
"applicationinsights-js": "^1.0.8",
29-
"rxjs": "^5.0.3"
29+
"rxjs": "^5.0.3",
30+
"typescript": "^2.0.0"
3031
},
3132
"devDependencies": {
3233
"@angular/cli": "^1.0.0",
33-
"@angular/common": "^2.4.0",
34-
"@angular/compiler": "^2.4.0",
35-
"@angular/compiler-cli": "^2.4.0",
36-
"@angular/core": "^2.4.10",
37-
"@angular/platform-browser": "^2.4.10",
34+
"@angular/common": "^4.0.1",
35+
"@angular/compiler": "^4.0.1",
36+
"@angular/compiler-cli": "^4.0.1",
37+
"@angular/core": "^4.0.1",
38+
"@angular/platform-browser": "^4.0.1",
3839
"@types/applicationinsights-js": "^1.0.1",
39-
"@types/es6-shim": "^0.31.32",
4040
"@types/jasmine": "^2.5.40",
4141
"@types/protractor": "^4.0.0",
4242
"@types/selenium-webdriver": "^2.53.39",
4343
"codelyzer": "^0.0.28",
4444
"rimraf": "^2.5.4",
4545
"tslint": "^3.15.1",
46-
"typescript": "^2.1",
46+
"typescript": "^2.2.2",
4747
"zone.js": "0.8.4"
4848
},
4949
"engines": {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"target": "es5",
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7+
"lib": ["es2015", "dom"],
78
"sourceMap": true,
89
"declaration": true,
910
"outDir": "./dist",

0 commit comments

Comments
 (0)