houdini 1.2.13 → 1.2.15

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.
Files changed (45) hide show
  1. package/build/adapter/index.d.ts +3 -0
  2. package/build/adapter-cjs/index.js +33 -0
  3. package/build/adapter-cjs/package.json +1 -0
  4. package/build/adapter-esm/index.js +9 -0
  5. package/build/adapter-esm/package.json +1 -0
  6. package/build/cmd-cjs/index.js +19 -19
  7. package/build/cmd-esm/index.js +18 -18
  8. package/build/codegen-cjs/index.js +16 -17
  9. package/build/codegen-esm/index.js +16 -16
  10. package/build/lib/index.d.ts +2 -0
  11. package/build/lib/router/conventions.d.ts +3 -4
  12. package/build/lib/router/index.d.ts +1 -1
  13. package/build/lib/router/types.d.ts +1 -0
  14. package/build/lib-cjs/index.js +142 -22
  15. package/build/lib-esm/index.js +138 -21
  16. package/build/runtime/lib/types.d.ts +1 -1
  17. package/build/runtime/router/match.d.ts +38 -0
  18. package/build/runtime/router/server.d.ts +22 -25
  19. package/build/runtime/router/session.d.ts +22 -0
  20. package/build/runtime/router/types.d.ts +23 -0
  21. package/build/runtime-cjs/lib/types.d.ts +1 -1
  22. package/build/runtime-cjs/lib/types.js +2 -0
  23. package/build/runtime-cjs/router/match.d.ts +38 -0
  24. package/build/runtime-cjs/router/match.js +149 -0
  25. package/build/runtime-cjs/router/server.d.ts +22 -25
  26. package/build/runtime-cjs/router/server.js +71 -49
  27. package/build/runtime-cjs/router/session.d.ts +22 -0
  28. package/build/runtime-cjs/router/session.js +77 -0
  29. package/build/runtime-cjs/router/types.d.ts +23 -0
  30. package/build/runtime-cjs/router/types.js +16 -0
  31. package/build/runtime-esm/lib/types.d.ts +1 -1
  32. package/build/runtime-esm/lib/types.js +1 -0
  33. package/build/runtime-esm/router/match.d.ts +38 -0
  34. package/build/runtime-esm/router/match.js +122 -0
  35. package/build/runtime-esm/router/server.d.ts +22 -25
  36. package/build/runtime-esm/router/server.js +64 -47
  37. package/build/runtime-esm/router/session.d.ts +22 -0
  38. package/build/runtime-esm/router/session.js +52 -0
  39. package/build/runtime-esm/router/types.d.ts +23 -0
  40. package/build/runtime-esm/router/types.js +0 -0
  41. package/build/test-cjs/index.js +16 -17
  42. package/build/test-esm/index.js +16 -16
  43. package/build/vite-cjs/index.js +28 -32
  44. package/build/vite-esm/index.js +28 -31
  45. package/package.json +10 -1
