Skip to content

Commit eef55af

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

File tree

12 files changed

+1318
-960
lines changed

12 files changed

+1318
-960
lines changed

package-lock.json

Lines changed: 1242 additions & 902 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 19 deletions
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": {
Lines changed: 9 additions & 7 deletions
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

Lines changed: 8 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 24 additions & 0 deletions
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+
}

0 commit comments

Comments
 (0)