@real-router/svelte 0.17.51 → 0.17.52
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/dom-utils/link-utils.js +12 -1
- package/package.json +6 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { putField } from "@real-router/core/utils";
|
|
1
2
|
/**
|
|
2
3
|
* Intrinsics captured at module load (#1971).
|
|
3
4
|
*
|
|
@@ -125,7 +126,17 @@ export function buildHref(router, routeName, routeParams, routeSearch, hash) {
|
|
|
125
126
|
export function navigateWithHash(router, routeName, routeParams, routeSearch, hash, extraOptions) {
|
|
126
127
|
const opts = { ...extraOptions };
|
|
127
128
|
if (hash !== undefined) {
|
|
128
|
-
opts.hash =
|
|
129
|
+
// ⚑ `putField`, not `opts.hash = …` (#2141 / #1852). The spread above produces
|
|
130
|
+
// no own key for this slot unless the caller's extra options carried one, so
|
|
131
|
+
// a plain assignment walks the prototype: an ambient accessor an application
|
|
132
|
+
// or a polyfill put on `Object.prototype` takes the value and the navigation
|
|
133
|
+
// runs without the fragment it was asked for, or — getter-only — throws.
|
|
134
|
+
//
|
|
135
|
+
// ⚠ This dir is shared, so one unguarded write here multiplies by its whole
|
|
136
|
+
// consumer set — `packages/react` is the coverage and authority owner
|
|
137
|
+
// (#1838) and owns that count. Its scan classifies COMPUTED-key writes only,
|
|
138
|
+
// which is why a literal slot like this one sat outside it.
|
|
139
|
+
putField(opts, "hash", hash);
|
|
129
140
|
}
|
|
130
141
|
const current = router.getState();
|
|
131
142
|
// What the navigation gets — the caller's `routeSearch` unless the bypass
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/svelte",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte 5 integration for Real-Router",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"license": "MIT",
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@real-router/core": "^0.126.
|
|
51
|
+
"@real-router/core": "^0.126.12",
|
|
52
52
|
"@real-router/route-utils": "^0.3.1",
|
|
53
53
|
"@real-router/sources": "^0.14.32"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@real-router/browser-plugin": "^0.22.
|
|
56
|
+
"@real-router/browser-plugin": "^0.22.13",
|
|
57
57
|
"@sveltejs/package": "2.5.8",
|
|
58
58
|
"@sveltejs/vite-plugin-svelte": "6.2.4",
|
|
59
59
|
"@testing-library/jest-dom": "~6.9.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@testing-library/user-event": "~14.6.1",
|
|
62
62
|
"eslint-plugin-svelte": "3.19.0",
|
|
63
63
|
"rimraf": "6.1.3",
|
|
64
|
-
"svelte": "~5.
|
|
64
|
+
"svelte": "~5.57.0",
|
|
65
65
|
"svelte-check": "4.6.0",
|
|
66
66
|
"svelte-eslint-parser": "1.8.0"
|
|
67
67
|
},
|
|
@@ -75,6 +75,8 @@
|
|
|
75
75
|
"type-check": "svelte-check --tsconfig ./tsconfig.json",
|
|
76
76
|
"lint": "eslint --cache src/ tests/ --max-warnings 0",
|
|
77
77
|
"lint:fix": "eslint --cache src/ tests/ --fix --max-warnings 0",
|
|
78
|
+
"lint:package": "publint",
|
|
79
|
+
"lint:types": "attw --pack . --ignore-rules no-resolution cjs-resolves-to-esm internal-resolution-error",
|
|
78
80
|
"bundle": "svelte-package -i src -o dist && rimraf dist/dom-utils/CLAUDE.md"
|
|
79
81
|
}
|
|
80
82
|
}
|