@envelop/graphql-jit 5.0.0-alpha-975a6c5.0 → 5.0.0-alpha-a07c198b.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/cjs/index.js CHANGED
@@ -26,7 +26,7 @@ const useGraphQlJit = (compilerOptions = {}, pluginOptions = {}) => {
26
26
  }
27
27
  if (!cacheEntry) {
28
28
  // TODO: CACHE ME
29
- const schema = compat_1.compatSchema.toGraphQLJS(args.schema);
29
+ const schema = compat_1.compat.toGraphQLJS(args.schema);
30
30
  const compilationResult = (0, graphql_jit_1.compileQuery)(schema, args.document, (_a = args.operationName) !== null && _a !== void 0 ? _a : undefined, compilerOptions);
31
31
  if (!(0, graphql_jit_1.isCompiledQuery)(compilationResult)) {
32
32
  if (pluginOptions === null || pluginOptions === void 0 ? void 0 : pluginOptions.onError) {
package/esm/index.js CHANGED
@@ -5,7 +5,7 @@ import { makeExecute, makeSubscribe } from '@envelop/core';
5
5
  import { Source } from '@graphql-tools/graphql';
6
6
  import { compileQuery, isCompiledQuery } from 'graphql-jit';
7
7
  import LRU from 'lru-cache';
8
- import { compatSchema } from '@graphql-tools/compat';
8
+ import { compat } from '@graphql-tools/compat';
9
9
  const DEFAULT_MAX = 1000;
10
10
  const DEFAULT_TTL = 3600000;
11
11
  export const useGraphQlJit = (compilerOptions = {}, pluginOptions = {}) => {
@@ -22,7 +22,7 @@ export const useGraphQlJit = (compilerOptions = {}, pluginOptions = {}) => {
22
22
  }
23
23
  if (!cacheEntry) {
24
24
  // TODO: CACHE ME
25
- const schema = compatSchema.toGraphQLJS(args.schema);
25
+ const schema = compat.toGraphQLJS(args.schema);
26
26
  const compilationResult = compileQuery(schema, args.document, (_a = args.operationName) !== null && _a !== void 0 ? _a : undefined, compilerOptions);
27
27
  if (!isCompiledQuery(compilationResult)) {
28
28
  if (pluginOptions === null || pluginOptions === void 0 ? void 0 : pluginOptions.onError) {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@envelop/graphql-jit",
3
- "version": "5.0.0-alpha-975a6c5.0",
3
+ "version": "5.0.0-alpha-a07c198b.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "3.0.0-alpha-975a6c5.0",
7
- "@graphql-tools/graphql": "0.1.0-alpha-e7752ba5.0",
6
+ "@envelop/core": "3.0.0-alpha-a07c198b.0",
7
+ "@graphql-tools/graphql": "0.1.0-alpha-20220809192840-c5b336bd",
8
8
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@graphql-tools/compat": "0.0.1-alpha-e7752ba5.0",
11
+ "@graphql-tools/compat": "0.0.1-alpha-20220809192840-c5b336bd",
12
12
  "graphql-jit": "^0.7.0",
13
13
  "lru-cache": "^6.0.0"
14
14
  },