houdini 2.0.0-next.33 → 2.0.0-next.35

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 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.33"
475
+ houdini: "^2.0.0-next.35"
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.32"
480
+ "houdini-svelte": "^3.0.0-next.33"
481
481
  };
482
482
  } else {
483
483
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.33",
3
+ "version": "2.0.0-next.35",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -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
  /**
@@ -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 {};