Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b72445d

Browse files
committed
chore: migrate to Angular v16 + cleanup unused deps
1 parent 31621e6 commit b72445d

File tree

8 files changed

+1366
-2080
lines changed

8 files changed

+1366
-2080
lines changed

libs/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"dependencies": {
5050
"tslib": "^2.4.1",
51-
"ng-morph": "^2.1.3"
51+
"ng-morph": "^2.2.3"
5252
},
5353
"schematics": "./schematics/collection.json",
5454
"ng-add": {
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
export function isKeyof<T>(key: PropertyKey, obj: T): key is keyof T {
1+
export function isKeyof<T extends object>(
2+
key: PropertyKey,
3+
obj: T
4+
): key is keyof T {
25
return key in obj;
36
}

libs/state/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"dependencies": {
5050
"tslib": "^2.4.1",
51-
"ng-morph": "^2.1.3"
51+
"ng-morph": "^2.2.3"
5252
},
5353
"ng-add": {
5454
"save": "dependencies"

libs/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"tslib": "^2.4.1",
53-
"ng-morph": "^2.1.3"
53+
"ng-morph": "^2.2.3"
5454
},
5555
"schematics": "./schematics/collection.json",
5656
"ng-add": {

libs/template/push/src/lib/tests/push.pipe.spec.ts

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
1+
import { ChangeDetectorRef, Component } from '@angular/core';
2+
import { ComponentFixture, TestBed } from '@angular/core/testing';
13
import {
24
RX_RENDER_STRATEGIES_CONFIG,
3-
RxStrategyCredentials,
45
RxStrategyProvider,
56
} from '@rx-angular/cdk/render-strategies';
6-
import { map, tap } from 'rxjs/operators';
77
import { Promise as unpatchedPromise } from '@rx-angular/cdk/zone-less/browser';
8-
import { PushModule } from '../push.module';
9-
import { PushPipe } from '../push.pipe';
10-
import { ComponentFixture, TestBed } from '@angular/core/testing';
11-
import { ChangeDetectorRef, Component } from '@angular/core';
12-
import {
13-
asapScheduler,
14-
EMPTY,
15-
from,
16-
NEVER,
17-
Observable,
18-
of,
19-
scheduled,
20-
share,
21-
shareReplay,
22-
timer,
23-
} from 'rxjs';
248
import { mockConsole } from '@test-helpers';
9+
import { EMPTY, NEVER, Observable, asapScheduler, of, timer } from 'rxjs';
10+
import { map, tap } from 'rxjs/operators';
11+
import { PushPipe } from '../push.pipe';
2512

2613
function wrapWithSpace(str: string): string {
2714
return ' ' + str + ' ';

migrations.json

Lines changed: 0 additions & 151 deletions
This file was deleted.

package.json

Lines changed: 28 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"state:publish": "nx publish state",
3434
"template:publish": "nx publish template",
3535
"tracerbench": "tracerbench compare --controlURL http://localhost:4200/rx-angular/demos --experimentURL http://localhost:4242/rx-angular/demos --markers startRouting,endRouting --headless --report",
36-
"postinstall": "ngcc --properties es2020 browser module main --first-only --create-ivy-entry-points && node ./decorate-angular-cli.js && husky install",
36+
"postinstall": "husky install",
3737
"workspace-generator": "nx workspace-generator"
3838
},
3939
"lint-staged": {
@@ -50,25 +50,24 @@
5050
"libs/**"
5151
],
5252
"dependencies": {
53-
"@angular/animations": "15.2.6",
54-
"@angular/cdk": "15.2.6",
55-
"@angular/cdk-experimental": "15.2.6",
56-
"@angular/common": "15.2.6",
57-
"@angular/compiler": "15.2.6",
58-
"@angular/core": "15.2.6",
59-
"@angular/forms": "15.2.6",
60-
"@angular/material": "15.2.6",
61-
"@angular/platform-browser": "15.2.6",
62-
"@angular/platform-browser-dynamic": "15.2.6",
63-
"@angular/platform-server": "15.2.6",
64-
"@angular/router": "15.2.0",
65-
"@nguniversal/express-engine": "^15.2.0",
53+
"@angular/animations": "16.0.0",
54+
"@angular/cdk": "16.0.0",
55+
"@angular/cdk-experimental": "16.0.0",
56+
"@angular/common": "16.0.0",
57+
"@angular/compiler": "16.0.0",
58+
"@angular/core": "16.0.0",
59+
"@angular/forms": "16.0.0",
60+
"@angular/material": "16.0.0",
61+
"@angular/platform-browser": "16.0.0",
62+
"@angular/platform-browser-dynamic": "16.0.0",
63+
"@angular/platform-server": "16.0.0",
64+
"@angular/router": "16.0.0",
65+
"@nguniversal/express-engine": "16.0.0",
6666
"@ngxs/store": "3.7.2",
6767
"@typescript-eslint/utils": "5.59.2",
6868
"angular-in-memory-web-api": "^0.11.0",
6969
"bootstrap": "^5.2.3",
70-
"core-js": "^3.18.3",
71-
"ngx-skeleton-loader": "^4.0.0",
70+
"ngx-skeleton-loader": "^7.0.0",
7271
"normalize-css": "^2.3.1",
7372
"react-player": "^2.12.0",
7473
"rx-query": "^1.0.2",
@@ -78,23 +77,22 @@
7877
"zone.js": "0.13.0"
7978
},
8079
"devDependencies": {
81-
"@angular-devkit/build-angular": "15.2.5",
82-
"@angular-devkit/core": "~15.2.5",
83-
"@angular-devkit/schematics": "~15.2.5",
80+
"@angular-devkit/build-angular": "16.0.0",
81+
"@angular-devkit/core": "16.0.0",
82+
"@angular-devkit/schematics": "16.0.0",
8483
"@angular-eslint/eslint-plugin": "16.0.1",
8584
"@angular-eslint/eslint-plugin-template": "16.0.1",
8685
"@angular-eslint/template-parser": "16.0.1",
87-
"@angular/cli": "~15.2.5",
88-
"@angular/compiler-cli": "15.2.6",
89-
"@angular/language-service": "15.2.6",
86+
"@angular/cli": "16.0.0",
87+
"@angular/compiler-cli": "16.0.0",
88+
"@angular/language-service": "16.0.0",
9089
"@commitlint/cli": "^17.3.0",
9190
"@commitlint/config-angular": "^17.3.0",
9291
"@jscutlery/semver": "^2.30.1",
93-
"@nguniversal/builders": "15.2.0",
92+
"@nguniversal/builders": "16.0.0",
9493
"@ngxs/devtools-plugin": "^3.7.0",
9594
"@nx-plus/docusaurus": "14.1.0",
96-
"@schematics/angular": "~15.2.5",
97-
"@size-limit/preset-big-lib": "^7.0.0",
95+
"@schematics/angular": "~16.0.0",
9896
"@types/benchmark": "^2.1.0",
9997
"@types/jest": "28.1.8",
10098
"@types/klaw-sync": "^6.0.0",
@@ -103,33 +101,25 @@
103101
"@typescript-eslint/eslint-plugin": "5.59.2",
104102
"@typescript-eslint/parser": "5.59.2",
105103
"benchmark": "^2.1.4",
106-
"chrome-remote-interface": "^0.29.0",
107104
"cpx": "^1.5.0",
108105
"cypress": "12.11.0",
109-
"debug": "^4.2.0",
110106
"eslint": "^8.34.0",
111107
"eslint-config-prettier": "^8.6.0",
112108
"eslint-plugin-cypress": "^2.10.3",
113-
"html-webpack-plugin": "^5.5.0",
114109
"husky": "^8.0.3",
115110
"jest": "28.1.3",
116-
"jest-environment-jsdom": "28.1.3",
111+
"jest-environment-jsdom": "29.5.0",
117112
"jest-preset-angular": "12.2.3",
118113
"klaw-sync": "^6.0.0",
119114
"lint-staged": "^12.0.3",
120-
"markdown-link-check": "^3.10.3",
121-
"ng-morph": "^2.1.3",
122-
"ng-packagr": "15.2.2",
115+
"markdown-link-check": "^3.11.2",
116+
"ng-morph": "^2.2.3",
117+
"ng-packagr": "16.0.0",
123118
"nx": "16.1.1",
124-
"postcss": "^8.4.6",
125-
"postcss-import": "14.1.0",
126-
"postcss-preset-env": "7.5.0",
127-
"postcss-url": "10.1.3",
128119
"prettier": "2.8.4",
129-
"size-limit": "^6.0.4",
130120
"ts-jest": "29.1.0",
131121
"ts-node": "10.9.1",
132-
"typescript": "4.8.4",
122+
"typescript": "5.0.4",
133123
"nx-cloud": "16.0.5",
134124
"@nx/workspace": "16.1.1",
135125
"@nx/linter": "16.1.1",

0 commit comments

Comments
 (0)