@envelop/validation-cache 4.6.1-alpha-20220824165935-4720f031 → 4.7.0

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,15 +13,10 @@ yarn add @envelop/validation-cache
13
13
  ## Usage Example
14
14
 
15
15
  ```ts
16
- import { parse, validate, execute, subscribe } from 'graphql'
17
16
  import { envelop } from '@envelop/core'
18
17
  import { useValidationCache } from '@envelop/validation-cache'
19
18
 
20
19
  const getEnveloped = envelop({
21
- parse,
22
- validate,
23
- execute,
24
- subscribe,
25
20
  plugins: [
26
21
  // ... other plugins ...
27
22
  useValidationCache({
package/cjs/index.js CHANGED
@@ -35,7 +35,6 @@ const useValidationCache = (pluginOptions = {}) => {
35
35
  setResult(cachedResult);
36
36
  }
37
37
  return ({ result }) => {
38
- // @ts-expect-error TODO: not sure how we will make it dev friendly
39
38
  resultCache.set(key, result);
40
39
  };
41
40
  },
package/esm/index.js CHANGED
@@ -31,7 +31,6 @@ export const useValidationCache = (pluginOptions = {}) => {
31
31
  setResult(cachedResult);
32
32
  }
33
33
  return ({ result }) => {
34
- // @ts-expect-error TODO: not sure how we will make it dev friendly
35
34
  resultCache.set(key, result);
36
35
  };
37
36
  },
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@envelop/validation-cache",
3
- "version": "4.6.1-alpha-20220824165935-4720f031",
3
+ "version": "4.7.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "2.5.1-alpha-20220824165935-4720f031",
6
+ "@envelop/core": "^2.6.0",
7
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",