Socket
Socket
Sign inDemoInstall

@urql/exchange-graphcache

Package Overview
Dependencies
Maintainers
4
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urql/exchange-graphcache - npm Package Compare versions

Comparing version 1.2.2-fast to 1.2.2

10

CHANGELOG.md

@@ -11,5 +11,13 @@ # Changelog

## [v1.2.2](https://github.com/FormidableLabs/urql-exchange-graphcache/compare/v1.2.1...v1.2.2)
This patch replaces `pessimism` (our former underlying data structure) with a smaller implementation
that just uses `Map`s, since we weren't relying on any immutability internally. This cuts down
on bundlesize and massively on GC-pressure, which provides a large speedup on low-end devices.
- Replace Pessimism with mutable store to prevent excessive GC work (see [#117](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/117))
## [v1.2.1](https://github.com/FormidableLabs/urql-exchange-graphcache/compare/v1.2.0...v1.2.1)
- Fix viewer fields (which return `Query` types) not being written or read correctl (see [#116](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/116))
- Fix viewer fields (which return `Query` types) not being written or read correctly (see [#116](https://github.com/FormidableLabs/urql-exchange-graphcache/pull/116))

@@ -16,0 +24,0 @@ ## [v1.2.0](https://github.com/FormidableLabs/urql-exchange-graphcache/compare/v1.1.2...v1.2.0)

3

dist/types/ast/node.d.ts
import { NamedTypeNode, NameNode, SelectionNode, SelectionSetNode, InlineFragmentNode, FieldNode, FragmentDefinitionNode } from 'graphql';
import { SelectionSet } from '../types';
/** Returns the name of a given node */

@@ -12,3 +13,3 @@ export declare const getName: (node: {

selectionSet?: SelectionSetNode | undefined;
}) => readonly SelectionNode[];
}) => SelectionSet;
export declare const getTypeCondition: ({ typeCondition, }: {

@@ -15,0 +16,0 @@ typeCondition?: NamedTypeNode | undefined;

@@ -1,2 +0,2 @@

import { OperationRequest, Variables, Fragments } from '../types';
import { OperationRequest, Variables, Fragments, SelectionSet } from '../types';
import { Store } from '../store';

@@ -11,3 +11,3 @@ import { SchemaPredicates } from '../ast/schemaPredicates';

export declare const invalidate: (store: Store, request: OperationRequest) => void;
export declare const invalidateSelection: (ctx: Context, entityKey: string, select: readonly import("graphql").SelectionNode[]) => void;
export declare const invalidateSelection: (ctx: Context, entityKey: string, select: SelectionSet) => void;
export {};

@@ -39,3 +39,3 @@ import { DocumentNode } from 'graphql';

writeLink(link: Link, key: string): KVMap.KVMap<Link<string>>;
writeConnection(key: string, linkKey: string, args: Variables | null): KVMap.KVMap<[Variables, string][]>;
writeConnection(key: string, linkKey: string, args: Variables | null): KVMap.KVMap<Connection[]>;
resolveValueOrLink(fieldKey: string): DataField;

@@ -42,0 +42,0 @@ resolve(entity: Data | string | null, field: string, args?: Variables): DataField;

{
"name": "@urql/exchange-graphcache-extras",
"version": "1.2.2-fast",
"version": "1.2.2",
"private": true,

@@ -5,0 +5,0 @@ "sideEffects": false,

{
"name": "@urql/exchange-graphcache",
"version": "1.2.2-fast",
"version": "1.2.2",
"description": "A normalized and configurable cache exchange for urql",

@@ -86,3 +86,3 @@ "repository": "https://github.com/FormidableLabs/urql-exchange-graphcache",

"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-transform-object-assign": "^7.2.0",

@@ -93,7 +93,7 @@ "@babel/plugin-transform-react-jsx": "^7.7.0",

"@types/graphql": "^14.5.0",
"@types/jest": "^24.0.22",
"@types/jest": "^24.0.23",
"@types/react": "16.9.11",
"@types/react-test-renderer": "16.9.1",
"@typescript-eslint/eslint-plugin": "^2.6.1",
"@typescript-eslint/parser": "^2.6.1",
"@typescript-eslint/eslint-plugin": "^2.8.0",
"@typescript-eslint/parser": "^2.8.0",
"babel-plugin-closure-elimination": "^1.3.0",

@@ -106,21 +106,21 @@ "babel-plugin-transform-async-to-promises": "^0.8.15",

"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^2.2.0",
"eslint-plugin-react-hooks": "^2.3.0",
"graphql": "^14.5.8",
"graphql-tag": "^2.10.1",
"husky": "^3.0.9",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.4.2",
"lint-staged": "^9.4.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.1",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-hooks-testing-library": "^0.6.0",
"react-is": "^16.11.0",
"react-ssr-prepass": "^1.0.7",
"react-test-renderer": "^16.11.0",
"react-is": "^16.12.0",
"react-ssr-prepass": "^1.0.8",
"react-test-renderer": "^16.12.0",
"rimraf": "^3.0.0",
"rollup": "^1.26.3",
"rollup": "^1.27.3",
"rollup-plugin-babel": "^4.3.3",

@@ -133,7 +133,7 @@ "rollup-plugin-buble": "^0.19.8",

"rollup-plugin-typescript2": "^0.25.2",
"terser": "^4.3.9",
"terser": "^4.4.0",
"ts-jest": "^24.1.0",
"typescript": "^3.6.4",
"urql": "^1.6.2"
"typescript": "^3.7.2",
"urql": "^1.6.3"
}
}
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