@apollo/client 3.12.7 → 3.12.9

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 (54) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/apollo-client.cjs +3 -2
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/cache/cache.cjs +2 -1
  6. package/cache/cache.cjs.map +1 -1
  7. package/cache/cache.cjs.native.js +2 -1
  8. package/cache/core/cache.js +4 -1
  9. package/cache/core/cache.js.map +1 -1
  10. package/core/core.cjs +1 -1
  11. package/core/core.cjs.map +1 -1
  12. package/core/core.cjs.native.js +1 -1
  13. package/dev/dev.cjs +1 -1
  14. package/dev/dev.cjs.map +1 -1
  15. package/dev/dev.cjs.native.js +1 -1
  16. package/errors/index.d.ts +2 -8
  17. package/errors/index.js.map +1 -1
  18. package/link/error/index.d.ts +2 -5
  19. package/link/error/index.js.map +1 -1
  20. package/link/retry/retry.cjs +13 -1
  21. package/link/retry/retry.cjs.map +1 -1
  22. package/link/retry/retry.cjs.native.js +13 -1
  23. package/link/retry/retryLink.js +15 -1
  24. package/link/retry/retryLink.js.map +1 -1
  25. package/package.json +2 -3
  26. package/react/internal/internal.cjs +1 -1
  27. package/react/internal/internal.cjs.map +1 -1
  28. package/react/internal/internal.cjs.native.js +1 -1
  29. package/testing/internal/ObservableStream.d.ts +3 -0
  30. package/testing/internal/ObservableStream.js +30 -1
  31. package/testing/internal/ObservableStream.js.map +1 -1
  32. package/testing/matchers/index.js +6 -0
  33. package/testing/matchers/index.js.map +1 -1
  34. package/testing/matchers/toEmitAnything.js +1 -1
  35. package/testing/matchers/toEmitAnything.js.map +1 -1
  36. package/testing/matchers/toEmitApolloQueryResult.d.ts +8 -0
  37. package/testing/matchers/toEmitApolloQueryResult.js +51 -0
  38. package/testing/matchers/toEmitApolloQueryResult.js.map +1 -0
  39. package/testing/matchers/toEmitFetchResult.d.ts +8 -0
  40. package/testing/matchers/toEmitFetchResult.js +51 -0
  41. package/testing/matchers/toEmitFetchResult.js.map +1 -0
  42. package/testing/matchers/toEqualFetchResult.d.ts +4 -0
  43. package/testing/matchers/toEqualFetchResult.js +20 -0
  44. package/testing/matchers/toEqualFetchResult.js.map +1 -0
  45. package/utilities/globals/globals.cjs +1 -1
  46. package/utilities/globals/globals.cjs.map +1 -1
  47. package/utilities/globals/globals.cjs.native.js +1 -1
  48. package/version.js +1 -1
  49. package/testing/core/mocking/mockQueryManager.d.ts +0 -21
  50. package/testing/core/mocking/mockQueryManager.js +0 -19
  51. package/testing/core/mocking/mockQueryManager.js.map +0 -1
  52. package/testing/core/mocking/mockWatchQuery.d.ts +0 -5
  53. package/testing/core/mocking/mockWatchQuery.js +0 -15
  54. package/testing/core/mocking/mockWatchQuery.js.map +0 -1
package/cache/cache.cjs CHANGED
@@ -193,7 +193,8 @@ var ApolloCache = (function () {
193
193
  : diff.result;
194
194
  if (
195
195
  latestDiff &&
196
- equalByQuery(query, { data: latestDiff === null || latestDiff === void 0 ? void 0 : latestDiff.result }, { data: data })) {
196
+ equalByQuery(query, { data: latestDiff.result }, { data: data },
197
+ options.variables)) {
197
198
  return;
198
199
  }
199
200
  var result = {