houdini 2.0.6 → 2.0.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/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.6"
475
+ houdini: "^2.0.7"
476
476
  };
477
477
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
478
478
  packageJSON2.devDependencies = {
479
479
  ...packageJSON2.devDependencies,
480
- "houdini-svelte": "^3.0.2"
480
+ "houdini-svelte": "^3.0.3"
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.6",
3
+ "version": "2.0.7",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -179,7 +179,10 @@ export type GraphQLDefaultScalar = string | number | boolean;
179
179
  type CacheComponentFields = CacheTypeDef extends {
180
180
  componentFields: infer CF;
181
181
  } ? CF : never;
182
- export type GraphQLValue = GraphQLDefaultScalar | CacheTypeDef['scalars'] | CacheComponentFields | symbol | null | GraphQLObject | GraphQLValue[] | undefined;
182
+ type CacheScalars = CacheTypeDef extends {
183
+ scalars: infer S;
184
+ } ? S : GraphQLDefaultScalar | Date;
185
+ export type GraphQLValue = GraphQLDefaultScalar | CacheScalars | CacheComponentFields | symbol | null | GraphQLObject | GraphQLValue[] | undefined;
183
186
  export type GraphQLVariables = {
184
187
  [key: string]: any;
185
188
  } | null | undefined;
@@ -418,5 +421,4 @@ export interface CacheTypeDef {
418
421
  types: {};
419
422
  lists: {};
420
423
  queries: [];
421
- scalars: boolean | number | string | Date;
422
424
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -52,7 +52,7 @@
52
52
  "recast": "^0.23.11",
53
53
  "sql.js": "^1.14.1",
54
54
  "ws": "^8.21.0",
55
- "houdini-core": "^2.0.4"
55
+ "houdini-core": "^2.0.5"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "graphql": ">=16",