Skip to content

Commit 059d12d

Browse files
egorbworkEgor Boaghiwawyed
authored
feat: Angular 19 support (#600)
* Update dependencies to angular 19 and uirouter/angular 16. * Add `standalone: false` for UIViewNgUpgrade component in angular-hybrid.ts * Update example package.json dependencies to angular 19. * Improve example dependencies. * Add standalone: false for example main.ts component. * chore: update dependencies --------- Co-authored-by: Egor Boaghi <[email protected]> Co-authored-by: wawyed <[email protected]>
1 parent 597600c commit 059d12d

File tree

5 files changed

+1253
-1514
lines changed

5 files changed

+1253
-1514
lines changed

example/package.json

+16-21
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,26 @@
1414
]
1515
},
1616
"dependencies": {
17-
"@angular/animations": "^18.1.0",
18-
"@angular/common": "^18.1.0",
19-
"@angular/compiler": "^18.1.0",
20-
"@angular/core": "^18.1.0",
21-
"@angular/platform-browser": "^18.1.0",
22-
"@angular/platform-browser-dynamic": "^18.1.0",
23-
"@angular/upgrade": "18.1.0",
17+
"@angular/animations": "^19.0.5",
18+
"@angular/common": "^19.0.5",
19+
"@angular/compiler": "^19.0.5",
20+
"@angular/compiler-cli": "^19.0.5",
21+
"@angular/core": "^19.0.5",
22+
"@angular/platform-browser": "^19.0.5",
23+
"@angular/platform-browser-dynamic": "^19.0.5",
24+
"@angular/upgrade": "^19.0.0",
2425
"@types/angular": "^1.8.9",
2526
"@types/jquery": "^3.2.16",
26-
"@uirouter/angular": "14.0.0",
27+
"@uirouter/angular": "^16.0.0",
2728
"@uirouter/angular-hybrid": "latest",
28-
"@uirouter/angularjs": "1.1.0",
29-
"@uirouter/core": "6.1.0",
30-
"@uirouter/rx": "1.0.0",
29+
"@uirouter/angularjs": "1.1.1",
30+
"@uirouter/core": "^6.1.1",
31+
"@uirouter/rx": "^1.0.0",
3132
"angular": "1.8.3",
32-
"rxjs": "^7.4.0",
33-
"tslib": "2.6.2",
34-
"typescript": "5.4.5",
35-
"zone.js": "0.14.4"
36-
},
37-
"overrides": {
38-
"@uirouter/core": "6.1.0"
39-
},
40-
"resolutions": {
41-
"@uirouter/core": "^6.1.0"
33+
"rxjs": "~7.8.0",
34+
"tslib": "^2.8.1",
35+
"typescript": "~5.6.3",
36+
"zone.js": "~0.15.0"
4237
},
4338
"devDependencies": {
4439
"@uirouter/cypress-runner": "^3.0.0",

example/src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ app.component('ng1Component', {
7171
<a uiSref="app">Back to app</a>
7272
<ui-view></ui-view>
7373
`,
74+
standalone: false,
7475
})
7576
export class Ng2Component {
7677
ngOnInit() {

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,43 @@
1717
]
1818
},
1919
"peerDependencies": {
20-
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
21-
"@angular/upgrade": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
22-
"@uirouter/angular": "^14.0.0",
20+
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
21+
"@angular/upgrade": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
22+
"@uirouter/angular": "^16.0.0",
2323
"@uirouter/angularjs": "^1.0.30",
24-
"@uirouter/core": "^6.1.0",
24+
"@uirouter/core": "^6.1.1",
2525
"angular": "^1.5.0"
2626
},
2727
"resolutions": {
2828
"@uirouter/core": "^6.1.0"
2929
},
3030
"devDependencies": {
31-
"@angular/animations": "^18.0.6",
32-
"@angular/common": "^18.0.6",
33-
"@angular/compiler": "^18.0.6",
34-
"@angular/compiler-cli": "^18.0.6",
35-
"@angular/core": "^18.0.6",
36-
"@angular/platform-browser": "^18.0.6",
37-
"@angular/platform-browser-dynamic": "^18.0.6",
38-
"@angular/upgrade": "^18.0.6",
31+
"@angular/animations": "^19.0.5",
32+
"@angular/common": "^19.0.5",
33+
"@angular/compiler": "^19.0.5",
34+
"@angular/compiler-cli": "^19.0.5",
35+
"@angular/core": "^19.0.5",
36+
"@angular/platform-browser": "^19.0.5",
37+
"@angular/platform-browser-dynamic": "^19.0.5",
38+
"@angular/upgrade": "^19.0.0",
3939
"@types/angular": "^1.8.9",
4040
"@types/jquery": "^3.5.6",
41-
"@uirouter/angular": "^14.0.0",
41+
"@uirouter/angular": "^16.0.0",
4242
"@uirouter/angularjs": "^1.1.0",
43-
"@uirouter/core": "^6.1.0",
43+
"@uirouter/core": "^6.1.1",
4444
"@uirouter/publish-scripts": "^2.6.3",
4545
"@uirouter/rx": "^1.0.0",
4646
"angular": "^1.8.3",
4747
"husky": "^4.3.8",
48-
"ng-packagr": "^18.0.0",
49-
"prettier": "^2.3.2",
50-
"pretty-quick": "^2.0.1",
51-
"rxjs": "^7.4.0",
52-
"rxjs-compat": "^6.6.7",
48+
"ng-packagr": "^19.0.1",
49+
"prettier": "^2.8.8",
50+
"pretty-quick": "^3.3.1",
51+
"rxjs": "~7.8.0",
52+
"rxjs-compat": "^6.5.4",
5353
"shx": "^0.3.3",
54-
"typescript": "5.4.5",
55-
"tslib": "2.6.2",
56-
"zone.js": "^0.14.4"
54+
"typescript": "~5.6.3",
55+
"tslib": "^2.8.1",
56+
"zone.js": "~0.15.0"
5757
},
5858
"distDir": "dist",
5959
"sideEffects": true,

src/angular-hybrid.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function objectFactory() {
114114
* </div>
115115
* ```
116116
*
117-
* This adapter exposes exposes the parent view context (ParentUIViewInject)
117+
* This adapter exposes the parent view context (ParentUIViewInject)
118118
* as an ng2 DI Provider, which the nested ng2 UIView requires.
119119
*
120120
* It gets the ParentUIViewContext information (from the parent ng1 ui-view) by walking
@@ -126,6 +126,7 @@ export function objectFactory() {
126126
// provide a blank object as PARENT_INJECT.
127127
// The component will add property getters when it is constructed.
128128
viewProviders: [{ provide: UIView.PARENT_INJECT, useFactory: objectFactory }],
129+
standalone: false,
129130
})
130131
export class UIViewNgUpgrade {
131132
// The ui-view's name (or '$default')

0 commit comments

Comments
 (0)