Skip to content

Commit eef55af

Browse files
Merge pull request #18 from hypertrace/update-ng
chore: update angular
2 parents 3813af0 + 8044c97 commit eef55af

12 files changed

+1318
-960
lines changed

package-lock.json

+1,242-902
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+17-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "hyperdash-angular",
33
"version": "0.0.0",
44
"scripts": {
5-
"postinstall": "ngcc --properties es5 browser module main --first-only --create-ivy-entry-points",
65
"ng": "ng",
76
"start": "ng serve",
87
"build": "ng build",
@@ -18,29 +17,28 @@
1817
},
1918
"private": true,
2019
"dependencies": {
21-
"@angular/animations": "^9.1.11",
22-
"@angular/cdk": "^9.2.4",
23-
"@angular/common": "^9.1.11",
24-
"@angular/compiler": "^9.1.11",
25-
"@angular/core": "^9.1.11",
26-
"@angular/forms": "^9.1.11",
27-
"@angular/platform-browser": "^9.1.11",
28-
"@angular/platform-browser-dynamic": "^9.1.11",
29-
"@angular/router": "^9.1.11",
20+
"@angular/animations": "^10.0.4",
21+
"@angular/common": "^10.0.4",
22+
"@angular/compiler": "^10.0.4",
23+
"@angular/core": "^10.0.4",
24+
"@angular/forms": "^10.0.4",
25+
"@angular/platform-browser": "^10.0.4",
26+
"@angular/platform-browser-dynamic": "^10.0.4",
27+
"@angular/router": "^10.0.4",
3028
"@hypertrace/hyperdash": "^1.0.0",
3129
"core-js": "^3.6.5",
3230
"lodash": "^4.17.15",
3331
"rxjs": "^6.6.0",
34-
"tslib": "^1.0.0",
32+
"tslib": "^2.0.0",
3533
"zone.js": "~0.10.3"
3634
},
3735
"devDependencies": {
3836
"@angular-builders/jest": "^9.0.1",
39-
"@angular-devkit/build-angular": "~0.901.10",
40-
"@angular-devkit/build-ng-packagr": "~0.901.9",
41-
"@angular/cli": "^9.1.9",
42-
"@angular/compiler-cli": "^9.1.11",
43-
"@angular/language-service": "^9.1.11",
37+
"@angular-devkit/build-angular": "~0.1000.3",
38+
"@angular-devkit/build-ng-packagr": "~0.1000.3",
39+
"@angular/cli": "^10.0.3",
40+
"@angular/compiler-cli": "^10.0.4",
41+
"@angular/language-service": "^10.0.4",
4442
"@commitlint/cli": "^9.0.1",
4543
"@commitlint/config-conventional": "^9.0.1",
4644
"@compodoc/compodoc": "^1.1.11",
@@ -57,14 +55,14 @@
5755
"jest-config": "^25.5.0",
5856
"jest-html-reporter": "^3.1.3",
5957
"jest-junit": "^10.0.0",
60-
"ng-packagr": "^9.1.5",
58+
"ng-packagr": "^10.0.0",
6159
"prettier": "^2.0.5",
6260
"pretty-quick": "^2.0.1",
6361
"semantic-release": "^17.1.1",
6462
"ts-node": "~8.10.2",
65-
"tslint": "^6.1.2",
63+
"tslint": "~6.1.0",
6664
"tslint-config-prettier": "^1.18.0",
67-
"typescript": "~3.8.3"
65+
"typescript": "~3.9.6"
6866
},
6967
"config": {
7068
"commitizen": {
+9-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hypertrace/hyperdash-angular",
33
"version": "0.0.0-PLACEHOLDER",
4-
"license": "AGPL-3.0",
4+
"license": "LicenseRef-LICENSE",
55
"repository": {
66
"type": "git",
77
"url": "[email protected]:hypertrace/hyperdash-angular.git"
@@ -14,14 +14,16 @@
1414
"commit": "pushd ../.. && npm run commit"
1515
},
1616
"peerDependencies": {
17-
"@angular/common": "^9.0.0",
18-
"@angular/core": "^9.0.0",
19-
"@angular/cdk": "^9.1.0",
20-
"@angular/platform-browser": "^9.0.0",
21-
"core-js": "^3.4.7",
22-
"rxjs": "^6.5.3",
17+
"@angular/common": "^10.0.0",
18+
"@angular/core": "^10.0.0",
19+
"@angular/platform-browser": "^10.0.0",
20+
"core-js": "^3.6.5",
21+
"rxjs": "^6.6.0",
2322
"zone.js": "^0.10.0",
2423
"@hypertrace/hyperdash": "^1.0.0",
2524
"lodash": "^4.17.15"
25+
},
26+
"dependencies": {
27+
"tslib": "^2.0.0"
2628
}
2729
}

projects/hyperdash-angular/src/rendering/dashboard-renderer.service.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { PortalInjector } from '@angular/cdk/portal';
21
import {
32
ComponentFactory,
43
ComponentFactoryResolver,
@@ -132,9 +131,14 @@ export class DashboardRendererService {
132131
rendererDestruction$: Observable<void>,
133132
viewContainerRef: ViewContainerRef
134133
): Injector {
135-
return new PortalInjector(
136-
viewContainerRef.injector,
137-
new WeakMap([[RENDERER_API, this.rendererApiFactory.buildApi(model, rendererDestruction$)]])
134+
return Injector.create(
135+
[
136+
{
137+
provide: RENDERER_API,
138+
useValue: this.rendererApiFactory.buildApi(model, rendererDestruction$)
139+
}
140+
],
141+
viewContainerRef.injector
138142
);
139143
}
140144

projects/hyperdash-angular/tsconfig.lib.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
44
"declaration": true,
55
"sourceMap": true,

projects/hyperdash-angular/tsconfig.spec.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "../../out-tsc/spec",
55
"types": ["webpack-env", "jest"],
File renamed without changes.

src/tsconfig.app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/app",
55
"types": []

src/tsconfig.spec.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/spec",
55
"types": ["jest", "webpack-env"],

tsconfig.base.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"importHelpers": true,
5+
"outDir": "./dist/out-tsc",
6+
"strict": true,
7+
"sourceMap": true,
8+
"declaration": false,
9+
"module": "es2020",
10+
"target": "es5",
11+
"moduleResolution": "node",
12+
"emitDecoratorMetadata": true,
13+
"experimentalDecorators": true,
14+
"esModuleInterop": true,
15+
"noUnusedLocals": true,
16+
"noUnusedParameters": true,
17+
"downlevelIteration": true,
18+
"typeRoots": ["node_modules/@types"],
19+
"lib": ["es2015", "es2016", "es2017", "esnext.array", "dom"],
20+
"paths": {
21+
"@hypertrace/hyperdash-angular": ["projects/hyperdash-angular/src/public_api.ts"]
22+
}
23+
}
24+
}

tsconfig.json

+14-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1+
/*
2+
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
3+
It is not intended to be used to perform a compilation.
4+
5+
To learn more about this file see: https://angular.io/config/solution-tsconfig.
6+
*/
17
{
2-
"compilerOptions": {
3-
"baseUrl": "./",
4-
"importHelpers": true,
5-
"outDir": "./dist/out-tsc",
6-
"strict": true,
7-
"sourceMap": true,
8-
"declaration": false,
9-
"module": "esnext",
10-
"target": "es5",
11-
"moduleResolution": "node",
12-
"emitDecoratorMetadata": true,
13-
"experimentalDecorators": true,
14-
"esModuleInterop": true,
15-
"noUnusedLocals": true,
16-
"noUnusedParameters": true,
17-
"downlevelIteration": true,
18-
"typeRoots": ["node_modules/@types"],
19-
"lib": ["es2015", "es2016", "es2017", "esnext.array", "dom"],
20-
"paths": {
21-
"@hypertrace/hyperdash-angular": ["projects/hyperdash-angular/src/public_api.ts"]
8+
"files": [],
9+
"references": [
10+
{
11+
"path": "./src/tsconfig.app.json"
12+
},
13+
{
14+
"path": "./projects/hyperdash-angular/tsconfig.lib.json"
2215
}
23-
}
16+
]
2417
}

tslint.json

-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
4747
"no-non-null-assertion": false,
4848
"member-ordering": false,
49-
"no-unused-variable": false,
5049
"max-classes-per-file": false,
5150
"trailing-comma": [
5251
true,
@@ -67,7 +66,6 @@
6766
true,
6867
"@angular/core/testing",
6968
"@angular/platform-browser-dynamic/testing",
70-
"@angular/cdk/portal",
7169
"zone.js/dist",
7270
"core-js",
7371
"@angular/common/http",
@@ -85,7 +83,6 @@
8583
}
8684
],
8785
"no-unnecessary-class": false,
88-
"no-use-before-declare": false,
8986
"ordered-imports": [
9087
true,
9188
{

0 commit comments

Comments
 (0)