Skip to content

Commit

Permalink
Drop Node 14 and require Node 16 or higher (#5449)
Browse files Browse the repository at this point in the history
* Drop Node 14 and require Node >16

* Go

* AggregateError
  • Loading branch information
ardatan authored May 23, 2023
1 parent c96b4c2 commit ef520d9
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 14 deletions.
72 changes: 72 additions & 0 deletions .changeset/rich-tools-check.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 18]
node-version: [16, 18]

steps:
- name: Checkout
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion packages/handlers/thrift/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion packages/json-machete/src/compareJSONSchemas.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/json-schema/src/addRootFieldResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 1 addition & 6 deletions packages/mergers/federation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion packages/runtime/src/get-mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import {
} from '@graphql-mesh/utils';
import { CreateProxyingResolverFn, Subschema, SubschemaConfig } from '@graphql-tools/delegate';
import {
AggregateError,
ExecutionResult,
getRootTypeMap,
inspect,
Expand Down
2 changes: 1 addition & 1 deletion packages/transforms/rate-limit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, YamlConfig.RateLimitTransformConfig>();
Expand Down

0 comments on commit ef520d9

Please sign in to comment.