-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GraphQL Dependencies (major) #101
base: master
Are you sure you want to change the base?
Conversation
Can't merge until |
871e465
to
b2cf4fe
Compare
They updated to |
b2cf4fe
to
fdfe547
Compare
d0fc4ce
to
3ddec14
Compare
3ddec14
to
1bb2a0a
Compare
e04ef47
to
b08252e
Compare
14bcb7d
to
265c537
Compare
38a25bf
to
67d1f4c
Compare
34c1c84
to
7d15fed
Compare
2f5fdc0
to
735ddfd
Compare
e8f0b85
to
13b6ebc
Compare
13b6ebc
to
712c14a
Compare
93bf4e2
to
f99a23c
Compare
f99a23c
to
34b0d38
Compare
cecf5d2
to
241a355
Compare
241a355
to
394a534
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
2.16.5
->3.3.0
2.8.8
->3.0.3
2.7.13
->3.2.0
^8.0.12
->^16.0.0
^1.3.0
->^2.0.0
^13.0.0
->^16.0.0
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/cli)
v3.3.0
Compare Source
Minor Changes
#9151
b7dacb21f
Thanks @'./user/schema.mappers#UserMapper',! - AddwatchPattern
config option forgenerates
sections.By default,
watch
mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.A user may want to run Codegen CLI when non-schema and non-document files are changed. Each
generates
section now has awatchPattern
option to allow more file patterns to be added to the list of patterns to watch.In the example below, mappers are exported from
schema.mappers.ts
files. We want to re-run Codegen if the content of*.mappers.ts
files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.Then, run Codegen CLI in
watch
mode:Now, updating
*.mappers.ts
files re-runs Codegen! 🎉Note:
watchPattern
is only used inwatch
mode i.e. running CLI with--watch
flag.Patch Changes
b7dacb21f
,f104619ac
]:v3.2.2
Compare Source
Patch Changes
#9086
a34cef35b
Thanks @beerose! - dependencies updates:graphql-config@^4.5.0
↗︎ (from^4.4.0
, independencies
)jiti@^1.17.1
↗︎ (todependencies
)cosmiconfig-typescript-loader@^4.3.0
↗︎ (fromdependencies
)ts-node@^10.9.1
↗︎ (fromdependencies
)#9086
a34cef35b
Thanks @beerose! - Supportcodegen.ts
in ESM projectsv3.2.1
Compare Source
Patch Changes
#9051
f7313f7ca
Thanks @saihaj! - dependencies updates:micromatch@^4.0.5
↗︎ (todependencies
)#9051
f7313f7ca
Thanks @saihaj! - only run generate for files that users have listed in config to avoid running this over every change that codegen is not supposed to executev3.2.0
Compare Source
Minor Changes
288ed0977
Thanks @saihaj! - use @parcel/watcher for improved watch functionalityPatch Changes
288ed0977
Thanks @saihaj! - dependencies updates:@parcel/watcher@^2.1.0
↗︎ (todependencies
)chokidar@^3.5.2
↗︎ (fromdependencies
)v3.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
4c422ccf6
Thanks @renovate! - dependencies updates:@whatwg-node/fetch@^0.8.0
↗︎ (from^0.6.0
, independencies
)8206b268d
,8206b268d
,a118c307a
,a3309e63e
]:v3.0.0
Compare Source
Major Changes
fd0b0c813
Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
#8883
321d5112e
Thanks @Solo-steven! - Fix PluckConfig overwrite problem.Updated dependencies [
fc79b65d4
,fd0b0c813
]:dotansimha/graphql-code-generator (@graphql-codegen/typescript)
v3.0.3
Compare Source
Patch Changes
#9150
92d86b009
Thanks @rliljest! - Properly escape enum identifiers when enumsAsConst is usedUpdated dependencies [
e56790104
,b7dacb21f
,f104619ac
,acb647e4e
,9f4d9c5a4
]:v3.0.2
Compare Source
Patch Changes
ba0610bbd
,4b49f6fbe
,b343626c9
]:v3.0.1
Compare Source
Patch Changes
8206b268d
Thanks @renovate! - dependencies updates:tslib@~2.5.0
↗︎ (from~2.4.0
, independencies
)8206b268d
,8206b268d
,8206b268d
,a118c307a
,6b6fe3cbc
,a3309e63e
]:v3.0.0
Compare Source
Major Changes
fd0b0c813
Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
fc79b65d4
,fd0b0c813
]:dotansimha/graphql-code-generator (@graphql-codegen/typescript-resolvers)
v3.2.0
Compare Source
Minor Changes
#9146
9f4d9c5a4
Thanks @eddeee888! - [typescript-resolvers] AddresolversNonOptionalTypename
config option.This is extending on
ResolversUnionTypes
implemented in https://github.com/dotansimha/graphql-code-generator/pull/9069resolversNonOptionalTypename
adds non-optional__typename
to union members ofResolversUnionTypes
, without affecting the union members' base intefaces.A common use case for non-optional
__typename
of union members is using it as the common field to work out the final schema type. This makes implementing the union's__resolveType
very simple as we can use__typename
to decide which union member the resolved object is. Without this, we have to check the existence of field/s on the incoming object which could be verbose.For example, consider this schema:
With optional
__typename
: We need to check existence of certain fields to resolve type in the union resolver:With non-optional
__typename
: Resolvers declare the type. This which gives us better TypeScript support in resolvers and simplify__resolveType
implementation:Using
resolversNonOptionalTypename
: add it intotypescript-resolvers
plugin config:Patch Changes
#9206
e56790104
Thanks @eddeee888! - FixResolversUnionTypes
being used inResolversParentTypes
Previously, objects with mappable fields are converted to Omit format that references its own type group or
ResolversTypes
orResolversParentTypes
e.g.In https://github.com/dotansimha/graphql-code-generator/pull/9069, we extracted resolver union types to its own group:
This change creates an extra
ResolversUnionParentTypes
that is referenced byResolversParentTypes
to ensure backwards compatibility:f104619ac
Thanks @saihaj! - Resolve issue with nesting fields in@provides
directive being preventedUpdated dependencies [
e56790104
,b7dacb21f
,f104619ac
,92d86b009
,acb647e4e
,9f4d9c5a4
]:v3.1.1
Compare Source
Patch Changes
#9110
ba0610bbd
Thanks @gilgardosh! - Custom mappers with placeholder will apply omit#9069
4b49f6fbe
Thanks @eddeee888! - Extract union types to ResolversUnionTypesUpdated dependencies [
ba0610bbd
,4b49f6fbe
,b343626c9
]:v3.1.0
Compare Source
Minor Changes
b13aa7449
Thanks @KGAdamCook! - Updated customResolveInfo to use the correct importType for external importsPatch Changes
8206b268d
Thanks @renovate! - dependencies updates:tslib@~2.5.0
↗︎ (from~2.4.0
, independencies
)8206b268d
,8206b268d
,8206b268d
,a118c307a
,6b6fe3cbc
,a3309e63e
]:v3.0.0
Compare Source
Major Changes
fd0b0c813
Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
#8871
fc79b65d4
Thanks @B2o5T! - eslint fixesUpdated dependencies [
fc79b65d4
,fd0b0c813
]:ravangen/graphql-rate-limit
v2.0.3
Compare Source
v2.0.2
Compare Source
extensions
to enable granular directive customization per field.v2.0.1
Compare Source
peerDependencies
overdependencies
.setState
option toRateLimitOptions
. When provided, puts the rate limit information for the current operation intocontext
. Includes an example of how to return this information in a response'sextensions
.v2.0.0
Compare Source
graphql-tools
version is now8
IOptions
renamed toRateLimitOptions
, addsname
,defaultLimit
,defaultDuration
optional arguments.Version 2 Migration
Due to interface changes with
graphql-tools
, the approach to setting up the directive has changed:jaydenseric/graphql-upload
v16.0.2
Compare Source
Patch
node:
URL scheme for Node.js builtin module imports.GraphQLUpload.mjs
.v16.0.1
Compare Source
Patch
latin1
characters in file names by setting thebusboy
optiondefParamCharset
toutf8
, fixing #328.@ts-ignore
comment.v16.0.0
Compare Source
Major
Updated the
fs-capacitor
dependency to v8, fixing #318.The type
FileUploadCreateReadStreamOptions
from theprocessRequest.mjs
module now uses types fromfs-capacitor
that are slightly more specific.The API is now ESM in
.mjs
files instead of CJS in.js
files, accessible viaimport
but notrequire
. To migrate imports:Patch
v15.0.2
Compare Source
Patch
ctx
parameter for the Koa middleware created by the functiongraphqlUploadKoa
, fromimport("koa").Context
toimport("koa").ParameterizedContext
.v15.0.1
Compare Source
Patch
graphqlUploadExpress.js
andgraphqlUploadKoa.js
within the moduleprocessRequest.js
, fixing #314.v15.0.0
Compare Source
Major
busboy
dependency to v1, fixing #311.processRequest
and the middlewaregraphqlUploadExpress
andgraphqlUploadKoa
the optionmaxFileSize
is actually 1 byte less than the amount specified.Patch
typescript
dev dependency.processRequest
use theon
method instead ofonce
to listen forerror
events on thebusboy
parser, as in edge cases the same parser could have multipleerror
events and all must be handled to prevent the Node.js process exiting with an error.processRequest
.processRequest
with a maliciously malformed multipart request.v14.0.0
Compare Source
Major
Updated Node.js support to
^14.17.0 || ^16.0.0 || >= 18.0.0
.Updated the
graphql
peer dependency to^16.3.0
.Updated the
http-errors
dependency to v2.Public modules are now individually listed in the package
files
andexports
fields.Removed the package main index module; deep imports must be used. To migrate imports:
Shortened public module deep import paths, removing the
/public/
. To migrate imports:Implemented TypeScript types via JSDoc comments, closing #282.
The
GraphQLUpload
scalar no longer uses deprecatedGraphQLError
constructor parameters.Patch
types
script.jsdoc-md
dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.hard-rejection
dev dependency. Instead, tests are run with the Node.js CLI flag--unhandled-rejections=throw
to make Node.js v14 behave like newer versions.formdata-node
dev dependency. Instead,File
andFormData
are imported fromnode-fetch
.actions/checkout
to v3.actions/setup-node
to v3..js
file extension inrequire
paths.Readable
propertyreadableEncoding
instead of_readableState.encoding
in tests.substring
instead of the deprecated string methodsubstr
in tests.license.md
MIT License file, closing #86.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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.