From 054a7ee1e3e12e2a5dfa75f395cd7094a358706c Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Tue, 29 Oct 2019 11:32:06 +0100 Subject: [PATCH] fix: rename RelayApplyFragmentArgumentTransform to ApplyFragmentArgumentTransform (https://github.com/facebook/relay/commit/536f7815de68a0b43f11b65a16c32d3a2a42b8c7#diff-99f0c15aa080233f3d3654b4e604c257). (#39959) --- ...ntTransform.d.ts => ApplyFragmentArgumentTransform.d.ts} | 0 types/relay-compiler/relay-compiler-tests.ts | 6 +++--- types/relay-compiler/tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename types/relay-compiler/lib/transforms/{RelayApplyFragmentArgumentTransform.d.ts => ApplyFragmentArgumentTransform.d.ts} (100%) diff --git a/types/relay-compiler/lib/transforms/RelayApplyFragmentArgumentTransform.d.ts b/types/relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.d.ts similarity index 100% rename from types/relay-compiler/lib/transforms/RelayApplyFragmentArgumentTransform.d.ts rename to types/relay-compiler/lib/transforms/ApplyFragmentArgumentTransform.d.ts diff --git a/types/relay-compiler/relay-compiler-tests.ts b/types/relay-compiler/relay-compiler-tests.ts index 36584fece0..500a3b431b 100644 --- a/types/relay-compiler/relay-compiler-tests.ts +++ b/types/relay-compiler/relay-compiler-tests.ts @@ -7,7 +7,7 @@ import { import * as InlineFragmentsTransform from 'relay-compiler/lib/transforms/InlineFragmentsTransform'; import * as SkipRedundantNodesTransform from 'relay-compiler/lib/transforms/SkipRedundantNodesTransform'; -import * as RelayApplyFragmentArgumentTransform from 'relay-compiler/lib/transforms/RelayApplyFragmentArgumentTransform'; +import * as ApplyFragmentArgumentTransform from 'relay-compiler/lib/transforms/ApplyFragmentArgumentTransform'; import * as FlattenTransform from 'relay-compiler/lib/transforms/FlattenTransform'; import * as ConnectionFieldTransform from 'relay-compiler/lib/transforms/ConnectionFieldTransform'; import { getLanguagePlugin } from 'relay-compiler/lib/bin/RelayCompilerMain'; @@ -29,7 +29,7 @@ const relayDocuments = RelayParser.transform(adjustedSchema, documentAsts); const queryCompilerContext = new GraphQLCompilerContext(adjustedSchema) .addAll(relayDocuments) .applyTransforms([ - RelayApplyFragmentArgumentTransform.transform, + ApplyFragmentArgumentTransform.transform, InlineFragmentsTransform.transform, FlattenTransform.transformWithOptions({ flattenAbstractTypes: false }), SkipRedundantNodesTransform.transform, @@ -47,7 +47,7 @@ getLanguagePlugin(() => ({ inputExtensions: ['foo'], outputExtension: 'bar', typeGenerator: { - transforms: [RelayApplyFragmentArgumentTransform.transform], + transforms: [ApplyFragmentArgumentTransform.transform], generate: (schema, node, options) => { visit(node, { Fragment(fragment) { diff --git a/types/relay-compiler/tsconfig.json b/types/relay-compiler/tsconfig.json index 30765049c7..df96178c86 100644 --- a/types/relay-compiler/tsconfig.json +++ b/types/relay-compiler/tsconfig.json @@ -24,7 +24,7 @@ "lib/transforms/ConnectionFieldTransform.d.ts", "lib/transforms/FlattenTransform.d.ts", "lib/transforms/InlineFragmentsTransform.d.ts", - "lib/transforms/RelayApplyFragmentArgumentTransform.d.ts", + "lib/transforms/ApplyFragmentArgumentTransform.d.ts", "lib/transforms/SkipRedundantNodesTransform.d.ts", "lib/transforms/MaskTransform.d.ts", "lib/transforms/MatchTransform.d.ts",