@envelop/extended-validation 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -17,13 +17,13 @@ yarn add @envelop/extended-validation
17
17
  Then, use the plugin with your validation rules:
18
18
 
19
19
  ```ts
20
- import { parse, validate, execute, subscribe } from 'graphql'
20
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
21
21
  import { envelop, useEngine } from '@envelop/core'
22
22
  import { useExtendedValidation } from '@envelop/extended-validation'
23
23
 
24
24
  const getEnveloped = envelop({
25
25
  plugins: [
26
- useEngine({ parse, validate, execute, subscribe }),
26
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
27
27
  useExtendedValidation({
28
28
  rules: [
29
29
  /* ... your rules here */
@@ -62,13 +62,13 @@ You can use union inputs either via a the SDL flow, by annotating types and fiel
62
62
  First, make sure to add that rule to your plugin usage:
63
63
 
64
64
  ```ts
65
- import { parse, validate, execute, subscribe } from 'graphql'
65
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
66
66
  import { envelop, useEngine } from '@envelop/core'
67
67
  import { useExtendedValidation, OneOfInputObjectsRule } from '@envelop/extended-validation'
68
68
 
69
69
  const getEnveloped = envelop({
70
70
  plugins: [
71
- useEngine({ parse, validate, execute, subscribe }),
71
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
72
72
  useExtendedValidation({
73
73
  rules: [OneOfInputObjectsRule]
74
74
  })
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@envelop/extended-validation",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.0",
6
+ "@envelop/core": "^3.0.1",
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {