houdini 1.2.37 → 1.2.38

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.
@@ -63351,7 +63351,8 @@ var CachePolicy = {
63351
63351
  CacheOrNetwork: "CacheOrNetwork",
63352
63352
  CacheOnly: "CacheOnly",
63353
63353
  NetworkOnly: "NetworkOnly",
63354
- CacheAndNetwork: "CacheAndNetwork"
63354
+ CacheAndNetwork: "CacheAndNetwork",
63355
+ NoCache: "NoCache"
63355
63356
  };
63356
63357
  var PaginateMode = {
63357
63358
  Infinite: "Infinite",
@@ -75456,6 +75457,7 @@ enum CachePolicy {
75456
75457
  ${CachePolicy.CacheOnly}
75457
75458
  ${CachePolicy.CacheOrNetwork}
75458
75459
  ${CachePolicy.NetworkOnly}
75460
+ ${CachePolicy.NoCache}
75459
75461
  }
75460
75462
 
75461
75463
  """
@@ -77146,6 +77148,7 @@ async function generate(args = {
77146
77148
  console.error(error.stack.split("\n").slice(1).join("\n"));
77147
77149
  }
77148
77150
  });
77151
+ process.exit(1);
77149
77152
  }
77150
77153
  }
77151
77154
 
@@ -78121,12 +78124,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78121
78124
  }
78122
78125
  packageJSON2.devDependencies = {
78123
78126
  ...packageJSON2.devDependencies,
78124
- houdini: "^1.2.37"
78127
+ houdini: "^1.2.38"
78125
78128
  };
78126
78129
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78127
78130
  packageJSON2.devDependencies = {
78128
78131
  ...packageJSON2.devDependencies,
78129
- "houdini-svelte": "^1.2.37"
78132
+ "houdini-svelte": "^1.2.38"
78130
78133
  };
78131
78134
  } else {
78132
78135
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -63357,7 +63357,8 @@ var CachePolicy = {
63357
63357
  CacheOrNetwork: "CacheOrNetwork",
63358
63358
  CacheOnly: "CacheOnly",
63359
63359
  NetworkOnly: "NetworkOnly",
63360
- CacheAndNetwork: "CacheAndNetwork"
63360
+ CacheAndNetwork: "CacheAndNetwork",
63361
+ NoCache: "NoCache"
63361
63362
  };
63362
63363
  var PaginateMode = {
63363
63364
  Infinite: "Infinite",
@@ -75461,6 +75462,7 @@ enum CachePolicy {
75461
75462
  ${CachePolicy.CacheOnly}
75462
75463
  ${CachePolicy.CacheOrNetwork}
75463
75464
  ${CachePolicy.NetworkOnly}
75465
+ ${CachePolicy.NoCache}
75464
75466
  }
75465
75467
 
75466
75468
  """
@@ -77151,6 +77153,7 @@ async function generate(args = {
77151
77153
  console.error(error.stack.split("\n").slice(1).join("\n"));
77152
77154
  }
77153
77155
  });
77156
+ process.exit(1);
77154
77157
  }
77155
77158
  }
77156
77159
 
@@ -78126,12 +78129,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78126
78129
  }
78127
78130
  packageJSON2.devDependencies = {
78128
78131
  ...packageJSON2.devDependencies,
78129
- houdini: "^1.2.37"
78132
+ houdini: "^1.2.38"
78130
78133
  };
78131
78134
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78132
78135
  packageJSON2.devDependencies = {
78133
78136
  ...packageJSON2.devDependencies,
78134
- "houdini-svelte": "^1.2.37"
78137
+ "houdini-svelte": "^1.2.38"
78135
78138
  };
