@envelop/parser-cache 5.0.0-alpha-a07c198b.0 → 5.0.0-alpha-20220902173253-1ce5e1b0

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/README.md CHANGED
@@ -13,10 +13,15 @@ yarn add @envelop/parser-cache
13
13
  ## Usage Example
14
14
 
15
15
  ```ts
16
+ import { parse, validate, execute, subscribe } from 'graphql'
16
17
  import { envelop } from '@envelop/core'
17
18
  import { useParserCache } from '@envelop/parser-cache'
18
19
 
19
20
  const getEnveloped = envelop({
21
+ parse,
22
+ validate,
23
+ execute,
24
+ subscribe,
20
25
  plugins: [
21
26
  // ... other plugins ...
22
27
  useParserCache({
package/cjs/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useParserCache = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const graphql_1 = require("@graphql-tools/graphql");
5
+ const graphql_1 = require("graphql");
6
6
  const lru_cache_1 = tslib_1.__importDefault(require("lru-cache"));
7
7
  const DEFAULT_MAX = 1000;
8
8
  const DEFAULT_TTL = 3600000;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Source } from '@graphql-tools/graphql';
1
+ import { Source } from 'graphql';
2
2
  import LRU from 'lru-cache';
3
3
  const DEFAULT_MAX = 1000;
4
4
  const DEFAULT_TTL = 3600000;
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@envelop/parser-cache",
3
- "version": "5.0.0-alpha-a07c198b.0",
3
+ "version": "5.0.0-alpha-20220902173253-1ce5e1b0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "3.0.0-alpha-a07c198b.0",
7
- "@graphql-tools/graphql": "0.1.0-alpha-20220809192840-c5b336bd"
6
+ "@envelop/core": "3.0.0-alpha-20220902173253-1ce5e1b0",
7
+ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "lru-cache": "^6.0.0"
10
+ "lru-cache": "^6.0.0",
11
+ "tslib": "^2.4.0"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@envelop/core';
2
- import { DocumentNode } from '@graphql-tools/graphql';
2
+ import { DocumentNode } from 'graphql';
3
3
  interface Cache<T> {
4
4
  get(key: string): T | undefined;
5
5
  set(key: string, value: T): void;
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@envelop/core';
2
- import { DocumentNode } from '@graphql-tools/graphql';
2
+ import { DocumentNode } from 'graphql';
3
3
  interface Cache<T> {
4
4
  get(key: string): T | undefined;
5
5
  set(key: string, value: T): void;