houdini 0.17.13 → 0.18.0

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 (57) hide show
  1. package/build/cmd-cjs/index.js +438 -201
  2. package/build/cmd-esm/index.js +438 -201
  3. package/build/codegen/utils/flattenSelections.d.ts +3 -1
  4. package/build/codegen-cjs/index.js +405 -180
  5. package/build/codegen-esm/index.js +405 -180
  6. package/build/lib/config.d.ts +8 -3
  7. package/build/lib-cjs/index.js +141 -81
  8. package/build/lib-esm/index.js +141 -81
  9. package/build/runtime/cache/subscription.d.ts +3 -3
  10. package/build/runtime/lib/config.d.ts +2 -1
  11. package/build/runtime/lib/scalars.d.ts +2 -2
  12. package/build/runtime/lib/selection.d.ts +2 -0
  13. package/build/runtime/lib/types.d.ts +26 -16
  14. package/build/runtime-cjs/cache/cache.js +38 -23
  15. package/build/runtime-cjs/cache/lists.js +40 -26
  16. package/build/runtime-cjs/cache/subscription.d.ts +3 -3
  17. package/build/runtime-cjs/cache/subscription.js +23 -21
  18. package/build/runtime-cjs/lib/config.d.ts +2 -1
  19. package/build/runtime-cjs/lib/scalars.d.ts +2 -2
  20. package/build/runtime-cjs/lib/scalars.js +9 -6
  21. package/build/runtime-cjs/lib/selection.d.ts +2 -0
  22. package/build/runtime-cjs/lib/selection.js +39 -0
  23. package/build/runtime-cjs/lib/types.d.ts +26 -16
  24. package/build/runtime-esm/cache/cache.js +38 -23
  25. package/build/runtime-esm/cache/lists.js +40 -26
  26. package/build/runtime-esm/cache/subscription.d.ts +3 -3
  27. package/build/runtime-esm/cache/subscription.js +23 -21
  28. package/build/runtime-esm/lib/config.d.ts +2 -1
  29. package/build/runtime-esm/lib/scalars.d.ts +2 -2
  30. package/build/runtime-esm/lib/scalars.js +9 -6
  31. package/build/runtime-esm/lib/selection.d.ts +2 -0
  32. package/build/runtime-esm/lib/selection.js +15 -0
  33. package/build/runtime-esm/lib/types.d.ts +26 -16
  34. package/build/test/index.d.ts +1 -2
  35. package/build/test-cjs/index.js +485 -195
  36. package/build/test-esm/index.js +485 -195
  37. package/build/vite-cjs/index.js +438 -193
  38. package/build/vite-esm/index.js +438 -193
  39. package/package.json +2 -2
  40. package/build/runtime-cjs/cache/tests/availability.test.js +0 -357
  41. package/build/runtime-cjs/cache/tests/gc.test.js +0 -271
  42. package/build/runtime-cjs/cache/tests/keys.test.js +0 -34
  43. package/build/runtime-cjs/cache/tests/list.test.js +0 -3390
  44. package/build/runtime-cjs/cache/tests/readwrite.test.js +0 -1076
  45. package/build/runtime-cjs/cache/tests/scalars.test.js +0 -181
  46. package/build/runtime-cjs/cache/tests/storage.test.js +0 -280
  47. package/build/runtime-cjs/cache/tests/subscriptions.test.js +0 -1469
  48. package/build/runtime-cjs/lib/scalars.test.js +0 -736
  49. package/build/runtime-esm/cache/tests/availability.test.js +0 -356
  50. package/build/runtime-esm/cache/tests/gc.test.js +0 -270
  51. package/build/runtime-esm/cache/tests/keys.test.js +0 -33
  52. package/build/runtime-esm/cache/tests/list.test.js +0 -3389
  53. package/build/runtime-esm/cache/tests/readwrite.test.js +0 -1075
  54. package/build/runtime-esm/cache/tests/scalars.test.js +0 -180
  55. package/build/runtime-esm/cache/tests/storage.test.js +0 -279
  56. package/build/runtime-esm/cache/tests/subscriptions.test.js +0 -1468
  57. package/build/runtime-esm/lib/scalars.test.js +0 -735
