Socket
Socket
Sign inDemoInstall

apollo-cache-inmemory

Package Overview
Dependencies
Maintainers
2
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-cache-inmemory - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

5

CHANGELOG.md
# Change log
### vNEXT
### vNext
- Fixed bug with cacheRedirects not getting attached [#3016](https://github.com/apollographql/apollo-client/pull/3016)
### 1.1.9
- Added `getCacheKey` function to cacheResolver context [#2998](https://github.com/apollographql/apollo-client/pull/2998)

@@ -5,0 +8,0 @@ - Changed `cacheResolvers` to `cacheRedirects`, added deprecation warning [#3001](https://github.com/apollographql/apollo-client/pull/3001)

@@ -654,5 +654,6 @@ (function (global, factory) {

}
if (_this.config.cacheResolvers)
if (_this.config.cacheResolvers) {
console.warn('cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version.');
_this.config.cacheRedirects = _this.config.cacheResolvers;
_this.config.cacheRedirects = _this.config.cacheResolvers;
}
_this.addTypename = _this.config.addTypename;

@@ -659,0 +660,0 @@ _this.data = _this.config.storeFactory();

@@ -56,5 +56,6 @@ var __extends = (this && this.__extends) || (function () {

}
if (_this.config.cacheResolvers)
if (_this.config.cacheResolvers) {
console.warn('cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version.');
_this.config.cacheRedirects = _this.config.cacheResolvers;
_this.config.cacheRedirects = _this.config.cacheResolvers;
}
_this.addTypename = _this.config.addTypename;

@@ -61,0 +62,0 @@ _this.data = _this.config.storeFactory();

8

package.json
{
"name": "apollo-cache-inmemory",
"version": "1.1.8",
"version": "1.1.9",
"description": "Core abstract of Caching layer for Apollo Client",

@@ -40,5 +40,5 @@ "author": "James Baxley <james@meteor.com>",

"dependencies": {
"apollo-cache": "^1.1.3",
"apollo-utilities": "^1.0.7",
"graphql-anywhere": "^4.1.4"
"apollo-cache": "^1.1.4",
"apollo-utilities": "^1.0.8",
"graphql-anywhere": "^4.1.5"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

@@ -63,7 +63,8 @@ import { DocumentNode } from 'graphql';

if ((this.config as any).cacheResolvers)
if ((this.config as any).cacheResolvers) {
console.warn(
'cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version.',
);
this.config.cacheRedirects = (this.config as any).cacheResolvers;
this.config.cacheRedirects = (this.config as any).cacheResolvers;
}

@@ -70,0 +71,0 @@ this.addTypename = this.config.addTypename;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc