@automattic/vip 4.1.2 → 4.1.4

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 (797) hide show
  1. package/.buildkite/build-macos-installer.sh +34 -0
  2. package/.buildkite/build-macos.sh +2 -3
  3. package/.buildkite/build-windows-installer.ps1 +65 -0
  4. package/.buildkite/build-windows.ps1 +2 -18
  5. package/.buildkite/pipeline.yml +32 -0
  6. package/.buildkite/sign-windows.ps1 +21 -0
  7. package/.buildkite/test-windows-installer-download.ps1 +54 -0
  8. package/.buildkite/test_pipeline.py +69 -0
  9. package/Gemfile.lock +44 -41
  10. package/cmd/installer-payload/main.go +19 -0
  11. package/cmd/installer-version/main.go +22 -0
  12. package/cmd/vip-next/commands/app_debug_test.go +89 -0
  13. package/cmd/vip-next/commands/app_deploy.go +4 -0
  14. package/cmd/vip-next/commands/app_deploy_validate.go +2 -0
  15. package/cmd/vip-next/commands/config_debug_test.go +137 -0
  16. package/cmd/vip-next/commands/config_envvar_delete.go +2 -0
  17. package/cmd/vip-next/commands/config_envvar_get.go +2 -0
  18. package/cmd/vip-next/commands/config_envvar_get_all.go +2 -0
  19. package/cmd/vip-next/commands/config_envvar_list.go +2 -0
  20. package/cmd/vip-next/commands/config_envvar_set.go +2 -0
  21. package/cmd/vip-next/commands/config_software_update.go +12 -1
  22. package/cmd/vip-next/commands/devenv_create_test.go +5 -5
  23. package/cmd/vip-next/commands/devenv_debug_test.go +34 -0
  24. package/cmd/vip-next/commands/devenv_envvar.go +6 -0
  25. package/cmd/vip-next/commands/devenv_lifecycle.go +30 -11
  26. package/cmd/vip-next/commands/devenv_update.go +1 -1
  27. package/cmd/vip-next/commands/devenv_update_test.go +28 -2
  28. package/cmd/vip-next/commands/import_debug_test.go +110 -0
  29. package/cmd/vip-next/commands/import_media.go +4 -0
  30. package/cmd/vip-next/commands/import_sql.go +9 -1
  31. package/cmd/vip-next/commands/logout.go +1 -1
  32. package/cmd/vip-next/commands/searchreplace.go +3 -1
  33. package/cmd/vip-next/commands/searchreplace_debug_test.go +82 -0
  34. package/cmd/vip-next/commands/whoami.go +10 -1
  35. package/cmd/vip-next/commands/whoami_debug_test.go +79 -0
  36. package/cmd/vip-next/commands/wp.go +2 -0
  37. package/cmd/vip-next/commands/wp_debug_test.go +32 -0
  38. package/cmd/vip-next/debug_args.go +63 -0
  39. package/cmd/vip-next/debug_test.go +122 -0
  40. package/cmd/vip-next/main.go +58 -2
  41. package/cmd/vip-next/pendo_wiring_test.go +148 -0
  42. package/cmd/vip-next/root.go +17 -0
  43. package/dist/bin/vip-dev-env-envvar-get.js +2 -2
  44. package/dist/bin/vip-dev-env-envvar-set.js +2 -2
  45. package/dist/bin/vip-dev-env-update.js +1 -1
  46. package/dist/lib/analytics/clients/pendo.js +19 -7
  47. package/dist/lib/constants/dev-environment.js +8 -7
  48. package/dist/lib/dev-environment/dev-environment-cli.js +10 -2
  49. package/dist/lib/dev-environment/dev-environment-core.js +1 -1
  50. package/dist/lib/edge-workers/toolchains/assemblyscript/constants.js +1 -1
  51. package/docs/BUILD-SIGNING.md +147 -6
  52. package/docs/DEBUGGING.md +61 -0
  53. package/docs/EDGE-WORKERS.md +2 -2
  54. package/docs/GO-UPDATES.md +7 -1
  55. package/docs/NPM-RELEASE-RECOVERY.md +47 -0
  56. package/docs/RELEASING.md +3 -2
  57. package/docs/SETUP.md +2 -1
  58. package/fastlane/Fastfile +66 -3
  59. package/fastlane/test_signing.rb +83 -0
  60. package/internal/auth/logout.go +14 -1
  61. package/internal/auth/logout_test.go +46 -0
  62. package/internal/debuglog/debuglog.go +85 -0
  63. package/internal/debuglog/debuglog_test.go +44 -0
  64. package/internal/devenv/compose/view.go +6 -3
  65. package/internal/devenv/compose/view_test.go +1 -1
  66. package/internal/devenv/debug.go +4 -0
  67. package/internal/devenv/debug_test.go +103 -0
  68. package/internal/devenv/devenv.go +20 -2
  69. package/internal/devenv/devexec.go +3 -0
  70. package/internal/devenv/importdata.go +4 -1
  71. package/internal/devenv/list.go +9 -1
  72. package/internal/devenv/logs.go +2 -0
  73. package/internal/devenv/proxy/ca.go +9 -2
  74. package/internal/devenv/proxy/ca_test.go +1 -1
  75. package/internal/devenv/proxy/network.go +7 -3
  76. package/internal/devenv/proxy/network_test.go +6 -0
  77. package/internal/devenv/proxy/proxy.go +37 -8
  78. package/internal/devenv/proxy/proxy_test.go +61 -6
  79. package/internal/devenv/proxy/scripts/gen-certs.sh +20 -5
  80. package/internal/devenv/update.go +2 -0
  81. package/internal/edgeworkers/build_test.go +1 -1
  82. package/internal/edgeworkers/templates/edge-workers.json +1 -1
  83. package/internal/edgeworkers/templates/package.json +1 -1
  84. package/internal/gql/debug_test.go +79 -0
  85. package/internal/gql/error.go +27 -1
  86. package/internal/gql/rechallenge.go +9 -5
  87. package/internal/gql/retry.go +21 -2
  88. package/internal/gql/transport.go +9 -0
  89. package/internal/httpproxy/debug_test.go +32 -0
  90. package/internal/httpproxy/httpproxy.go +8 -1
  91. package/internal/installer/version.go +41 -0
  92. package/internal/installer/version_test.go +33 -0
  93. package/internal/parity/edge_workers_debug_test.go +87 -0
  94. package/internal/parity/pendo_test.go +122 -0
  95. package/internal/rechallenge/flow.go +8 -0
  96. package/internal/rechallenge/flow_test.go +15 -1
  97. package/internal/releasepromotion/buildkite.go +12 -1
  98. package/internal/releasepromotion/buildkite_test.go +31 -0
  99. package/internal/releasepromotion/contract.go +49 -1
  100. package/internal/releasepromotion/contract_test.go +38 -0
  101. package/internal/releasepromotion/github.go +4 -10
  102. package/internal/releasepromotion/optional_installers_test.go +87 -0
  103. package/internal/releasepromotion/verify.go +99 -2
  104. package/internal/releasepromotion/verify_test.go +99 -0
  105. package/internal/searchreplace/debug_test.go +71 -0
  106. package/internal/searchreplace/searchreplace.go +14 -0
  107. package/internal/siteimport/debug_test.go +34 -0
  108. package/internal/siteimport/status.go +11 -0
  109. package/internal/telemetry/pendo.go +41 -10
  110. package/internal/telemetry/pendo_auth_test.go +92 -0
  111. package/internal/telemetry/pendo_test.go +24 -5
  112. package/internal/telemetry/tracker.go +26 -0
  113. package/internal/update/github.go +36 -17
  114. package/internal/update/ownership.go +22 -0
  115. package/internal/update/ownership_test.go +44 -0
  116. package/internal/update/release_test.go +53 -13
  117. package/internal/update/service_test.go +39 -0
  118. package/internal/upload/debug_test.go +76 -0
  119. package/internal/upload/multipart.go +3 -0
  120. package/internal/upload/orchestrate.go +10 -0
  121. package/internal/upload/putobject.go +3 -0
  122. package/internal/wpssh/debug_test.go +67 -0
  123. package/internal/wpssh/wpssh.go +7 -0
  124. package/internal/wpstream/debug_test.go +116 -0
  125. package/internal/wpstream/run.go +10 -1
  126. package/node_modules/@apollo/client/CHANGELOG.md +1130 -0
  127. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs +36 -0
  128. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs.map +1 -0
  129. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.d.cts +56 -0
  130. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +32 -1
  131. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
  132. package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +89 -6
  133. package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +30 -2
  134. package/node_modules/@apollo/client/__cjs/cache/index.cjs +3 -1
  135. package/node_modules/@apollo/client/__cjs/cache/index.cjs.map +1 -1
  136. package/node_modules/@apollo/client/__cjs/cache/index.d.cts +2 -1
  137. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +63 -5
  138. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
  139. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.d.cts +3 -0
  140. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs +12 -0
  141. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  142. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.d.cts +11 -2
  143. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +95 -4
  144. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  145. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +44 -5
  146. package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  147. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +34 -6
  148. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs.map +1 -1
  149. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.d.cts +3 -1
  150. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +489 -45
  151. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  152. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.d.cts +11 -2
  153. package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +31 -4
  154. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +5 -9
  155. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  156. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
  157. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs.map +1 -1
  158. package/node_modules/@apollo/client/__cjs/core/ApolloClient.d.cts +11 -11
  159. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +186 -72
  160. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs.map +1 -1
  161. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.d.cts +4 -7
  162. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +164 -197
  163. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
  164. package/node_modules/@apollo/client/__cjs/core/QueryInfo.d.cts +17 -21
  165. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +75 -48
  166. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs.map +1 -1
  167. package/node_modules/@apollo/client/__cjs/core/QueryManager.d.cts +4 -4
  168. package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
  169. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs +12 -0
  170. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs.map +1 -0
  171. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.d.cts +3 -0
  172. package/node_modules/@apollo/client/__cjs/core/deprecated.d.cts +3 -3
  173. package/node_modules/@apollo/client/__cjs/core/index.cjs +2 -1
  174. package/node_modules/@apollo/client/__cjs/core/index.cjs.map +1 -1
  175. package/node_modules/@apollo/client/__cjs/core/index.d.cts +4 -3
  176. package/node_modules/@apollo/client/__cjs/core/types.d.cts +11 -7
  177. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs +3 -0
  178. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs.map +1 -0
  179. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.d.cts +55 -0
  180. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
  181. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +2 -4
  182. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +47 -16
  183. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
  184. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +29 -6
  185. package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  186. package/node_modules/@apollo/client/__cjs/incremental/index.cjs.map +1 -1
  187. package/node_modules/@apollo/client/__cjs/incremental/index.d.cts +1 -0
  188. package/node_modules/@apollo/client/__cjs/{utilities/internal/types/NoInfer.cjs → incremental/internal/types.cjs} +1 -1
  189. package/node_modules/@apollo/client/__cjs/incremental/internal/types.cjs.map +1 -0
  190. package/node_modules/@apollo/client/__cjs/incremental/internal/types.d.cts +17 -0
  191. package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +55 -4
  192. package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +164 -113
  193. package/node_modules/@apollo/client/__cjs/link/core/ApolloLink.cjs +3 -3
  194. package/node_modules/@apollo/client/__cjs/link/http/checkFetcher.cjs +1 -1
  195. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  196. package/node_modules/@apollo/client/__cjs/link/persisted-queries/index.cjs +2 -2
  197. package/node_modules/@apollo/client/__cjs/link/ws/index.cjs +1 -1
  198. package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs +11 -11
  199. package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs.map +1 -1
  200. package/node_modules/@apollo/client/__cjs/local-state/LocalState.d.cts +1 -1
  201. package/node_modules/@apollo/client/__cjs/masking/internal/types.d.cts +1 -2
  202. package/node_modules/@apollo/client/__cjs/masking/maskDefinition.cjs +2 -2
  203. package/node_modules/@apollo/client/__cjs/masking/maskFragment.cjs +2 -2
  204. package/node_modules/@apollo/client/__cjs/masking/maskOperation.cjs +1 -1
  205. package/node_modules/@apollo/client/__cjs/masking/utils.cjs +3 -3
  206. package/node_modules/@apollo/client/__cjs/react/context/ApolloContext.cjs +1 -1
  207. package/node_modules/@apollo/client/__cjs/react/context/ApolloProvider.cjs +1 -1
  208. package/node_modules/@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
  209. package/node_modules/@apollo/client/__cjs/react/hooks/useApolloClient.cjs +1 -1
  210. package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  211. package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.d.cts +3 -3
  212. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.cjs.map +1 -1
  213. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.d.cts +0 -1
  214. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs +2 -2
  215. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  216. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.d.cts +1 -1
  217. package/node_modules/@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
  218. package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.cjs.map +1 -1
  219. package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.d.cts +14 -14
  220. package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.cjs.map +1 -1
  221. package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.d.cts +16 -3
  222. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs +7 -3
  223. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  224. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.d.cts +27 -5
  225. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  226. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.d.cts +1 -1
  227. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  228. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.d.cts +30 -30
  229. package/node_modules/@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  230. package/node_modules/@apollo/client/__cjs/react/internal/cache/QueryReference.cjs +1 -1
  231. package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  232. package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.d.cts +1 -1
  233. package/node_modules/@apollo/client/__cjs/react/ssr/prerenderStatic.cjs +2 -2
  234. package/node_modules/@apollo/client/__cjs/react/types/deprecated.d.cts +5 -4
  235. package/node_modules/@apollo/client/__cjs/react/types/types.documentation.d.cts +12 -1
  236. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs +25 -5
  237. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
  238. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.d.cts +1 -2
  239. package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.cjs.map +1 -1
  240. package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.d.cts +39 -1
  241. package/node_modules/@apollo/client/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
  242. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs +27 -0
  243. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs.map +1 -0
  244. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.d.cts +12 -0
  245. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs +33 -0
  246. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs.map +1 -0
  247. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.d.cts +3 -0
  248. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs +12 -0
  249. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs.map +1 -0
  250. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.d.cts +7 -0
  251. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs +102 -0
  252. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs.map +1 -0
  253. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.d.cts +9 -0
  254. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs +20 -1
  255. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs.map +1 -1
  256. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.d.cts +19 -0
  257. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs +19 -0
  258. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs.map +1 -0
  259. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.d.cts +9 -0
  260. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
  261. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
  262. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs +2 -2
  263. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -1
  264. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
  265. package/node_modules/@apollo/client/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
  266. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs +6 -0
  267. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
  268. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.d.cts +4 -0
  269. package/node_modules/@apollo/client/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
  270. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs +27 -2
  271. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
  272. package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +17 -2
  273. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +38 -0
  274. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -0
  275. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +9 -0
  276. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +37 -0
  277. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -0
  278. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +9 -0
  279. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs +7 -0
  280. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs.map +1 -0
  281. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.d.cts +3 -0
  282. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs +17 -0
  283. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs.map +1 -0
  284. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.d.cts +8 -0
  285. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs +12 -0
  286. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs.map +1 -0
  287. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.d.cts +8 -0
  288. package/node_modules/@apollo/client/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
  289. package/node_modules/@apollo/client/__cjs/utilities/internal/shouldInclude.cjs +4 -4
  290. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs +20 -0
  291. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs.map +1 -0
  292. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.d.cts +8 -0
  293. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +3 -0
  294. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +1 -0
  295. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +10 -0
  296. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs +3 -0
  297. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs.map +1 -0
  298. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.d.cts +2 -0
  299. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs +3 -0
  300. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs.map +1 -0
  301. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.d.cts +10 -0
  302. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs +3 -0
  303. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs.map +1 -0
  304. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.d.cts +4 -0
  305. package/node_modules/@apollo/client/__cjs/utilities/internal/types/StreamInfoTrie.d.cts +2 -0
  306. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs +12 -0
  307. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs.map +1 -0
  308. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.d.cts +10 -0
  309. package/node_modules/@apollo/client/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
  310. package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
  311. package/node_modules/@apollo/client/__cjs/version.cjs.map +1 -1
  312. package/node_modules/@apollo/client/cache/core/Scalar.d.ts +56 -0
  313. package/node_modules/@apollo/client/cache/core/Scalar.js +32 -0
  314. package/node_modules/@apollo/client/cache/core/Scalar.js.map +1 -0
  315. package/node_modules/@apollo/client/cache/core/cache.d.ts +89 -6
  316. package/node_modules/@apollo/client/cache/core/cache.js +33 -2
  317. package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
  318. package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +30 -2
  319. package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
  320. package/node_modules/@apollo/client/cache/index.d.ts +2 -1
  321. package/node_modules/@apollo/client/cache/index.js +1 -0
  322. package/node_modules/@apollo/client/cache/index.js.map +1 -1
  323. package/node_modules/@apollo/client/cache/inmemory/entityStore.d.ts +3 -0
  324. package/node_modules/@apollo/client/cache/inmemory/entityStore.js +64 -6
  325. package/node_modules/@apollo/client/cache/inmemory/entityStore.js.map +1 -1
  326. package/node_modules/@apollo/client/cache/inmemory/helpers.d.ts +11 -2
  327. package/node_modules/@apollo/client/cache/inmemory/helpers.js +11 -0
  328. package/node_modules/@apollo/client/cache/inmemory/helpers.js.map +1 -1
  329. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +44 -5
  330. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +97 -6
  331. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
  332. package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
  333. package/node_modules/@apollo/client/cache/inmemory/policies.d.ts +3 -1
  334. package/node_modules/@apollo/client/cache/inmemory/policies.js +34 -6
  335. package/node_modules/@apollo/client/cache/inmemory/policies.js.map +1 -1
  336. package/node_modules/@apollo/client/cache/inmemory/readFromStore.d.ts +11 -2
  337. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +485 -45
  338. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
  339. package/node_modules/@apollo/client/cache/inmemory/types.d.ts +32 -5
  340. package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
  341. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +6 -10
  342. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
  343. package/node_modules/@apollo/client/core/ApolloClient.d.ts +11 -11
  344. package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
  345. package/node_modules/@apollo/client/core/ApolloClient.js.map +1 -1
  346. package/node_modules/@apollo/client/core/ObservableQuery.d.ts +4 -7
  347. package/node_modules/@apollo/client/core/ObservableQuery.js +183 -73
  348. package/node_modules/@apollo/client/core/ObservableQuery.js.map +1 -1
  349. package/node_modules/@apollo/client/core/QueryInfo.d.ts +18 -22
  350. package/node_modules/@apollo/client/core/QueryInfo.js +165 -198
  351. package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
  352. package/node_modules/@apollo/client/core/QueryManager.d.ts +4 -4
  353. package/node_modules/@apollo/client/core/QueryManager.js +76 -49
  354. package/node_modules/@apollo/client/core/QueryManager.js.map +1 -1
  355. package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
  356. package/node_modules/@apollo/client/core/dataStateErrorCache.d.ts +3 -0
  357. package/node_modules/@apollo/client/core/dataStateErrorCache.js +9 -0
  358. package/node_modules/@apollo/client/core/dataStateErrorCache.js.map +1 -0
  359. package/node_modules/@apollo/client/core/deprecated.d.ts +3 -3
  360. package/node_modules/@apollo/client/core/deprecated.js.map +1 -1
  361. package/node_modules/@apollo/client/core/index.d.ts +4 -3
  362. package/node_modules/@apollo/client/core/index.js +1 -1
  363. package/node_modules/@apollo/client/core/index.js.map +1 -1
  364. package/node_modules/@apollo/client/core/types.d.ts +11 -7
  365. package/node_modules/@apollo/client/core/types.js.map +1 -1
  366. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.d.ts +55 -0
  367. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js +2 -0
  368. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js.map +1 -0
  369. package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +2 -4
  370. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
  371. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +29 -6
  372. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +48 -17
  373. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
  374. package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
  375. package/node_modules/@apollo/client/incremental/index.d.ts +1 -0
  376. package/node_modules/@apollo/client/incremental/index.js.map +1 -1
  377. package/node_modules/@apollo/client/incremental/internal/types.d.ts +17 -0
  378. package/node_modules/@apollo/client/incremental/internal/types.js +2 -0
  379. package/node_modules/@apollo/client/incremental/internal/types.js.map +1 -0
  380. package/node_modules/@apollo/client/incremental/types.d.ts +55 -4
  381. package/node_modules/@apollo/client/incremental/types.js.map +1 -1
  382. package/node_modules/@apollo/client/invariantErrorCodes.js +164 -113
  383. package/node_modules/@apollo/client/link/core/ApolloLink.js +3 -3
  384. package/node_modules/@apollo/client/link/http/checkFetcher.js +1 -1
  385. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
  386. package/node_modules/@apollo/client/link/persisted-queries/index.js +2 -2
  387. package/node_modules/@apollo/client/link/ws/index.js +1 -1
  388. package/node_modules/@apollo/client/local-state/LocalState.d.ts +1 -1
  389. package/node_modules/@apollo/client/local-state/LocalState.js +11 -11
  390. package/node_modules/@apollo/client/local-state/LocalState.js.map +1 -1
  391. package/node_modules/@apollo/client/masking/internal/types.d.ts +1 -2
  392. package/node_modules/@apollo/client/masking/internal/types.js.map +1 -1
  393. package/node_modules/@apollo/client/masking/maskDefinition.js +2 -2
  394. package/node_modules/@apollo/client/masking/maskFragment.js +2 -2
  395. package/node_modules/@apollo/client/masking/maskOperation.js +1 -1
  396. package/node_modules/@apollo/client/masking/utils.js +3 -3
  397. package/node_modules/@apollo/client/package.json +1 -1
  398. package/node_modules/@apollo/client/react/context/ApolloContext.js +1 -1
  399. package/node_modules/@apollo/client/react/context/ApolloProvider.js +1 -1
  400. package/node_modules/@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
  401. package/node_modules/@apollo/client/react/hooks/useApolloClient.js +1 -1
  402. package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.d.ts +3 -3
  403. package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.js.map +1 -1
  404. package/node_modules/@apollo/client/react/hooks/useFragment.d.ts +0 -1
  405. package/node_modules/@apollo/client/react/hooks/useFragment.js.map +1 -1
  406. package/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts +1 -1
  407. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js +2 -2
  408. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -1
  409. package/node_modules/@apollo/client/react/hooks/useLoadableQuery.js +2 -2
  410. package/node_modules/@apollo/client/react/hooks/useMutation.d.ts +14 -14
  411. package/node_modules/@apollo/client/react/hooks/useMutation.js.map +1 -1
  412. package/node_modules/@apollo/client/react/hooks/useQuery.d.ts +16 -3
  413. package/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
  414. package/node_modules/@apollo/client/react/hooks/useSubscription.d.ts +27 -5
  415. package/node_modules/@apollo/client/react/hooks/useSubscription.js +7 -3
  416. package/node_modules/@apollo/client/react/hooks/useSubscription.js.map +1 -1
  417. package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.d.ts +1 -1
  418. package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.js.map +1 -1
  419. package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.d.ts +30 -30
  420. package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.js.map +1 -1
  421. package/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js +1 -1
  422. package/node_modules/@apollo/client/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
  423. package/node_modules/@apollo/client/react/hooks-compiled/useApolloClient.js +1 -1
  424. package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.d.ts +3 -3
  425. package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.js.map +1 -1
  426. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.d.ts +0 -1
  427. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.js.map +1 -1
  428. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.d.ts +1 -1
  429. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js +2 -2
  430. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js.map +1 -1
  431. package/node_modules/@apollo/client/react/hooks-compiled/useLoadableQuery.js +2 -2
  432. package/node_modules/@apollo/client/react/hooks-compiled/useMutation.d.ts +14 -14
  433. package/node_modules/@apollo/client/react/hooks-compiled/useMutation.js.map +1 -1
  434. package/node_modules/@apollo/client/react/hooks-compiled/useQuery.d.ts +16 -3
  435. package/node_modules/@apollo/client/react/hooks-compiled/useQuery.js.map +1 -1
  436. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.d.ts +27 -5
  437. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js +107 -93
  438. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js.map +1 -1
  439. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.d.ts +1 -1
  440. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
  441. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.d.ts +30 -30
  442. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.js.map +1 -1
  443. package/node_modules/@apollo/client/react/hooks-compiled/useSyncExternalStore.js +1 -1
  444. package/node_modules/@apollo/client/react/internal/cache/QueryReference.js +1 -1
  445. package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.d.ts +1 -1
  446. package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.js.map +1 -1
  447. package/node_modules/@apollo/client/react/ssr/prerenderStatic.js +2 -2
  448. package/node_modules/@apollo/client/react/types/deprecated.d.ts +5 -4
  449. package/node_modules/@apollo/client/react/types/deprecated.js.map +1 -1
  450. package/node_modules/@apollo/client/react/types/types.documentation.d.ts +12 -1
  451. package/node_modules/@apollo/client/react/types/types.documentation.js.map +1 -1
  452. package/node_modules/@apollo/client/testing/core/mocking/mockLink.d.ts +1 -2
  453. package/node_modules/@apollo/client/testing/core/mocking/mockLink.js +25 -5
  454. package/node_modules/@apollo/client/testing/core/mocking/mockLink.js.map +1 -1
  455. package/node_modules/@apollo/client/utilities/caching/sizes.d.ts +39 -1
  456. package/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  457. package/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js +1 -1
  458. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.d.ts +12 -0
  459. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js +23 -0
  460. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js.map +1 -0
  461. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.d.ts +3 -0
  462. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js +30 -0
  463. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js.map +1 -0
  464. package/node_modules/@apollo/client/utilities/internal/capitalize.d.ts +7 -0
  465. package/node_modules/@apollo/client/utilities/internal/capitalize.js +9 -0
  466. package/node_modules/@apollo/client/utilities/internal/capitalize.js.map +1 -0
  467. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.d.ts +9 -0
  468. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js +95 -0
  469. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js.map +1 -0
  470. package/node_modules/@apollo/client/utilities/internal/constants.d.ts +19 -0
  471. package/node_modules/@apollo/client/utilities/internal/constants.js +19 -0
  472. package/node_modules/@apollo/client/utilities/internal/constants.js.map +1 -1
  473. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.d.ts +9 -0
  474. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js +16 -0
  475. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js.map +1 -0
  476. package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js +3 -3
  477. package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js.map +1 -1
  478. package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js +2 -2
  479. package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js.map +1 -1
  480. package/node_modules/@apollo/client/utilities/internal/getFragmentQueryDocument.js +2 -2
  481. package/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +1 -1
  482. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.d.ts +4 -0
  483. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +6 -0
  484. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  485. package/node_modules/@apollo/client/utilities/internal/getQueryDefinition.js +1 -1
  486. package/node_modules/@apollo/client/utilities/internal/index.d.ts +17 -2
  487. package/node_modules/@apollo/client/utilities/internal/index.js +13 -1
  488. package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
  489. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +9 -0
  490. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +35 -0
  491. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -0
  492. package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +9 -0
  493. package/node_modules/@apollo/client/utilities/internal/isStreamField.js +34 -0
  494. package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -0
  495. package/node_modules/@apollo/client/utilities/internal/isTypenameField.d.ts +3 -0
  496. package/node_modules/@apollo/client/utilities/internal/isTypenameField.js +4 -0
  497. package/node_modules/@apollo/client/utilities/internal/isTypenameField.js.map +1 -0
  498. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.d.ts +8 -0
  499. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js +14 -0
  500. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js.map +1 -0
  501. package/node_modules/@apollo/client/utilities/internal/matchScalarList.d.ts +8 -0
  502. package/node_modules/@apollo/client/utilities/internal/matchScalarList.js +9 -0
  503. package/node_modules/@apollo/client/utilities/internal/matchScalarList.js.map +1 -0
  504. package/node_modules/@apollo/client/utilities/internal/removeDirectivesFromDocument.js +1 -1
  505. package/node_modules/@apollo/client/utilities/internal/shouldInclude.js +4 -4
  506. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.d.ts +8 -0
  507. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js +17 -0
  508. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js.map +1 -0
  509. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +10 -0
  510. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +2 -0
  511. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +1 -0
  512. package/node_modules/@apollo/client/utilities/internal/types/Exact.d.ts +2 -0
  513. package/node_modules/@apollo/client/utilities/internal/types/Exact.js +2 -0
  514. package/node_modules/@apollo/client/utilities/internal/types/Exact.js.map +1 -0
  515. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.d.ts +10 -0
  516. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js +2 -0
  517. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js.map +1 -0
  518. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.d.ts +4 -0
  519. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js +2 -0
  520. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js.map +1 -0
  521. package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.d.ts +2 -0
  522. package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.js.map +1 -1
  523. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.d.ts +10 -0
  524. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js +9 -0
  525. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js.map +1 -0
  526. package/node_modules/@apollo/client/utilities/internal/valueToObjectRepresentation.js +1 -1
  527. package/node_modules/@apollo/client/version.js +1 -1
  528. package/node_modules/@apollo/client/version.js.map +1 -1
  529. package/node_modules/@types/node/README.md +1 -1
  530. package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
  531. package/node_modules/@types/node/buffer.d.ts +1 -0
  532. package/node_modules/@types/node/crypto.d.ts +2 -4
  533. package/node_modules/@types/node/dgram.d.ts +119 -4
  534. package/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  535. package/node_modules/@types/node/ffi.d.ts +1 -1
  536. package/node_modules/@types/node/fs/promises.d.ts +61 -65
  537. package/node_modules/@types/node/fs.d.ts +86 -76
  538. package/node_modules/@types/node/http.d.ts +18 -2
  539. package/node_modules/@types/node/http2.d.ts +12 -4
  540. package/node_modules/@types/node/index.d.ts +1 -0
  541. package/node_modules/@types/node/inspector.d.ts +2 -1
  542. package/node_modules/@types/node/net.d.ts +108 -16
  543. package/node_modules/@types/node/package.json +3 -3
  544. package/node_modules/@types/node/perf_hooks.d.ts +31 -19
  545. package/node_modules/@types/node/process.d.ts +52 -0
  546. package/node_modules/@types/node/quic.d.ts +252 -42
  547. package/node_modules/@types/node/sqlite.d.ts +6 -2
  548. package/node_modules/@types/node/stream/iter.d.ts +4 -4
  549. package/node_modules/@types/node/stream/web.d.ts +20 -0
  550. package/node_modules/@types/node/test.d.ts +36 -0
  551. package/node_modules/@types/node/tls.d.ts +50 -15
  552. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
  553. package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  554. package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  555. package/node_modules/@types/node/tty.d.ts +4 -3
  556. package/node_modules/@types/node/vfs.d.ts +211 -0
  557. package/node_modules/@types/node/vm.d.ts +1 -1
  558. package/node_modules/@types/node/web-globals/streams.d.ts +4 -0
  559. package/node_modules/@types/node/zlib.d.ts +17 -0
  560. package/node_modules/cpu-features/build/Makefile +2 -2
  561. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +1 -1
  562. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +1 -1
  563. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +1 -1
  564. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +1 -1
  565. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +1 -1
  566. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +1 -1
  567. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +1 -1
  568. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +1 -1
  569. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +1 -1
  570. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +1 -1
  571. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +1 -1
  572. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +1 -1
  573. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +1 -1
  574. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +145 -145
  575. package/node_modules/cpu-features/build/config.gypi +8 -9
  576. package/node_modules/cpu-features/build/cpufeatures.target.mk +14 -14
  577. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +14 -14
  578. package/node_modules/default-browser/package.json +1 -1
  579. package/node_modules/default-browser/windows.js +3 -1
  580. package/node_modules/js-yaml/README.md +0 -3
  581. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +822 -779
  582. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
  583. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +29 -23
  584. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
  585. package/node_modules/js-yaml/dist/js-yaml.cjs.js +425 -397
  586. package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
  587. package/node_modules/js-yaml/dist/js-yaml.d.ts +101 -32
  588. package/node_modules/js-yaml/dist/js-yaml.mjs +429 -397
  589. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  590. package/node_modules/js-yaml/package.json +1 -1
  591. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +11 -3
  592. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  593. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  594. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  595. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
  596. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  597. package/node_modules/lando/node_modules/js-yaml/lib/loader.js +16 -3
  598. package/node_modules/lando/node_modules/js-yaml/package.json +1 -1
  599. package/node_modules/open/index.js +15 -3
  600. package/node_modules/open/package.json +3 -3
  601. package/node_modules/{lando → path-scurry}/node_modules/lru-cache/README.md +96 -10
  602. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  603. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  604. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  605. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  606. package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/commonjs/browser}/index.d.ts +109 -32
  607. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  608. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  609. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  610. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  611. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  612. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  613. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  614. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  615. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  616. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  617. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  618. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  619. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  620. package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/commonjs}/index.d.ts +109 -32
  621. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  622. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  623. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  624. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  625. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  626. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  627. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  628. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  629. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  630. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  631. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  632. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  633. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  634. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  635. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  636. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  637. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  638. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  639. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  640. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  641. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  642. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  643. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  644. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  645. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  646. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  647. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  648. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  649. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  650. package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/esm/browser}/index.js +315 -177
  651. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  652. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  653. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  654. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  655. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  656. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  657. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  658. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  659. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  660. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  661. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  662. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  663. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  664. package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/esm}/index.js +316 -182
  665. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  666. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  667. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  668. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  669. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  670. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  671. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  672. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  673. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  674. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  675. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  676. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  677. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  678. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  679. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  680. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  681. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  682. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  683. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  684. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
  685. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  686. package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
  687. package/node_modules/powershell-utils/index.d.ts +16 -2
  688. package/node_modules/powershell-utils/index.js +12 -9
  689. package/node_modules/powershell-utils/package.json +1 -1
  690. package/node_modules/powershell-utils/readme.md +7 -2
  691. package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +2 -2
  692. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +237 -237
  693. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  694. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto.node +0 -0
  695. package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  696. package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +14 -14
  697. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  698. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  699. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  700. package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  701. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  702. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  703. package/node_modules/undici/lib/core/symbols.js +2 -0
  704. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  705. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  706. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  707. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  708. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  709. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  710. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  711. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  712. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  713. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  714. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  715. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  716. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  717. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  718. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  719. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  720. package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  721. package/node_modules/undici/lib/handler/retry-handler.js +148 -30
  722. package/node_modules/undici/lib/interceptor/cache.js +65 -12
  723. package/node_modules/undici/lib/interceptor/decompress.js +115 -13
  724. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  725. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  726. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  727. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  728. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  729. package/node_modules/undici/lib/util/cache.js +45 -3
  730. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  731. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  732. package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  733. package/node_modules/undici/lib/web/fetch/index.js +6 -0
  734. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  735. package/node_modules/undici/lib/web/fetch/util.js +6 -1
  736. package/node_modules/undici/lib/web/webidl/index.js +3 -3
  737. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  738. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  739. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  740. package/node_modules/undici/package.json +3 -3
  741. package/node_modules/undici/types/client.d.ts +10 -0
  742. package/node_modules/undici/types/interceptors.d.ts +2 -0
  743. package/node_modules/undici/types/mock-agent.d.ts +11 -10
  744. package/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -0
  745. package/node_modules/undici-types/client.d.ts +8 -3
  746. package/node_modules/undici-types/connector.d.ts +1 -0
  747. package/node_modules/undici-types/cookies.d.ts +1 -1
  748. package/node_modules/undici-types/dispatcher.d.ts +3 -3
  749. package/node_modules/undici-types/errors.d.ts +10 -0
  750. package/node_modules/undici-types/fetch.d.ts +5 -1
  751. package/node_modules/undici-types/handlers.d.ts +2 -0
  752. package/node_modules/undici-types/interceptors.d.ts +1 -1
  753. package/node_modules/undici-types/mock-interceptor.d.ts +5 -1
  754. package/node_modules/undici-types/package.json +1 -1
  755. package/node_modules/undici-types/proxy-agent.d.ts +7 -0
  756. package/package.json +2 -2
  757. package/packaging/macos/build-pkg.sh +53 -0
  758. package/packaging/macos/preinstall +33 -0
  759. package/packaging/macos/test-install.sh +51 -0
  760. package/packaging/macos/test_package.py +74 -0
  761. package/packaging/macos/uninstall.sh +24 -0
  762. package/packaging/macos/verify-pkg.py +61 -0
  763. package/packaging/windows/build-msi.ps1 +153 -0
  764. package/packaging/windows/test-msi.ps1 +225 -0
  765. package/packaging/windows/verify-msi.ps1 +74 -0
  766. package/packaging/windows/vip-next.wxs +79 -0
  767. package/testdata/installer-fixture/main.go +40 -0
  768. package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.cjs.map +0 -1
  769. package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.d.cts +0 -35
  770. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.d.ts +0 -35
  771. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js +0 -2
  772. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js.map +0 -1
  773. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  774. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  775. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  776. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  777. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  778. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  779. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  780. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  781. package/node_modules/lando/node_modules/lru-cache/package.json +0 -93
  782. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/LICENSE.md +0 -0
  783. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/README.md +0 -0
  784. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts +0 -0
  785. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts.map +0 -0
  786. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js +0 -0
  787. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js.map +0 -0
  788. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/commonjs/package.json +0 -0
  789. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts +0 -0
  790. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts.map +0 -0
  791. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js +0 -0
  792. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js.map +0 -0
  793. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/esm/package.json +0 -0
  794. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/LICENSE.md +0 -0
  795. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json +0 -0
  796. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/esm/package.json +0 -0
  797. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/package.json +0 -0
