Skip to content

Commit 686da2a

Browse files
authored
Fix double core issue (#586)
* Revert "ensure $q is available during init" This reverts commit a76654e. * fix: use correct core version
1 parent 043c50a commit 686da2a

File tree

6 files changed

+22
-15
lines changed

6 files changed

+22
-15
lines changed

downstream_projects.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"example": "./example",
3-
"sample-app-angular-hybrid": "https://github.com/ui-router/sample-app-angular-hybrid.git"
3+
"sample-app-angular-hybrid": "https://github.com/ui-router/sample-app-angular-hybrid.git@fix_incorrect_core_version"
44
}

example/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<html>
2-
<head>
2+
<head>
33
<script src="//unpkg.com/[email protected]/angular.js"></script>
4-
<script src="//unpkg.com/reflect-metadata"></script>
5-
<script src="//unpkg.com/zone.js"></script>
6-
</head>
7-
<body>
4+
<script src="//unpkg.com/reflect-metadata@0.1.13"></script>
5+
<script src="//unpkg.com/zone.js@0.13.0"></script>
6+
</head>
7+
<body>
88
<!-- the app will fill this ui-view -->
99
<ui-view></ui-view>
1010

1111
<!-- load webpack bundle in body tag after document.body is ready -->
1212
<script src="_bundles/app.js"></script>
13-
</body>
13+
</body>
1414
</html>

example/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
"typescript": "4.8.4",
3535
"zone.js": "0.11.4"
3636
},
37+
"overrides": {
38+
"@uirouter/core": "6.1.0"
39+
},
40+
"resolutions": {
41+
"@uirouter/core": "^6.1.0"
42+
},
3743
"devDependencies": {
3844
"@uirouter/cypress-runner": "^3.0.0",
3945
"ts-loader": "9.4.2",

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
"@angular/upgrade": "^14.0.0 || ^15.0.0",
2222
"@uirouter/angular": "^11.0.0",
2323
"@uirouter/angularjs": "^1.0.30",
24+
"@uirouter/core": "^6.1.0",
2425
"angular": "^1.5.0"
2526
},
27+
"resolutions": {
28+
"@uirouter/core": "^6.1.0"
29+
},
2630
"devDependencies": {
2731
"@angular/animations": "^15.2.3",
2832
"@angular/common": "^15.2.3",
@@ -36,7 +40,7 @@
3640
"@types/jquery": "^3.5.6",
3741
"@uirouter/angular": "11.0.0",
3842
"@uirouter/angularjs": "^1.0.30",
39-
"@uirouter/core": "6.0.8",
43+
"@uirouter/core": "^6.1.0",
4044
"@uirouter/publish-scripts": "^2.6.0",
4145
"@uirouter/rx": "^1.0.0",
4246
"angular": "^1.8.3",

src/angular-hybrid.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
UIRouter,
1111
ViewConfig,
1212
ViewService,
13-
ServicesPlugin,
14-
servicesPlugin,
1513
} from '@uirouter/core';
1614

1715
import {
@@ -241,7 +239,6 @@ upgradeModule.run([
241239

242240
/** Add support for observable state and param changes */
243241
$uiRouter.plugin(UIRouterRx);
244-
$uiRouter.plugin<ServicesPlugin>(servicesPlugin);
245242

246243
// Expose a merged ng1/ng2 injector as a Resolvable (on the root state).
247244
// This mimics how ui-router-ng2 exposes the root ng2 Injector, but

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,10 @@
550550
dependencies:
551551
"@uirouter/core" "6.0.8"
552552

553-
"@uirouter/[email protected]":
554-
version "6.0.8"
555-
resolved "https://registry.npmjs.org/@uirouter/core/-/core-6.0.8.tgz"
556-
integrity sha512-Gc/BAW47i4L54p8dqYCJJZuv2s3tqlXQ0fvl6Zp2xrblELPVfxmjnc0eurx3XwfQdaqm3T6uls6tQKkof/4QMw==
553+
"@uirouter/[email protected]", "@uirouter/core@^6.1.0":
554+
version "6.1.0"
555+
resolved "https://registry.yarnpkg.com/@uirouter/core/-/core-6.1.0.tgz#ca90ae476c85805e7d70add461e91738ae383bd5"
556+
integrity sha512-WFYh5NPAqRX4L2qlI4k62tgR6pxoqOBSW1CM1uBWCau4mAmgasYd5etJ9RoSJrSnCpCQ2km2Jltf0n5ql684MQ==
557557

558558
"@uirouter/publish-scripts@^2.6.0":
559559
version "2.6.0"

0 commit comments

Comments
 (0)