houdini 1.2.55 → 1.2.57

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.
@@ -66195,6 +66195,7 @@ var Layer = class {
66195
66195
  [id]: {
66196
66196
  ...this.operations[id],
66197
66197
  fields: {
66198
+ ...this.operations[id]?.fields,
66198
66199
  [field]: [...this.operations[id]?.fields[field] || [], operation]
66199
66200
  }
66200
66201
  }
@@ -78411,12 +78412,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78411
78412
  }
78412
78413
  packageJSON2.devDependencies = {
78413
78414
  ...packageJSON2.devDependencies,
78414
- houdini: "^1.2.55"
78415
+ houdini: "^1.2.57"
78415
78416
  };
78416
78417
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78417
78418
  packageJSON2.devDependencies = {
78418
78419
  ...packageJSON2.devDependencies,
78419
- "houdini-svelte": "^1.2.55"
78420
+ "houdini-svelte": "^1.2.57"
78420
78421
  };
78421
78422
  } else {
78422
78423
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -66201,6 +66201,7 @@ var Layer = class {
66201
66201
  [id]: {
66202
66202
  ...this.operations[id],
66203
66203
  fields: {
66204
+ ...this.operations[id]?.fields,
66204
66205
  [field]: [...this.operations[id]?.fields[field] || [], operation]
66205
66206
  }
66206
66207
  }
@@ -78416,12 +78417,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78416
78417
  }
78417
78418
  packageJSON2.devDependencies = {
78418
78419
  ...packageJSON2.devDependencies,
78419
- houdini: "^1.2.55"
78420
+ houdini: "^1.2.57"
78420
78421
  };
78421
78422
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78422
78423
  packageJSON2.devDependencies = {
78423
78424
  ...packageJSON2.devDependencies,
78424
- "houdini-svelte": "^1.2.55"
78425
+ "houdini-svelte": "^1.2.57"
78425
78426
  };
78426
78427
  } else {
78427
78428
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -55416,6 +55416,7 @@ var Layer = class {
55416
55416
  [id]: {
55417
55417
  ...this.operations[id],
55418
55418
  fields: {
55419
+ ...this.operations[id]?.fields,
55419
55420
  [field]: [...this.operations[id]?.fields[field] || [], operation]
55420
55421
  }
55421
55422
  }
@@ -55416,6 +55416,7 @@ var Layer = class {
55416
55416
  [id]: {
55417
55417
  ...this.operations[id],
55418
55418
  fields: {
55419
+ ...this.operations[id]?.fields,
55419
55420
  [field]: [...this.operations[id]?.fields[field] || [], operation]
55420
55421
  }
55421
55422
  }
@@ -17,3 +17,4 @@ export declare function scalarPropertyValue(config: Config, filepath: string, mi
17
17
  parent: string;
18
18
  field: string;
19
19
  } | null): TSTypeKind;
20
+ export declare function writeTsConfig(config: Config): Promise<void>;
@@ -58255,7 +58255,8 @@ __export(lib_exports, {
58255
58255
  tsTypeReference: () => tsTypeReference,
58256
58256
  unwrapType: () => unwrapType,
58257
58257
  unwrappedTsTypeReference: () => unwrappedTsTypeReference,
58258
- wrapType: () => wrapType
58258
+ wrapType: () => wrapType,
58259
+ writeTsConfig: () => writeTsConfig
58259
58260
  });
58260
58261
  module.exports = __toCommonJS(lib_exports);
58261
58262
 
@@ -64842,6 +64843,7 @@ var Layer = class {
64842
64843
  [id]: {
64843
64844
  ...this.operations[id],
64844
64845
  fields: {
64846
+ ...this.operations[id]?.fields,
64845
64847
  [field]: [...this.operations[id]?.fields[field] || [], operation]
64846
64848
  }
64847
64849
  }
@@ -69411,6 +69413,54 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
69411
69413
  }
69412
69414
  }
69413
69415
  }
69416
+ async function writeTsConfig(config) {
69417
+ await fs_exports.mkdirp(config.rootDir);
69418
+ await fs_exports.writeFile(
69419
+ path_exports.join(config.rootDir, "tsconfig.json"),
69420
+ JSON.stringify(
69421
+ {
69422
+ compilerOptions: {
69423
+ baseUrl: ".",
69424
+ paths: {
69425
+ $houdini: ["."],
69426
+ "$houdini/*": ["./*"],
69427
+ "~": ["../src"],
69428
+ "~/*": ["../src/*"]
69429
+ },
69430
+ rootDirs: ["..", "./types"],
69431
+ target: "ESNext",
69432
+ useDefineForClassFields: true,
69433
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
69434
+ allowJs: false,
69435
+ skipLibCheck: true,
69436
+ esModuleInterop: false,
69437
+ allowSyntheticDefaultImports: true,
69438
+ strict: true,
69439
+ forceConsistentCasingInFileNames: true,
69440
+ module: "ESNext",
69441
+ moduleResolution: "Node",
69442
+ resolveJsonModule: true,
69443
+ isolatedModules: true,
69444
+ noEmit: true,
69445
+ jsx: "react-jsx"
69446
+ },
69447
+ include: [
69448
+ "ambient.d.ts",
69449
+ "./types/**/$types.d.ts",
69450
+ "../vite.config.ts",
69451
+ "../src/**/*.js",
69452
+ "../src/**/*.ts",
69453
+ "../src/**/*.jsx",
69454
+ "../src/**/*.tsx",
69455
+ "../src/+app.d.ts"
69456
+ ],
69457
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
69458
+ },
69459
+ null,
69460
+ 4
69461
+ )
69462
+ );
69463
+ }
69414
69464
 
69415
69465
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
69416
69466
  var WalkerBase = class {
@@ -69809,7 +69859,8 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69809
69859
  tsTypeReference,
69810
69860
  unwrapType,
69811
69861
  unwrappedTsTypeReference,
69812
- wrapType
69862
+ wrapType,
69863
+ writeTsConfig
69813
69864
  });
69814
69865
  /*!
69815
69866
  * cookie
@@ -64758,6 +64758,7 @@ var Layer = class {
64758
64758
  [id]: {
64759
64759
  ...this.operations[id],
64760
64760
  fields: {
64761
+ ...this.operations[id]?.fields,
64761
64762
  [field]: [...this.operations[id]?.fields[field] || [], operation]
64762
64763
  }
64763
64764
  }
@@ -69326,6 +69327,54 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
69326
69327
  }
69327
69328
  }
69328
69329
  }
69330
+ async function writeTsConfig(config) {
69331
+ await fs_exports.mkdirp(config.rootDir);
69332
+ await fs_exports.writeFile(
69333
+ path_exports.join(config.rootDir, "tsconfig.json"),
69334
+ JSON.stringify(
69335
+ {
69336
+ compilerOptions: {
69337
+ baseUrl: ".",
69338
+ paths: {
69339
+ $houdini: ["."],
69340
+ "$houdini/*": ["./*"],
69341
+ "~": ["../src"],
69342
+ "~/*": ["../src/*"]
69343
+ },
69344
+ rootDirs: ["..", "./types"],
69345
+ target: "ESNext",
69346
+ useDefineForClassFields: true,
69347
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
69348
+ allowJs: false,
69349
+ skipLibCheck: true,
69350
+ esModuleInterop: false,
69351
+ allowSyntheticDefaultImports: true,
69352
+ strict: true,
69353
+ forceConsistentCasingInFileNames: true,
69354
+ module: "ESNext",
69355
+ moduleResolution: "Node",
69356
+ resolveJsonModule: true,
69357
+ isolatedModules: true,
69358
+ noEmit: true,
69359
+ jsx: "react-jsx"
69360
+ },
69361
+ include: [
69362
+ "ambient.d.ts",
69363
+ "./types/**/$types.d.ts",
69364
+ "../vite.config.ts",
69365
+ "../src/**/*.js",
69366
+ "../src/**/*.ts",
69367
+ "../src/**/*.jsx",
69368
+ "../src/**/*.tsx",
69369
+ "../src/+app.d.ts"
69370
+ ],
69371
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
69372
+ },
69373
+ null,
69374
+ 4
69375
+ )
69376
+ );
69377
+ }
69329
69378
 
