houdini-core 2.0.0-next.23 → 2.0.0-next.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-core",
3
- "version": "2.0.0-next.23",
3
+ "version": "2.0.0-next.24",
4
4
  "description": "The core GraphQL client for Houdini",
5
5
  "keywords": [
6
6
  "graphql",
@@ -21,13 +21,13 @@
21
21
  "minimatch": "^10.2.5"
22
22
  },
23
23
  "optionalDependencies": {
24
- "houdini-core-darwin-x64": "2.0.0-next.23",
25
- "houdini-core-darwin-arm64": "2.0.0-next.23",
26
- "houdini-core-linux-x64": "2.0.0-next.23",
27
- "houdini-core-linux-arm64": "2.0.0-next.23",
28
- "houdini-core-win32-x64": "2.0.0-next.23",
29
- "houdini-core-win32-arm64": "2.0.0-next.23",
30
- "houdini-core-wasm": "2.0.0-next.23"
24
+ "houdini-core-darwin-x64": "2.0.0-next.24",
25
+ "houdini-core-darwin-arm64": "2.0.0-next.24",
26
+ "houdini-core-linux-x64": "2.0.0-next.24",
27
+ "houdini-core-linux-arm64": "2.0.0-next.24",
28
+ "houdini-core-win32-x64": "2.0.0-next.24",
29
+ "houdini-core-win32-arm64": "2.0.0-next.24",
30
+ "houdini-core-wasm": "2.0.0-next.24"
31
31
  },
32
32
  "files": [
33
33
  "bin",
package/postInstall.js CHANGED
@@ -5,7 +5,7 @@ const https = require('https')
5
5
  const child_process = require('child_process')
6
6
 
7
7
  // Adjust the version you want to install. You can also make this dynamic.
8
- const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.23'
8
+ const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.24'
9
9
 
10
10
  // Windows binaries end with .exe so we need to special case them.
11
11
  const binaryName = process.platform === 'win32' ? 'houdini-core.exe' : 'houdini-core'
@@ -49,8 +49,12 @@ export const cachePolicy =
49
49
  // we can only use the result if its not a partial result
50
50
  const allowed =
51
51
  !value.partial ||
52
- // or the artifact allows for partial responses
53
- (artifact.kind === ArtifactKind.Query && artifact.partial)
52
+ // or the artifact allows for partial responses, and the caller
53
+ // hasn't opted out (e.g. SinglePage pagination suppresses partial
54
+ // cache hits to avoid flashing intermediate states)
55
+ (artifact.kind === ArtifactKind.Query &&
56
+ artifact.partial &&
57
+ !ctx.cacheParams?.disablePartial)
54
58
 
55
59
  // if the policy is cacheOnly and we got this far, we need to return null (no network request will be sent)
56
60
  if (policy === CachePolicy.CacheOnly) {