houdini-react 2.0.0-next.10 → 2.0.0-next.11

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.
@@ -85495,7 +85495,7 @@ async function load_manifest(args) {
85495
85495
  layout_queries: {},
85496
85496
  artifacts: [],
85497
85497
  local_schema: false,
85498
- local_yoga: false
85498
+ local_server: false
85499
85499
  },
85500
85500
  queries: [],
85501
85501
  layouts: [],
@@ -85519,8 +85519,8 @@ async function load_manifest(args) {
85519
85519
  if (name === "+schema") {
85520
85520
  manifest2.local_schema = true;
85521
85521
  }
85522
- if (name === "+yoga") {
85523
- manifest2.local_yoga = true;
85522
+ if (name === "+server") {
85523
+ manifest2.local_server = true;
85524
85524
  }
85525
85525
  }
85526
85526
  } catch {
@@ -89039,7 +89039,7 @@ export default (props) => (
89039
89039
  `;
89040
89040
  let renderer = `
89041
89041
  import { Cache } from '$houdini/runtime/cache/cache'
89042
- import { serverAdapterFactory, _serverHandler } from '$houdini/runtime/router/server'
89042
+ import { serverAdapterFactory } from '$houdini/runtime/router/server'
89043
89043
  import { HoudiniClient } from '$houdini/runtime/client'
89044
89044
  import { renderToStream } from 'houdini-react/server'
89045
89045
  import React from 'react'
@@ -89139,7 +89139,7 @@ export function createServerAdapter(options) {
89139
89139
  }).join("\n")}
89140
89140
 
89141
89141
  ${manifest2.local_schema ? `import schema from '../../../../../src/api/+schema'` : " const schema = null"}
89142
- ${manifest2.local_yoga ? `import yoga from '../../../../../src/api/+yoga'` : " const yoga = null"}
89142
+ ${manifest2.local_server ? `import server from '../../../../../src/api/+server'` : " const server = null"}
89143
89143
 
89144
89144
  export const endpoint = ${JSON.stringify(localApiEndpoint(config.configFile))}
89145
89145
 
