apollo-cache
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -12,3 +12,3 @@ import { DocumentNode } from 'graphql'; | ||
abstract restore(serializedState: TSerialized): ApolloCache<TSerialized>; | ||
abstract extract(optimistic: boolean): TSerialized; | ||
abstract extract(optimistic?: boolean): TSerialized; | ||
abstract removeOptimistic(id: string): void; | ||
@@ -15,0 +15,0 @@ abstract performTransaction(transaction: Transaction<TSerialized>): void; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var apollo_utilities_1 = require("apollo-utilities"); | ||
import { getFragmentQueryDocument } from 'apollo-utilities'; | ||
var ApolloCache = (function () { | ||
@@ -24,3 +22,3 @@ function ApolloCache() { | ||
return this.read({ | ||
query: apollo_utilities_1.getFragmentQueryDocument(options.fragment, options.fragmentName), | ||
query: getFragmentQueryDocument(options.fragment, options.fragmentName), | ||
variables: options.variables, | ||
@@ -44,3 +42,3 @@ rootId: options.id, | ||
variables: options.variables, | ||
query: apollo_utilities_1.getFragmentQueryDocument(options.fragment, options.fragmentName), | ||
query: getFragmentQueryDocument(options.fragment, options.fragmentName), | ||
}); | ||
@@ -50,3 +48,3 @@ }; | ||
}()); | ||
exports.ApolloCache = ApolloCache; | ||
export { ApolloCache }; | ||
//# sourceMappingURL=cache.js.map |
@@ -1,8 +0,3 @@ | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./cache")); | ||
__export(require("./types")); | ||
export * from './cache'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Cache; | ||
export var Cache; | ||
(function (Cache) { | ||
})(Cache = exports.Cache || (exports.Cache = {})); | ||
})(Cache || (Cache = {})); | ||
//# sourceMappingURL=Cache.js.map |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=DataProxy.js.map |
@@ -1,7 +0,2 @@ | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./Cache")); | ||
export * from './Cache'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "apollo-cache", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Core abstract of Caching layer for Apollo Client", | ||
@@ -12,3 +12,5 @@ "author": "James Baxley <james@meteor.com>", | ||
"license": "MIT", | ||
"main": "./lib/index.js", | ||
"main": "./lib/bundle.umd.js", | ||
"module": "./lib/index.js", | ||
"jsnext:main": "/lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
@@ -30,2 +32,4 @@ "repository": { | ||
"build": "tsc -p .", | ||
"postbuild": "npm run bundle", | ||
"bundle": "rollup -c rollup.config.js", | ||
"watch": "tsc -w -p .", | ||
@@ -35,3 +39,3 @@ "clean": "rimraf coverage/* && rimraf lib/*", | ||
"build:browser": | ||
"browserify ./lib/index.js --i apollo-utilities -o=./lib/bundle.js && npm run minify:browser", | ||
"browserify ./lib/bundle.umd.js --i apollo-utilities -o=./lib/bundle.js && npm run minify:browser", | ||
"minify:browser": | ||
@@ -42,7 +46,7 @@ "uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js", | ||
"dependencies": { | ||
"apollo-utilities": "^1.0.0" | ||
"apollo-utilities": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/graphql": "0.9.4", | ||
"@types/jest": "21.1.2", | ||
"@types/jest": "21.1.6", | ||
"browserify": "14.5.0", | ||
@@ -53,2 +57,4 @@ "graphql": "0.11.7", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.50.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"ts-jest": "20.0.14", | ||
@@ -55,0 +61,0 @@ "tslint": "5.8.0", |
@@ -33,3 +33,3 @@ import { DocumentNode } from 'graphql'; | ||
*/ | ||
public abstract extract(optimistic: boolean): TSerialized; | ||
public abstract extract(optimistic?: boolean): TSerialized; | ||
@@ -36,0 +36,0 @@ // optimistic API |
{ | ||
"extends": "../../tsconfig.base", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"rootDir": "./src", | ||
"outDir": "lib", | ||
"noImplicitAny": true, | ||
"noUnusedParameters": false, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true | ||
"lib": ["es6", "dom", "es2017.object"] | ||
}, | ||
@@ -17,0 +8,0 @@ "include": ["src/**/*.ts"], |
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
24313
28
497
13
Updatedapollo-utilities@^1.0.2