@@ -0,0 +1,3 @@
1
+ import type { serverAdapterFactory as createAdapter } from '../runtime/router/server';
2
+ export declare const endpoint: string;
3
+ export declare let createServerAdapter: (args: Omit<Parameters<typeof createAdapter>[0], 'on_render' | 'manifest' | 'yoga' | 'schema' | 'graphqlEndpoint'>) => ReturnType<typeof createAdapter>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/adapter/index.tsx
21
+ var adapter_exports = {};
22
+ __export(adapter_exports, {
23
+ createServerAdapter: () => createServerAdapter,
24
+ endpoint: () => endpoint
25
+ });
26
+ module.exports = __toCommonJS(adapter_exports);
27
+ var endpoint = "";
28
+ var createServerAdapter;
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ createServerAdapter,
32
+ endpoint
33
+ });
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,9 @@
1
+ import { createRequire as conflict_free } from 'module'; const require = conflict_free(import.meta.url);
2
+
3
+ // src/adapter/index.tsx
4
+ var endpoint = "";
5
+ var createServerAdapter;
6
+ export {
7
+ createServerAdapter,
8
+ endpoint
9
+ };
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createRequire as conflict_free } from 'module'; const require = conflict_free(import.meta.url);
2
+
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -67733,7 +67733,7 @@ var LogLevel = {
67733
67733
 
67734
67734
  // src/lib/config.ts
67735
67735
  var import_meta = {};
67736
- var currentDir = global.__dirname || dirname((0, import_node_url2.fileURLToPath)(import_meta.url));
67736
+ var currentDir = dirname((0, import_node_url2.fileURLToPath)(import_meta.url));
67737
67737
  var Config = class {
67738
67738
  filepath;
67739
67739
  rootDir;
@@ -70654,7 +70654,7 @@ async function paginate(config2, documents) {
70654
70654
  value: "__typename"
70655
70655
  }
70656
70656
  },
70657
- ...(typeConfig?.keys || ["id"]).map((key) => ({
70657
+ ...(typeConfig?.keys || [config2.defaultKeys[0]]).map((key) => ({
70658
70658
  kind: graphql11.Kind.FIELD,
70659
70659
  name: {
70660
70660
  kind: graphql11.Kind.NAME,
@@ -74574,7 +74574,7 @@ function nodeDirectives(config2, directives) {
74574
74574
  }
74575
74575
  if (!possibleNodes.includes(definitionType)) {
74576
74576
  ctx.reportError(
74577
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config2, node.name.value))
74577
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node.name.value))
74578
74578
  );
74579
74579
  }
74580
74580
  }
@@ -74709,45 +74709,45 @@ function getAndVerifyNodeInterface(config2) {
74709
74709
  return null;
74710
74710
  }
74711
74711
  if (!graphql26.isInterfaceType(nodeInterface)) {
74712
- displayInvalidNodeFieldMessage(config2.logLevel);
74712
+ displayInvalidNodeFieldMessage(config2);
74713
74713
  return null;
74714
74714
  }
74715
74715
  const queryType = schema.getQueryType();
74716
74716
  if (!queryType) {
74717
- displayInvalidNodeFieldMessage(config2.logLevel);
74717
+ displayInvalidNodeFieldMessage(config2);
74718
74718
  return null;
74719
74719
  }
74720
74720
  const nodeField = queryType.getFields()["node"];
74721
74721
  if (!nodeField) {
74722
- displayInvalidNodeFieldMessage(config2.logLevel);
74722
+ displayInvalidNodeFieldMessage(config2);
74723
74723
  return null;
74724
74724
  }
74725
74725
  const args = nodeField.args;
74726
74726
  if (args.length === 0) {
74727
- displayInvalidNodeFieldMessage(config2.logLevel);
74727
+ displayInvalidNodeFieldMessage(config2);
74728
74728
  return null;
74729
74729
  }
74730
- const idArg = args.find((arg) => arg.name === "id");
74730
+ const idArg = args.find((arg) => arg.name === config2.defaultKeys[0]);
74731
74731
  if (!idArg) {
74732
- displayInvalidNodeFieldMessage(config2.logLevel);
74732
+ displayInvalidNodeFieldMessage(config2);
74733
74733
  return null;
74734
74734
  }
74735
74735
  const idType = unwrapType(config2, idArg.type);
74736
74736
  if (idType.type.name !== "ID") {
74737
- displayInvalidNodeFieldMessage(config2.logLevel);
74737
+ displayInvalidNodeFieldMessage(config2);
74738
74738
  return null;
74739
74739
  }
74740
74740
  const fieldReturnType = unwrapType(config2, nodeField.type);
74741
74741
  if (fieldReturnType.type.name !== "Node") {
74742
- displayInvalidNodeFieldMessage(config2.logLevel);
74742
+ displayInvalidNodeFieldMessage(config2);
74743
74743
  return null;
74744
74744
  }
74745
74745
  return nodeInterface;
74746
74746
  }
74747
74747
  var nbInvalidNodeFieldMessageDisplayed = 0;
74748
- function displayInvalidNodeFieldMessage(logLevel) {
74748
+ function displayInvalidNodeFieldMessage(config2) {
74749
74749
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
74750
- if (logLevel === LogLevel.Full) {
74750
+ if (config2.logLevel === LogLevel.Full) {
74751
74751
  console.warn(invalidNodeFieldMessage);
74752
74752
  } else {
74753
74753
  console.warn(invalidNodeFieldMessageLight);
@@ -74761,18 +74761,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
74761
74761
  If you are trying to provide the Node interface and its field, they must look like the following:
74762
74762
 
74763
74763
  interface Node {
74764
- id: ID!
74764
+ id: ID!
74765
74765
  }
74766
74766
 
74767
74767
  extend type Query {
74768
- node(id: ID!): Node
74768
+ node(id: ID!): Node
74769
74769
  }
74770
74770
 
74771
74771
  For more information, please visit these links:
74772
74772
  - https://graphql.org/learn/global-object-identification/
74773
74773
  - ${siteURL}/guides/caching-data#custom-ids
74774
74774
  `;
74775
- var paginateOnNonNodeMessage = (config2, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
74775
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
74776
74776
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
74777
74777
  have defined a resolver entry for the fragment type.
74778
74778
 
@@ -76155,12 +76155,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76155
76155
  }
76156
76156
  packageJSON2.devDependencies = {
76157
76157
  ...packageJSON2.devDependencies,
76158
- houdini: "^1.2.13"
76158
+ houdini: "^1.2.15"
76159
76159
  };
76160
76160
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76161
76161
  packageJSON2.devDependencies = {
76162
76162
  ...packageJSON2.devDependencies,
76163
- "houdini-svelte": "^1.2.13"
76163
+ "houdini-svelte": "^1.2.15"
76164
76164
  };
76165
76165
  } else {
76166
76166
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -67738,7 +67738,7 @@ var LogLevel = {
67738
67738
  };
67739
67739
 
67740
67740
  // src/lib/config.ts
67741
- var currentDir = global.__dirname || dirname(fileURLToPath(import.meta.url));
67741
+ var currentDir = dirname(fileURLToPath(import.meta.url));
67742
67742
  var Config = class {
67743
67743
  filepath;
67744
67744
  rootDir;
@@ -70659,7 +70659,7 @@ async function paginate(config2, documents) {
70659
70659
  value: "__typename"
70660
70660
  }
70661
70661
  },
70662
- ...(typeConfig?.keys || ["id"]).map((key) => ({
70662
+ ...(typeConfig?.keys || [config2.defaultKeys[0]]).map((key) => ({
70663
70663
  kind: graphql11.Kind.FIELD,
70664
70664
  name: {
70665
70665
  kind: graphql11.Kind.NAME,
@@ -74579,7 +74579,7 @@ function nodeDirectives(config2, directives) {
74579
74579
  }
74580
74580
  if (!possibleNodes.includes(definitionType)) {
74581
74581
  ctx.reportError(
74582
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config2, node.name.value))
74582
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node.name.value))
74583
74583
  );
74584
74584
  }
74585
74585
  }
@@ -74714,45 +74714,45 @@ function getAndVerifyNodeInterface(config2) {
74714
74714
  return null;
74715
74715
  }
74716
74716
  if (!graphql26.isInterfaceType(nodeInterface)) {
74717
- displayInvalidNodeFieldMessage(config2.logLevel);
74717
+ displayInvalidNodeFieldMessage(config2);
74718
74718
  return null;
74719
74719
  }
74720
74720
  const queryType = schema.getQueryType();
74721
74721
  if (!queryType) {
74722
- displayInvalidNodeFieldMessage(config2.logLevel);
74722
+ displayInvalidNodeFieldMessage(config2);
74723
74723
  return null;
74724
74724
  }
74725
74725
  const nodeField = queryType.getFields()["node"];
74726
74726
  if (!nodeField) {
74727
- displayInvalidNodeFieldMessage(config2.logLevel);
74727
+ displayInvalidNodeFieldMessage(config2);
74728
74728
  return null;
74729
74729
  }
74730
74730
  const args = nodeField.args;
74731
74731
  if (args.length === 0) {
74732
- displayInvalidNodeFieldMessage(config2.logLevel);
74732
+ displayInvalidNodeFieldMessage(config2);
74733
74733
  return null;
74734
74734
  }
74735
- const idArg = args.find((arg) => arg.name === "id");
74735
+ const idArg = args.find((arg) => arg.name === config2.defaultKeys[0]);
74736
74736
  if (!idArg) {
74737
- displayInvalidNodeFieldMessage(config2.logLevel);
74737
+ displayInvalidNodeFieldMessage(config2);
74738
74738
  return null;
74739
74739
  }
74740
74740
  const idType = unwrapType(config2, idArg.type);
74741
74741
  if (idType.type.name !== "ID") {
74742
- displayInvalidNodeFieldMessage(config2.logLevel);
74742
+ displayInvalidNodeFieldMessage(config2);
74743
74743
  return null;
74744
74744
  }
74745
74745
  const fieldReturnType = unwrapType(config2, nodeField.type);
74746
74746
  if (fieldReturnType.type.name !== "Node") {
74747
- displayInvalidNodeFieldMessage(config2.logLevel);
74747
+ displayInvalidNodeFieldMessage(config2);
74748
74748
  return null;
74749
74749
  }
74750
74750
  return nodeInterface;
74751
74751
  }
74752
74752
  var nbInvalidNodeFieldMessageDisplayed = 0;
74753
- function displayInvalidNodeFieldMessage(logLevel) {
74753
+ function displayInvalidNodeFieldMessage(config2) {
74754
74754
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
74755
- if (logLevel === LogLevel.Full) {
74755
+ if (config2.logLevel === LogLevel.Full) {
74756
74756
  console.warn(invalidNodeFieldMessage);
74757
74757
  } else {
74758
74758
  console.warn(invalidNodeFieldMessageLight);
@@ -74766,18 +74766,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
74766
74766
  If you are trying to provide the Node interface and its field, they must look like the following:
74767
74767
 
74768
74768
  interface Node {
74769
- id: ID!
74769
+ id: ID!
74770
74770
  }
74771
74771
 
74772
74772
  extend type Query {
74773
- node(id: ID!): Node
74773
+ node(id: ID!): Node
74774
74774
  }
74775
74775
 
74776
74776
  For more information, please visit these links:
74777
74777
  - https://graphql.org/learn/global-object-identification/
74778
74778
  - ${siteURL}/guides/caching-data#custom-ids
74779
74779
  `;
74780
- var paginateOnNonNodeMessage = (config2, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
74780
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
74781
74781
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
74782
74782
  have defined a resolver entry for the fragment type.
74783
74783
 
@@ -76160,12 +76160,12 @@ async function packageJSON(targetPath, frameworkInfo) {
76160
76160
  }
76161
76161
  packageJSON2.devDependencies = {
76162
76162
  ...packageJSON2.devDependencies,
76163
- houdini: "^1.2.13"
76163
+ houdini: "^1.2.15"
76164
76164
  };
76165
76165
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
76166
76166
  packageJSON2.devDependencies = {
76167
76167
  ...packageJSON2.devDependencies,
76168
- "houdini-svelte": "^1.2.13"
76168
+ "houdini-svelte": "^1.2.15"
76169
76169
  };
76170
76170
  } else {
76171
76171
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -1,4 +1,3 @@
1
- import { createRequire as conflict_free } from 'module'; const require = conflict_free(import.meta.url);
2
1
  "use strict";
3
2
  var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
@@ -57108,7 +57107,7 @@ var LogLevel = {
57108
57107
 
57109
57108
  // src/lib/config.ts
57110
57109
  var import_meta = {};
57111
- var currentDir = global.__dirname || dirname((0, import_node_url.fileURLToPath)(import_meta.url));
57110
+ var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
57112
57111
  var DEFAULT_CONFIG_PATH = join(process.cwd(), "houdini.config.js");
57113
57112
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
57114
57113
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -59102,7 +59101,7 @@ async function paginate(config2, documents) {
59102
59101
  value: "__typename"
59103
59102
  }
59104
59103
  },
59105
- ...(typeConfig?.keys || ["id"]).map((key) => ({
59104
+ ...(typeConfig?.keys || [config2.defaultKeys[0]]).map((key) => ({
59106
59105
  kind: graphql11.Kind.FIELD,
59107
59106
  name: {
59108
59107
  kind: graphql11.Kind.NAME,
@@ -63022,7 +63021,7 @@ function nodeDirectives(config2, directives) {
63022
63021
  }
63023
63022
  if (!possibleNodes.includes(definitionType)) {
63024
63023
  ctx.reportError(
63025
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config2, node.name.value))
63024
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node.name.value))
63026
63025
  );
63027
63026
  }
63028
63027
  }
@@ -63157,45 +63156,45 @@ function getAndVerifyNodeInterface(config2) {
63157
63156
  return null;
63158
63157
  }
63159
63158
  if (!graphql26.isInterfaceType(nodeInterface)) {
63160
- displayInvalidNodeFieldMessage(config2.logLevel);
63159
+ displayInvalidNodeFieldMessage(config2);
63161
63160
  return null;
63162
63161
  }
63163
63162
  const queryType = schema.getQueryType();
63164
63163
  if (!queryType) {
63165
- displayInvalidNodeFieldMessage(config2.logLevel);
63164
+ displayInvalidNodeFieldMessage(config2);
63166
63165
  return null;
63167
63166
  }
63168
63167
  const nodeField = queryType.getFields()["node"];
63169
63168
  if (!nodeField) {
63170
- displayInvalidNodeFieldMessage(config2.logLevel);
63169
+ displayInvalidNodeFieldMessage(config2);
63171
63170
  return null;
63172
63171
  }
63173
63172
  const args = nodeField.args;
63174
63173
  if (args.length === 0) {
63175
- displayInvalidNodeFieldMessage(config2.logLevel);
63174
+ displayInvalidNodeFieldMessage(config2);
63176
63175
  return null;
63177
63176
  }
63178
- const idArg = args.find((arg) => arg.name === "id");
63177
+ const idArg = args.find((arg) => arg.name === config2.defaultKeys[0]);
63179
63178
  if (!idArg) {
63180
- displayInvalidNodeFieldMessage(config2.logLevel);
63179
+ displayInvalidNodeFieldMessage(config2);
63181
63180
  return null;
63182
63181
  }
63183
63182
  const idType = unwrapType(config2, idArg.type);
63184
63183
  if (idType.type.name !== "ID") {
63185
- displayInvalidNodeFieldMessage(config2.logLevel);
63184
+ displayInvalidNodeFieldMessage(config2);
63186
63185
  return null;
63187
63186
  }
63188
63187
  const fieldReturnType = unwrapType(config2, nodeField.type);
63189
63188
  if (fieldReturnType.type.name !== "Node") {
63190
- displayInvalidNodeFieldMessage(config2.logLevel);
63189
+ displayInvalidNodeFieldMessage(config2);
63191
63190
  return null;
63192
63191
  }
63193
63192
  return nodeInterface;
63194
63193
  }
63195
63194
  var nbInvalidNodeFieldMessageDisplayed = 0;
63196
- function displayInvalidNodeFieldMessage(logLevel) {
63195
+ function displayInvalidNodeFieldMessage(config2) {
63197
63196
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
63198
- if (logLevel === LogLevel.Full) {
63197
+ if (config2.logLevel === LogLevel.Full) {
63199
63198
  console.warn(invalidNodeFieldMessage);
63200
63199
  } else {
63201
63200
  console.warn(invalidNodeFieldMessageLight);
@@ -63209,18 +63208,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
63209
63208
  If you are trying to provide the Node interface and its field, they must look like the following:
63210
63209
 
63211
63210
  interface Node {
63212
- id: ID!
63211
+ id: ID!
63213
63212
  }
63214
63213
 
63215
63214
  extend type Query {
63216
- node(id: ID!): Node
63215
+ node(id: ID!): Node
63217
63216
  }
63218
63217
 
63219
63218
  For more information, please visit these links:
63220
63219
  - https://graphql.org/learn/global-object-identification/
63221
63220
  - ${siteURL}/guides/caching-data#custom-ids
63222
63221
  `;
63223
- var paginateOnNonNodeMessage = (config2, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
63222
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
63224
63223
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
63225
63224
  have defined a resolver entry for the fragment type.
63226
63225
 
@@ -57106,7 +57106,7 @@ var LogLevel = {
57106
57106
  };
57107
57107
 
57108
57108
  // src/lib/config.ts
57109
- var currentDir = global.__dirname || dirname(fileURLToPath(import.meta.url));
57109
+ var currentDir = dirname(fileURLToPath(import.meta.url));
57110
57110
  var DEFAULT_CONFIG_PATH = join(process.cwd(), "houdini.config.js");
57111
57111
  var emptySchema = graphql2.buildSchema("type Query { hello: String }");
57112
57112
  var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
@@ -59100,7 +59100,7 @@ async function paginate(config2, documents) {
59100
59100
  value: "__typename"
59101
59101
  }
59102
59102
  },
59103
- ...(typeConfig?.keys || ["id"]).map((key) => ({
59103
+ ...(typeConfig?.keys || [config2.defaultKeys[0]]).map((key) => ({
59104
59104
  kind: graphql11.Kind.FIELD,
59105
59105
  name: {
59106
59106
  kind: graphql11.Kind.NAME,
@@ -63020,7 +63020,7 @@ function nodeDirectives(config2, directives) {
63020
63020
  }
63021
63021
  if (!possibleNodes.includes(definitionType)) {
63022
63022
  ctx.reportError(
63023
- new graphql26.GraphQLError(paginateOnNonNodeMessage(config2, node.name.value))
63023
+ new graphql26.GraphQLError(paginateOnNonNodeMessage(node.name.value))
63024
63024
  );
63025
63025
  }
63026
63026
  }
@@ -63155,45 +63155,45 @@ function getAndVerifyNodeInterface(config2) {
63155
63155
  return null;
63156
63156
  }
63157
63157
  if (!graphql26.isInterfaceType(nodeInterface)) {
63158
- displayInvalidNodeFieldMessage(config2.logLevel);
63158
+ displayInvalidNodeFieldMessage(config2);
63159
63159
  return null;
63160
63160
  }
63161
63161
  const queryType = schema.getQueryType();
63162
63162
  if (!queryType) {
63163
- displayInvalidNodeFieldMessage(config2.logLevel);
63163
+ displayInvalidNodeFieldMessage(config2);
63164
63164
  return null;
63165
63165
  }
63166
63166
  const nodeField = queryType.getFields()["node"];
63167
63167
  if (!nodeField) {
63168
- displayInvalidNodeFieldMessage(config2.logLevel);
63168
+ displayInvalidNodeFieldMessage(config2);
63169
63169
  return null;
63170
63170
  }
63171
63171
  const args = nodeField.args;
63172
63172
  if (args.length === 0) {
63173
- displayInvalidNodeFieldMessage(config2.logLevel);
63173
+ displayInvalidNodeFieldMessage(config2);
63174
63174
  return null;
63175
63175
  }
63176
- const idArg = args.find((arg) => arg.name === "id");
63176
+ const idArg = args.find((arg) => arg.name === config2.defaultKeys[0]);
63177
63177
  if (!idArg) {
63178
- displayInvalidNodeFieldMessage(config2.logLevel);
63178
+ displayInvalidNodeFieldMessage(config2);
63179
63179
  return null;
63180
63180
  }
63181
63181
  const idType = unwrapType(config2, idArg.type);
63182
63182
  if (idType.type.name !== "ID") {
63183
- displayInvalidNodeFieldMessage(config2.logLevel);
63183
+ displayInvalidNodeFieldMessage(config2);
63184
63184
  return null;
63185
63185
  }
63186
63186
  const fieldReturnType = unwrapType(config2, nodeField.type);
63187
63187
  if (fieldReturnType.type.name !== "Node") {
63188
- displayInvalidNodeFieldMessage(config2.logLevel);
63188
+ displayInvalidNodeFieldMessage(config2);
63189
63189
  return null;
63190
63190
  }
63191
63191
  return nodeInterface;
63192
63192
  }
63193
63193
  var nbInvalidNodeFieldMessageDisplayed = 0;
63194
- function displayInvalidNodeFieldMessage(logLevel) {
63194
+ function displayInvalidNodeFieldMessage(config2) {
63195
63195
  if (nbInvalidNodeFieldMessageDisplayed === 0) {
63196
- if (logLevel === LogLevel.Full) {
63196
+ if (config2.logLevel === LogLevel.Full) {
63197
63197
  console.warn(invalidNodeFieldMessage);
63198
63198
  } else {
63199
63199
  console.warn(invalidNodeFieldMessageLight);
@@ -63207,18 +63207,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
63207
63207
  If you are trying to provide the Node interface and its field, they must look like the following:
63208
63208
 
63209
63209
  interface Node {
63210
- id: ID!
63210
+ id: ID!
63211
63211
  }
63212
63212
 
63213
63213
  extend type Query {
63214
- node(id: ID!): Node
63214
+ node(id: ID!): Node
63215
63215
  }
63216
63216
 
63217
63217
  For more information, please visit these links:
63218
63218
  - https://graphql.org/learn/global-object-identification/
63219
63219
  - ${siteURL}/guides/caching-data#custom-ids
63220
63220
  `;
63221
- var paginateOnNonNodeMessage = (config2, directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
63221
+ var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
63222
63222
  If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
63223
63223
  have defined a resolver entry for the fragment type.
63224
63224
 
@@ -12,9 +12,11 @@ export * from './cleanupFiles';
12
12
  export * from './deepMerge';
13
13
  export * from './plugin';
14
14
  export * from './detectTools';
15
+ export * from '../runtime/router/match';
15
16
  export * from './walk';
16
17
  export type { EmbeddedGraphqlDocument } from './walk';
17
18
  export * as fs from './fs';
18
19
  export * as path from './path';
19
20
  export * from './router';
20
21
  export { Cache } from '../runtime/cache/cache';
22
+ export * from '../runtime/router/match';
@@ -3,10 +3,9 @@ import { type Config } from '..';
3
3
  export declare function router_path(config: Config): string;
4
4
  /** The location of the page component */
5
5
  export declare function page_entry_path(config: Config, id: string, base?: string): string;
6
- export declare function render_client_path(config: Config, base?: string): string;
7
- export declare function render_server_path(config: Config, base?: string): string;
8
- export declare function render_yoga_path(config: Config, base?: string): string;
9
- export declare function render_app_path(config: Config, base?: string): string;
6
+ export declare function server_adapter_path(config: Config, base?: string): string;
7
+ export declare function adapter_config_path(config: Config, base?: string): string;
8
+ export declare function app_component_path(config: Config, base?: string): string;
10
9
  export declare function page_unit_path(config: Config, id: string, base?: string): string;
11
10
  export declare function layout_unit_path(config: Config, id: string, base?: string): string;
12
11
  export declare function fallback_unit_path(config: Config, which: 'page' | 'layout', id: string, base?: string): string;
@@ -6,4 +6,4 @@ export * as routerConventions from './conventions';
6
6
  export * from './manifest';
7
7
  export * from './types';
8
8
  export * from './server';
9
- export { handle_request, get_session } from '../../runtime/router/server';
9
+ export { handle_request, get_session } from '../../runtime/router/session';
@@ -7,4 +7,5 @@ export type Adapter = (args: {
7
7
  publicBase: string;
8
8
  outDir: string;
9
9
  manifest: ProjectManifest;
10
+ adapterPath: string;
10
11
  }) => void | Promise<void>;