@@ -89153,7 +89153,7 @@ export function createServerAdapter(options) {
89153
89153
  export function createServerAdapter(options) {
89154
89154
  return createAdapter({
89155
89155
  schema,
89156
- yoga,
89156
+ server,
89157
89157
  componentCache,
89158
89158
  graphqlEndpoint: endpoint,
89159
89159
  ...options,
@@ -89460,7 +89460,10 @@ async function transformFile(page) {
89460
89460
  ensureImports({
89461
89461
  config: page.config,
89462
89462
  body: script.body,
89463
- sourceModule: path_exports.relative(page.config.projectRoot, entryPointPath),
89463
+ sourceModule: `$houdini/${path_exports.relative(
89464
+ page.config.runtimeDir,
89465
+ entryPointPath
89466
+ )}`,
89464
89467
  // we just want the side effects of the import so we don't need to assign it to a variable
89465
89468
  import: null
89466
89469
  });
@@ -89494,7 +89497,7 @@ var vite_default = {
89494
89497
  layout_queries: {},
89495
89498
  artifacts: [],
89496
89499
  local_schema: false,
89497
- local_yoga: false,
89500
+ local_server: false,
89498
89501
  component_fields: {}
89499
89502
  };
89500
89503
  }
@@ -90019,7 +90022,7 @@ export function useFragmentHandle(reference: { readonly "${fragmentKey}": { ${do
90019
90022
  const variableName = `${doc.name}$artifact`;
90020
90023
  ensure_import({
90021
90024
  identifier: variableName,
90022
- module: config.artifactImportPath(doc.name).replace(/\$houdini/g, "..")
90025
+ module: config.artifactImportPath(doc.name)
90023
90026
  });
90024
90027
  return `{ artifact: ${variableName} }`;
90025
90028
  }
@@ -85491,7 +85491,7 @@ async function load_manifest(args) {
85491
85491
  layout_queries: {},
85492
85492
  artifacts: [],
85493
85493
  local_schema: false,
85494
- local_yoga: false
85494
+ local_server: false
85495
85495
  },
85496
85496
  queries: [],
85497
85497
  layouts: [],
@@ -85515,8 +85515,8 @@ async function load_manifest(args) {
85515
85515
  if (name === "+schema") {
85516
85516
  manifest2.local_schema = true;
85517
85517
  }
85518
- if (name === "+yoga") {
85519
- manifest2.local_yoga = true;
85518
+ if (name === "+server") {
85519
+ manifest2.local_server = true;
85520
85520
  }
85521
85521
  }
85522
85522
  } catch {
@@ -89035,7 +89035,7 @@ export default (props) => (
89035
89035
  `;
89036
89036
  let renderer = `
89037
89037
  import { Cache } from '$houdini/runtime/cache/cache'
89038
- import { serverAdapterFactory, _serverHandler } from '$houdini/runtime/router/server'
89038
+ import { serverAdapterFactory } from '$houdini/runtime/router/server'
89039
89039
  import { HoudiniClient } from '$houdini/runtime/client'
89040
89040
  import { renderToStream } from 'houdini-react/server'
89041
89041
  import React from 'react'
@@ -89135,7 +89135,7 @@ export function createServerAdapter(options) {
89135
89135
  }).join("\n")}
89136
89136
 
89137
89137
  ${manifest2.local_schema ? `import schema from '../../../../../src/api/+schema'` : " const schema = null"}
89138
- ${manifest2.local_yoga ? `import yoga from '../../../../../src/api/+yoga'` : " const yoga = null"}
89138
+ ${manifest2.local_server ? `import server from '../../../../../src/api/+server'` : " const server = null"}
89139
89139
 
89140
89140
  export const endpoint = ${JSON.stringify(localApiEndpoint(config.configFile))}
89141
89141
 
@@ -89149,7 +89149,7 @@ export function createServerAdapter(options) {
89149
89149
  export function createServerAdapter(options) {
89150
89150
  return createAdapter({
89151
89151
  schema,
89152
- yoga,
89152
+ server,
89153
89153
  componentCache,
89154
89154
  graphqlEndpoint: endpoint,
89155
89155
  ...options,
@@ -89456,7 +89456,10 @@ async function transformFile(page) {
89456
89456
  ensureImports({
89457
89457
  config: page.config,
89458
89458
  body: script.body,
89459
- sourceModule: path_exports.relative(page.config.projectRoot, entryPointPath),
89459
+ sourceModule: `$houdini/${path_exports.relative(
89460
+ page.config.runtimeDir,
89461
+ entryPointPath
89462
+ )}`,
89460
89463
  // we just want the side effects of the import so we don't need to assign it to a variable
89461
89464
  import: null
89462
89465
  });
@@ -89490,7 +89493,7 @@ var vite_default = {
89490
89493
  layout_queries: {},
89491
89494
  artifacts: [],
89492
89495
  local_schema: false,
89493
- local_yoga: false,
89496
+ local_server: false,
89494
89497
  component_fields: {}
89495
89498
  };
89496
89499
  }
@@ -90015,7 +90018,7 @@ export function useFragmentHandle(reference: { readonly "${fragmentKey}": { ${do
90015
90018
  const variableName = `${doc.name}$artifact`;
90016
90019
  ensure_import({
90017
90020
  identifier: variableName,
90018
- module: config.artifactImportPath(doc.name).replace(/\$houdini/g, "..")
90021
+ module: config.artifactImportPath(doc.name)
90019
90022
  });
90020
90023
  return `{ artifact: ${variableName} }`;
90021
90024
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "2.0.0-next.10",
3
+ "version": "2.0.0-next.11",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -42,7 +42,7 @@
42
42
  "recast": "^0.23.1",
43
43
  "rollup": "^4.39.0",
44
44
  "use-deep-compare-effect": "^1.8.1",
45
- "houdini": "^2.0.0-next.8"
45
+ "houdini": "^2.0.0-next.9"
46
46
  },
47
47
  "files": [
48
48
  "build"