@sveltejs/kit 2.14.0 → 2.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/exports/public.d.ts +2 -0
- package/src/runtime/client/client.js +5 -3
- package/src/version.js +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
package/src/exports/public.d.ts
CHANGED
|
@@ -622,8 +622,10 @@ export interface KitConfig {
|
|
|
622
622
|
* What type of client-side router to use.
|
|
623
623
|
* - `'pathname'` is the default and means the current URL pathname determines the route
|
|
624
624
|
* - `'hash'` means the route is determined by `location.hash`. In this case, SSR and prerendering are disabled. This is only recommended if `pathname` is not an option, for example because you don't control the webserver where your app is deployed.
|
|
625
|
+
* It comes with some caveats: you can't use server-side rendering (or indeed any server logic), and you have to make sure that the links in your app all start with /#/, or they won't work. Beyond that, everything works exactly like a normal SvelteKit app.
|
|
625
626
|
*
|
|
626
627
|
* @default "pathname"
|
|
628
|
+
* @since 2.14.0
|
|
627
629
|
*/
|
|
628
630
|
type?: 'pathname' | 'hash';
|
|
629
631
|
};
|
|
@@ -1191,13 +1191,15 @@ function get_navigation_intent(url, invalidating) {
|
|
|
1191
1191
|
rerouted = app.hooks.reroute({ url: new URL(url) }) ?? url;
|
|
1192
1192
|
|
|
1193
1193
|
if (typeof rerouted === 'string') {
|
|
1194
|
+
const tmp = new URL(url); // do not mutate the incoming URL
|
|
1195
|
+
|
|
1194
1196
|
if (app.hash) {
|
|
1195
|
-
|
|
1197
|
+
tmp.hash = rerouted;
|
|
1196
1198
|
} else {
|
|
1197
|
-
|
|
1199
|
+
tmp.pathname = rerouted;
|
|
1198
1200
|
}
|
|
1199
1201
|
|
|
1200
|
-
rerouted =
|
|
1202
|
+
rerouted = tmp;
|
|
1201
1203
|
}
|
|
1202
1204
|
} catch (e) {
|
|
1203
1205
|
if (DEV) {
|
package/src/version.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -604,8 +604,10 @@ declare module '@sveltejs/kit' {
|
|
|
604
604
|
* What type of client-side router to use.
|
|
605
605
|
* - `'pathname'` is the default and means the current URL pathname determines the route
|
|
606
606
|
* - `'hash'` means the route is determined by `location.hash`. In this case, SSR and prerendering are disabled. This is only recommended if `pathname` is not an option, for example because you don't control the webserver where your app is deployed.
|
|
607
|
+
* It comes with some caveats: you can't use server-side rendering (or indeed any server logic), and you have to make sure that the links in your app all start with /#/, or they won't work. Beyond that, everything works exactly like a normal SvelteKit app.
|
|
607
608
|
*
|
|
608
609
|
* @default "pathname"
|
|
610
|
+
* @since 2.14.0
|
|
609
611
|
*/
|
|
610
612
|
type?: 'pathname' | 'hash';
|
|
611
613
|
};
|
package/types/index.d.ts.map
CHANGED
|
@@ -159,6 +159,6 @@
|
|
|
159
159
|
null,
|
|
160
160
|
null
|
|
161
161
|
],
|
|
162
|
-
"mappings": ";;;;;;;;;kBA2BiBA,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;;;;;;;;kBAeTC,aAAaA;;;;;;;;;;;;;;;;;kBAiBbC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkGPC,MAAMA;;;;;;;;;;;;;;;;;;;;;kBAqBNC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4DPC,QAAQA;;;;;;;;kBAQRC,SAASA
|
|
162
|
+
"mappings": ";;;;;;;;;kBA2BiBA,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;;;;;;;;kBAeTC,aAAaA;;;;;;;;;;;;;;;;;kBAiBbC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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