@sveltejs/kit 2.7.5 → 2.7.7
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 +4 -4
- package/src/runtime/server/cookie.js +3 -1
- package/src/types/ambient.d.ts +1 -1
- package/src/version.js +1 -1
- package/types/index.d.ts +5 -5
package/package.json
CHANGED
package/src/exports/public.d.ts
CHANGED
|
@@ -441,7 +441,7 @@ export interface KitConfig {
|
|
|
441
441
|
*/
|
|
442
442
|
lib?: string;
|
|
443
443
|
/**
|
|
444
|
-
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#
|
|
444
|
+
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching)
|
|
445
445
|
* @default "src/params"
|
|
446
446
|
*/
|
|
447
447
|
params?: string;
|
|
@@ -689,7 +689,7 @@ export type Handle = (input: {
|
|
|
689
689
|
}) => MaybePromise<Response>;
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
|
-
* The server-side [`handleError`](https://svelte.dev/docs/kit/hooks#
|
|
692
|
+
* The server-side [`handleError`](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) hook runs when an unexpected error is thrown while responding to a request.
|
|
693
693
|
*
|
|
694
694
|
* If an unexpected error is thrown during loading or rendering, this function will be called with the error and the event.
|
|
695
695
|
* Make sure that this function _never_ throws an error.
|
|
@@ -702,7 +702,7 @@ export type HandleServerError = (input: {
|
|
|
702
702
|
}) => MaybePromise<void | App.Error>;
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
|
-
* The client-side [`handleError`](https://svelte.dev/docs/kit/hooks#
|
|
705
|
+
* The client-side [`handleError`](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) hook runs when an unexpected error is thrown while navigating.
|
|
706
706
|
*
|
|
707
707
|
* If an unexpected error is thrown during loading or the following render, this function will be called with the error and the event.
|
|
708
708
|
* Make sure that this function _never_ throws an error.
|
|
@@ -715,7 +715,7 @@ export type HandleClientError = (input: {
|
|
|
715
715
|
}) => MaybePromise<void | App.Error>;
|
|
716
716
|
|
|
717
717
|
/**
|
|
718
|
-
* The [`handleFetch`](https://svelte.dev/docs/kit/hooks#
|
|
718
|
+
* The [`handleFetch`](https://svelte.dev/docs/kit/hooks#Server-hooks-handleFetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
|
|
719
719
|
*/
|
|
720
720
|
export type HandleFetch = (input: {
|
|
721
721
|
event: RequestEvent;
|
|
@@ -120,7 +120,9 @@ export function get_cookies(request, url, trailing_slash) {
|
|
|
120
120
|
const illegal_characters = name.match(INVALID_COOKIE_CHARACTER_REGEX);
|
|
121
121
|
if (illegal_characters) {
|
|
122
122
|
console.warn(
|
|
123
|
-
`The cookie name "${name}" will be invalid in SvelteKit 3.0 as it contains ${illegal_characters.join(
|
|
123
|
+
`The cookie name "${name}" will be invalid in SvelteKit 3.0 as it contains ${illegal_characters.join(
|
|
124
|
+
' and '
|
|
125
|
+
)}. See RFC 2616 for more details https://datatracker.ietf.org/doc/html/rfc2616#section-2.2`
|
|
124
126
|
);
|
|
125
127
|
}
|
|
126
128
|
|
package/src/types/ambient.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare namespace App {
|
|
|
46
46
|
export interface PageState {}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* If your adapter provides [platform-specific context](https://svelte.dev/docs/kit/adapters#
|
|
49
|
+
* If your adapter provides [platform-specific context](https://svelte.dev/docs/kit/adapters#Platform-specific-context) via `event.platform`, you can specify it here.
|
|
50
50
|
*/
|
|
51
51
|
export interface Platform {}
|
|
52
52
|
}
|
package/src/version.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -423,7 +423,7 @@ declare module '@sveltejs/kit' {
|
|
|
423
423
|
*/
|
|
424
424
|
lib?: string;
|
|
425
425
|
/**
|
|
426
|
-
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#
|
|
426
|
+
* a directory containing [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching)
|
|
427
427
|
* @default "src/params"
|
|
428
428
|
*/
|
|
429
429
|
params?: string;
|
|
@@ -671,7 +671,7 @@ declare module '@sveltejs/kit' {
|
|
|
671
671
|
}) => MaybePromise<Response>;
|
|
672
672
|
|
|
673
673
|
/**
|
|
674
|
-
* The server-side [`handleError`](https://svelte.dev/docs/kit/hooks#
|
|
674
|
+
* The server-side [`handleError`](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) hook runs when an unexpected error is thrown while responding to a request.
|
|
675
675
|
*
|
|
676
676
|
* If an unexpected error is thrown during loading or rendering, this function will be called with the error and the event.
|
|
677
677
|
* Make sure that this function _never_ throws an error.
|
|
@@ -684,7 +684,7 @@ declare module '@sveltejs/kit' {
|
|
|
684
684
|
}) => MaybePromise<void | App.Error>;
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
|
-
* The client-side [`handleError`](https://svelte.dev/docs/kit/hooks#
|
|
687
|
+
* The client-side [`handleError`](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) hook runs when an unexpected error is thrown while navigating.
|
|
688
688
|
*
|
|
689
689
|
* If an unexpected error is thrown during loading or the following render, this function will be called with the error and the event.
|
|
690
690
|
* Make sure that this function _never_ throws an error.
|
|
@@ -697,7 +697,7 @@ declare module '@sveltejs/kit' {
|
|
|
697
697
|
}) => MaybePromise<void | App.Error>;
|
|
698
698
|
|
|
699
699
|
/**
|
|
700
|
-
* The [`handleFetch`](https://svelte.dev/docs/kit/hooks#
|
|
700
|
+
* The [`handleFetch`](https://svelte.dev/docs/kit/hooks#Server-hooks-handleFetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
|
|
701
701
|
*/
|
|
702
702
|
export type HandleFetch = (input: {
|
|
703
703
|
event: RequestEvent;
|
|
@@ -2287,7 +2287,7 @@ declare namespace App {
|
|
|
2287
2287
|
export interface PageState {}
|
|
2288
2288
|
|
|
2289
2289
|
/**
|
|
2290
|
-
* If your adapter provides [platform-specific context](https://svelte.dev/docs/kit/adapters#
|
|
2290
|
+
* If your adapter provides [platform-specific context](https://svelte.dev/docs/kit/adapters#Platform-specific-context) via `event.platform`, you can specify it here.
|
|
2291
2291
|
*/
|
|
2292
2292
|
export interface Platform {}
|
|
2293
2293
|
}
|