@envelop/graphql-middleware 4.0.0 → 4.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 +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -15,7 +15,7 @@ yarn add graphql-middleware @envelop/graphql-middleware
15
15
  You can use any type of middleware defined for `graphql-middleware`, here's an example for doing that with [`graphql-shield`](https://github.com/maticzav/graphql-shield):
16
16
 
17
17
  ```ts
18
- import { parse, validate, execute, subscribe } from 'graphql'
18
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
19
19
  import { envelop, useEngine } from '@envelop/core'
20
20
  import { useGraphQLMiddleware } from '@envelop/graphql-middleware'
21
21
  import { rule, shield, and, or, not } from 'graphql-shield'
@@ -37,7 +37,7 @@ const permissions = shield({
37
37
 
38
38
  const getEnveloped = envelop({
39
39
  plugins: [
40
- useEngine({ parse, validate, execute, subscribe }),
40
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
41
41
  // ... other plugins ...
42
42
  useSchema(mySchema),
43
43
  useGraphQLMiddleware([permissions])
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@envelop/graphql-middleware",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.0",
6
+ "@envelop/core": "^3.0.1",
7
7
  "graphql-middleware": "^6.0.0",
8
8
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
9
  },