houdini-svelte 3.0.0-next.10 → 3.0.0-next.12

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.
@@ -161098,7 +161098,7 @@ function getComponentTypeImports(dirpath, config, queries) {
161098
161098
  const file = path_exports.parse(query.componentPath);
161099
161099
  return `
161100
161100
  import ${no_ext} from './${file.base}'
161101
- import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace("/$houdini", "")}'
161101
+ import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace(`/${config.runtimeDir}`, "")}'
161102
161102
  `;
161103
161103
  }).join("\n");
161104
161104
  }
@@ -161093,7 +161093,7 @@ function getComponentTypeImports(dirpath, config, queries) {
161093
161093
  const file = path_exports.parse(query.componentPath);
161094
161094
  return `
161095
161095
  import ${no_ext} from './${file.base}'
161096
- import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace("/$houdini", "")}'
161096
+ import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace(`/${config.runtimeDir}`, "")}'
161097
161097
  `;
161098
161098
  }).join("\n");
161099
161099
  }
@@ -156142,6 +156142,10 @@ ${exportStatement("config")}
156142
156142
  // we need to update the list of client plugins that get injected by codegen plugins
156143
156143
  [join3(config.runtimeSource, "client", "plugins", "injectedPlugins.js")]: (content) => injectPlugins({ config, content, importStatement, exportStatement })
156144
156144
  }),
156145
+ recursiveCopy2(
156146
+ join3(config.runtimeSource, "server"),
156147
+ join3(config.rootDir, "server")
156148
+ ),
156145
156149
  generatePluginRuntimes({
156146
156150
  config,
156147
156151
  docs
@@ -157406,10 +157410,7 @@ function queryDefinitions(config, body, docs, returnType) {
157406
157410
  const [shapeType, inputType] = ensureImports2({
157407
157411
  config,
157408
157412
  body,
157409
- sourceModule: path_exports2.relative(
157410
- config.runtimeDirectory,
157411
- config.artifactImportPath(doc.name)
157412
- ),
157413
+ sourceModule: config.artifactImportPath(doc.name),
157413
157414
  import: [`${doc.name}$result`, `${doc.name}$input`]
157414
157415
  });
157415
157416
  return prev.concat(
@@ -157439,10 +157440,7 @@ function fragmentListMap(config, concreteTypes, body, docs, return_type) {
157439
157440
  const [shapeType] = ensureImports2({
157440
157441
  config,
157441
157442
  body,
157442
- sourceModule: path_exports2.relative(
157443
- config.runtimeDirectory,
157444
- config.artifactImportPath(doc.name)
157445
- ),
157443
+ sourceModule: config.artifactImportPath(doc.name),
157446
157444
  import: [`${definition.name.value}$data`]
157447
157445
  });
157448
157446
  let inputType = AST13.tsNeverKeyword();
@@ -157455,10 +157453,7 @@ function fragmentListMap(config, concreteTypes, body, docs, return_type) {
157455
157453
  ensureImports2({
157456
157454
  config,
157457
157455
  body,
157458
- sourceModule: path_exports2.relative(
157459
- config.runtimeDirectory,
157460
- config.artifactImportPath(doc.name)
157461
- ),
157456
+ sourceModule: config.artifactImportPath(doc.name),
157462
157457
  import: [`${definition.name.value}$input`]
157463
157458
  })[0]
157464
157459
  )
@@ -300806,7 +300801,7 @@ function getComponentTypeImports(dirpath, config, queries) {
300806
300801
  const file = path_exports.parse(query.componentPath);
300807
300802
  return `
300808
300803
  import ${no_ext} from './${file.base}'
300809
- import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace("/$houdini", "")}'
300804
+ import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace(`/${config.runtimeDir}`, "")}'
300810
300805
  `;
300811
300806
  }).join("\n");
300812
300807
  }
@@ -156133,6 +156133,10 @@ ${exportStatement("config")}
156133
156133
  // we need to update the list of client plugins that get injected by codegen plugins
156134
156134
  [join3(config.runtimeSource, "client", "plugins", "injectedPlugins.js")]: (content) => injectPlugins({ config, content, importStatement, exportStatement })
156135
156135
  }),
156136
+ recursiveCopy2(
156137
+ join3(config.runtimeSource, "server"),
156138
+ join3(config.rootDir, "server")
156139
+ ),
156136
156140
  generatePluginRuntimes({
156137
156141
  config,
156138
156142
  docs
@@ -157397,10 +157401,7 @@ function queryDefinitions(config, body, docs, returnType) {
157397
157401
  const [shapeType, inputType] = ensureImports2({
157398
157402
  config,
157399
157403
  body,
157400
- sourceModule: path_exports2.relative(
157401
- config.runtimeDirectory,
157402
- config.artifactImportPath(doc.name)
157403
- ),
157404
+ sourceModule: config.artifactImportPath(doc.name),
157404
157405
  import: [`${doc.name}$result`, `${doc.name}$input`]
157405
157406
  });
157406
157407
  return prev.concat(
@@ -157430,10 +157431,7 @@ function fragmentListMap(config, concreteTypes, body, docs, return_type) {
157430
157431
  const [shapeType] = ensureImports2({
157431
157432
  config,
157432
157433
  body,
157433
- sourceModule: path_exports2.relative(
157434
- config.runtimeDirectory,
157435
- config.artifactImportPath(doc.name)
157436
- ),
157434
+ sourceModule: config.artifactImportPath(doc.name),
157437
157435
  import: [`${definition.name.value}$data`]
157438
157436
  });
157439
157437
  let inputType = AST13.tsNeverKeyword();
@@ -157446,10 +157444,7 @@ function fragmentListMap(config, concreteTypes, body, docs, return_type) {
157446
157444
  ensureImports2({
157447
157445
  config,
157448
157446
  body,
157449
- sourceModule: path_exports2.relative(
157450
- config.runtimeDirectory,
157451
- config.artifactImportPath(doc.name)
157452
- ),
157447
+ sourceModule: config.artifactImportPath(doc.name),
157453
157448
  import: [`${definition.name.value}$input`]
157454
157449
  })[0]
157455
157450
  )
@@ -300795,7 +300790,7 @@ function getComponentTypeImports(dirpath, config, queries) {
300795
300790
  const file = path_exports.parse(query.componentPath);
300796
300791
  return `
300797
300792
  import ${no_ext} from './${file.base}'
300798
- import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace("/$houdini", "")}'
300793
+ import type { ${query.query.name.value}$input } from '${path_exports.relative(dirpath, path_exports.join(config.artifactDirectory, query.query.name.value)).replace(`/${config.runtimeDir}`, "")}'
300799
300794
  `;
300800
300795
  }).join("\n");
300801
300796
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "3.0.0-next.10",
3
+ "version": "3.0.0-next.12",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -30,7 +30,7 @@
30
30
  "graphql": "^16.10.0",
31
31
  "recast": "^0.23.1",
32
32
  "rollup": "^4.39.0",
33
- "houdini": "^2.0.0-next.7"
33
+ "houdini": "^2.0.0-next.9"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@sveltejs/kit": "^2.9.0",