@envelop/immediate-introspection 1.0.0 → 1.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
@@ -14,13 +14,13 @@ For simple GraphQL operations that only select introspection fields building a c
14
14
  The `useImmediateIntrospection` can be used to short circuit any further context building if a GraphQL operation selection set only includes introspection fields within the selection set.
15
15
 
16
16
  ```ts
17
- import { parse, validate, execute, subscribe } from 'graphql'
17
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
18
18
  import { envelop, useImmediateIntrospection, useEngine } from '@envelop/core'
19
19
  import { schema } from './schema'
20
20
 
21
21
  const getEnveloped = envelop({
22
22
  plugins: [
23
- useEngine({ parse, validate, execute, subscribe }),
23
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
24
24
  useSchema(schema),
25
25
  useImmediateIntrospection()
26
26
  // additional plugins
@@ -31,14 +31,14 @@ const getEnveloped = envelop({
31
31
  In case you want to authorize that an user is authenticated before allowing introspection the plugin must be placed in front of the `useImmediateIntrospection()` call.
32
32
 
33
33
  ```ts
34
- import { parse, validate, execute, subscribe } from 'graphql'
34
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
35
35
  import { envelop, useImmediateIntrospection, useEngine } from '@envelop/core'
36
36
  import { schema } from './schema'
37
37
  import { useAuthorization } from './useAuthorization'
38
38
 
39
39
  const getEnveloped = envelop({
40
40
  plugins: [
41
- useEngine({ parse, validate, execute, subscribe }),
41
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
42
42
  useSchema(schema),
43
43
  useAuthorization(), // place this before
44
44
  useImmediateIntrospection()
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@envelop/immediate-introspection",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.0",
6
+ "@envelop/core": "^3.0.1",
7
7
  "@sentry/node": "^6 || ^7",
8
8
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
9
  },