Skip to content

Implements the new @defer draft spec#9095

Merged
michaelstaib merged 50 commits intomainfrom
mst/defer-v2
Feb 14, 2026
Merged

Implements the new @defer draft spec#9095
michaelstaib merged 50 commits intomainfrom
mst/defer-v2

Conversation

@michaelstaib
Copy link
Member

@michaelstaib michaelstaib commented Feb 6, 2026

This PR implements the new defer specification draft and replaces the older defer spec implementation.

  • This PR supports now the new result structure for incremental delivery
  • Improves DataLoader performance when using defer and stream
  • Skips defer for fields that have no async impact.

Fixes #8922, #7323, #6629, #5386, #5478

@michaelstaib michaelstaib self-assigned this Feb 6, 2026
@michaelstaib michaelstaib added this to the HC-16.0.0 milestone Feb 6, 2026
- Removed unnecessary using directives and cleaned up code in IWebSocketPayloadFormatter.
- Enhanced JsonResultFormatter to include JsonNullIgnoreCondition for better null handling.
- Updated JsonResultFormatterOptions to utilize the new null ignore condition.
- Modified various test files to include necessary references for the new null handling features.
- Introduced JsonNullIgnoreCondition enum to specify when null values should be ignored during serialization.
- Implemented logic in JsonWriter to handle deferred property names and null value ignoring based on the specified condition.
- Added comprehensive tests for JsonWriter to validate behavior with different null ignore conditions.
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@ChilliCream ChilliCream deleted a comment from github-actions bot Feb 14, 2026
@michaelstaib michaelstaib merged commit 103ee4c into main Feb 14, 2026
114 of 117 checks passed
@michaelstaib michaelstaib deleted the mst/defer-v2 branch February 14, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@defer inside @stream makes HC fail with Unexpected Execution Error

1 participant