@inglorious/web 6.14.0 → 6.14.1
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/package.json +1 -1
- package/src/router/handlers.js +1 -1
- package/types/router.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/web",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.1",
|
|
4
4
|
"description": "A new web framework that leverages the power of the Inglorious Store combined with the performance and simplicity of lit-html.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"contributors": [
|
package/src/router/handlers.js
CHANGED
|
@@ -131,7 +131,7 @@ export function createHandlers(routeConfig) {
|
|
|
131
131
|
/**
|
|
132
132
|
* Handles navigation to a new route.
|
|
133
133
|
* @param {RouterEntity} entity - The router entity.
|
|
134
|
-
* @param {string|number|{to: string, params?: object, replace?: boolean, state?: object}} payload - The navigation target or options.
|
|
134
|
+
* @param {string|number|{to: string, params?: object, replace?: boolean, force?: boolean, state?: object}} payload - The navigation target or options.
|
|
135
135
|
* @param {Api} api - The application API.
|
|
136
136
|
*/
|
|
137
137
|
async navigate(entity, payload, api) {
|
package/types/router.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface NavigatePayload {
|
|
|
56
56
|
params?: RouteParams
|
|
57
57
|
/** If true, `history.replaceState` will be used instead of `history.pushState`. */
|
|
58
58
|
replace?: boolean
|
|
59
|
+
/** If true, navigates even when the path is the current one, running the route again. */
|
|
60
|
+
force?: boolean
|
|
59
61
|
/** Additional state to be stored in the browser's history. */
|
|
60
62
|
state?: Record<string, any>
|
|
61
63
|
}
|