@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.
@@ -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
@@ -9,6 +9,7 @@
9
9
  * Manipulates the browser history on the window.
10
10
  * Ths just uses the window.history functionality directly.
11
11
  */
12
+
12
13
  /**
13
14
  * Sets a history state.
14
15
 
@@ -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
- */ // The application may create 1 root router at a time.
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.
@@ -230,6 +230,5 @@ export function getPageReferenceFromUriAndRouteDef(uri, routeDef) {
230
230
  };
231
231
  }
232
232
  }
233
-
234
233
  return null;
235
234
  }
@@ -8,6 +8,7 @@
8
8
  /*
9
9
  * Utilities for checking type, including route types.
10
10
  */
11
+
11
12
  /**
12
13
  * @param {*} o - Item to check if it's an object
13
14
  * @returns {boolean}
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.12.0-alpha.1",
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.1",
57
- "@lwrjs/diagnostics": "0.12.0-alpha.1",
58
- "@lwrjs/shared-utils": "0.12.0-alpha.1",
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.1",
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": ">=16.0.0"
96
+ "node": ">=18.0.0"
97
97
  },
98
98
  "volta": {
99
99
  "extends": "../../../package.json"
100
100
  },
101
- "gitHead": "138cc3716e923d0367e8279aaf2d6be21e74f440"
101
+ "gitHead": "586a2aa659882483af9249dc3db7fe07bc842a25"
102
102
  }