@@ -1,52 +1,48 @@
1
1
  import type { DocumentNode, FormattedExecutionResult } from "graphql";
2
- import type { ApolloCache } from "@apollo/client/cache";
2
+ import type { Cache, DiffIncrementalInfo } from "@apollo/client/cache";
3
+ import type { Incremental } from "@apollo/client/incremental";
3
4
  import type { ApolloLink } from "@apollo/client/link";
4
5
  import type { Unmasked } from "@apollo/client/masking";
5
6
  import type { ExtensionsWithStreamInfo } from "@apollo/client/utilities/internal";
6
7
  import type { ApolloClient } from "./ApolloClient.js";
8
+ import { NetworkStatus } from "./networkStatus.js";
7
9
  import type { ObservableQuery } from "./ObservableQuery.js";
8
10
  import type { QueryManager } from "./QueryManager.js";
9
11
  import type { DataValue, DefaultContext, InternalRefetchQueriesInclude, MutationUpdaterFunction, NormalizedExecutionResult, OnQueryUpdated, OperationVariables, TypedDocumentNode } from "./types.js";
10
- import type { ErrorPolicy } from "./watchQueryOptions.js";
12
+ import type { ErrorPolicy, WatchQueryFetchPolicy } from "./watchQueryOptions.js";
11
13
  type UpdateQueries<TData> = ApolloClient.MutateOptions<TData, any, any>["updateQueries"];
