chore(deps): update dependency @graphql-codegen/client-preset to v4 #423
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:
1.2.5
->4.2.6
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/client-preset)
v4.2.6
Compare Source
Patch Changes
dfc5310
,156cc2b
,dfc5310
,b49457b
]:v4.2.5
Compare Source
Patch Changes
cd60e14
Thanks @Sojaner! - Omit__typename
from being added on the root node of a subscription when usingaddTypenameSelectionDocumentTransform
with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field)v4.2.4
Compare Source
Patch Changes
920b443
,ed9c205
]:v4.2.3
Compare Source
Patch Changes
53f270a
]:v4.2.2
Compare Source
Patch Changes
#9813
4e69568
Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568
]:v4.2.1
Compare Source
Patch Changes
#9557
48ddaeae1
Thanks @konomae! - Add eslint-disable comment to fragment-masking.tsUpdated dependencies [
7718a8113
]:v4.2.0
Compare Source
Minor Changes
d8364e045
Thanks @saihaj! - The client preset now allows the use of thefutureProofEnums
config optionPatch Changes
d8364e045
Thanks @saihaj! - dependencies updates:tslib@~2.6.0
↗︎ (from~2.5.0
, independencies
)d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
,d8364e045
]:v4.1.0
Compare Source
Minor Changes
#9562
5beee9794
Thanks @n1ru4l! - Add theaddTypenameSelectionDocumentTransform
for automatically adding__typename
selections to all objct type selection sets.This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function.
Example Usage
Patch Changes
bb1e0e96e
]:v4.0.1
Compare Source
Patch Changes
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.Updated dependencies [
2276708d0
]:v4.0.0
Compare Source
Major Changes
bb66c2a31
Thanks @n1ru4l! - Require Node.js>= 16
. Drop support for Node.js 14Minor Changes
#9196
3848a2b73
Thanks @beerose! - Add@defer
directive supportWhen a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved.
Once start using the
@defer
directive in your queries, the generated code will automatically include support for the directive.The generated type for
GetUserQuery
will have information that the fragment is incremental, meaning it may not be available right away.Apart from generating code that includes support for the
@defer
directive, the Codegen also exports a utility function calledisFragmentReady
. You can use it to conditionally render components based on whether the data for a deferredfragment is available:
#9353
d7e335b58
Thanks @charpeni! - Implement the ability the specify the hash algorithm used for persisted documents viapersistedDocuments.hashAlgorithm
Patch Changes
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:@graphql-tools/documents@^1.0.0
↗︎ (from^0.1.0
, independencies
)@graphql-tools/utils@^10.0.0
↗︎ (from^9.0.0
, independencies
)#9315
6d2de206a
Thanks @luvejo! - improve error message#9385
a7dda3546
Thanks @beerose! - Improve isFragmentReady utility function to work with noUncheckedIndexedAccess TSC setting#9196
3848a2b73
Thanks @beerose! - PassemitLegacyCommonJSImports
andisStringDocumentMode
to the client preset config#9414
ca02ad172
Thanks @beerose! - Include nested fragments in string documentModeUpdated dependencies [
4d9ea1a5a
,4d9ea1a5a
,4d9ea1a5a
,f46803a8c
,3848a2b73
,ba84a3a27
,63827fabe
,50471e651
,5aa95aa96
,ca02ad172
,e1dc75f3c
,bb66c2a31
,5950f5a68
,5aa95aa96
]:v3.0.1
Compare Source
Patch Changes
386cf9044
,402cb8ac0
]:v3.0.0
Compare Source
Major Changes
2256c8b5d
Thanks @beerose! - AddTypedDocumentNode
string alternative that doesn't require GraphQL AST on the client. This change requires@graphql-typed-document-node/core
in version3.2.0
or higher.Patch Changes
2256c8b5d
Thanks @beerose! - dependencies updates:@graphql-typed-document-node/core@3.2.0
↗︎ (from3.1.2
, independencies
)e56790104
,b7dacb21f
,f104619ac
,92d86b009
,2256c8b5d
,acb647e4e
,9f4d9c5a4
]:v2.1.1
Compare Source
Patch Changes
9430c3811
Thanks @renovate! - dependencies updates:@graphql-typed-document-node/core@3.1.2
↗︎ (from3.1.1
, independencies
)ba0610bbd
,4b49f6fbe
,b343626c9
]:v2.1.0
Compare Source
Minor Changes
#8893
a118c307a
Thanks @n1ru4l! - It is no longer mandatory to declare an empty plugins array when using a preset#8723
a3309e63e
Thanks @kazekyo! - Introduce a new feature called DocumentTransform.DocumentTransform is a functionality that allows you to modify
documents
before they are processed by plugins. You can use functions passed to thedocumentTransforms
option to make changes to GraphQL documents.To use this feature, you can write
documentTransforms
as follows:For instance, to remove a
@localOnlyDirective
directive fromdocuments
, you can write the following code:DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to
documentTransforms
.Let's create the document transform as a file:
Then, you can specify the file name as follows:
Patch Changes
#8879
8206b268d
Thanks @renovate! - dependencies updates:tslib@~2.5.0
↗︎ (from~2.4.0
, independencies
)#8995
fe2e9c7a5
Thanks @charpeni! - UsegqlTagName
for generated examples#8971
6b6fe3cbc
Thanks @n1ru4l! - Allow passing fragment documents to APIs like ApollosreadFragment
Updated dependencies [
8206b268d
,8206b268d
,8206b268d
,8206b268d
,8206b268d
,8206b268d
,8206b268d
,a118c307a
,fe2e9c7a5
,6b6fe3cbc
,6b6fe3cbc
,a3309e63e
]:v2.0.0
Compare Source
Major Changes
fd0b0c813
Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
#8885
fd0b0c813
Thanks @n1ru4l! - dependencies updates:@babel/helper-plugin-utils@^7.20.2
↗︎ (from^7.14.5
, independencies
)@babel/template@^7.20.7
↗︎ (from^7.15.4
, independencies
)#8871
fc79b65d4
Thanks @B2o5T! - eslint fixesUpdated dependencies [
fc79b65d4
,fd0b0c813
]:v1.3.0
Compare Source
Minor Changes
#8757
4f290aa72
Thanks @n1ru4l! - Add support for persisted documents.You can now generate and embed a persisted documents hash for the executable documents.
This will generate
./src/gql/persisted-documents.json
(dictionary of hashes with their operation string).In addition to that each generated document node will have a
__meta__.hash
property.#8757
4f290aa72
Thanks @n1ru4l! - Add support for embedding metadata in the document AST.It is now possible to embed metadata (e.g. for your GraphQL client within the emitted code).
You can then access the metadata via the
__meta__
property on the document node.Patch Changes
4f290aa72
Thanks @n1ru4l! - dependencies updates:@graphql-tools/documents@^0.1.0
↗︎ (todependencies
)a98198524
]:v1.2.6
Compare Source
Patch Changes
#8796
902451601
Thanks @shmax! - remove extra asterisk and add missing semicolon in generated outputUpdated dependencies [
902451601
]:Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.