@lwrjs/router 0.12.0-alpha.1 → 0.12.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/modules/lwr/contextUtils/contextUtils.js +1 -0
- package/build/modules/lwr/domRouterUtils/historyUtils.js +1 -0
- package/build/modules/lwr/routerBridge/routerBridge.js +0 -1
- package/build/modules/lwr/routerContainer/utils.js +3 -1
- package/build/modules/lwr/routerUtils/routeDefUtils.js +0 -1
- package/build/modules/lwr/routerUtils/typeUtils.js +1 -0
- package/package.json +7 -7
|
@@ -92,5 +92,6 @@ export function generateContextualWireAdapter(contextInstance) {
|
|
|
92
92
|
// Adding the ts-ignore in case this code is compiled with a version of LWC that is older than 4.0.
|
|
93
93
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
94
94
|
// @ts-ignore
|
|
95
|
+
|
|
95
96
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
96
97
|
// @ts-ignore
|
|
@@ -50,7 +50,6 @@ class DomRouterBridge {
|
|
|
50
50
|
}) => {
|
|
51
51
|
this.config.onPostNavigate(pageReference); // ONLY return the page reference
|
|
52
52
|
});
|
|
53
|
-
|
|
54
53
|
this.bridgedRouter.addErrorNavigate(this.config.onError);
|
|
55
54
|
|
|
56
55
|
// Prevent the observed router from altering the browser URL or history
|
|
@@ -10,7 +10,9 @@ import { invariant, messages } from 'lwr/routerErrors';
|
|
|
10
10
|
import { DomRouterImpl } from 'lwr/domRouter';
|
|
11
11
|
/*
|
|
12
12
|
* Provides programmatic routing capabilities.
|
|
13
|
-
*/
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// The application may create 1 root router at a time.
|
|
14
16
|
let hasRoot = false;
|
|
15
17
|
/**
|
|
16
18
|
* Create a new navigation context, attach to the given node.
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.12.0-alpha.
|
|
8
|
+
"version": "0.12.0-alpha.2",
|
|
9
9
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"test:server": "jest --config ./jest.server.config.cjs"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lwrjs/client-modules": "0.12.0-alpha.
|
|
57
|
-
"@lwrjs/diagnostics": "0.12.0-alpha.
|
|
58
|
-
"@lwrjs/shared-utils": "0.12.0-alpha.
|
|
56
|
+
"@lwrjs/client-modules": "0.12.0-alpha.2",
|
|
57
|
+
"@lwrjs/diagnostics": "0.12.0-alpha.2",
|
|
58
|
+
"@lwrjs/shared-utils": "0.12.0-alpha.2",
|
|
59
59
|
"ajv": "6.12.6"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@lwc/jest-preset": "^14.2.1",
|
|
63
|
-
"@lwrjs/fs-watch": "0.12.0-alpha.
|
|
63
|
+
"@lwrjs/fs-watch": "0.12.0-alpha.2",
|
|
64
64
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
65
65
|
"jest": "^26.6.3",
|
|
66
66
|
"rollup": "^2.78.0",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
95
|
"engines": {
|
|
96
|
-
"node": ">=
|
|
96
|
+
"node": ">=18.0.0"
|
|
97
97
|
},
|
|
98
98
|
"volta": {
|
|
99
99
|
"extends": "../../../package.json"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "586a2aa659882483af9249dc3db7fe07bc842a25"
|
|
102
102
|
}
|