@@ -26,7 +26,7 @@ export declare class Config {
26
26
  typeConfig: ConfigFile['types'];
27
27
  configFile: ConfigFile;
28
28
  logLevel: LogLevel;
29
- disableMasking: boolean;
29
+ defaultFragmentMasking: 'enable' | 'disable';
30
30
  configIsRoute: ((filepath: string) => boolean) | null;
31
31
  routesDir: string;
32
32
  schemaPollInterval: number | null;
@@ -76,12 +76,17 @@ export declare class Config {
76
76
  }): boolean;
77
77
  pluginRuntimeDirectory(name: string): string;
78
78
  pluginDirectory(name: string): string;
79
- get houdiniDirective(): string;
79
+ get manualLoadDirective(): string;
80
+ get maskEnableDirective(): string;
81
+ get maskDisableDirective(): string;
80
82
  get listDirective(): string;
81
83
  get listPrependDirective(): string;
82
84
  get listAppendDirective(): string;
83
85
  get listParentDirective(): string;
84
- get listDirectiveParentIDArg(): string;
86
+ /**
87
+ * @deprecated
88
+ */
89
+ get deprecatedlistDirectiveParentIDArg(): string;
85
90
  get listAllListsDirective(): string;
86
91
  get listNameArg(): string;
87
92
  get insertFragmentSuffix(): string;
@@ -60985,6 +60985,20 @@ function deepEquals(objA, objB, map = /* @__PURE__ */ new WeakMap()) {
60985
60985
  return true;
60986
60986
  }
60987
60987
 
60988
+ // src/runtime/lib/selection.ts
60989
+ function getFieldsForType(selection, __typename) {
60990
+ let targetSelection = selection.fields || {};
60991
+ if (selection.abstractFields && __typename) {
60992
+ const mappedType = selection.abstractFields.typeMap[__typename];
60993
+ if (mappedType) {
60994
+ targetSelection = selection.abstractFields.fields[mappedType];
60995
+ } else if (selection.abstractFields.fields[__typename]) {
60996
+ targetSelection = selection.abstractFields.fields[__typename];
60997
+ }
60998
+ }
60999
+ return targetSelection;
61000
+ }
61001
+
60988
61002
  // src/runtime/cache/gc.ts
