@envelop/graphql-modules 4.0.0-alpha-a07c198b.0 → 4.0.0-alpha-20220907122327-16ffa5de

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,6 +13,7 @@ yarn add @envelop/graphql-modules
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 { createApplication } from 'graphql-modules'
18
19
  import { useGraphQLModules } from '@envelop/graphql-modules'
@@ -24,6 +25,10 @@ const myApp = createApplication({
24
25
  })
25
26
 
26
27
  const getEnveloped = envelop({
28
+ parse,
29
+ validate,
30
+ execute,
31
+ subscribe,
27
32
  plugins: [
28
33
  // ... other plugins ...
29
34
  useGraphQLModules(myApp)
package/cjs/index.js CHANGED
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useGraphQLModules = void 0;
4
- const compat_1 = require("@graphql-tools/compat");
5
4
  const graphqlModulesControllerSymbol = Symbol('GRAPHQL_MODULES');
6
5
  const useGraphQLModules = (app) => {
7
6
  return {
8
7
  onPluginInit({ setSchema }) {
9
- setSchema(compat_1.compat.toTools(app.schema));
8
+ setSchema(app.schema);
10
9
  },
11
10
  onContextBuilding({ extendContext, context }) {
12
11
  const controller = app.createOperationController({
package/esm/index.js CHANGED
@@ -1,9 +1,8 @@
1
- import { compat } from '@graphql-tools/compat';
2
1
  const graphqlModulesControllerSymbol = Symbol('GRAPHQL_MODULES');
3
2
  export const useGraphQLModules = (app) => {
4
3
  return {
5
4
  onPluginInit({ setSchema }) {
6
- setSchema(compat.toTools(app.schema));
5
+ setSchema(app.schema);
7
6
  },
8
7
  onContextBuilding({ extendContext, context }) {
9
8
  const controller = app.createOperationController({
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@envelop/graphql-modules",
3
- "version": "4.0.0-alpha-a07c198b.0",
3
+ "version": "4.0.0-alpha-20220907122327-16ffa5de",
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",
8
- "@graphql-tools/compat": "0.0.1-alpha-20220809192840-c5b336bd",
6
+ "@envelop/core": "3.0.0-alpha-20220907122327-16ffa5de",
9
7
  "graphql-modules": "^1 || ^2.0.0",
10
- "graphql": "^15 || ^16"
8
+ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
+ },
10
+ "dependencies": {
11
+ "tslib": "^2.4.0"
11
12
  },
12
- "dependencies": {},
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/n1ru4l/envelop.git",