69330
69379
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
69331
69380
  var WalkerBase = class {
@@ -69723,7 +69772,8 @@ export {
69723
69772
  tsTypeReference,
69724
69773
  unwrapType,
69725
69774
  unwrappedTsTypeReference,
69726
- wrapType
69775
+ wrapType,
69776
+ writeTsConfig
69727
69777
  };
69728
69778
  /*!
69729
69779
  * cookie
@@ -413,6 +413,7 @@ class Layer {
413
413
  [id]: {
414
414
  ...this.operations[id],
415
415
  fields: {
416
+ ...this.operations[id]?.fields,
416
417
  [field]: [...this.operations[id]?.fields[field] || [], operation]
417
418
  }
418
419
  }
@@ -387,6 +387,7 @@ class Layer {
387
387
  [id]: {
388
388
  ...this.operations[id],
389
389
  fields: {
390
+ ...this.operations[id]?.fields,
390
391
  [field]: [...this.operations[id]?.fields[field] || [], operation]
391
392
  }
392
393
  }
@@ -55426,6 +55426,7 @@ var Layer = class {
55426
55426
  [id]: {
55427
55427
  ...this.operations[id],
55428
55428
  fields: {
55429
+ ...this.operations[id]?.fields,
55429
55430
  [field]: [...this.operations[id]?.fields[field] || [], operation]
55430
55431
  }
55431
55432
  }
@@ -55423,6 +55423,7 @@ var Layer = class {
55423
55423
  [id]: {
55424
55424
  ...this.operations[id],
55425
55425
  fields: {
55426
+ ...this.operations[id]?.fields,
55426
55427
  [field]: [...this.operations[id]?.fields[field] || [], operation]
55427
55428
  }
55428
55429
  }
@@ -67592,6 +67592,7 @@ var Layer = class {
67592
67592
  [id]: {
67593
67593
  ...this.operations[id],
67594
67594
  fields: {
67595
+ ...this.operations[id]?.fields,
67595
67596
  [field]: [...this.operations[id]?.fields[field] || [], operation]
67596
67597
  }
67597
67598
  }
@@ -70384,6 +70385,54 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
70384
70385
  }
70385
70386
  }
70386
70387
  }
70388
+ async function writeTsConfig(config2) {
70389
+ await fs_exports.mkdirp(config2.rootDir);
70390
+ await fs_exports.writeFile(
70391
+ path_exports.join(config2.rootDir, "tsconfig.json"),
70392
+ JSON.stringify(
70393
+ {
70394
+ compilerOptions: {
70395
+ baseUrl: ".",
70396
+ paths: {
70397
+ $houdini: ["."],
70398
+ "$houdini/*": ["./*"],
70399
+ "~": ["../src"],
70400
+ "~/*": ["../src/*"]
70401
+ },
70402
+ rootDirs: ["..", "./types"],
70403
+ target: "ESNext",
70404
+ useDefineForClassFields: true,
70405
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
70406
+ allowJs: false,
70407
+ skipLibCheck: true,
70408
+ esModuleInterop: false,
70409
+ allowSyntheticDefaultImports: true,
70410
+ strict: true,
70411
+ forceConsistentCasingInFileNames: true,
70412
+ module: "ESNext",
70413
+ moduleResolution: "Node",
70414
+ resolveJsonModule: true,
70415
+ isolatedModules: true,
70416
+ noEmit: true,
70417
+ jsx: "react-jsx"
70418
+ },
70419
+ include: [
70420
+ "ambient.d.ts",
70421
+ "./types/**/$types.d.ts",
70422
+ "../vite.config.ts",
70423
+ "../src/**/*.js",
70424
+ "../src/**/*.ts",
70425
+ "../src/**/*.jsx",
70426
+ "../src/**/*.tsx",
70427
+ "../src/+app.d.ts"
70428
+ ],
70429
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
70430
+ },
70431
+ null,
70432
+ 4
70433
+ )
70434
+ );
70435
+ }
70387
70436
 
