@sveltejs/kit 3.0.0-next.6 → 3.0.0-next.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 +7 -2
- package/src/core/adapt/builder.js +11 -39
- package/src/core/config/index.js +76 -71
- package/src/core/config/options.js +280 -285
- package/src/core/config/types.d.ts +1 -1
- package/src/core/env.js +85 -1
- package/src/core/generate_manifest/index.js +12 -15
- package/src/core/sync/create_manifest_data/index.js +6 -44
- package/src/core/sync/write_client_manifest.js +7 -14
- package/src/core/sync/write_non_ambient.js +10 -7
- package/src/core/sync/write_root.js +9 -30
- package/src/core/sync/write_server.js +0 -1
- package/src/core/sync/write_types/index.js +11 -10
- package/src/exports/index.js +3 -3
- package/src/exports/internal/client.js +5 -0
- package/src/exports/internal/index.js +1 -91
- package/src/exports/internal/{event.js → server/event.js} +1 -2
- package/src/exports/internal/server/index.js +33 -0
- package/src/exports/internal/shared.js +89 -0
- package/src/exports/node/index.js +1 -1
- package/src/exports/params.js +63 -0
- package/src/exports/public.d.ts +82 -32
- package/src/exports/url.js +84 -0
- package/src/exports/vite/dev/index.js +28 -17
- package/src/exports/vite/index.js +217 -156
- package/src/exports/vite/preview/index.js +1 -1
- package/src/exports/vite/utils.js +3 -5
- package/src/runtime/app/paths/client.js +3 -7
- package/src/runtime/app/paths/server.js +1 -1
- package/src/runtime/app/server/remote/query.js +6 -12
- package/src/runtime/app/state/client.js +1 -2
- package/src/runtime/app/stores.js +13 -76
- package/src/runtime/client/client.js +26 -79
- package/src/runtime/client/remote-functions/cache.svelte.js +3 -1
- package/src/runtime/client/remote-functions/form.svelte.js +5 -24
- package/src/runtime/client/remote-functions/prerender.svelte.js +10 -3
- package/src/runtime/client/remote-functions/query/instance.svelte.js +18 -9
- package/src/runtime/client/remote-functions/query-live/instance.svelte.js +16 -6
- package/src/runtime/client/remote-functions/shared.svelte.js +1 -2
- package/src/runtime/client/state.svelte.js +66 -49
- package/src/runtime/client/types.d.ts +1 -1
- package/src/runtime/client/utils.js +0 -96
- package/src/runtime/form-utils.js +15 -2
- package/src/runtime/server/index.js +1 -1
- package/src/runtime/server/page/load_data.js +1 -1
- package/src/runtime/server/page/render.js +15 -24
- package/src/runtime/server/page/server_routing.js +13 -9
- package/src/runtime/server/remote.js +21 -12
- package/src/runtime/server/respond.js +11 -8
- package/src/runtime/telemetry/otel.js +1 -1
- package/src/types/ambient.d.ts +5 -1
- package/src/types/global-private.d.ts +1 -1
- package/src/types/internal.d.ts +9 -10
- package/src/utils/error.js +1 -1
- package/src/utils/mime.js +9 -0
- package/src/utils/params.js +66 -0
- package/src/utils/routing.js +84 -38
- package/src/utils/streaming.js +14 -4
- package/src/utils/url.js +0 -79
- package/src/version.js +1 -1
- package/types/index.d.ts +98 -87
- package/types/index.d.ts.map +10 -7
- package/src/exports/internal/server.js +0 -22
- /package/src/exports/internal/{remote-functions.js → server/remote-functions.js} +0 -0
package/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
declare module '@sveltejs/kit' {
|
|
5
5
|
import type { SvelteConfig } from '@sveltejs/vite-plugin-svelte';
|
|
6
6
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
|
+
import type { Plugin } from 'vite';
|
|
7
8
|
import type { RouteId as AppRouteId, LayoutParams as AppLayoutParams, ResolvedPathname } from '$app/types';
|
|
8
9
|
// @ts-ignore this is an optional peer dependency so could be missing. Written like this so dts-buddy preserves the ts-ignore
|
|
9
10
|
type Span = import('@opentelemetry/api').Span;
|
|
@@ -44,6 +45,13 @@ declare module '@sveltejs/kit' {
|
|
|
44
45
|
* during dev, build and prerendering.
|
|
45
46
|
*/
|
|
46
47
|
emulate?: () => MaybePromise<Emulator>;
|
|
48
|
+
vite?: {
|
|
49
|
+
/**
|
|
50
|
+
* Plugins provided by the adapter are placed before any of SvelteKit's own plugins.
|
|
51
|
+
* @since 3.0.0
|
|
52
|
+
*/
|
|
53
|
+
plugins?: Plugin[];
|
|
54
|
+
};
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
export type LoadProperties<input extends Record<string, any> | void> = input extends void
|
|
@@ -463,32 +471,6 @@ declare module '@sveltejs/kit' {
|
|
|
463
471
|
};
|
|
464
472
|
/** Experimental features. Here be dragons. These are not subject to semantic versioning, so breaking changes or removal can happen in any release. */
|
|
465
473
|
experimental?: {
|
|
466
|
-
/**
|
|
467
|
-
* Options for enabling server-side [OpenTelemetry](https://opentelemetry.io/) tracing for SvelteKit operations including the [`handle` hook](https://svelte.dev/docs/kit/hooks#Server-hooks-handle), [`load` functions](https://svelte.dev/docs/kit/load), [form actions](https://svelte.dev/docs/kit/form-actions), and [remote functions](https://svelte.dev/docs/kit/remote-functions).
|
|
468
|
-
* @default { server: false, serverFile: false }
|
|
469
|
-
* @since 2.31.0
|
|
470
|
-
*/
|
|
471
|
-
tracing?: {
|
|
472
|
-
/**
|
|
473
|
-
* Enables server-side [OpenTelemetry](https://opentelemetry.io/) span emission for SvelteKit operations including the [`handle` hook](https://svelte.dev/docs/kit/hooks#Server-hooks-handle), [`load` functions](https://svelte.dev/docs/kit/load), [form actions](https://svelte.dev/docs/kit/form-actions), and [remote functions](https://svelte.dev/docs/kit/remote-functions).
|
|
474
|
-
* @default false
|
|
475
|
-
* @since 2.31.0
|
|
476
|
-
*/
|
|
477
|
-
server?: boolean;
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* @since 2.31.0
|
|
482
|
-
*/
|
|
483
|
-
instrumentation?: {
|
|
484
|
-
/**
|
|
485
|
-
* Enables `instrumentation.server.js` for tracing and observability instrumentation.
|
|
486
|
-
* @default false
|
|
487
|
-
* @since 2.31.0
|
|
488
|
-
*/
|
|
489
|
-
server?: boolean;
|
|
490
|
-
};
|
|
491
|
-
|
|
492
474
|
/**
|
|
493
475
|
* Whether to enable the experimental remote functions feature. This feature is not yet stable and may be changed or removed at any time.
|
|
494
476
|
* @default false
|
|
@@ -692,7 +674,7 @@ declare module '@sveltejs/kit' {
|
|
|
692
674
|
* @default undefined
|
|
693
675
|
* @since 3.0
|
|
694
676
|
*/
|
|
695
|
-
origin?:
|
|
677
|
+
origin?: string;
|
|
696
678
|
/**
|
|
697
679
|
* Whether to use relative asset paths.
|
|
698
680
|
*
|
|
@@ -877,6 +859,17 @@ declare module '@sveltejs/kit' {
|
|
|
877
859
|
register?: false;
|
|
878
860
|
}
|
|
879
861
|
);
|
|
862
|
+
/**
|
|
863
|
+
* Options for enabling [OpenTelemetry](https://opentelemetry.io/) tracing for SvelteKit operations.
|
|
864
|
+
* @default { server: false }
|
|
865
|
+
*/
|
|
866
|
+
tracing?: {
|
|
867
|
+
/**
|
|
868
|
+
* Enables server-side [OpenTelemetry](https://opentelemetry.io/) span emission for SvelteKit operations including the [`handle` hook](https://svelte.dev/docs/kit/hooks#Server-hooks-handle), [`load` functions](https://svelte.dev/docs/kit/load), [form actions](https://svelte.dev/docs/kit/form-actions), and [remote functions](https://svelte.dev/docs/kit/remote-functions). Tracing — and more significantly, observability instrumentation — can have a nontrivial overhead, so consider whether you really need it, or if it might be more appropriate to turn it on in development and preview environments only.
|
|
869
|
+
* @default false
|
|
870
|
+
*/
|
|
871
|
+
server?: boolean;
|
|
872
|
+
};
|
|
880
873
|
typescript?: {
|
|
881
874
|
/**
|
|
882
875
|
* A function that allows you to edit the generated `tsconfig.json`. You can mutate the config (recommended) or return a new one.
|
|
@@ -1051,7 +1044,7 @@ declare module '@sveltejs/kit' {
|
|
|
1051
1044
|
*/
|
|
1052
1045
|
export interface Transporter<
|
|
1053
1046
|
T = any,
|
|
1054
|
-
U =
|
|
1047
|
+
U = any /* minus falsy values, but we can't properly express that */
|
|
1055
1048
|
> {
|
|
1056
1049
|
encode: (value: T) => false | U;
|
|
1057
1050
|
decode: (data: U) => T;
|
|
@@ -1410,7 +1403,7 @@ declare module '@sveltejs/kit' {
|
|
|
1410
1403
|
};
|
|
1411
1404
|
|
|
1412
1405
|
/**
|
|
1413
|
-
* The shape of the [`page`](https://svelte.dev/docs/kit/$app-state#page) reactive object
|
|
1406
|
+
* The shape of the [`page`](https://svelte.dev/docs/kit/$app-state#page) reactive object.
|
|
1414
1407
|
*/
|
|
1415
1408
|
export interface Page<
|
|
1416
1409
|
Params extends AppLayoutParams<'/'> = AppLayoutParams<'/'>,
|
|
@@ -1458,7 +1451,62 @@ declare module '@sveltejs/kit' {
|
|
|
1458
1451
|
/**
|
|
1459
1452
|
* The shape of a param matcher. See [matching](https://svelte.dev/docs/kit/advanced-routing#Matching) for more info.
|
|
1460
1453
|
*/
|
|
1461
|
-
export type ParamMatcher =
|
|
1454
|
+
export type ParamMatcher<Output = any> = StandardSchemaV1<string, Output>;
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* A value that can be parsed from a URL param and losslessly encoded with `String(...)`.
|
|
1458
|
+
*/
|
|
1459
|
+
export type ParamValue = string | number | boolean | bigint;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* A param matcher definition passed to [`defineParams`](https://svelte.dev/docs/kit/@sveltejs-kit#defineParams).
|
|
1463
|
+
*/
|
|
1464
|
+
export type ParamDefinition =
|
|
1465
|
+
| ((param: string) => ParamValue | undefined)
|
|
1466
|
+
| StandardSchemaV1<string, ParamValue>;
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* The return type of [`defineParams`](https://svelte.dev/docs/kit/@sveltejs-kit#defineParams).
|
|
1470
|
+
*/
|
|
1471
|
+
export type DefinedParams<T extends Record<string, ParamDefinition>> = {
|
|
1472
|
+
readonly [K in keyof T]: ParamEntry<T[K]>;
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Normalizes a property of defineParams (schema or function) to standard schema.
|
|
1477
|
+
*/
|
|
1478
|
+
type ParamEntry<M> =
|
|
1479
|
+
M extends StandardSchemaV1<any, any>
|
|
1480
|
+
? StandardSchemaV1.InferOutput<M> extends ParamValue
|
|
1481
|
+
? StandardSchemaV1<any, M>
|
|
1482
|
+
: StandardSchemaV1<any, never>
|
|
1483
|
+
: M extends (param: string) => infer R
|
|
1484
|
+
? Exclude<R, undefined> extends ParamValue
|
|
1485
|
+
? StandardSchemaV1<any, Exclude<R, undefined>>
|
|
1486
|
+
: StandardSchemaV1<any, never>
|
|
1487
|
+
: never;
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Extracts the param type from a matcher.
|
|
1491
|
+
*/
|
|
1492
|
+
export type MatcherParam<M extends StandardSchemaV1<any, any>> =
|
|
1493
|
+
M extends StandardSchemaV1<any, infer Inner>
|
|
1494
|
+
? Inner extends ParamValue
|
|
1495
|
+
? Inner
|
|
1496
|
+
: Inner extends StandardSchemaV1<any, any>
|
|
1497
|
+
? StandardSchemaV1.InferOutput<Inner> extends ParamValue
|
|
1498
|
+
? StandardSchemaV1.InferOutput<Inner>
|
|
1499
|
+
: never
|
|
1500
|
+
: never
|
|
1501
|
+
: never;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Define [parameter matchers](https://svelte.dev/docs/kit/advanced-routing#Matching) for your app.
|
|
1505
|
+
*
|
|
1506
|
+
* */
|
|
1507
|
+
export function defineParams<T extends Record<string, ParamDefinition>>(
|
|
1508
|
+
definitions: T
|
|
1509
|
+
): DefinedParams<T>;
|
|
1462
1510
|
|
|
1463
1511
|
/**
|
|
1464
1512
|
* A single entry yielded by [`requested`](https://svelte.dev/docs/kit/$app-server#requested)
|
|
@@ -2257,8 +2305,8 @@ declare module '@sveltejs/kit' {
|
|
|
2257
2305
|
| RemoteQueryOverride;
|
|
2258
2306
|
|
|
2259
2307
|
export type RemoteResource<T> = Promise<T> & {
|
|
2260
|
-
/** The error in case the query fails.
|
|
2261
|
-
get error():
|
|
2308
|
+
/** The error in case the query fails. */
|
|
2309
|
+
get error(): App.Error | undefined;
|
|
2262
2310
|
/** `true` before the first result is available and during refreshes */
|
|
2263
2311
|
get loading(): boolean;
|
|
2264
2312
|
} & (
|
|
@@ -2718,7 +2766,7 @@ declare module '@sveltejs/kit' {
|
|
|
2718
2766
|
};
|
|
2719
2767
|
nodes: PageNode[];
|
|
2720
2768
|
routes: RouteData[];
|
|
2721
|
-
|
|
2769
|
+
params: string | null;
|
|
2722
2770
|
}
|
|
2723
2771
|
|
|
2724
2772
|
interface PageNode {
|
|
@@ -2741,7 +2789,7 @@ declare module '@sveltejs/kit' {
|
|
|
2741
2789
|
// Recursive implementation of TypeScript's Required utility type.
|
|
2742
2790
|
// Will recursively continue until it reaches a primitive or Function
|
|
2743
2791
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
2744
|
-
[K in keyof T]-?: Extract<T[K], Function> extends never // If it does not have a Function type
|
|
2792
|
+
[K in keyof T]-?: Extract<T[K], Function | (`${string}:` & {})> extends never // If it does not have a Function type
|
|
2745
2793
|
? RecursiveRequired<T[K]> // recursively continue through.
|
|
2746
2794
|
: T[K]; // Use the exact type for everything else
|
|
2747
2795
|
};
|
|
@@ -2784,23 +2832,23 @@ declare module '@sveltejs/kit' {
|
|
|
2784
2832
|
} | null;
|
|
2785
2833
|
}
|
|
2786
2834
|
|
|
2835
|
+
// TODO get rid of this in favor us using just import('svelte').Component<any, any, any>
|
|
2787
2836
|
interface SSRComponent {
|
|
2788
2837
|
default: {
|
|
2789
2838
|
render(
|
|
2790
2839
|
props: Record<string, any>,
|
|
2791
2840
|
opts: { context: Map<any, any>; csp?: { nonce?: string; hash?: boolean } }
|
|
2792
|
-
): {
|
|
2793
|
-
|
|
2841
|
+
): Promise<{
|
|
2842
|
+
body: string;
|
|
2794
2843
|
head: string;
|
|
2795
2844
|
css: {
|
|
2796
2845
|
code: string;
|
|
2797
2846
|
map: any; // TODO
|
|
2798
2847
|
};
|
|
2799
|
-
|
|
2800
|
-
hashes?: {
|
|
2848
|
+
hashes: {
|
|
2801
2849
|
script: Array<`sha256-${string}`>;
|
|
2802
2850
|
};
|
|
2803
|
-
}
|
|
2851
|
+
}>;
|
|
2804
2852
|
};
|
|
2805
2853
|
}
|
|
2806
2854
|
|
|
@@ -2892,7 +2940,7 @@ declare module '@sveltejs/kit' {
|
|
|
2892
2940
|
leaf: [has_server_load: boolean, node_id: number];
|
|
2893
2941
|
}
|
|
2894
2942
|
|
|
2895
|
-
type ValidatedConfig = Config & {
|
|
2943
|
+
type ValidatedConfig = Omit<Config, 'kit'> & {
|
|
2896
2944
|
kit: ValidatedKitConfig;
|
|
2897
2945
|
extensions: string[];
|
|
2898
2946
|
};
|
|
@@ -3454,10 +3502,10 @@ declare module '$app/paths' {
|
|
|
3454
3502
|
* @since 2.52.0
|
|
3455
3503
|
*
|
|
3456
3504
|
* */
|
|
3457
|
-
export function match(url: Pathname | URL | (string & {})): Promise<{
|
|
3458
|
-
id:
|
|
3459
|
-
params:
|
|
3460
|
-
} | null>;
|
|
3505
|
+
export function match(url: Pathname | URL | (string & {})): Promise<{ [K in RouteId]: {
|
|
3506
|
+
id: K;
|
|
3507
|
+
params: RouteParams<K>;
|
|
3508
|
+
}; }[RouteId] | null>;
|
|
3461
3509
|
type StripSearchOrHash<T extends string> = T extends `${infer Pathname}?${string}`
|
|
3462
3510
|
? Pathname
|
|
3463
3511
|
: T extends `${infer Pathname}#${string}`
|
|
@@ -3479,8 +3527,8 @@ declare module '$app/paths' {
|
|
|
3479
3527
|
}
|
|
3480
3528
|
|
|
3481
3529
|
declare module '$app/server' {
|
|
3482
|
-
import type { RequestEvent, RemoteCommand, RemoteForm, RemoteFormInput, InvalidField, RemotePrerenderFunction, RemoteQueryFunction, RemoteLiveQueryFunction, QueryRequestedResult, LiveQueryRequestedResult } from '@sveltejs/kit';
|
|
3483
3530
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3531
|
+
import type { RequestEvent, RemoteCommand, RemoteForm, RemoteFormInput, InvalidField, RemotePrerenderFunction, RemoteQueryFunction, RemoteLiveQueryFunction, QueryRequestedResult, LiveQueryRequestedResult } from '@sveltejs/kit';
|
|
3484
3532
|
/**
|
|
3485
3533
|
* Read the contents of an imported asset from the filesystem
|
|
3486
3534
|
* @example
|
|
@@ -3798,47 +3846,6 @@ declare module '$app/state' {
|
|
|
3798
3846
|
export {};
|
|
3799
3847
|
}
|
|
3800
3848
|
|
|
3801
|
-
declare module '$app/stores' {
|
|
3802
|
-
export function getStores(): {
|
|
3803
|
-
|
|
3804
|
-
page: typeof page;
|
|
3805
|
-
|
|
3806
|
-
navigating: typeof navigating;
|
|
3807
|
-
|
|
3808
|
-
updated: typeof updated;
|
|
3809
|
-
};
|
|
3810
|
-
/**
|
|
3811
|
-
* A readable store whose value contains page data.
|
|
3812
|
-
*
|
|
3813
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
3814
|
-
*
|
|
3815
|
-
* @deprecated Use `page` from `$app/state` instead (requires Svelte 5, [see docs for more info](https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated))
|
|
3816
|
-
* */
|
|
3817
|
-
export const page: import("svelte/store").Readable<import("@sveltejs/kit").Page>;
|
|
3818
|
-
/**
|
|
3819
|
-
* A readable store.
|
|
3820
|
-
* When navigating starts, its value is a `Navigation` object with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.
|
|
3821
|
-
* When navigating finishes, its value reverts to `null`.
|
|
3822
|
-
*
|
|
3823
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
3824
|
-
*
|
|
3825
|
-
* @deprecated Use `navigating` from `$app/state` instead (requires Svelte 5, [see docs for more info](https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated))
|
|
3826
|
-
* */
|
|
3827
|
-
export const navigating: import("svelte/store").Readable<import("@sveltejs/kit").Navigation | null>;
|
|
3828
|
-
/**
|
|
3829
|
-
* A readable store whose initial value is `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update the store value to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.
|
|
3830
|
-
*
|
|
3831
|
-
* On the server, this store can only be subscribed to during component initialization. In the browser, it can be subscribed to at any time.
|
|
3832
|
-
*
|
|
3833
|
-
* @deprecated Use `updated` from `$app/state` instead (requires Svelte 5, [see docs for more info](https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated))
|
|
3834
|
-
* */
|
|
3835
|
-
export const updated: import("svelte/store").Readable<boolean> & {
|
|
3836
|
-
check(): Promise<boolean>;
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
export {};
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
3849
|
/**
|
|
3843
3850
|
* It's possible to tell SvelteKit how to type objects inside your app by declaring the `App` namespace. By default, a new project will have a file called `src/app.d.ts` containing the following:
|
|
3844
3851
|
*
|
|
@@ -3873,23 +3880,27 @@ declare namespace App {
|
|
|
3873
3880
|
/**
|
|
3874
3881
|
* The interface that defines `event.locals`, which can be accessed in server [hooks](https://svelte.dev/docs/kit/hooks) (`handle`, and `handleError`), server-only `load` functions, and `+server.js` files.
|
|
3875
3882
|
*/
|
|
3883
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
3876
3884
|
export interface Locals {}
|
|
3877
3885
|
|
|
3878
3886
|
/**
|
|
3879
|
-
* Defines the common shape of the [page.data state](https://svelte.dev/docs/kit/$app-state#page)
|
|
3887
|
+
* Defines the common shape of the [page.data state](https://svelte.dev/docs/kit/$app-state#page) - that is, the data that is shared between all pages.
|
|
3880
3888
|
* The `Load` and `ServerLoad` functions in `./$types` will be narrowed accordingly.
|
|
3881
3889
|
* Use optional properties for data that is only present on specific pages. Do not add an index signature (`[key: string]: any`).
|
|
3882
3890
|
*/
|
|
3891
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
3883
3892
|
export interface PageData {}
|
|
3884
3893
|
|
|
3885
3894
|
/**
|
|
3886
3895
|
* The shape of the `page.state` object, which can be manipulated using the [`pushState`](https://svelte.dev/docs/kit/$app-navigation#pushState) and [`replaceState`](https://svelte.dev/docs/kit/$app-navigation#replaceState) functions from `$app/navigation`.
|
|
3887
3896
|
*/
|
|
3897
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
3888
3898
|
export interface PageState {}
|
|
3889
3899
|
|
|
3890
3900
|
/**
|
|
3891
3901
|
* If your adapter provides [platform-specific context](https://svelte.dev/docs/kit/adapters#Platform-specific-context) via `event.platform`, you can specify it here.
|
|
3892
3902
|
*/
|
|
3903
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
3893
3904
|
export interface Platform {}
|
|
3894
3905
|
}
|
|
3895
3906
|
|
package/types/index.d.ts.map
CHANGED
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
"AfterNavigate",
|
|
46
46
|
"Page",
|
|
47
47
|
"ParamMatcher",
|
|
48
|
+
"ParamValue",
|
|
49
|
+
"ParamDefinition",
|
|
50
|
+
"DefinedParams",
|
|
51
|
+
"ParamEntry",
|
|
52
|
+
"MatcherParam",
|
|
53
|
+
"defineParams",
|
|
48
54
|
"RequestedEntry",
|
|
49
55
|
"LiveRequestedEntry",
|
|
50
56
|
"QueryRequestedResult",
|
|
@@ -193,8 +199,7 @@
|
|
|
193
199
|
"HasNonOptionalBoolean",
|
|
194
200
|
"page",
|
|
195
201
|
"navigating",
|
|
196
|
-
"updated"
|
|
197
|
-
"getStores"
|
|
202
|
+
"updated"
|
|
198
203
|
],
|
|
199
204
|
"sources": [
|
|
200
205
|
"../src/exports/public.d.ts",
|
|
@@ -214,9 +219,8 @@
|
|
|
214
219
|
"../src/runtime/app/paths/client.js",
|
|
215
220
|
"../src/runtime/app/paths/types.d.ts",
|
|
216
221
|
"../src/runtime/app/server/index.js",
|
|
217
|
-
"../src/exports/internal/event.js",
|
|
218
|
-
"../src/runtime/app/state/index.js"
|
|
219
|
-
"../src/runtime/app/stores.js"
|
|
222
|
+
"../src/exports/internal/server/event.js",
|
|
223
|
+
"../src/runtime/app/state/index.js"
|
|
220
224
|
],
|
|
221
225
|
"sourcesContent": [
|
|
222
226
|
null,
|
|
@@ -237,9 +241,8 @@
|
|
|
237
241
|
null,
|
|
238
242
|
null,
|
|
239
243
|
null,
|
|
240
|
-
null,
|
|
241
244
|
null
|
|
242
245
|
],
|
|
243
|
-
"mappings": "
|
|
246
|
+
"mappings": ";;;;;;;;;MAmCKA,IAAIA;;MAEJC,0BAA0BA;;;;;kBAKdC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAwCZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;MAQrBC,aAAaA;;;;;OAKJC,YAAYA;;kBAETC,aAAaA;;;;;;MAMzBC,qBAAqBA;;;;;;;;;;;kBAWTC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6IPC,MAAMA;;;;;;;;;;;kBAWNC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6EPC,QAAQA;;;;;;;;kBAQRC,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,IAAIA;;;;;;;;iBCSJC,eAAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Mf6TnBC,qCAAqCA;;;;;;;;MAuLrCC,8BAA8BA;MDxW9BpF,YAAYA;;MA2GZiB,KAAKA;;MAELoE,qBAAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ciBnOpBC,IAAIA;;;;;cAQJC,UAAUA;;;;;;;;;;;cAMVC,OAAOA",
|
|
244
247
|
"ignoreList": []
|
|
245
248
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @template {{ tracing: { enabled: boolean, root: import('@opentelemetry/api').Span, current: import('@opentelemetry/api').Span } }} T
|
|
3
|
-
* @param {T} event_like
|
|
4
|
-
* @param {import('@opentelemetry/api').Span} current
|
|
5
|
-
* @returns {T}
|
|
6
|
-
*/
|
|
7
|
-
export function merge_tracing(event_like, current) {
|
|
8
|
-
return {
|
|
9
|
-
...event_like,
|
|
10
|
-
tracing: {
|
|
11
|
-
...event_like.tracing,
|
|
12
|
-
current
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
with_request_store,
|
|
19
|
-
getRequestEvent,
|
|
20
|
-
get_request_store,
|
|
21
|
-
try_get_request_store
|
|
22
|
-
} from './event.js';
|
|
File without changes
|