Conversation
🦋 Changeset detectedLatest commit: d1b4ed0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thank you for your maintenance @eddeee888, much love! ❤️ |
8f2be4e to
4e18a96
Compare
| baseType: this.scalars[schemaType.name].input, | ||
| typeName: this.scalars[schemaType.name].input, |
There was a problem hiding this comment.
These are best guess based on function name. If something's wrong, happy to change!
| baseType: this.scalars[schemaType.name].input, | ||
| typeName: this.scalars[schemaType.name].input, |
There was a problem hiding this comment.
These are best guess based on function name. If something's wrong, happy to change!
| if (this.scalars[type.name.value]?.output) { | ||
| return this.scalars[type.name.value].output; |
There was a problem hiding this comment.
These are best guess based on function name. If something's wrong, happy to change!
|
|
||
| const transformScalar = (scalar: string) => { | ||
| if (DEFAULT_SCALARS[scalar] === undefined) { | ||
| if (DEFAULT_SCALARS[scalar]?.output === undefined) { |
There was a problem hiding this comment.
These are best guess based on function name. If something's wrong, happy to change!
| it('should import DocumentNode when using noGraphQLTag', async () => { | ||
| const docs = [{ location: '', document: basicDoc }]; | ||
| const content = (await plugin( | ||
| schema, | ||
| docs, | ||
| { | ||
| noGraphQLTag: true, | ||
| }, | ||
| { | ||
| outputFile: 'graphql.tsx', | ||
| }, | ||
| )) as Types.ComplexPluginOutput; | ||
|
|
||
| expect(content.prepend).toContain(`import { DocumentNode } from 'graphql';`); | ||
| expect(content.prepend).not.toContain(`import gql from 'graphql-tag';`); | ||
| await validateTypeScript(content, schema, docs, {}); | ||
| }); |
There was a problem hiding this comment.
noGraphQLTag has been deprecated so no need for this test
1840300 to
d1b4ed0
Compare
Description
This repo has some old devDeps in packages. This PR updates them all to the latest.
Depending on the use case, some may have breaking changes.
Changes
@graphql-codegen/testingv4@graphql-codegen/flow,@graphql-codegen/flow-operationsand@graphql-codegen/flow-resolverspackages because they depend on a CJS builtflow.jsfile, and I don't know where it comes from@graphql-codegen/plugin-helpersto ^6.0.0 and@graphql-codegen/visitor-plugin-commonto ^6.0.0@graphql-codegen/flow,@graphql-codegen/flow-operationsand@graphql-codegen/flow-resolversbecause they cannot be tested (See 1.)@graphql-codegen/typescript-nestand@graphql-codegen/typescript-type-graphqlbecause it's too hard to fix the tests@graphql-codegen/typescript-react-apolloas we have plans to deprecate it. Releasing a major right now may give the wrong signal to users