diff --git a/.changeset/rich-tools-check.md b/.changeset/rich-tools-check.md new file mode 100644 index 0000000000000..990c7ad391ece --- /dev/null +++ b/.changeset/rich-tools-check.md @@ -0,0 +1,72 @@ +--- +'@graphql-mesh/apollo-link': minor +'@graphql-mesh/cache-cfw-kv': minor +'@graphql-mesh/cache-file': minor +'@graphql-mesh/cache-localforage': minor +'@graphql-mesh/cache-redis': minor +'@graphql-mesh/cli': minor +'@graphql-mesh/config': minor +'@graphql-mesh/cross-helpers': minor +'@graphql-mesh/graphql': minor +'@graphql-mesh/grpc': minor +'@graphql-mesh/json-schema': minor +'@graphql-mesh/mongoose': minor +'@graphql-mesh/mysql': minor +'@graphql-mesh/neo4j': minor +'@graphql-mesh/odata': minor +'@graphql-mesh/openapi': minor +'@graphql-mesh/postgraphile': minor +'@graphql-mesh/raml': minor +'@graphql-mesh/soap': minor +'@graphql-mesh/thrift': minor +'@graphql-mesh/tuql': minor +'@graphql-mesh/http': minor +'@graphql-mesh/jit-executor': minor +'json-machete': minor +'@omnigraph/json-schema': minor +'@omnigraph/openapi': minor +'@omnigraph/raml': minor +'@omnigraph/soap': minor +'@graphql-mesh/merger-bare': minor +'@graphql-mesh/merger-federation': minor +'@graphql-mesh/merger-stitching': minor +'@graphql-mesh/plugin-deduplicate-request': minor +'@graphql-mesh/plugin-hive': minor +'@graphql-mesh/plugin-http-cache': minor +'@graphql-mesh/plugin-http-details-extensions': minor +'@graphql-mesh/plugin-http2': minor +'@graphql-mesh/plugin-live-query': minor +'@graphql-mesh/plugin-mock': minor +'@graphql-mesh/plugin-newrelic': minor +'@graphql-mesh/plugin-operation-field-permissions': minor +'@graphql-mesh/plugin-prometheus': minor +'@graphql-mesh/plugin-rate-limit': minor +'@graphql-mesh/plugin-response-cache': minor +'@graphql-mesh/plugin-serialize-headers': minor +'@graphql-mesh/plugin-snapshot': minor +'@graphql-mesh/plugin-statsd': minor +'@graphql-mesh/runtime': minor +'@graphql-mesh/store': minor +'@graphql-mesh/string-interpolation': minor +'@graphql-mesh/transform-cache': minor +'@graphql-mesh/transform-encapsulate': minor +'@graphql-mesh/transform-extend': minor +'@graphql-mesh/transform-federation': minor +'@graphql-mesh/transform-filter-schema': minor +'@graphql-mesh/transform-hive': minor +'@graphql-mesh/transform-hoist-field': minor +'@graphql-mesh/transform-naming-convention': minor +'@graphql-mesh/transform-prefix': minor +'@graphql-mesh/transform-prune': minor +'@graphql-mesh/transform-rate-limit': minor +'@graphql-mesh/transform-rename': minor +'@graphql-mesh/transform-replace-field': minor +'@graphql-mesh/transform-resolvers-composition': minor +'@graphql-mesh/transform-transfer-schema': minor +'@graphql-mesh/transform-type-merging': minor +'@graphql-mesh/types': minor +'@graphql-mesh/urql-exchange': minor +'@graphql-mesh/utils': minor +--- + +Drop Node 14 support and require Node 16 or higher diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fed9cdaa331ae..123a1263548b1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14, 18] + node-version: [16, 18] steps: - name: Checkout @@ -60,7 +60,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14, 18] + node-version: [16, 18] # Service containers to run with `runner-job` services: # Label used to access the service container diff --git a/packages/cli/src/config.ts b/packages/cli/src/config.ts index 30ba2e1fc2a8f..ad4e37a9787af 100644 --- a/packages/cli/src/config.ts +++ b/packages/cli/src/config.ts @@ -4,7 +4,6 @@ import { ConfigProcessOptions, processConfig } from '@graphql-mesh/config'; import { path, process } from '@graphql-mesh/cross-helpers'; import { jsonSchema, YamlConfig } from '@graphql-mesh/types'; import { defaultImportFn, DefaultLogger, loadYaml } from '@graphql-mesh/utils'; -import { AggregateError } from '@graphql-tools/utils'; export function validateConfig( config: any, diff --git a/packages/handlers/thrift/src/index.ts b/packages/handlers/thrift/src/index.ts index 506a71d3fac14..16e7a3670a2f3 100644 --- a/packages/handlers/thrift/src/index.ts +++ b/packages/handlers/thrift/src/index.ts @@ -59,7 +59,6 @@ import { YamlConfig, } from '@graphql-mesh/types'; import { readFileOrUrl } from '@graphql-mesh/utils'; -import { AggregateError } from '@graphql-tools/utils'; export default class ThriftHandler implements MeshHandler { private config: YamlConfig.ThriftHandler; diff --git a/packages/json-machete/src/compareJSONSchemas.ts b/packages/json-machete/src/compareJSONSchemas.ts index c5ee8a2ea51cd..7f4d526282c0c 100644 --- a/packages/json-machete/src/compareJSONSchemas.ts +++ b/packages/json-machete/src/compareJSONSchemas.ts @@ -1,4 +1,3 @@ -import { AggregateError } from '@graphql-tools/utils'; import { resolvePath } from './dereferenceObject.js'; import { JSONSchema } from './types.js'; import { visitJSONSchema } from './visitJSONSchema.js'; diff --git a/packages/loaders/json-schema/src/addRootFieldResolver.ts b/packages/loaders/json-schema/src/addRootFieldResolver.ts index 49d7022214c09..0c27a1480326a 100644 --- a/packages/loaders/json-schema/src/addRootFieldResolver.ts +++ b/packages/loaders/json-schema/src/addRootFieldResolver.ts @@ -17,7 +17,7 @@ import { stringInterpolator } from '@graphql-mesh/string-interpolation'; import { Logger, MeshFetch, MeshFetchRequestInit } from '@graphql-mesh/types'; import { getHeadersObj } from '@graphql-mesh/utils'; import { createGraphQLError, memoize1 } from '@graphql-tools/utils'; -import { AbortSignal, Blob, File, FormData } from '@whatwg-node/fetch'; +import { Blob, File, FormData } from '@whatwg-node/fetch'; import { resolveDataByUnionInputType } from './resolveDataByUnionInputType.js'; import { HTTPMethod } from './types.js'; import { isFileUpload } from './utils.js'; diff --git a/packages/mergers/federation/src/index.ts b/packages/mergers/federation/src/index.ts index ff6ac2e396fd6..c07e59f080ffe 100644 --- a/packages/mergers/federation/src/index.ts +++ b/packages/mergers/federation/src/index.ts @@ -20,12 +20,7 @@ import { } from '@graphql-mesh/types'; import { printWithCache } from '@graphql-mesh/utils'; import { addResolversToSchema } from '@graphql-tools/schema'; -import { - AggregateError, - asArray, - ExecutionRequest, - printSchemaWithDirectives, -} from '@graphql-tools/utils'; +import { asArray, ExecutionRequest, printSchemaWithDirectives } from '@graphql-tools/utils'; import { wrapSchema } from '@graphql-tools/wrap'; export default class FederationMerger implements MeshMerger { diff --git a/packages/runtime/src/get-mesh.ts b/packages/runtime/src/get-mesh.ts index 13d25dd4dc014..b56ee1fac89d0 100644 --- a/packages/runtime/src/get-mesh.ts +++ b/packages/runtime/src/get-mesh.ts @@ -33,7 +33,6 @@ import { } from '@graphql-mesh/utils'; import { CreateProxyingResolverFn, Subschema, SubschemaConfig } from '@graphql-tools/delegate'; import { - AggregateError, ExecutionResult, getRootTypeMap, inspect, diff --git a/packages/transforms/rate-limit/src/index.ts b/packages/transforms/rate-limit/src/index.ts index cbdd1ecffa8bb..0964c575cb831 100644 --- a/packages/transforms/rate-limit/src/index.ts +++ b/packages/transforms/rate-limit/src/index.ts @@ -3,7 +3,7 @@ import { process } from '@graphql-mesh/cross-helpers'; import { ResolverData, stringInterpolator } from '@graphql-mesh/string-interpolation'; import { MeshTransform, MeshTransformOptions, YamlConfig } from '@graphql-mesh/types'; import type { DelegationContext } from '@graphql-tools/delegate'; -import { AggregateError, ExecutionRequest } from '@graphql-tools/utils'; +import { ExecutionRequest } from '@graphql-tools/utils'; export default class RateLimitTransform implements MeshTransform { private pathRateLimitDef = new Map();