12
14
  export declare const enum CacheWriteBehavior {
13
15
  FORBID = 0,
14
16
  OVERWRITE = 1,
15
17
  MERGE = 2
16
18
  }
17
- interface LastWrite {
18
- result: FormattedExecutionResult<any, ExtensionsWithStreamInfo>;
19
- variables: ApolloClient.WatchQueryOptions["variables"];
20
- dmCount: number | undefined;
21
- }
22
19
  interface OperationInfo<TData, TVariables extends OperationVariables, AllowedCacheWriteBehavior = CacheWriteBehavior> {
23
20
  document: DocumentNode | TypedDocumentNode<TData, TVariables>;
24
21
  variables: TVariables;
25
22
  errorPolicy: ErrorPolicy;
26
23
  cacheWriteBehavior: AllowedCacheWriteBehavior;
24
+ returnPartialData?: boolean | undefined;
25
+ }
26
+ interface MarkQueryResult<TData, TExtensions> extends FormattedExecutionResult<TData, TExtensions> {
27
+ dataState: "empty" | "partial" | "streaming" | "complete";
27
28
  }
28
- export declare class QueryInfo<TData, TVariables extends OperationVariables = OperationVariables, TCache extends ApolloCache = ApolloCache> {
29
+ export declare class QueryInfo<TData, TVariables extends OperationVariables = OperationVariables, TCache extends Cache.Implementation = Cache.Implementation> {
29
30
  private cache;
30
31
  private queryManager;
31
32
  readonly id: string;
32
33
  private readonly observableQuery?;
33
34
  private incremental?;
34
35
  constructor(queryManager: QueryManager, observableQuery?: ObservableQuery<any, any>);
35
- /**
36
- * @internal
37
- * For feud-preventing behaviour, `lastWrite` should be shared by all `QueryInfo` instances of an `ObservableQuery`.
38
- * In the case of a standalone `QueryInfo`, we will keep a local version.
39
- *
40
- * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
41
- */
42
- _lastWrite?: LastWrite;
43
- private get lastWrite();
44
- private set lastWrite(value);
45
- resetLastWrite(): void;
46
- private shouldWrite;
47
36
  get hasNext(): boolean;
37
+ get incrementalHandler(): Incremental.Handler<Record<string, unknown>>;
48
38
  private maybeHandleIncrementalResult;
49
- markQueryResult(incoming: ApolloLink.Result<TData>, { document: query, variables, errorPolicy, cacheWriteBehavior, }: OperationInfo<TData, TVariables>): FormattedExecutionResult<DataValue.Complete<TData> | DataValue.Streaming<TData>, ExtensionsWithStreamInfo>;
39
+ markQueryResult(incoming: ApolloLink.Result<TData>, { document: query, variables, errorPolicy, cacheWriteBehavior, returnPartialData, fetchPolicy, networkStatus, prunePendingDeferFragments: prune, }: OperationInfo<TData, TVariables> & {
40
+ fetchPolicy: WatchQueryFetchPolicy;
41
+ networkStatus: NetworkStatus;
42
+ prunePendingDeferFragments: boolean;
43
+ }): MarkQueryResult<DataValue.Complete<TData> | DataValue.Streaming<TData>, ExtensionsWithStreamInfo>;
44
+ private getIncrementalInfo;
45
+ getDiff(options: Cache.DiffOptions<TData>, incrementalInfo?: DiffIncrementalInfo): Cache.InternalDiffResultWithDataState<TData>;
50
46
  markMutationResult(incoming: ApolloLink.Result<TData>, mutation: OperationInfo<TData, TVariables, CacheWriteBehavior.FORBID | CacheWriteBehavior.MERGE> & {
51
47
  context?: DefaultContext;
52
48
  updateQueries: UpdateQueries<TData>;
@@ -66,4 +62,4 @@ export declare class QueryInfo<TData, TVariables extends OperationVariables = Op
66
62
  markSubscriptionResult(result: FormattedExecutionResult<TData>, { document, variables, errorPolicy, cacheWriteBehavior, }: OperationInfo<TData, TVariables, CacheWriteBehavior.FORBID | CacheWriteBehavior.MERGE>): void;
67
63
  }
68
64
  export {};
69
- //# sourceMappingURL=QueryInfo.d.ts.map
65
+ //# sourceMappingURL=QueryInfo.d.ts.map
@@ -1,25 +1,9 @@
1
- import { equal } from "@wry/equality";
1
+ import { Trie } from "@wry/trie";
2
2
  import { __DEV__ } from "@apollo/client/utilities/environment";
3
- import { getOperationName, graphQLResultHasError, streamInfoSymbol, } from "@apollo/client/utilities/internal";
3
+ import { getOperationName, graphQLResultHasError, handleIncrementalSymbol, hasDirectives, toDiffWithDataState, } from "@apollo/client/utilities/internal";
4
4
  import { invariant } from "@apollo/client/utilities/invariant";
5
+ import { NetworkStatus } from "./networkStatus.js";
5
6
  const IGNORE = {};
6
- const destructiveMethodCounts = new WeakMap();
7
- function wrapDestructiveCacheMethod(cache, methodName) {
8
- const original = cache[methodName];
9
- if (typeof original === "function") {
10
- // @ts-expect-error this is just too generic to be typed correctly
11
- cache[methodName] = function () {
12
- destructiveMethodCounts.set(cache,
13
- // The %1e15 allows the count to wrap around to 0 safely every
14
- // quadrillion evictions, so there's no risk of overflow. To be
15
- // clear, this is more of a pedantic principle than something
16
- // that matters in any conceivable practical scenario.
17
- (destructiveMethodCounts.get(cache) + 1) % 1e15);
18
- // @ts-expect-error this is just too generic to be typed correctly
19
- return original.apply(this, arguments);
20
- };
21
- }
22
- }
23
7
  const queryInfoIds = new WeakMap();
24
8
  // A QueryInfo object represents a single network request, either initiated
25
9
  // from the QueryManager or from an ObservableQuery.
@@ -33,183 +17,156 @@ export class QueryInfo {
33
17
  observableQuery;
34
18
  incremental;
35
19
  constructor(queryManager, observableQuery) {
36
- const cache = (this.cache = queryManager.cache);
20
+ this.cache = queryManager.cache;
37
21
  const id = (queryInfoIds.get(queryManager) || 0) + 1;
38
22
  queryInfoIds.set(queryManager, id);
39
23
  this.id = id + "";
40
24
  this.observableQuery = observableQuery;
41
25
  this.queryManager = queryManager;
42
- // Track how often cache.evict is called, since we want eviction to
43
- // override the feud-stopping logic in the markQueryResult method, by
44
- // causing shouldWrite to return true. Wrapping the cache.evict method
45
- // is a bit of a hack, but it saves us from having to make eviction
46
- // counting an official part of the ApolloCache API.
47
- if (!destructiveMethodCounts.has(cache)) {
48
- destructiveMethodCounts.set(cache, 0);
49
- wrapDestructiveCacheMethod(cache, "evict");
50
- wrapDestructiveCacheMethod(cache, "modify");
51
- wrapDestructiveCacheMethod(cache, "reset");
52
- }
53
- }
54
- /**
55
- * @internal
56
- * For feud-preventing behaviour, `lastWrite` should be shared by all `QueryInfo` instances of an `ObservableQuery`.
57
- * In the case of a standalone `QueryInfo`, we will keep a local version.
58
- *
59
- * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
60
- */
61
- _lastWrite;
62
- get lastWrite() {
63
- return (this.observableQuery || this)._lastWrite;
64
- }
65
- set lastWrite(value) {
66
- (this.observableQuery || this)._lastWrite = value;
67
- }
68
- resetLastWrite() {
69
- this.lastWrite = void 0;
70
- }
71
- shouldWrite(result, variables) {
72
- const { lastWrite } = this;
73
- return !(lastWrite &&
74
- // If cache.evict has been called since the last time we wrote this
75
- // data into the cache, there's a chance writing this result into
76
- // the cache will repair what was evicted.
77
- lastWrite.dmCount === destructiveMethodCounts.get(this.cache) &&
78
- equal(variables, lastWrite.variables) &&
79
- equal(result.data, lastWrite.result.data) &&
80
- // We have to compare these values because its possible the final chunk
81
- // emitted in the incremental result is just `hasNext: false`. This
82
- // ensures we trigger a cache write when we get `isLastChunk: true`.
83
- result.extensions?.[streamInfoSymbol] ===
84
- lastWrite.result.extensions?.[streamInfoSymbol]);
85
26
  }
86
27
  get hasNext() {
87
28
  return this.incremental ? this.incremental.hasNext : false;
88
29
  }
30
+ get incrementalHandler() {
31
+ return this.queryManager.incrementalHandler;
32
+ }
89
33
  maybeHandleIncrementalResult(cacheData, incoming, query) {
90
- const { incrementalHandler } = this.queryManager;
91
- if (incrementalHandler.isIncrementalResult(incoming)) {
92
- this.incremental ||= incrementalHandler.startRequest({
34
+ if (this.incrementalHandler.isIncrementalResult(incoming)) {
35
+ this.incremental ||= this.incrementalHandler.startRequest({
93
36
  query,
94
37
  });
95
38
  return this.incremental.handle(cacheData, incoming);
96
39
  }
97
40
  return incoming;
98
41
  }
99
- markQueryResult(incoming, { document: query, variables, errorPolicy, cacheWriteBehavior, }) {
42
+ markQueryResult(incoming, { document: query, variables, errorPolicy, cacheWriteBehavior, returnPartialData, fetchPolicy, networkStatus, prunePendingDeferFragments: prune, }) {
100
43
  const diffOptions = {
101
44
  query,
102
45
  variables,
103
- returnPartialData: true,
104
46
  optimistic: true,
105
47
  };
106
48
  // Cancel the pending notify timeout (if it exists) to prevent extraneous network
107
49
  // requests. To allow future notify timeouts, diff and dirty are reset as well.
108
50
  this.observableQuery?.["resetNotifications"]();
109
51
  const skipCache = cacheWriteBehavior === 0 /* CacheWriteBehavior.FORBID */;
110
- const lastDiff = skipCache ? undefined : this.cache.diff(diffOptions);
111
- let result = this.maybeHandleIncrementalResult(lastDiff?.result, incoming, query);
112
- if (skipCache) {
113
- return result;
114
- }
115
- if (shouldWriteResult(result, errorPolicy)) {
116
- let written = false;
117
- // Using a transaction here so we have a chance to read the result
118
- // back from the cache before the watch callback fires as a result
119
- // of writeQuery, so we can store the new diff quietly and ignore
120
- // it when we receive it redundantly from the watch callback.
121
- this.cache.batch({
122
- onWatchUpdated: (
123
- // all additional options on ObservableQuery.CacheWatchOptions are
124
- // optional so we can use the type here
125
- watch, diff) => {
126
- if (watch.watcher === this.observableQuery) {
127
- // see comment on `lastOwnDiff` for explanation
128
- watch.lastOwnDiff = diff;
129
- }
130
- },
131
- update: (cache) => {
132
- if (this.shouldWrite(result, variables)) {
133
- cache.writeQuery({
134
- query,
135
- data: result.data,
136
- variables,
137
- overwrite: cacheWriteBehavior === 1 /* CacheWriteBehavior.OVERWRITE */,
138
- extensions: result.extensions,
139
- });
140
- written = true;
141
- this.lastWrite = {
142
- result,
143
- variables,
144
- dmCount: destructiveMethodCounts.get(this.cache),
145
- };
146
- }
147
- else {
148
- // If result is the same as the last result we received from
149
- // the network (and the variables match too), avoid writing
150
- // result into the cache again. The wisdom of skipping this
151
- // cache write is far from obvious, since any cache write
152
- // could be the one that puts the cache back into a desired
153
- // state, fixing corruption or missing data. However, if we
154
- // always write every network result into the cache, we enable
155
- // feuds between queries competing to update the same data in
156
- // incompatible ways, which can lead to an endless cycle of
157
- // cache broadcasts and useless network requests. As with any
158
- // feud, eventually one side must step back from the brink,
159
- // letting the other side(s) have the last word(s). There may
160
- // be other points where we could break this cycle, such as
161
- // silencing the broadcast for cache.writeQuery (not a good
162
- // idea, since it just delays the feud a bit) or somehow
163
- // avoiding the network request that just happened (also bad,
164
- // because the server could return useful new data). All
165
- // options considered, skipping this cache write seems to be
166
- // the least damaging place to break the cycle, because it
167
- // reflects the intuition that we recently wrote this exact
168
- // result into the cache, so the cache *should* already/still
169
- // contain this data. If some other query has clobbered that
170
- // data in the meantime, that's too bad, but there will be no
171
- // winners if every query blindly reverts to its own version
172
- // of the data. This approach also gives the network a chance
173
- // to return new data, which will be written into the cache as
174
- // usual, notifying only those queries that are directly
175
- // affected by the cache updates, as usual. In the future, an
176
- // even more sophisticated cache could perhaps prevent or
177
- // mitigate the clobbering somehow, but that would make this
178
- // particular cache write even less important, and thus
179
- // skipping it would be even safer than it is today.
180
- if (lastDiff && lastDiff.complete) {
181
- // Reuse data from the last good (complete) diff that we
182
- // received, when possible.
183
- result = { ...result, data: lastDiff.result };
184
- return;
185
- }
186
- // If the previous this.diff was incomplete, fall through to
187
- // re-reading the latest data with cache.diff, below.
188
- }
189
- const diff = cache.diff(diffOptions);
190
- // If we're allowed to write to the cache, and we can read a
191
- // complete result from the cache, update result.data to be the
192
- // result from the cache, rather than the raw network result.
193
- // Set without setDiff to avoid triggering a notify call, since
194
- // we have other ways of notifying for this result.
195
- if (diff.complete) {
196
- result = { ...result, data: diff.result };
197
- }
198
- else if (__DEV__ &&
199
- written &&
200
- // A result that is still streaming is expected to read back
201
- // incomplete until the remaining chunks arrive.
202
- !this.hasNext) {
203
- warnAboutPartialCacheResult(query, result.data, diff);
204
- }
205
- },
206
- });
52
+ const diff = skipCache ? undefined : (this.getDiff({
53
+ ...diffOptions,
54
+ // We usually request partial data to ensure the network incremental
55
+ // result is merged with all existing data (especially true to
56
+ // maintain @stream arrays with partial list items in the right order
57
+ // or when chunk might otherwise replace a partial non-normalized
58
+ // object), but if we are about to throw away the result anyways due
59
+ // to the error policy (which early returns below), prune any
60
+ // pending boundaries so that CombinedGraphQLErrors contains the
61
+ // right `data` value.
62
+ returnPartialData: errorPolicy !== "none" ||
63
+ !this.incrementalHandler.extractErrors(incoming)?.length,
64
+ }, this.getIncrementalInfo({ prune })));
65
+ const incrementalResult = this.maybeHandleIncrementalResult(diff?.result, incoming, query);
66
+ let result = {
67
+ ...incrementalResult,
68
+ dataState: incrementalResult.data == null ? "empty" : "complete",
69
+ };
70
+ const hasPendingDefer = this.incremental
71
+ ?.getPendingWithInfo?.()
72
+ .some((pending) => pending.type === "defer" && !pending.delivered);
73
+ if (hasPendingDefer ||
74
+ // The Defer20220824Handler cannot track pending/completed incremental
75
+ // chunks due to its data format so we naively set dataState to
76
+ // streaming if we are still processing chunks. The only case where
77
+ // streaming is incorrect and should actually be complete is when
78
+ // both a @defer and @stream boundary is present and the @defer chunk
79
+ // has completed before the `@stream` array.
80
+ //
81
+ // Assigning the naive "streaming" value avoids a much more expensive
82
+ // pass over `result.data` that would otherwise need to traverse the
83
+ // selection sets and evaluate the data object at each defer boundary
84
+ // to see if it fulfills the selection set. For such a narrow case where
85
+ // its incorrect on a format that is now outdated is not worth the
86
+ // fix so we are ok with reporting a `streaming` here.
87
+ (!this.incremental?.getPendingWithInfo &&
88
+ this.hasNext &&
89
+ hasDirectives(["defer"], query))) {
90
+ result.dataState = "streaming";
207
91
  }
208
- else {
209
- this.lastWrite = void 0;
92
+ if (skipCache || !shouldWriteResult(result, errorPolicy)) {
93
+ return result;
210
94
  }
95
+ // Using a transaction here so we have a chance to read the result
96
+ // back from the cache before the watch callback fires as a result
97
+ // of writeQuery, so we can store the new diff quietly and ignore
98
+ // it when we receive it redundantly from the watch callback.
99
+ this.cache.batch({
100
+ onWatchUpdated: (
101
+ // all additional options on ObservableQuery.CacheWatchOptions are
102
+ // optional so we can use the type here
103
+ watch, diff) => {
104
+ if (watch.watcher === this.observableQuery) {
105
+ // see comment on `lastOwnDiff` for explanation
106
+ watch.lastOwnDiff = diff;
107
+ }
108
+ },
109
+ update: (cache) => {
110
+ cache.writeQuery({
111
+ query,
112
+ data: result.data,
113
+ variables,
114
+ overwrite: cacheWriteBehavior === 1 /* CacheWriteBehavior.OVERWRITE */,
115
+ extensions: result.extensions,
116
+ });
117
+ const { dataState, result: diffResult } = this.getDiff({
118
+ ...diffOptions,
119
+ returnPartialData: returnPartialData &&
120
+ // Never deliver partial data for network-only requests
121
+ (fetchPolicy !== "network-only" ||
122
+ networkStatus === NetworkStatus.refetch),
123
+ }, this.getIncrementalInfo({ prune }));
124
+ if (dataState === "complete" ||
125
+ dataState === "streaming" ||
126
+ (returnPartialData && dataState === "partial")) {
127
+ result = { ...result, data: diffResult, dataState };
128
+ }
129
+ else if (__DEV__ &&
130
+ // A result that is still streaming is expected to read back
131
+ // incomplete until the remaining chunks arrive.
132
+ !this.hasNext) {
133
+ warnAboutPartialCacheResult(query, result.data,
134
+ // Always show the partial result for debugging, otherwise the user
135
+ // sees `null` when `returnPartialData` is false which isn't helpful
136
+ // for figuring out where the problem is.
137
+ cache.diff({ ...diffOptions, returnPartialData: true }));
138
+ }
139
+ },
140
+ });
211
141
  return result;
212
142
  }
143
+ getIncrementalInfo({ prune }) {
144
+ const pending = this.incremental?.getPendingWithInfo?.() ?? [];
145
+ const streamInfo = this.incremental?.streamInfo;
146
+ const incrementalInfo = { streamInfo };
147
+ // We don't want to deliver stream items or complete defer boundaries
148
+ // for a network-only request if they haven't yet streamed from the
149
+ // network. We record all the still-pending paths so that cache.diff
150
+ // can prune complete defer/stream boundaries at those paths.
151
+ if (prune) {
152
+ for (const item of pending) {
153
+ if (item.type === "defer" && !item.delivered) {
154
+ incrementalInfo.deferInfo ||= new Trie(true, () => true);
155
+ incrementalInfo.deferInfo.lookupArray(item.path.concat(item.label || []));
156
+ }
157
+ else if (streamInfo && item.type === "stream") {
158
+ streamInfo.lookupArray(item.path).state.truncate = true;
159
+ }
160
+ }
161
+ }
162
+ return incrementalInfo;
163
+ }
164
+ getDiff(options, incrementalInfo) {
165
+ return toDiffWithDataState(this.cache.diff({
166
+ ...options,
167
+ [handleIncrementalSymbol]: incrementalInfo,
168
+ }));
169
+ }
213
170
  markMutationResult(incoming, mutation, cache = this.cache) {
214
171
  const cacheWrites = [];
215
172
  const skipCache = mutation.cacheWriteBehavior === 0 /* CacheWriteBehavior.FORBID */;
@@ -297,38 +254,34 @@ export class QueryInfo {
297
254
  const { update } = mutation;
298
255
  // Determine whether result is a SingleExecutionResult,
299
256
  // or the final ExecutionPatchResult.
300
- if (update) {
301
- if (!skipCache) {
302
- // Re-read the ROOT_MUTATION data we just wrote into the cache
303
- // (the first cache.write call in the cacheWrites.forEach loop
304
- // above), so field read functions have a chance to run for
305
- // fields within mutation result objects.
306
- const diff = cache.diff({
307
- id: "ROOT_MUTATION",
308
- // The cache complains if passed a mutation where it expects a
309
- // query, so we transform mutations and subscriptions to queries
310
- // (only once, thanks to this.transformCache).
311
- query: this.queryManager.getDocumentInfo(mutation.document)
312
- .asQuery,
313
- variables: mutation.variables,
314
- optimistic: false,
315
- returnPartialData: true,
316
- });
317
- if (diff.complete) {
318
- result = {
319
- ...result,
320
- data: diff.result,
321
- };
322
- }
323
- }
324
- // If we've received the whole response, call the update function.
325
- if (!this.hasNext) {
326
- update(cache, result, {
327
- context: mutation.context,
328
- variables: mutation.variables,
329
- });
257
+ // Re-read from the cache after writing to it to update `result`
258
+ // with any parsed scalar values that might have been written.
259
+ if (!skipCache) {
260
+ const diff = cache.diff({
261
+ id: "ROOT_MUTATION",
262
+ // The cache complains if passed a mutation where it expects a
263
+ // query, so we transform mutations and subscriptions to queries
264
+ // (only once, thanks to this.transformCache).
265
+ query: this.queryManager.getDocumentInfo(mutation.document)
266
+ .asQuery,
267
+ variables: mutation.variables,
268
+ optimistic: false,
269
+ returnPartialData: true,
270
+ });
271
+ if (diff.complete) {
272
+ result = {
273
+ ...result,
274
+ data: diff.result,
275
+ };
330
276
  }
331
277
  }
278
+ // If we've received the whole response, call the update function.
279
+ if (update && !this.hasNext) {
280
+ update(cache, result, {
281
+ context: mutation.context,
282
+ variables: mutation.variables,
283
+ });
284
+ }
332
285
  // TODO Do this with cache.evict({ id: 'ROOT_MUTATION' }) but make it
333
286
  // shallow to allow rolling back optimistic evictions.
334
287
  if (!skipCache && !mutation.keepRootFields && !this.hasNext) {
@@ -389,6 +342,20 @@ export class QueryInfo {
389
342
  variables: variables,
390
343
  extensions: result.extensions,
391
344
  });
345
+ // Re-read from the cache to get parsed scalar values
346
+ const diff = this.cache.diff({
347
+ // The cache complains if passed a mutation where it expects a
348
+ // query, so we transform mutations and subscriptions to queries
349
+ // (only once, thanks to this.transformCache).
350
+ query: this.queryManager.getDocumentInfo(document).asQuery,
351
+ id: "ROOT_SUBSCRIPTION",
352
+ variables,
353
+ optimistic: false,
354
+ returnPartialData: true,
355
+ });
356
+ if (diff.complete) {
357
+ result.data = diff.result;
358
+ }
392
359
  }
393
360
  this.queryManager.broadcastQueries();
394
361
  }
@@ -396,7 +363,7 @@ export class QueryInfo {
396
363
  }
397
364
  function warnAboutPartialCacheResult(query, networkResult, diff) {
398
365
  __DEV__ && invariant.warn(
399
- 89,
366
+ 92,
400
367
  getOperationName(query, "(anonymous)"),
401
368
  diff.missing?.missing,
402
369
  networkResult,