Skip to content
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

Federation feature branch #10218

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Federation feature branch #10218

wants to merge 3 commits into from

Conversation

eddeee888
Copy link
Collaborator

@eddeee888 eddeee888 commented Dec 16, 2024

Related: #10206

Breaking Changes

  • No longer generate UnwrappedObject utility type, as this was used to support the wrong previously generated type.
  • Deprecate onlyResolveTypeForInterfaces because majority of use cases cannot implement resolvers in Interfaces.
  • Deprecate generateInternalResolversIfNeeded.__resolveReference because types do not have __resolveReference if they are not Federation entities or are not resolvable. Users should not have to manually set this option. This option was put in to wait for this major version.

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: e39b555

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@graphql-codegen/visitor-plugin-common Major
@graphql-codegen/typescript-resolvers Major
@graphql-codegen/plugin-helpers Major
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/typescript-operations Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/typescript Patch
@graphql-codegen/introspection Patch
@graphql-codegen/client-preset Patch
@graphql-codegen/graphql-modules-preset Patch
@graphql-codegen/cli Patch
@graphql-codegen/core Patch
@graphql-codegen/testing Patch
@graphql-codegen/add Patch
@graphql-codegen/fragment-matcher Patch
@graphql-codegen/schema-ast Patch
@graphql-codegen/time Patch

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

Copy link
Contributor

github-actions bot commented Dec 16, 2024

💻 Website Preview

The latest changes are available as preview in: https://bc4df235.graphql-code-generator.pages.dev

Copy link
Contributor

github-actions bot commented Jan 9, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 5.0.4-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/core 4.0.3-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/add 5.0.4-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/fragment-matcher 5.0.3-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 4.0.4-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/schema-ast 4.1.1-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/time 5.0.2-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 6.0.0-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 4.0.13-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 4.0.13-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 4.4.1-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 5.0.0-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 5.0.13-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 4.1.3-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 4.6.0-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 4.0.13-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/testing 3.0.5-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎
@graphql-codegen/plugin-helpers 6.0.0-alpha-20250118084248-e39b555af19f253f2b83ec46247f38c512679616 npm ↗︎ unpkg ↗︎

eddeee888 and others added 2 commits January 18, 2025 19:11
… type for reference (#10216)

* Fix reference being assigned mappers incorrectly

* Add test for federation mappers usage in reference

* Add changeset

* Remove extraneous UnwrappedObject type

* Change to major because it may break existing use cases

* Run CI on federation-fixes feature branch

* Update dev tests

* Clean up tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant