@nerdwallet/apollo-cache-policies
Advanced tools
Comparing version 1.0.0 to 1.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var InvalidationPolicyCacheAuditor_1 = require("./InvalidationPolicyCacheAuditor"); | ||
exports.InvalidationPolicyCacheAuditor = InvalidationPolicyCacheAuditor_1.default; | ||
Object.defineProperty(exports, "InvalidationPolicyCacheAuditor", { enumerable: true, get: function () { return InvalidationPolicyCacheAuditor_1.default; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AuditType = void 0; | ||
const InvalidationPolicyManager_1 = __importDefault(require("../policies/InvalidationPolicyManager")); | ||
@@ -8,0 +9,0 @@ var AuditType; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CacheResultProcessor = exports.ReadResultStatus = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -8,0 +9,0 @@ const core_1 = require("@apollo/client/core"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var InvalidationPolicyCache_1 = require("./InvalidationPolicyCache"); | ||
exports.InvalidationPolicyCache = InvalidationPolicyCache_1.default; | ||
Object.defineProperty(exports, "InvalidationPolicyCache", { enumerable: true, get: function () { return InvalidationPolicyCache_1.default; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var EntityStoreWatcher_1 = require("./EntityStoreWatcher"); | ||
exports.EntityStoreWatcher = EntityStoreWatcher_1.default; | ||
Object.defineProperty(exports, "EntityStoreWatcher", { enumerable: true, get: function () { return EntityStoreWatcher_1.default; } }); | ||
var EntityTypeMap_1 = require("./EntityTypeMap"); | ||
exports.EntityTypeMap = EntityTypeMap_1.default; | ||
Object.defineProperty(exports, "EntityTypeMap", { enumerable: true, get: function () { return EntityTypeMap_1.default; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fieldNameFromStoreName = exports.TypeOrFieldNameRegExp = exports.maybeDeepClone = exports.makeEntityId = exports.isQuery = void 0; | ||
const lodash_1 = __importDefault(require("lodash")); | ||
@@ -8,0 +9,0 @@ function isQuery(dataId) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var cache_1 = require("./cache"); | ||
exports.InvalidationPolicyCache = cache_1.InvalidationPolicyCache; | ||
Object.defineProperty(exports, "InvalidationPolicyCache", { enumerable: true, get: function () { return cache_1.InvalidationPolicyCache; } }); | ||
var audit_1 = require("./audit"); | ||
exports.InvalidationPolicyCacheAuditor = audit_1.InvalidationPolicyCacheAuditor; | ||
Object.defineProperty(exports, "InvalidationPolicyCacheAuditor", { enumerable: true, get: function () { return audit_1.InvalidationPolicyCacheAuditor; } }); | ||
var types_1 = require("./policies/types"); | ||
exports.InvalidationPolicyEvent = types_1.InvalidationPolicyEvent; | ||
exports.RenewalPolicy = types_1.RenewalPolicy; | ||
Object.defineProperty(exports, "InvalidationPolicyEvent", { enumerable: true, get: function () { return types_1.InvalidationPolicyEvent; } }); | ||
Object.defineProperty(exports, "RenewalPolicy", { enumerable: true, get: function () { return types_1.RenewalPolicy; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RenewalPolicy = exports.InvalidationPolicyLifecycleEvent = exports.InvalidationPolicyEvent = void 0; | ||
var InvalidationPolicyEvent; | ||
@@ -4,0 +5,0 @@ (function (InvalidationPolicyEvent) { |
{ | ||
"name": "@nerdwallet/apollo-cache-policies", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "An extension to the InMemoryCache from Apollo that adds additional cache policies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
![Build](https://github.com/NerdWalletOSS/apollo-invalidation-policies/workflows/Build/badge.svg) | ||
![Build](https://github.com/NerdWalletOSS/apollo-cache-policies/workflows/Build/badge.svg) | ||
@@ -10,3 +10,3 @@ # Apollo Cache Policies | ||
``` | ||
npm install apollo-invalidation-policies | ||
npm install @nerdwallet/apollo-cache-policies | ||
``` | ||
@@ -17,3 +17,3 @@ | ||
```javascript | ||
import { InvalidationPolicyCache } from 'apollo-invalidation-policies'; | ||
import { InvalidationPolicyCache } from '@nerdwallet/apollo-cache-policies'; | ||
const cache = new InvalidationPolicyCache({ | ||
@@ -87,3 +87,3 @@ typePolicies: {...}, | ||
import { ApolloClient, InMemoryCache } from "@apollo/client"; | ||
import { InvalidationPolicyCache } from "apollo-invalidation-policies"; | ||
import { InvalidationPolicyCache } from "@nerdwallet/apollo-cache-policies"; | ||
@@ -90,0 +90,0 @@ export default new ApolloClient({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1667
400222