@real-router/browser-plugin 0.5.3 → 0.5.4
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/dist/cjs/index.d.ts +11 -1
- package/dist/cjs/metafile-cjs.json +1 -1
- package/dist/esm/index.d.mts +11 -1
- package/dist/esm/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -259,7 +259,6 @@ interface StateMeta<P extends Params = Params> {
|
|
|
259
259
|
* @see {@link State.meta} for where options are stored after navigation
|
|
260
260
|
*/
|
|
261
261
|
interface NavigationOptions {
|
|
262
|
-
[key: string]: string | number | boolean | Record<string, unknown> | undefined;
|
|
263
262
|
/**
|
|
264
263
|
* Replace the current history entry instead of pushing a new one.
|
|
265
264
|
*
|
|
@@ -395,6 +394,17 @@ interface NavigationOptions {
|
|
|
395
394
|
* @see {@link NavigationOptions.redirected} for the input mechanism
|
|
396
395
|
*/
|
|
397
396
|
redirected?: boolean | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Optional abort signal for cancelling the navigation.
|
|
399
|
+
*
|
|
400
|
+
* @description
|
|
401
|
+
* When provided, this signal can be used to cancel the navigation operation.
|
|
402
|
+
* If the signal is aborted, the navigation will be cancelled and any pending
|
|
403
|
+
* guards or transitions will be interrupted.
|
|
404
|
+
*
|
|
405
|
+
* @default undefined
|
|
406
|
+
*/
|
|
407
|
+
signal?: AbortSignal | undefined;
|
|
398
408
|
}
|
|
399
409
|
interface Params {
|
|
400
410
|
[key: string]: string | string[] | number | number[] | boolean | boolean[] | Params | Params[] | Record<string, string | number | boolean> | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js":{"bytes":569,"imports":[],"format":"esm"},"../type-guards/dist/esm/index.mjs":{"bytes":
|
|
1
|
+
{"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js":{"bytes":569,"imports":[],"format":"esm"},"../type-guards/dist/esm/index.mjs":{"bytes":3618,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/constants.ts":{"bytes":1668,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/utils.ts":{"bytes":7620,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/browser.ts":{"bytes":6860,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/plugin.ts":{"bytes":15544,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/browser.ts","kind":"import-statement","original":"./browser"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1442,"imports":[{"path":"src/plugin.ts","kind":"import-statement","original":"./plugin"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/cjs/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":43312},"dist/cjs/index.js":{"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true}],"exports":["browserPluginFactory","isHistoryState","isState"],"entryPoint":"src/index.ts","inputs":{"src/plugin.ts":{"bytesInOutput":8257},"../type-guards/dist/esm/index.mjs":{"bytesInOutput":2444},"src/browser.ts":{"bytesInOutput":4028},"src/constants.ts":{"bytesInOutput":205},"src/utils.ts":{"bytesInOutput":3328},"src/index.ts":{"bytesInOutput":0}},"bytes":18698}}}
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -259,7 +259,6 @@ interface StateMeta<P extends Params = Params> {
|
|
|
259
259
|
* @see {@link State.meta} for where options are stored after navigation
|
|
260
260
|
*/
|
|
261
261
|
interface NavigationOptions {
|
|
262
|
-
[key: string]: string | number | boolean | Record<string, unknown> | undefined;
|
|
263
262
|
/**
|
|
264
263
|
* Replace the current history entry instead of pushing a new one.
|
|
265
264
|
*
|
|
@@ -395,6 +394,17 @@ interface NavigationOptions {
|
|
|
395
394
|
* @see {@link NavigationOptions.redirected} for the input mechanism
|
|
396
395
|
*/
|
|
397
396
|
redirected?: boolean | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Optional abort signal for cancelling the navigation.
|
|
399
|
+
*
|
|
400
|
+
* @description
|
|
401
|
+
* When provided, this signal can be used to cancel the navigation operation.
|
|
402
|
+
* If the signal is aborted, the navigation will be cancelled and any pending
|
|
403
|
+
* guards or transitions will be interrupted.
|
|
404
|
+
*
|
|
405
|
+
* @default undefined
|
|
406
|
+
*/
|
|
407
|
+
signal?: AbortSignal | undefined;
|
|
398
408
|
}
|
|
399
409
|
interface Params {
|
|
400
410
|
[key: string]: string | string[] | number | number[] | boolean | boolean[] | Params | Params[] | Record<string, string | number | boolean> | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"../type-guards/dist/esm/index.mjs":{"bytes":
|
|
1
|
+
{"inputs":{"../type-guards/dist/esm/index.mjs":{"bytes":3618,"imports":[],"format":"esm"},"src/constants.ts":{"bytes":1668,"imports":[],"format":"esm"},"src/utils.ts":{"bytes":7620,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"}],"format":"esm"},"src/browser.ts":{"bytes":6860,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/plugin.ts":{"bytes":15544,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/browser.ts","kind":"import-statement","original":"./browser"},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/index.ts":{"bytes":1442,"imports":[{"path":"src/plugin.ts","kind":"import-statement","original":"./plugin"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"}],"format":"esm"}},"outputs":{"dist/esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":43312},"dist/esm/index.mjs":{"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true}],"exports":["browserPluginFactory","isHistoryState","isState"],"entryPoint":"src/index.ts","inputs":{"src/plugin.ts":{"bytesInOutput":8257},"../type-guards/dist/esm/index.mjs":{"bytesInOutput":2444},"src/browser.ts":{"bytesInOutput":4028},"src/constants.ts":{"bytesInOutput":205},"src/utils.ts":{"bytesInOutput":3328},"src/index.ts":{"bytesInOutput":0}},"bytes":18698}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/browser-plugin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Browser integration plugin with History API, hash routing, and popstate support",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"sideEffects": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@real-router/core": "^0.
|
|
48
|
+
"@real-router/core": "^0.27.0",
|
|
49
49
|
"@real-router/logger": "^0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@testing-library/jest-dom": "6.9.1",
|
|
53
53
|
"jsdom": "27.4.0",
|
|
54
|
-
"type-guards": "^0.2.
|
|
54
|
+
"type-guards": "^0.2.4"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"test": "vitest",
|