78136
78139
  } else {
78137
78140
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -54011,7 +54011,8 @@ var CachePolicy = {
54011
54011
  CacheOrNetwork: "CacheOrNetwork",
54012
54012
  CacheOnly: "CacheOnly",
54013
54013
  NetworkOnly: "NetworkOnly",
54014
- CacheAndNetwork: "CacheAndNetwork"
54014
+ CacheAndNetwork: "CacheAndNetwork",
54015
+ NoCache: "NoCache"
54015
54016
  };
54016
54017
  var PaginateMode = {
54017
54018
  Infinite: "Infinite",
@@ -63845,6 +63846,7 @@ enum CachePolicy {
63845
63846
  ${CachePolicy.CacheOnly}
63846
63847
  ${CachePolicy.CacheOrNetwork}
63847
63848
  ${CachePolicy.NetworkOnly}
63849
+ ${CachePolicy.NoCache}
63848
63850
  }
63849
63851
 
63850
63852
  """
@@ -54011,7 +54011,8 @@ var CachePolicy = {
54011
54011
  CacheOrNetwork: "CacheOrNetwork",
54012
54012
  CacheOnly: "CacheOnly",
54013
54013
  NetworkOnly: "NetworkOnly",
54014
- CacheAndNetwork: "CacheAndNetwork"
54014
+ CacheAndNetwork: "CacheAndNetwork",
54015
+ NoCache: "NoCache"
54015
54016
  };
54016
54017
  var PaginateMode = {
54017
54018
  Infinite: "Infinite",
@@ -63844,6 +63845,7 @@ enum CachePolicy {
63844
63845
  ${CachePolicy.CacheOnly}
63845
63846
  ${CachePolicy.CacheOrNetwork}
63846
63847
  ${CachePolicy.NetworkOnly}
63848
+ ${CachePolicy.NoCache}
63847
63849
  }
63848
63850
 
63849
63851
  """
@@ -61603,7 +61603,8 @@ var CachePolicy = {
61603
61603
  CacheOrNetwork: "CacheOrNetwork",
61604
61604
  CacheOnly: "CacheOnly",
61605
61605
  NetworkOnly: "NetworkOnly",
61606
- CacheAndNetwork: "CacheAndNetwork"
61606
+ CacheAndNetwork: "CacheAndNetwork",
61607
+ NoCache: "NoCache"
61607
61608
  };
61608
61609
  var PaginateMode = {
61609
61610
  Infinite: "Infinite",
@@ -65759,7 +65760,8 @@ var cachePolicy = ({
65759
65760
  const { policy, artifact } = ctx;
65760
65761
  let useCache = false;
65761
65762
  if (enabled && (artifact.kind === ArtifactKind.Query || artifact.kind === ArtifactKind.Fragment) && !ctx.cacheParams?.disableRead) {
65762
- if (policy !== CachePolicy.NetworkOnly) {
65763
+ const policyAllowsCache = policy !== CachePolicy.NetworkOnly && policy !== CachePolicy.NoCache;
65764
+ if (policyAllowsCache) {
65763
65765
  const value = localCache.read({
65764
65766
  selection: artifact.selection,
65765
65767
  variables: marshalVariables2(ctx),
@@ -65813,7 +65815,7 @@ var cachePolicy = ({
65813
65815
  return next(ctx);
65814
65816
  },
65815
65817
  afterNetwork(ctx, { resolve: resolve2, value, marshalVariables: marshalVariables2 }) {
65816
- if (value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
65818
+ if (ctx.policy !== CachePolicy.NoCache && value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
65817
65819
  if (ctx.cacheParams && "serverSideFallback" in ctx.cacheParams) {
65818
65820
  serverSideFallback = ctx.cacheParams?.serverSideFallback ?? serverSideFallback;
65819
65821
  }
@@ -61525,7 +61525,8 @@ var CachePolicy = {
61525
61525
  CacheOrNetwork: "CacheOrNetwork",
61526
61526
  CacheOnly: "CacheOnly",
61527
61527
  NetworkOnly: "NetworkOnly",
61528
- CacheAndNetwork: "CacheAndNetwork"
61528
+ CacheAndNetwork: "CacheAndNetwork",
61529
+ NoCache: "NoCache"
61529
61530
  };
61530
61531
  var PaginateMode = {
61531
61532
  Infinite: "Infinite",
@@ -65681,7 +65682,8 @@ var cachePolicy = ({
65681
65682
  const { policy, artifact } = ctx;
65682
65683
  let useCache = false;
65683
65684
  if (enabled && (artifact.kind === ArtifactKind.Query || artifact.kind === ArtifactKind.Fragment) && !ctx.cacheParams?.disableRead) {
65684
- if (policy !== CachePolicy.NetworkOnly) {
65685
+ const policyAllowsCache = policy !== CachePolicy.NetworkOnly && policy !== CachePolicy.NoCache;
65686
+ if (policyAllowsCache) {
65685
65687
  const value = localCache.read({
65686
65688
  selection: artifact.selection,
65687
65689
  variables: marshalVariables2(ctx),
@@ -65735,7 +65737,7 @@ var cachePolicy = ({
65735
65737
  return next(ctx);
65736
65738
  },
65737
65739
  afterNetwork(ctx, { resolve: resolve2, value, marshalVariables: marshalVariables2 }) {
65738
- if (value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
65740
+ if (ctx.policy !== CachePolicy.NoCache && value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
65739
65741
  if (ctx.cacheParams && "serverSideFallback" in ctx.cacheParams) {
65740
65742
  serverSideFallback = ctx.cacheParams?.serverSideFallback ?? serverSideFallback;
65741
65743
  }
@@ -81,12 +81,12 @@ export type ClientPluginEnterHandlers = {
81
81
  /** Returns the marshaled variables for the operation */
82
82
  marshalVariables: typeof marshalVariables;
83
83
  };
84
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
84
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
85
85
  export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'> & {
86
86
  resolve: (ctx: ClientPluginContext, data?: QueryResult) => void;
87
87
  value: QueryResult;
88
88
  };
89
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
89
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
90
90
  export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
91
91
  error: unknown;
92
92
  };
@@ -4,6 +4,7 @@ export declare const CachePolicy: {
4
4
  readonly CacheOnly: "CacheOnly";
5
5
  readonly NetworkOnly: "NetworkOnly";
6
6
  readonly CacheAndNetwork: "CacheAndNetwork";
7
+ readonly NoCache: "NoCache";
7
8
  };
8
9
  export type CachePolicies = ValuesOf<typeof CachePolicy>;
9
10
  export declare const PaginateMode: {
@@ -81,12 +81,12 @@ export type ClientPluginEnterHandlers = {
81
81
  /** Returns the marshaled variables for the operation */
82
82
  marshalVariables: typeof marshalVariables;
83
83
  };
84
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
84
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
85
85
  export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'> & {
86
86
  resolve: (ctx: ClientPluginContext, data?: QueryResult) => void;
87
87
  value: QueryResult;
88
88
  };
89
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
89
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
90
90
  export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
91
91
  error: unknown;
92
92
  };
@@ -42,7 +42,8 @@ const cachePolicy = ({
42
42
  const { policy, artifact } = ctx;
43
43
  let useCache = false;
44
44
  if (enabled && (artifact.kind === import_types.ArtifactKind.Query || artifact.kind === import_types.ArtifactKind.Fragment) && !ctx.cacheParams?.disableRead) {
45
- if (policy !== import_types.CachePolicy.NetworkOnly) {
45
+ const policyAllowsCache = policy !== import_types.CachePolicy.NetworkOnly && policy !== import_types.CachePolicy.NoCache;
46
+ if (policyAllowsCache) {
46
47
  const value = localCache.read({
47
48
  selection: artifact.selection,
48
49
  variables: marshalVariables(ctx),
@@ -96,7 +97,7 @@ const cachePolicy = ({
96
97
  return next(ctx);
97
98
  },
98
99
  afterNetwork(ctx, { resolve, value, marshalVariables }) {
99
- if (value.source !== import_types.DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
100
+ if (ctx.policy !== import_types.CachePolicy.NoCache && value.source !== import_types.DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
100
101
  if (ctx.cacheParams && "serverSideFallback" in ctx.cacheParams) {
101
102
  serverSideFallback = ctx.cacheParams?.serverSideFallback ?? serverSideFallback;
102
103
  }
@@ -4,6 +4,7 @@ export declare const CachePolicy: {
4
4
  readonly CacheOnly: "CacheOnly";
5
5
  readonly NetworkOnly: "NetworkOnly";
6
6
  readonly CacheAndNetwork: "CacheAndNetwork";
7
+ readonly NoCache: "NoCache";
7
8
  };
8
9
  export type CachePolicies = ValuesOf<typeof CachePolicy>;
9
10
  export declare const PaginateMode: {
@@ -38,7 +38,8 @@ const CachePolicy = {
38
38
  CacheOrNetwork: "CacheOrNetwork",
39
39
  CacheOnly: "CacheOnly",
40
40
  NetworkOnly: "NetworkOnly",
41
- CacheAndNetwork: "CacheAndNetwork"
41
+ CacheAndNetwork: "CacheAndNetwork",
42
+ NoCache: "NoCache"
42
43
  };
43
44
  const PaginateMode = {
44
45
  Infinite: "Infinite",
@@ -81,12 +81,12 @@ export type ClientPluginEnterHandlers = {
81
81
  /** Returns the marshaled variables for the operation */
82
82
  marshalVariables: typeof marshalVariables;
83
83
  };
84
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
84
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
85
85
  export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'> & {
86
86
  resolve: (ctx: ClientPluginContext, data?: QueryResult) => void;
87
87
  value: QueryResult;
88
88
  };
89
- /** Exit handlers are the same as enter handles but don't need to resolve with a specific value */
89
+ /** Exit handlers are the same as enter handlers but don't need to resolve with a specific value */
90
90
  export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
91
91
  error: unknown;
92
92
  };
@@ -13,7 +13,8 @@ const cachePolicy = ({
13
13
  const { policy, artifact } = ctx;
14
14
  let useCache = false;
15
15
  if (enabled && (artifact.kind === ArtifactKind.Query || artifact.kind === ArtifactKind.Fragment) && !ctx.cacheParams?.disableRead) {
16
- if (policy !== CachePolicy.NetworkOnly) {
16
+ const policyAllowsCache = policy !== CachePolicy.NetworkOnly && policy !== CachePolicy.NoCache;
17
+ if (policyAllowsCache) {
17
18
  const value = localCache.read({
18
19
  selection: artifact.selection,
19
20
  variables: marshalVariables(ctx),
@@ -67,7 +68,7 @@ const cachePolicy = ({
67
68
  return next(ctx);
68
69
  },
69
70
  afterNetwork(ctx, { resolve, value, marshalVariables }) {
70
- if (value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
71
+ if (ctx.policy !== CachePolicy.NoCache && value.source !== DataSource.Cache && enabled && value.data && !ctx.cacheParams?.disableWrite) {
71
72
  if (ctx.cacheParams && "serverSideFallback" in ctx.cacheParams) {
72
73
  serverSideFallback = ctx.cacheParams?.serverSideFallback ?? serverSideFallback;
73
74
  }
@@ -4,6 +4,7 @@ export declare const CachePolicy: {
4
4
  readonly CacheOnly: "CacheOnly";
5
5
  readonly NetworkOnly: "NetworkOnly";
6
6
  readonly CacheAndNetwork: "CacheAndNetwork";
7
+ readonly NoCache: "NoCache";
7
8
  };
8
9
  export type CachePolicies = ValuesOf<typeof CachePolicy>;
9
10
  export declare const PaginateMode: {
@@ -2,7 +2,8 @@ const CachePolicy = {
2
2
  CacheOrNetwork: "CacheOrNetwork",
3
3
  CacheOnly: "CacheOnly",
4
4
  NetworkOnly: "NetworkOnly",
5
- CacheAndNetwork: "CacheAndNetwork"
5
+ CacheAndNetwork: "CacheAndNetwork",
6
+ NoCache: "NoCache"
6
7
  };
7
8
  const PaginateMode = {
8
9
  Infinite: "Infinite",
@@ -54021,7 +54021,8 @@ var CachePolicy = {
54021
54021
  CacheOrNetwork: "CacheOrNetwork",
54022
54022
  CacheOnly: "CacheOnly",
54023
54023
  NetworkOnly: "NetworkOnly",
54024
- CacheAndNetwork: "CacheAndNetwork"
54024
+ CacheAndNetwork: "CacheAndNetwork",
54025
+ NoCache: "NoCache"
54025
54026
  };
54026
54027
  var PaginateMode = {
54027
54028
  Infinite: "Infinite",
@@ -64199,6 +64200,7 @@ enum CachePolicy {
64199
64200
  ${CachePolicy.CacheOnly}
64200
64201
  ${CachePolicy.CacheOrNetwork}
64201
64202
  ${CachePolicy.NetworkOnly}
64203
+ ${CachePolicy.NoCache}
64202
64204
  }
64203
64205
 
64204
64206
  """
@@ -54018,7 +54018,8 @@ var CachePolicy = {
54018
54018
  CacheOrNetwork: "CacheOrNetwork",
54019
54019
  CacheOnly: "CacheOnly",
54020
54020
  NetworkOnly: "NetworkOnly",
54021
- CacheAndNetwork: "CacheAndNetwork"
54021
+ CacheAndNetwork: "CacheAndNetwork",
54022
+ NoCache: "NoCache"
54022
54023
  };
54023
54024
  var PaginateMode = {
54024
54025
  Infinite: "Infinite",
@@ -64195,6 +64196,7 @@ enum CachePolicy {
64195
64196
  ${CachePolicy.CacheOnly}
64196
64197
  ${CachePolicy.CacheOrNetwork}
64197
64198
  ${CachePolicy.NetworkOnly}
64199
+ ${CachePolicy.NoCache}
64198
64200
  }
64199
64201
 
64200
64202
  """
@@ -64628,7 +64628,8 @@ var CachePolicy = {
64628
64628
  CacheOrNetwork: "CacheOrNetwork",
64629
64629
  CacheOnly: "CacheOnly",
64630
64630
  NetworkOnly: "NetworkOnly",
64631
- CacheAndNetwork: "CacheAndNetwork"
64631
+ CacheAndNetwork: "CacheAndNetwork",
64632
+ NoCache: "NoCache"
64632
64633
  };
64633
64634
  var PaginateMode = {
64634
64635
  Infinite: "Infinite",
@@ -76890,6 +76891,7 @@ enum CachePolicy {
76890
76891
  ${CachePolicy.CacheOnly}
76891
76892
  ${CachePolicy.CacheOrNetwork}
76892
76893
  ${CachePolicy.NetworkOnly}
76894
+ ${CachePolicy.NoCache}
76893
76895
  }
76894
76896
 
76895
76897
  """
@@ -64622,7 +64622,8 @@ var CachePolicy = {
64622
64622
  CacheOrNetwork: "CacheOrNetwork",
64623
64623
  CacheOnly: "CacheOnly",
64624
64624
  NetworkOnly: "NetworkOnly",
64625
- CacheAndNetwork: "CacheAndNetwork"
64625
+ CacheAndNetwork: "CacheAndNetwork",
64626
+ NoCache: "NoCache"
64626
64627
  };
64627
64628
  var PaginateMode = {
64628
64629
  Infinite: "Infinite",
@@ -76883,6 +76884,7 @@ enum CachePolicy {
76883
76884
  ${CachePolicy.CacheOnly}
76884
76885
  ${CachePolicy.CacheOrNetwork}
76885
76886
  ${CachePolicy.NetworkOnly}
76887
+ ${CachePolicy.NoCache}
76886
76888
  }
76887
76889
 
76888
76890
  """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.37",
3
+ "version": "1.2.38",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",