Skip to content

Commit 31ee217

Browse files
rk-7andrefarzat
authored andcommittedApr 6, 2023
build(deps): update Angular to v13
- updates the dependencies to use Angular 13 - compilation mode set to Ivy Partial - updates the version to 5.0.0 BREAKING CHANGE: it is NOT backwards compatible with v12 due to Ivy.
1 parent df9f0be commit 31ee217

File tree

7 files changed

+13535
-20626
lines changed

7 files changed

+13535
-20626
lines changed
 

Diff for: ‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
3232
.history/*
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

Diff for: ‎angular.json

-12
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@
2828
"tsConfig": "projects/plotly/tsconfig.spec.json",
2929
"karmaConfig": "projects/plotly/karma.conf.js"
3030
}
31-
},
32-
"lint": {
33-
"builder": "@angular-devkit/build-angular:tslint",
34-
"options": {
35-
"tsConfig": [
36-
"projects/plotly/tsconfig.lib.json",
37-
"projects/plotly/tsconfig.spec.json"
38-
],
39-
"exclude": [
40-
"**/node_modules/**"
41-
]
42-
}
4331
}
4432
}
4533
}},

Diff for: ‎package-lock.json

+13,513-20,595
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-plotly.js",
3-
"version": "4.0.4",
3+
"version": "5.0.0",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
@@ -11,23 +11,23 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "~12.2.1",
15-
"@angular/common": "~12.2.1",
16-
"@angular/compiler": "~12.2.1",
17-
"@angular/core": "~12.2.1",
18-
"@angular/forms": "~12.2.1",
19-
"@angular/platform-browser": "~12.2.1",
20-
"@angular/platform-browser-dynamic": "~12.2.1",
21-
"@angular/router": "~12.2.1",
14+
"@angular/animations": "~13.3.12",
15+
"@angular/common": "~13.3.12",
16+
"@angular/compiler": "~13.3.12",
17+
"@angular/core": "~13.3.12",
18+
"@angular/forms": "~13.3.12",
19+
"@angular/platform-browser": "~13.3.12",
20+
"@angular/platform-browser-dynamic": "~13.3.12",
21+
"@angular/router": "~13.3.12",
2222
"plotly.js-dist": "^1.54.7",
2323
"rxjs": "~6.5.5",
2424
"tslib": "^2.3.1",
2525
"zone.js": "~0.11.4"
2626
},
2727
"devDependencies": {
28-
"@angular-devkit/build-angular": "^12.2.1",
29-
"@angular/cli": "~12.2.1",
30-
"@angular/compiler-cli": "~12.2.1",
28+
"@angular-devkit/build-angular": "^13.3.11",
29+
"@angular/cli": "~13.3.11",
30+
"@angular/compiler-cli": "~13.3.12",
3131
"@types/jasmine": "~3.6.0",
3232
"@types/jasminewd2": "~2.0.3",
3333
"@types/node": "^12.11.1",
@@ -40,10 +40,10 @@
4040
"karma-coverage": "~2.0.3",
4141
"karma-jasmine": "~4.0.0",
4242
"karma-jasmine-html-reporter": "^1.7.0",
43-
"ng-packagr": "^12.2.0",
43+
"ng-packagr": "^13.3.1",
4444
"protractor": "~7.0.0",
4545
"ts-node": "~8.3.0",
4646
"tslint": "~6.1.0",
47-
"typescript": "~4.3.5"
47+
"typescript": "~4.6.4"
4848
}
4949
}

Diff for: ‎projects/plotly/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "angular-plotly.js",
3-
"version": "4.0.4",
3+
"version": "5.0.0",
44
"license": "MIT",
55
"peerDependencies": {
6-
"@angular/common": ">10.0.9",
7-
"@angular/core": ">10.0.9"
6+
"@angular/common": ">=13.0.0",
7+
"@angular/core": ">=13.0.0"
88
},
99
"devDependencies": {
1010
"@types/plotly.js-dist-min": ">1.54.7",

Diff for: ‎projects/plotly/src/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ declare const require: {
1818
// First, initialize the Angular testing environment.
1919
getTestBed().initTestEnvironment(
2020
BrowserDynamicTestingModule,
21-
platformBrowserDynamicTesting()
21+
platformBrowserDynamicTesting(), {
22+
teardown: { destroyAfterEach: false }
23+
}
2224
);
2325
// Then we find all the tests.
2426
const context = require.context('./', true, /\.spec\.ts$/);

Diff for: ‎projects/plotly/tsconfig.lib.prod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"declarationMap": false
66
},
77
"angularCompilerOptions": {
8-
"enableIvy": false
8+
"compilationMode": "partial"
99
}
1010
}

0 commit comments

Comments
 (0)
Please sign in to comment.