Update dependency graphql-code-generator to v0.15.0#46
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency graphql-code-generator to v0.15.0#46renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
704f61e to
8cda534
Compare
8cda534 to
d616d78
Compare
Codecov Report
@@ Coverage Diff @@
## master #46 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 6 6
Lines 49 49
Branches 0 1 +1
=====================================
Hits 49 49Continue to review full report at Codecov.
|
023e8a6 to
07c0ea7
Compare
07c0ea7 to
08c0db2
Compare
150b1f5 to
2f0f07a
Compare
2f0f07a to
96ca3c1
Compare
96ca3c1 to
d6d6c82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.12.6->0.15.0Release Notes
dotansimha/graphql-codegen
v0.15.0Compare Source
Core
watchmanwithchokidar(dotansimha/graphql-code-generator#974, closes dotansimha/graphql-code-generator#973)gql-gen initcommand that helps you generate the initial.ymlconfig file (dotansimha/graphql-code-generator#954)TypeScript Template
Maybetype instead ofT | null(dotansimha/graphql-code-generator#1017, closes dotansimha/graphql-code-generator#1012)Maybetype (dotansimha/graphql-code-generator#1018, closes dotansimha/graphql-code-generator#1012)noNamepsaceconfig (dotansimha/graphql-code-generator#983, closes dotansimha/graphql-code-generator#975)TypeScript Resolvers
Add
\ninstead of\r\n(dotansimha/graphql-code-generator#935, closes dotansimha/graphql-code-generator#930)TypeScript MongoDB
🎉 🎉 🎉 NEW PLUGINS! 🎉 🎉 🎉
flowThe
graphql-codegen-flowplugin generates Flow types based on yourGraphQLSchema.It generates types for your entire schema: types, input types, enum, interface, scalar and union.
flow-documentsThe
graphql-codegen-flow-documentsplugin generates Flow types based on yourGraphQLSchemaand your GraphQL documents.It generates types for your GraphQL documents: Query, Mutation, Subscription and Fragment.
This plugin requires you to use
graphql-codegen-flowas well, because it depends on it's types.flow-resolversThe
graphql-codegen-flow-resolversplugin generates resolvers signature based on yourGraphQLSchema.It generates types for your entire schema: types, input types, enum, interface, scalar and union.
This plugin requires you to use
graphql-codegen-flowas well, because it depends on it's types.fragment-matcherThe
graphql-codegen-fragment-matchergenerates a Fragment Matcher file based on your GraphQLSchema.If you are using
apollo-clientand your schema containsinterfaceoruniondeclaration, it's recommended to fragment matcher.You can read more about it in
apollo-clientdocumentation.v0.14.5Compare Source
Core / CLI
gqltag. Upgradedgraphql-tag-pluckto v0.2.4 (dotansimha/graphql-code-generator#944)@graphql-modules/epoxyto v0.2.14 (dotansimha/graphql-code-generator#940)v0.14.4Compare Source
Core / CLI
gqltag. Upgraded graphql-tag-pluck to v0.2.3 (dotansimha/graphql-code-generator#927)generator/pull/920)\nas a new line pointer (dotansimha/graphql-code-generator#935)v0.14.3Compare Source
Core / CLI
v0.14.2Compare Source
Core / CLI
GraphQLSchemawill be built only before executing each plugin. (dotansimha/graphql-code-generator#906)Query root type must be providederrors (dotansimha/graphql-code-generator#812)--watchand--overwriteto be specified via CLI flags and override the yml config file.(dotansimha/graphql-code-generator#906)mergeSchemaFilesoption. If we are using epoxy to merge all, there is no reason to ask developers to provide it now. (related: #872)schemaFieldNameand isAliased to SelectionSetFieldNode (dotansimha/graphql-code-generator#847)TypeScript
TypeScript Resolvers
MongoDB TypeScript Models
v0.14.1Compare Source
CLI
@graphql-modules/epoxyversion to fix issues with schema merging (also fixes<EOF>issues when using the angular-apollo template, related: https://github.com/Urigo/graphql-modules/releases/tag/v0.2.4)GraphQLErrorobjectv0.14.0Compare Source
🎉🎉🎉 0.14 - New API! 🎉🎉🎉
In the previous versions of the code-generator, the configuration was confusing and passed through 3 ways: CLI flags, config file (
gql-gen.json) and environment variables.It became very confusing and difficult to use, so we decided to merge all existing configurations into a single .yml file -
codegen.yml.We decided to go with YAML file because of the ability to create a simple, but you powerful configuration files.
This is how it looks now:
The new CLI will also guide you through the changes you need to do in order to upgrade you usage to the latest. And you can find the complete migration guide here.
We tried to minimize the breaking changes as much as possible, but there are some minor changes:
Types.Configobject, as defined here:https://github.com/dotansimha/graphql-code-generator/blob/master/packages/graphql-codegen-core/src/new-types.ts#L40-L52
prependfeature - you now need to replace it withaddplugin.printTimefeature - you now need to replace it withtimeplugin.🤔 What else has changed? 🤔
General
typescripttemplate to 3 small plugin:typescript-common- in charge of enums, scalars and input types - those are usually relevant for both client side and server side code. It also exports set of utils for writing TypeScript codegen plugins.typescript-client- generates typings for query, mutation, subscription and fragment.typescript-server- generates typing for types, interfaces, unions and fields arguments.add- which basically allow you to add custom text to the output file (replacesprepend)time- prints the current time to the output file (replaceprintTime)schema-ast- prints the schema usingprint- easy way to merge GraphQL schemas and save the output. (dotansimha/graphql-code-generator#696)CLI
Core
graphql-code-generatorpackage to be loaded on the browser (by lazily loadingprettierandgraphql-import)@graphql-modules/epoxy- we are now merging GraphQL schemas using this instead ofgraphql#extendSchemaandgraphql-tools#mergeSchemasin order to preservedirectives.#importsyntax (dotansimha/graphql-code-generator#812, dotansimha/graphql-code-generator@f1e5a0c).graphqlsfiles (dotansimha/graphql-code-generator#811, dotansimha/graphql-code-generator#815)MULTIPLEandPROJECTfrom code (dotansimha/graphql-code-generator#732, dotansimha/graphql-code-generator#731)TypeScript Common Plugin
namingConventioninstead ofpascalCase(dotansimha/graphql-code-generator#691)TypeScript Server Plugin
namingConventioninstead ofpascalCase(dotansimha/graphql-code-generator#691)TypeScript Client Plugin
namingConventioninstead ofpascalCase(dotansimha/graphql-code-generator#691)?) from fields in selection set (client-side) (dotansimha/graphql-code-generator#699, dotansimha/graphql-code-generator#855)TypeScript Resolvers Plugin
Subscriptionresolvers to be aPromise(dotansimha/graphql-code-generator#800, thanks @dbuezas)Contexttype via genericsParenttype via generics (dotansimha/graphql-code-generator#756)React-Apollo Plugin
MutationFnto generated output (dotansimha/graphql-code-generator#807, dotansimha/graphql-code-generator#819)TChildPropsfor props callback (dotansimha/graphql-code-generator#803, dotansimha/graphql-code-generator#820)noNamespaces(dotansimha/graphql-code-generator#789, dotansimha/graphql-code-generator#795)Angular-Apollo Plugin
noGraphqlTagconfig (dotansimha/graphql-code-generator#831, dotansimha/graphql-code-generator#852)TypeScript MongoDB Models Plugin
v0.13.0Compare Source
Core
TypeScript Template
BREAKING CHANGES
resolversfeature move to a separate template, you can use it now asgraphql-codegen-typescript-resolvers-template. Is also includes the base TypeScript template. You can just switch tographql-codegen-typescript-resolvers-templateto use it just like before.(dotansimha/graphql-code-generator#742)
Bug Fixes
TypsScript Resolvers Templates
We moved the resolvers template to a separate template, and it includes all base template of
typescript.New Features
Context(instead of overriding it each time) (dotansimha/graphql-code-generator#743)Bug Fixes
neveras arguments type when there are no arguments (dotansimha/graphql-code-generator#741)NEW TEMPLATE!!! Generates TypeScript
moduledeclaration for.graphqlfilesdotansimha/graphql-code-generator#721
This template generates TypeScript typings for
.graphqlfiles containing GraphQL documents, and you can later consume it usinggraphql-tag/loader, and get type-check and type-safty for your imports. That also means that now when you will import from.graphqlfiles, your IDE will provide auto-complete.This template also handles
.graphqlfiles containing multiple GraphQL documents, and name the imports according to the operation name.For example, if you have a query called
MyQueryinmy-query.graphql, this template will generate the following code:Later, in your code, you can use default import, or named imports:
React-Apollo Template
Bug fixes:
Apollo-Angular Template
Bug Fixes:
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.