@apollo/client 3.8.3 → 3.8.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 (63) hide show
  1. package/README.md +8 -6
  2. package/apollo-client.cjs +7 -2
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/config/jest/setup.js +10 -0
  6. package/config/jest/setup.js.map +1 -1
  7. package/core/QueryManager.d.ts +1 -1
  8. package/core/QueryManager.d.ts.map +1 -1
  9. package/core/QueryManager.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 +7 -2
  14. package/dev/dev.cjs.map +1 -1
  15. package/dev/dev.cjs.native.js +7 -2
  16. package/package.json +30 -23
  17. package/testing/core/withConsoleSpy.d.ts.map +1 -1
  18. package/testing/core/withConsoleSpy.js.map +1 -1
  19. package/testing/internal/disposables/index.d.ts +3 -0
  20. package/testing/internal/disposables/index.d.ts.map +1 -0
  21. package/testing/internal/disposables/index.js +3 -0
  22. package/testing/internal/disposables/index.js.map +1 -0
  23. package/testing/internal/disposables/spyOnConsole.d.ts +10 -0
  24. package/testing/internal/disposables/spyOnConsole.d.ts.map +1 -0
  25. package/testing/internal/disposables/spyOnConsole.js +33 -0
  26. package/testing/internal/disposables/spyOnConsole.js.map +1 -0
  27. package/testing/internal/disposables/withCleanup.d.ts +3 -0
  28. package/testing/internal/disposables/withCleanup.d.ts.map +1 -0
  29. package/testing/internal/disposables/withCleanup.js +11 -0
  30. package/testing/internal/disposables/withCleanup.js.map +1 -0
  31. package/testing/internal/index.d.ts +3 -0
  32. package/testing/internal/index.d.ts.map +1 -0
  33. package/testing/internal/index.js +3 -0
  34. package/testing/internal/index.js.map +1 -0
  35. package/testing/internal/profile/Render.d.ts +140 -0
  36. package/testing/internal/profile/Render.d.ts.map +1 -0
  37. package/testing/internal/profile/Render.js +132 -0
  38. package/testing/internal/profile/Render.js.map +1 -0
  39. package/testing/internal/profile/index.d.ts +4 -0
  40. package/testing/internal/profile/index.d.ts.map +1 -0
  41. package/testing/internal/profile/index.js +2 -0
  42. package/testing/internal/profile/index.js.map +1 -0
  43. package/testing/internal/profile/profile.d.ts +55 -0
  44. package/testing/internal/profile/profile.d.ts.map +1 -0
  45. package/testing/internal/profile/profile.js +222 -0
  46. package/testing/internal/profile/profile.js.map +1 -0
  47. package/testing/internal/profile/traces.d.ts +3 -0
  48. package/testing/internal/profile/traces.d.ts.map +1 -0
  49. package/testing/internal/profile/traces.js +26 -0
  50. package/testing/internal/profile/traces.js.map +1 -0
  51. package/testing/matchers/ProfiledComponent.d.ts +8 -0
  52. package/testing/matchers/ProfiledComponent.d.ts.map +1 -0
  53. package/testing/matchers/ProfiledComponent.js +107 -0
  54. package/testing/matchers/ProfiledComponent.js.map +1 -0
  55. package/testing/matchers/index.js +3 -0
  56. package/testing/matchers/index.js.map +1 -1
  57. package/utilities/globals/globals.cjs +7 -2
  58. package/utilities/globals/globals.cjs.map +1 -1
  59. package/utilities/globals/globals.cjs.native.js +7 -2
  60. package/utilities/globals/invariantWrappers.d.ts.map +1 -1
  61. package/utilities/globals/invariantWrappers.js +6 -1
  62. package/utilities/globals/invariantWrappers.js.map +1 -1
  63. package/version.js +1 -1
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
- # <a href="https://www.apollographql.com/"><img src="https://user-images.githubusercontent.com/841294/53402609-b97a2180-39ba-11e9-8100-812bab86357c.png" height="100" alt="Apollo Client"></a>
1
+ <div align="center">
2
2
 
3
- ## Apollo Client
3
+ <p>
4
+ <a href="https://www.apollographql.com/"><img src="https://raw.githubusercontent.com/apollographql/apollo-client-devtools/main/assets/apollo-wordmark.svg" height="100" alt="Apollo Client"></a>
5
+ </p>
6
+ <h1>Apollo Client</h1>
4
7
 
5
- [![npm version](https://badge.fury.io/js/%40apollo%2Fclient.svg)](https://badge.fury.io/js/%40apollo%2Fclient)
6
- [![Build Status](https://circleci.com/gh/apollographql/apollo-client.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-client)
7
- [![Join the community](https://img.shields.io/discourse/status?label=Join%20the%20community&server=https%3A%2F%2Fcommunity.apollographql.com)](https://community.apollographql.com)
8
- [![Join our Discord server](https://img.shields.io/discord/1022972389463687228.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square)](https://discord.gg/graphos)
8
+ [![npm version](https://badge.fury.io/js/%40apollo%2Fclient.svg)](https://badge.fury.io/js/%40apollo%2Fclient) [![Build Status](https://circleci.com/gh/apollographql/apollo-client.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-client) [![Join the community](https://img.shields.io/discourse/status?label=Join%20the%20community&server=https%3A%2F%2Fcommunity.apollographql.com)](https://community.apollographql.com) [![Join our Discord server](https://img.shields.io/discord/1022972389463687228.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square)](https://discord.gg/graphos)
9
+
10
+ </div>
9
11
 
10
12
  Apollo Client is a fully-featured caching GraphQL client with integrations for React, Angular, and more. It allows you to easily build UI components that fetch data via GraphQL.
11
13
 
package/apollo-client.cjs CHANGED
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
31
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
 
34
- var version = "3.8.3";
34
+ var version = "3.8.4";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -70,7 +70,12 @@ function wrap(fn) {
70
70
  for (var _i = 1; _i < arguments.length; _i++) {
71
71
  args[_i - 1] = arguments[_i];
72
72
  }
73
- fn.apply(void 0, tslib.__spreadArray([typeof message === "number" ? getErrorMsg(message) : message], args, false));
73
+ if (typeof message === "number") {
74
+ fn(getErrorMsg(message, args));
75
+ }
76
+ else {
77
+ fn.apply(void 0, tslib.__spreadArray([message], args, false));
78
+ }
74
79
  };
75
80
  }
76
81
  var invariant = Object.assign(function invariant(condition, message) {