fix(deps): update nest-graphql monorepo to v14 - #704
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
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:
^13.4.0→^14.0.0^13.4.0→^14.0.0Release Notes
nestjs/graphql (@nestjs/apollo)
v14.0.0Compare Source
What's Changed
@nestjs/graphql,@nestjs/apolloand@nestjs/mercuriusare now native ES modules, and this major targets the Nest 12 release line.ESM migration
All three packages are published as pure ESM (
"type": "module", compiled with NodeNext) behind a properexportsmap. Deep imports into build internals are no longer resolvable — import from the package root:The one deep entry point that remains public is the CLI plugin:
require(esm) — CommonJS still works
You do not need to convert your app to ESM. Thanks to Node's
require(esm)support, a CommonJS Nest app can keeprequire()-ing these packages unchanged. The@nestjs/graphql/pluginentry additionally ships a CJS shim (plugin.cjs), sots-patch/ttypescriptsetups andnest-cli.jsonplugin registration continue to work as before.GraphQL Playground has been removed
@apollo/server-plugin-landing-page-graphql-playgroundis gone — GraphiQL is the only built-in landing page. GraphiQL is enabled by default outside production, so most apps need no configuration at all.playgroundsurvives as a deprecated boolean alias; the object form (playground settings) is no longer accepted:Resolution order is
graphiql→playground→ default (GraphiQL whenNODE_ENV !== 'production', Apollo's default landing page otherwise).subscriptions-transport-ws has been removed
The unmaintained
subscriptions-transport-wstransport is dropped;graphql-wsis the only supported subscriptions protocol. Thesubscriptions-transport-wskey is no longer part ofSubscriptionConfig, andinstallSubscriptionHandlers: truenow registersgraphql-ws:Clients still speaking the legacy
graphql-wssubprotocol (Apollo Client 2, oldersubscriptions-transport-wsclients) must migrate to thegraphql-transport-wsprotocol.Features
@ArgsType()names —@ArgsType('MyArgs')lets you name the generated type instead of relying on the class name.Bug fixes
fix(schema): map incoming field data back to the property name (#1096)fix(@nestjs/graphql): preserve federation directives inautoSchemaFilefix(@nestjs/graphql): keep resolvers required when skipping argsfix(graphql): makeinfonullablefix(graphql,apollo): ensure extensions are added to resolved fieldsfix(apollo): respectuseGlobalPrefixon a custom subscription pathUpgrading
@nestjs/common/@nestjs/coreto v12.playground: { ... }object config withgraphiql.subscriptions['subscriptions-transport-ws']withsubscriptions['graphql-ws'], and migrate clients to thegraphql-transport-wsprotocol.@nestjs/graphql/dist/...imports with root imports.No source changes are required for CommonJS apps beyond the above.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.