github Netflix/dgs-framework v6.0.0

latest releases: v9.1.2, v9.1.1, v9.1.0...
20 months ago

What’s Changed

The latest 6.0.0 release now supports Spring Boot 3.0.0.
This is a breaking change and requires the application to be using Spring Boot 3.0.0 and JDK 17.
We will continue to maintain a separate 5.x.x release train for supporting Spring Boot 2.7 for the near future for any minor bug fixes and improvements.

Only update to 6.x if your application is on Spring Boot 3! If your application is on Spring Boot 2.7, use the 5.x release train!!!

The following versions are updated:

  • Spring Boot 3.0.0
  • Spring Framework 6.0.3
  • Spring Security 6.0.1
  • Spring Cloud 2022.0.0
  • JDK target 17

Other Breaking Changes

Use GraphQLContext instead of DgsContext for dataloaders

Previously, the DGS framework passed DgsContext to dataloaders as context.
CustomContext is contained in DgsContext, and is generally retrieved with a static helper.

MyContext context = DgsContext.getCustomContext(environment);

The helper DgsContext::getCustomContext is able to pull MyContext from GraphQLContext, so this is non-breaking for users that employ the recommended helper method.
This is potentially a breaking change for any user code that coerces dataloader context to DgsContext manually.
Updating to using the recommended getCustomContext should fix any resulting issues.

MyContext context = (DgsContext)environment.context;

Special thanks to @Stuckya for contributions towards this Spring Boot 3 release.

PRs

Don't miss a new dgs-framework release

NewReleases is sending notifications on new releases.