houdini 2.0.0-next.33 → 2.0.0-next.34
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/build/cmd/init.js +2 -2
- package/build/package.json +1 -1
- package/build/router/match.d.ts +2 -1
- package/build/router/types.d.ts +2 -1
- package/build/runtime/cache/benchmarks/cache.bench.d.ts +1 -0
- package/build/runtime/cache/benchmarks/cache.bench.js +943 -0
- package/build/runtime/cache/gc.d.ts +1 -0
- package/build/runtime/cache/gc.js +4 -1
- package/build/runtime/cache/index.d.ts +7 -5
- package/build/runtime/cache/index.js +144 -40
- package/build/runtime/cache/lists.d.ts +5 -0
- package/build/runtime/cache/lists.js +89 -11
- package/build/runtime/cache/staleManager.d.ts +1 -0
- package/build/runtime/cache/staleManager.js +4 -0
- package/build/runtime/cache/storage.d.ts +3 -0
- package/build/runtime/cache/storage.js +119 -50
- package/build/runtime/cache/stuff.js +3 -2
- package/build/runtime/cache/subscription.d.ts +14 -7
- package/build/runtime/cache/subscription.js +92 -58
- package/build/runtime/documentStore.d.ts +1 -0
- package/build/runtime/documentStore.js +1 -0
- package/build/runtime/selection.js +15 -0
- package/build/runtime/types.d.ts +46 -15
- package/build/vite/houdini.js +0 -49
- package/package.json +2 -2
package/build/cmd/init.js
CHANGED
|
@@ -472,12 +472,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
472
472
|
}
|
|
473
473
|
packageJSON2.devDependencies = {
|
|
474
474
|
...packageJSON2.devDependencies,
|
|
475
|
-
houdini: "^2.0.0-next.
|
|
475
|
+
houdini: "^2.0.0-next.34"
|
|
476
476
|
};
|
|
477
477
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
478
478
|
packageJSON2.devDependencies = {
|
|
479
479
|
...packageJSON2.devDependencies,
|
|
480
|
-
"houdini-svelte": "^3.0.0-next.
|
|
480
|
+
"houdini-svelte": "^3.0.0-next.33"
|
|
481
481
|
};
|
|
482
482
|
} else {
|
|
483
483
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/package.json
CHANGED
package/build/router/match.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type RouteParam = {
|
|
|
7
7
|
optional: boolean;
|
|
8
8
|
rest: boolean;
|
|
9
9
|
chained: boolean;
|
|
10
|
+
type?: string;
|
|
10
11
|
};
|
|
11
12
|
export type ParamMatcher = (param: string) => boolean;
|
|
12
13
|
export declare function find_match<_ComponentType>(config: ConfigFile, manifest: RouterManifest<_ComponentType>, current: string, allowNull: true): [RouterPageManifest<_ComponentType> | null, GraphQLVariables];
|
|
@@ -25,7 +26,7 @@ export declare function parse_page_pattern(id: string): {
|
|
|
25
26
|
* and will be returned as `['']`.
|
|
26
27
|
*/
|
|
27
28
|
export declare function get_route_segments(route: string): string[];
|
|
28
|
-
export declare function exec(match: RegExpMatchArray, params: RouteParam[]): Record<string, string> | undefined;
|
|
29
|
+
export declare function exec(match: RegExpMatchArray, params: readonly RouteParam[]): Record<string, string> | undefined;
|
|
29
30
|
export declare function parseScalar(config: ConfigFile, type: string, value?: string): string | number | boolean | undefined;
|
|
30
31
|
export {};
|
|
31
32
|
/**
|
package/build/router/types.d.ts
CHANGED
|
@@ -9,8 +9,9 @@ export type RouterManifest<_ComponentType> = {
|
|
|
9
9
|
export type { ServerAdapterFactory } from './server.js';
|
|
10
10
|
export type RouterPageManifest<_ComponentType> = {
|
|
11
11
|
id: string;
|
|
12
|
+
url: string;
|
|
12
13
|
pattern: RegExp;
|
|
13
|
-
params: RouteParam[];
|
|
14
|
+
params: readonly RouteParam[];
|
|
14
15
|
documents: Record<string, {
|
|
15
16
|
artifact: () => Promise<{
|
|
16
17
|
default: QueryArtifact;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|