70388
70437
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
70389
70438
  var WalkerBase = class {
@@ -78882,6 +78931,7 @@ function Plugin(opts = {}) {
78882
78931
  }
78883
78932
  },
78884
78933
  async buildStart(args) {
78934
+ await writeTsConfig(config);
78885
78935
  if (config.adapter?.pre && viteEnv.command === "build" && !isSecondaryBuild()) {
78886
78936
  await config.adapter.pre({
78887
78937
  config,
@@ -78928,6 +78978,7 @@ function Plugin(opts = {}) {
78928
78978
  },
78929
78979
  async configureServer(server) {
78930
78980
  devServer = true;
78981
+ await writeTsConfig(config);
78931
78982
  if (config.localSchema) {
78932
78983
  config.schema = (await server.ssrLoadModule(config.localSchemaPath)).default;
78933
78984
  server.watcher.add(config.localSchemaPath);
@@ -67586,6 +67586,7 @@ var Layer = class {
67586
67586
  [id]: {
67587
67587
  ...this.operations[id],
67588
67588
  fields: {
67589
+ ...this.operations[id]?.fields,
67589
67590
  [field]: [...this.operations[id]?.fields[field] || [], operation]
67590
67591
  }
67591
67592
  }
@@ -70377,6 +70378,54 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
70377
70378
  }
70378
70379
  }
70379
70380
  }
70381
+ async function writeTsConfig(config2) {
70382
+ await fs_exports.mkdirp(config2.rootDir);
70383
+ await fs_exports.writeFile(
70384
+ path_exports.join(config2.rootDir, "tsconfig.json"),
70385
+ JSON.stringify(
70386
+ {
70387
+ compilerOptions: {
70388
+ baseUrl: ".",
70389
+ paths: {
70390
+ $houdini: ["."],
70391
+ "$houdini/*": ["./*"],
70392
+ "~": ["../src"],
70393
+ "~/*": ["../src/*"]
70394
+ },
70395
+ rootDirs: ["..", "./types"],
70396
+ target: "ESNext",
70397
+ useDefineForClassFields: true,
70398
+ lib: ["DOM", "DOM.Iterable", "ESNext"],
70399
+ allowJs: false,
70400
+ skipLibCheck: true,
70401
+ esModuleInterop: false,
70402
+ allowSyntheticDefaultImports: true,
70403
+ strict: true,
70404
+ forceConsistentCasingInFileNames: true,
70405
+ module: "ESNext",
70406
+ moduleResolution: "Node",
70407
+ resolveJsonModule: true,
70408
+ isolatedModules: true,
70409
+ noEmit: true,
70410
+ jsx: "react-jsx"
70411
+ },
70412
+ include: [
70413
+ "ambient.d.ts",
70414
+ "./types/**/$types.d.ts",
70415
+ "../vite.config.ts",
70416
+ "../src/**/*.js",
70417
+ "../src/**/*.ts",
70418
+ "../src/**/*.jsx",
70419
+ "../src/**/*.tsx",
70420
+ "../src/+app.d.ts"
70421
+ ],
70422
+ exclude: ["../node_modules/**", "./[!ambient.d.ts]**"]
70423
+ },
70424
+ null,
70425
+ 4
70426
+ )
70427
+ );
70428
+ }
70380
70429
 
70381
70430
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
70382
70431
  var WalkerBase = class {
@@ -78875,6 +78924,7 @@ function Plugin(opts = {}) {
78875
78924
  }
78876
78925
  },
78877
78926
  async buildStart(args) {
78927
+ await writeTsConfig(config);
78878
78928
  if (config.adapter?.pre && viteEnv.command === "build" && !isSecondaryBuild()) {
78879
78929
  await config.adapter.pre({
78880
78930
  config,
@@ -78921,6 +78971,7 @@ function Plugin(opts = {}) {
78921
78971
  },
78922
78972
  async configureServer(server) {
78923
78973
  devServer = true;
78974
+ await writeTsConfig(config);
78924
78975
  if (config.localSchema) {
78925
78976
  config.schema = (await server.ssrLoadModule(config.localSchemaPath)).default;
78926
78977
  server.watcher.add(config.localSchemaPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",