@apollo/client 3.7.15 → 3.7.17

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 (34) hide show
  1. package/apollo-client.cjs +18 -5
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -1
  4. package/cache/cache.cjs +1 -1
  5. package/cache/cache.cjs.map +1 -1
  6. package/cache/cache.cjs.native.js +1 -1
  7. package/cache/inmemory/writeToStore.js +1 -1
  8. package/cache/inmemory/writeToStore.js.map +1 -1
  9. package/core/ObservableQuery.d.ts +1 -0
  10. package/core/ObservableQuery.d.ts.map +1 -1
  11. package/core/ObservableQuery.js +16 -3
  12. package/core/ObservableQuery.js.map +1 -1
  13. package/core/core.cjs +17 -4
  14. package/core/core.cjs.map +1 -1
  15. package/core/core.cjs.native.js +17 -4
  16. package/invariantErrorCodes.js +1 -1
  17. package/link/batch-http/batchHttpLink.d.ts +1 -1
  18. package/link/batch-http/batchHttpLink.d.ts.map +1 -1
  19. package/link/batch-http/batchHttpLink.js.map +1 -1
  20. package/link/persisted-queries/index.d.ts +10 -4
  21. package/link/persisted-queries/index.d.ts.map +1 -1
  22. package/link/persisted-queries/index.js +25 -28
  23. package/link/persisted-queries/index.js.map +1 -1
  24. package/link/persisted-queries/persisted-queries.cjs +24 -27
  25. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  26. package/link/persisted-queries/persisted-queries.cjs.native.js +24 -27
  27. package/package.json +19 -19
  28. package/utilities/policies/pagination.d.ts.map +1 -1
  29. package/utilities/policies/pagination.js +3 -0
  30. package/utilities/policies/pagination.js.map +1 -1
  31. package/utilities/utilities.cjs +3 -0
  32. package/utilities/utilities.cjs.map +1 -1
  33. package/utilities/utilities.cjs.native.js +3 -0
  34. package/version.js +1 -1
package/cache/cache.cjs CHANGED
@@ -1994,7 +1994,7 @@ function warnAboutDataLoss(existingRef, incomingObj, storeFieldName, store) {
1994
1994
  }
1995
1995
  });
1996
1996
  }
1997
- __DEV__ && globals.invariant.warn("Cache data may be lost when replacing the ".concat(fieldName, " field of a ").concat(parentType, " object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(childTypenames.length
1997
+ __DEV__ && globals.invariant.warn("Cache data may be lost when replacing the ".concat(fieldName, " field of a ").concat(parentType, " object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(childTypenames.length
1998
1998
  ? "either ensure all objects of type " +
1999
1999
  childTypenames.join(" and ") + " have an ID or a custom merge function, or "
2000
2000
  : "", "define a custom merge function for the ").concat(typeDotName, " field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(existing).slice(0, 1000), "\n incoming: ").concat(JSON.stringify(incoming).slice(0, 1000), "\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"));