60989
61003
  var GarbageCollector = class {
60990
61004
  cache;
@@ -61207,23 +61221,32 @@ var List = class {
61207
61221
  let insertData = data;
61208
61222
  if (this.connection) {
61209
61223
  insertSelection = {
61210
- newEntry: {
61211
- keyRaw: this.key,
61212
- type: "Connection",
61213
- fields: {
61214
- edges: {
61215
- keyRaw: "edges",
61216
- type: "ConnectionEdge",
61217
- update: where === "first" ? "prepend" : "append",
61224
+ fields: {
61225
+ newEntry: {
61226
+ keyRaw: this.key,
61227
+ type: "Connection",
61228
+ selection: {
61218
61229
  fields: {
61219
- node: {
61220
- type: listType,
61221
- keyRaw: "node",
61222
- fields: {
61223
- ...selection,
61224
- __typename: {
61225
- keyRaw: "__typename",
61226
- type: "String"
61230
+ edges: {
61231
+ keyRaw: "edges",
61232
+ type: "ConnectionEdge",
61233
+ update: where === "first" ? "prepend" : "append",
61234
+ selection: {
61235
+ fields: {
61236
+ node: {
61237
+ type: listType,
61238
+ keyRaw: "node",
61239
+ selection: {
61240
+ ...selection,
61241
+ fields: {
61242
+ ...selection.fields,
61243
+ __typename: {
61244
+ keyRaw: "__typename",
61245
+ type: "String"
61246
+ }
61247
+ }
61248
+ }
61249
+ }
61227
61250
  }
61228
61251
  }
61229
61252
  }
@@ -61239,15 +61262,20 @@ var List = class {
61239
61262
  };
61240
61263
  } else {
61241
61264
  insertSelection = {
61242
- newEntries: {
61243
- keyRaw: this.key,
61244
- type: listType,
61245
- update: where === "first" ? "prepend" : "append",
61246
- fields: {
61247
- ...selection,
61248
- __typename: {
61249
- keyRaw: "__typename",
61250
- type: "String"
61265
+ fields: {
61266
+ newEntries: {
61267
+ keyRaw: this.key,
61268
+ type: listType,
61269
+ update: where === "first" ? "prepend" : "append",
61270
+ selection: {
61271
+ ...selection,
61272
+ fields: {
61273
+ ...selection.fields,
61274
+ __typename: {
61275
+ keyRaw: "__typename",
61276
+ type: "String"
61277
+ }
61278
+ }
61251
61279
  }
61252
61280
  }
61253
61281
  }
@@ -61307,7 +61335,7 @@ var List = class {
61307
61335
  const subscribers = this.cache._internal_unstable.subscriptions.get(this.recordID, this.key);
61308
61336
  this.cache._internal_unstable.subscriptions.remove(
61309
61337
  targetID,
61310
- this.connection ? this.selection.edges.fields : this.selection,
61338
+ this.connection ? this.selection.fields.edges.selection : this.selection,
61311
61339
  subscribers,
61312
61340
  variables
61313
61341
  );
@@ -61796,18 +61824,20 @@ var InMemorySubscriptions = class {
61796
61824
  variables,
61797
61825
  parentType
61798
61826
  }) {
61799
- for (const fieldSelection of Object.values(selection)) {
61800
- const { keyRaw, fields, type } = fieldSelection;
61827
+ const __typename = this.cache._internal_unstable.storage.get(parent, "__typename").value;
61828
+ let targetSelection = getFieldsForType(selection, __typename);
61829
+ for (const fieldSelection of Object.values(targetSelection || {})) {
61830
+ const { keyRaw, selection: innerSelection, type } = fieldSelection;
61801
61831
  const key = evaluateKey(keyRaw, variables);
61802
61832
  this.addFieldSubscription({
61803
61833
  id: parent,
61804
61834
  key,
61805
- selection: fieldSelection,
61835
+ field: fieldSelection,
61806
61836
  spec,
61807
61837
  parentType: parentType || spec.rootType,
61808
61838
  variables
61809
61839
  });
61810
- if (fields) {
61840
+ if (innerSelection) {
61811
61841
  const { value: linkedRecord } = this.cache._internal_unstable.storage.get(
61812
61842
  parent,
61813
61843
  key
@@ -61820,7 +61850,7 @@ var InMemorySubscriptions = class {
61820
61850
  this.add({
61821
61851
  parent: child,
61822
61852
  spec,
61823
- selection: fields,
61853
+ selection: innerSelection,
61824
61854
  variables,
61825
61855
  parentType: type
61826
61856
  });
@@ -61831,7 +61861,7 @@ var InMemorySubscriptions = class {
61831
61861
  addFieldSubscription({
61832
61862
  id,
61833
61863
  key,
61834
- selection,
61864
+ field,
61835
61865
  spec,
61836
61866
  parentType,
61837
61867
  variables
@@ -61858,8 +61888,8 @@ var InMemorySubscriptions = class {
61858
61888
  const counts = this.referenceCounts[id][key];
61859
61889
  counts.set(spec.set, (counts.get(spec.set) || 0) + 1);
61860
61890
  this.cache._internal_unstable.lifetimes.resetLifetime(id, key);
61861
- const { fields, list, filters } = selection;
61862
- if (fields && list) {
61891
+ const { selection, list, filters } = field;
61892
+ if (selection && list) {
61863
61893
  this.cache._internal_unstable.lists.add({
61864
61894
  name: list.name,
61865
61895
  connection: list.connection,
@@ -61867,7 +61897,7 @@ var InMemorySubscriptions = class {
61867
61897
  recordType: this.cache._internal_unstable.storage.get(id, "__typename")?.value || parentType,
61868
61898
  listType: list.type,
61869
61899
  key,
61870
- selection: fields,
61900
+ selection,
61871
61901
  filters: Object.entries(filters || {}).reduce((acc, [key2, { kind, value }]) => {
61872
61902
  return {
61873
61903
  ...acc,
@@ -61884,20 +61914,21 @@ var InMemorySubscriptions = class {
61884
61914
  subscribers,
61885
61915
  parentType
61886
61916
  }) {
61887
- for (const fieldSelection of Object.values(selection)) {
61888
- const { type: linkedType, keyRaw, fields } = fieldSelection;
61917
+ let targetSelection = getFieldsForType(selection, parentType);
61918
+ for (const fieldSelection of Object.values(targetSelection)) {
61919
+ const { type: linkedType, keyRaw, selection: innerSelection } = fieldSelection;
61889
61920
  const key = evaluateKey(keyRaw, variables);
61890
61921
  for (const spec of subscribers) {
61891
61922
  this.addFieldSubscription({
61892
61923
  id: parent,
61893
61924
  key,
61894
- selection: fieldSelection,
61925
+ field: fieldSelection,
61895
61926
  spec,
61896
61927
  parentType,
61897
61928
  variables
61898
61929
  });
61899
61930
  }
61900
- if (fields) {
61931
+ if (innerSelection) {
61901
61932
  const { value: link } = this.cache._internal_unstable.storage.get(parent, key);
61902
61933
  const children = !Array.isArray(link) ? [link] : flattenList(link);
61903
61934
  for (const linkedRecord of children) {
@@ -61906,7 +61937,7 @@ var InMemorySubscriptions = class {
61906
61937
  }
61907
61938
  this.addMany({
61908
61939
  parent: linkedRecord,
61909
- selection: fields,
61940
+ selection: innerSelection,
61910
61941
  variables,
61911
61942
  subscribers,
61912
61943
  parentType: linkedType
@@ -61918,22 +61949,20 @@ var InMemorySubscriptions = class {
61918
61949
  get(id, field) {
61919
61950
  return this.subscribers[id]?.[field] || [];
61920
61951
  }
61921
- remove(id, fields, targets, variables, visited = []) {
61952
+ remove(id, selection, targets, variables, visited = []) {
61922
61953
  visited.push(id);
61923
61954
  const linkedIDs = [];
61924
- for (const selection of Object.values(fields)) {
61925
- const key = evaluateKey(selection.keyRaw, variables);
61955
+ for (const fieldSelection of Object.values(selection.fields || {})) {
61956
+ const key = evaluateKey(fieldSelection.keyRaw, variables);
61926
61957
  this.removeSubscribers(id, key, targets);
61927
- if (!selection.fields) {
61958
+ if (!fieldSelection.selection?.fields) {
61928
61959
  continue;
61929
61960
  }
61930
- if (selection.list) {
61931
- }
61932
61961
  const { value: previousValue } = this.cache._internal_unstable.storage.get(id, key);
61933
61962
  const links = !Array.isArray(previousValue) ? [previousValue] : flattenList(previousValue);
61934
61963
  for (const link of links) {
61935
61964
  if (link !== null) {
61936
- linkedIDs.push([link, selection.fields]);
61965
+ linkedIDs.push([link, fieldSelection.selection || {}]);
61937
61966
  }
61938
61967
  }
61939
61968
  }
@@ -62111,8 +62140,9 @@ var CacheInternal = class {
62111
62140
  if (this._disabled) {
62112
62141
  return [];
62113
62142
  }
62143
+ let targetSelection = getFieldsForType(selection, data["__typename"]);
62114
62144
  for (const [field, value] of Object.entries(data)) {
62115
- if (!selection || !selection[field]) {
62145
+ if (!selection || !targetSelection[field]) {
62116
62146
  throw new Error(
62117
62147
  "Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection)
62118
62148
  );
@@ -62120,11 +62150,11 @@ var CacheInternal = class {
62120
62150
  let {
62121
62151
  type: linkedType,
62122
62152
  keyRaw,
62123
- fields,
62153
+ selection: fieldSelection,
62124
62154
  operations,
62125
62155
  abstract: isAbstract,
62126
62156
  update
62127
- } = selection[field];
62157
+ } = targetSelection[field];
62128
62158
  const key = evaluateKey(keyRaw, variables);
62129
62159
  const currentSubscribers = this.subscriptions.get(parent, key);
62130
62160
  const { value: previousValue, displayLayers } = this.storage.get(parent, key);
@@ -62132,7 +62162,7 @@ var CacheInternal = class {
62132
62162
  if (displayLayer) {
62133
62163
  this.lifetimes.resetLifetime(parent, key);
62134
62164
  }
62135
- if (!fields) {
62165
+ if (!fieldSelection) {
62136
62166
  let newValue = value;
62137
62167
  if (Array.isArray(value) && applyUpdates && update) {
62138
62168
  if (update === "append") {
@@ -62152,7 +62182,7 @@ var CacheInternal = class {
62152
62182
  }
62153
62183
  const previousLinks = flattenList([previousValue]);
62154
62184
  for (const link of previousLinks) {
62155
- this.subscriptions.remove(link, fields, currentSubscribers, variables);
62185
+ this.subscriptions.remove(link, fieldSelection, currentSubscribers, variables);
62156
62186
  }
62157
62187
  layer.writeLink(parent, key, null);
62158
62188
  toNotify.push(...currentSubscribers);
@@ -62178,14 +62208,14 @@ var CacheInternal = class {
62178
62208
  if (previousValue && typeof previousValue === "string") {
62179
62209
  this.subscriptions.remove(
62180
62210
  previousValue,
62181
- fields,
62211
+ fieldSelection,
62182
62212
  currentSubscribers,
62183
62213
  variables
62184
62214
  );
62185
62215
  }
62186
62216
  this.subscriptions.addMany({
62187
62217
  parent: linkedID,
62188
- selection: fields,
62218
+ selection: fieldSelection,
62189
62219
  subscribers: currentSubscribers,
62190
62220
  variables,
62191
62221
  parentType: linkedType
@@ -62195,14 +62225,14 @@ var CacheInternal = class {
62195
62225
  if (linkedID) {
62196
62226
  this.writeSelection({
62197
62227
  root,
62198
- selection: fields,
62228
+ selection: fieldSelection,
62199
62229
  parent: linkedID,
62200
62230
  data: value,
62201
62231
  variables,
62202
62232
  toNotify,
62203
62233
  applyUpdates,
62204
62234
  layer,
62205
- forceNotify: true
62235
+ forceNotify
62206
62236
  });
62207
62237
  }
62208
62238
  } else if (Array.isArray(value) && (typeof previousValue === "undefined" || Array.isArray(previousValue))) {
@@ -62231,7 +62261,7 @@ var CacheInternal = class {
62231
62261
  key,
62232
62262
  linkedType,
62233
62263
  variables,
62234
- fields,
62264
+ fields: fieldSelection,
62235
62265
  layer,
62236
62266
  forceNotify
62237
62267
  });
@@ -62281,7 +62311,7 @@ var CacheInternal = class {
62281
62311
  if (linkedIDs.includes(lostID) || !lostID) {
62282
62312
  continue;
62283
62313
  }
62284
- this.subscriptions.remove(lostID, fields, currentSubscribers, variables);
62314
+ this.subscriptions.remove(lostID, fieldSelection, currentSubscribers, variables);
62285
62315
  }
62286
62316
  if (contentChanged || oldIDs.length === 0 && newIDs.length === 0) {
62287
62317
  layer.writeLink(parent, key, linkedIDs);
@@ -62292,7 +62322,7 @@ var CacheInternal = class {
62292
62322
  }
62293
62323
  this.subscriptions.addMany({
62294
62324
  parent: id,
62295
- selection: fields,
62325
+ selection: fieldSelection,
62296
62326
  subscribers: currentSubscribers,
62297
62327
  variables,
62298
62328
  parentType: linkedType
@@ -62317,9 +62347,14 @@ var CacheInternal = class {
62317
62347
  }
62318
62348
  const targets = Array.isArray(value) ? value : [value];
62319
62349
  for (const target of targets) {
62320
- if (operation.action === "insert" && target instanceof Object && fields && operation.list) {
62321
- this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).addToList(fields, target, variables, operation.position || "last");
62322
- } else if (operation.action === "remove" && target instanceof Object && fields && operation.list) {
62350
+ if (operation.action === "insert" && target instanceof Object && fieldSelection && operation.list) {
62351
+ this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).addToList(
62352
+ fieldSelection,
62353
+ target,
62354
+ variables,
62355
+ operation.position || "last"
62356
+ );
62357
+ } else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
62323
62358
  this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables);
62324
62359
  } else if (operation.action === "delete" && operation.type) {
62325
62360
  if (typeof target !== "string") {
@@ -62330,8 +62365,13 @@ var CacheInternal = class {
62330
62365
  continue;
62331
62366
  }
62332
62367
  this.cache.delete(targetID);
62333
- } else if (operation.action === "toggle" && target instanceof Object && fields && operation.list) {
62334
- this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).toggleElement(fields, target, variables, operation.position || "last");
62368
+ } else if (operation.action === "toggle" && target instanceof Object && fieldSelection && operation.list) {
62369
+ this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).toggleElement(
62370
+ fieldSelection,
62371
+ target,
62372
+ variables,
62373
+ operation.position || "last"
62374
+ );
62335
62375
  }
62336
62376
  }
62337
62377
  }
@@ -62351,9 +62391,12 @@ var CacheInternal = class {
62351
62391
  let hasData = false;
62352
62392
  let partial = false;
62353
62393
  let cascadeNull = false;
62354
- for (const [attributeName, { type, keyRaw, fields, nullable, list }] of Object.entries(
62355
- selection
62356
- )) {
62394
+ const typename = this.storage.get(parent, "__typename").value;
62395
+ let targetSelection = getFieldsForType(selection, typename);
62396
+ for (const [
62397
+ attributeName,
62398
+ { type, keyRaw, selection: fieldSelection, nullable, list }
62399
+ ] of Object.entries(targetSelection)) {
62357
62400
  const key = evaluateKey(keyRaw, variables);
62358
62401
  const { value } = this.storage.get(parent, key);
62359
62402
  let nextStep = stepsFromConnection;
@@ -62376,7 +62419,7 @@ var CacheInternal = class {
62376
62419
  if (typeof value !== "undefined") {
62377
62420
  hasData = true;
62378
62421
  }
62379
- } else if (!fields) {
62422
+ } else if (!fieldSelection) {
62380
62423
  const fnUnmarshal = this.config?.scalars?.[type]?.unmarshal;
62381
62424
  if (fnUnmarshal) {
62382
62425
  target[attributeName] = fnUnmarshal(value);
@@ -62386,7 +62429,7 @@ var CacheInternal = class {
62386
62429
  hasData = true;
62387
62430
  } else if (Array.isArray(value)) {
62388
62431
  const listValue = this.hydrateNestedList({
62389
- fields,
62432
+ fields: fieldSelection,
62390
62433
  variables,
62391
62434
  linkedList: value,
62392
62435
  stepsFromConnection: nextStep
@@ -62401,7 +62444,7 @@ var CacheInternal = class {
62401
62444
  } else {
62402
62445
  const objectFields = this.getSelection({
62403
62446
  parent: value,
62404
- selection: fields,
62447
+ selection: fieldSelection,
62405
62448
  variables,
62406
62449
  stepsFromConnection: nextStep
62407
62450
  });
@@ -64161,7 +64204,7 @@ var Config = class {
64161
64204
  typeConfig;
64162
64205
  configFile;
64163
64206
  logLevel;
64164
- disableMasking;
64207
+ defaultFragmentMasking = "enable";
64165
64208
  configIsRoute = null;
64166
64209
  routesDir;
64167
64210
  schemaPollInterval;
@@ -64174,6 +64217,11 @@ var Config = class {
64174
64217
  ...configFile
64175
64218
  }) {
64176
64219
  this.configFile = defaultConfigValues(configFile);
64220
+ if (configFile.disableMasking !== void 0) {
64221
+ throw new HoudiniError({
64222
+ message: `"disableMasking" was replaced by "defaultFragmentMasking". Please update your config file.`
64223
+ });
64224
+ }
64177
64225
  let {
64178
64226
  schema,
64179
64227
  schemaPath = "./schema.graphql",
@@ -64190,7 +64238,7 @@ var Config = class {
64190
64238
  defaultKeys,
64191
64239
  types: types4 = {},
64192
64240
  logLevel,
64193
- disableMasking = false,
64241
+ defaultFragmentMasking = "enable",
64194
64242
  schemaPollInterval = 2e3,
64195
64243
  schemaPollHeaders = {},
64196
64244
  projectDir
@@ -64209,7 +64257,11 @@ var Config = class {
64209
64257
  logLevel = LogLevel.Summary;
64210
64258
  }
64211
64259
  this.schemaPath = schemaPath;
64212
- this.apiUrl = apiUrl;
64260
+ if (apiUrl && apiUrl.startsWith("env:")) {
64261
+ this.apiUrl = process.env[apiUrl.slice("env:".length)];
64262
+ } else {
64263
+ this.apiUrl = apiUrl;
64264
+ }
64213
64265
  this.filepath = filepath;
64214
64266
  this.exclude = Array.isArray(exclude) ? exclude : [exclude];
64215
64267
  this.module = module2;
@@ -64221,10 +64273,10 @@ var Config = class {
64221
64273
  this.defaultCachePolicy = defaultCachePolicy;
64222
64274
  this.defaultPartial = defaultPartial;
64223
64275
  this.internalListPosition = defaultListPosition === "append" ? "last" : "first";
64224
- this.defaultListTarget == defaultListTarget;
64276
+ this.defaultListTarget = defaultListTarget;
64225
64277
  this.definitionsFolder = definitionsPath;
64226
64278
  this.logLevel = (logLevel || LogLevel.Summary).toLowerCase();
64227
- this.disableMasking = disableMasking;
64279
+ this.defaultFragmentMasking = defaultFragmentMasking;
64228
64280
  this.routesDir = join2(this.projectRoot, "src", "routes");
64229
64281
  this.schemaPollInterval = schemaPollInterval;
64230
64282
  this.schemaPollHeaders = schemaPollHeaders;
@@ -64418,8 +64470,14 @@ var Config = class {
64418
64470
  pluginDirectory(name) {
64419
64471
  return houdini_mode.is_testing ? resolve("../../../", name) : join2(this.rootDir, "plugins", name);
64420
64472
  }
64421
- get houdiniDirective() {
64422
- return "houdini";
64473
+ get manualLoadDirective() {
64474
+ return "manual_load";
64475
+ }
64476
+ get maskEnableDirective() {
64477
+ return "mask_enable";
64478
+ }
64479
+ get maskDisableDirective() {
64480
+ return "mask_disable";
64423
64481
  }
64424
64482
  get listDirective() {
64425
64483
  return "list";
@@ -64431,9 +64489,9 @@ var Config = class {
64431
64489
  return "append";
64432
64490
  }
64433
64491
  get listParentDirective() {
64434
- return this.listDirectiveParentIDArg;
64492
+ return "parentID";
64435
64493
  }
64436
- get listDirectiveParentIDArg() {
64494
+ get deprecatedlistDirectiveParentIDArg() {
64437
64495
  return "parentID";
64438
64496
  }
64439
64497
  get listAllListsDirective() {
@@ -64519,7 +64577,7 @@ var Config = class {
64519
64577
  this.listDirective,
64520
64578
  this.listPrependDirective,
64521
64579
  this.listAppendDirective,
64522
- this.listDirectiveParentIDArg,
64580
+ this.listParentDirective,
64523
64581
  this.listAllListsDirective,
64524
64582
  this.whenDirective,
64525
64583
  this.whenNotDirective,
@@ -64527,7 +64585,9 @@ var Config = class {
64527
64585
  this.withDirective,
64528
64586
  this.paginateDirective,
64529
64587
  this.cacheDirective,
64530
- this.houdiniDirective
64588
+ this.manualLoadDirective,
64589
+ this.maskEnableDirective,
64590
+ this.maskDisableDirective
64531
64591
  ].includes(name.value) || this.isDeleteDirective(name.value);
64532
64592
  }
64533
64593
  isListFragment(name) {