@apollo/client 3.4.14 → 3.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apollo-client.cjs.js +10 -5
- package/apollo-client.cjs.js.map +1 -1
- package/apollo-client.cjs.min.js +1 -1
- package/cache/cache.cjs.js +9 -4
- package/cache/cache.cjs.js.map +1 -1
- package/cache/core/cache.d.ts +1 -1
- package/cache/core/cache.d.ts.map +1 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +3 -0
- package/cache/core/types/Cache.d.ts.map +1 -1
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +1 -1
- package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
- package/cache/inmemory/inMemoryCache.js +9 -4
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/core/core.cjs.js +1 -1
- package/core/core.cjs.js.map +1 -1
- package/invariantErrorCodes.js +1 -1
- package/package.json +1 -1
- package/version.js +1 -1
package/apollo-client.cjs.js
CHANGED
|
@@ -1286,7 +1286,7 @@ var concat = ApolloLink.concat;
|
|
|
1286
1286
|
|
|
1287
1287
|
var execute = ApolloLink.execute;
|
|
1288
1288
|
|
|
1289
|
-
var version = '3.4.
|
|
1289
|
+
var version = '3.4.15';
|
|
1290
1290
|
|
|
1291
1291
|
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1292
1292
|
function parseAndCheckHttpResponse(operations) {
|
|
@@ -3563,13 +3563,18 @@ var InMemoryCache = (function (_super) {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
};
|
|
3566
|
-
InMemoryCache.prototype.reset = function () {
|
|
3566
|
+
InMemoryCache.prototype.reset = function (options) {
|
|
3567
3567
|
var _this = this;
|
|
3568
3568
|
this.init();
|
|
3569
|
-
this.watches.forEach(function (watch) { return _this.maybeBroadcastWatch.forget(watch); });
|
|
3570
|
-
this.watches.clear();
|
|
3571
|
-
forgetCache(this);
|
|
3572
3569
|
canonicalStringify.reset();
|
|
3570
|
+
if (options && options.discardWatches) {
|
|
3571
|
+
this.watches.forEach(function (watch) { return _this.maybeBroadcastWatch.forget(watch); });
|
|
3572
|
+
this.watches.clear();
|
|
3573
|
+
forgetCache(this);
|
|
3574
|
+
}
|
|
3575
|
+
else {
|
|
3576
|
+
this.broadcastWatches();
|
|
3577
|
+
}
|
|
3573
3578
|
return Promise.resolve();
|
|
3574
3579
|
};
|
|
3575
3580
|
InMemoryCache.prototype.removeOptimistic = function (idToRemove) {
|