●Change8

@apollo/client@4.1.0-alpha.5

πŸ“¦ apollo-client
πŸ› 3 fixesπŸ”§ 3 symbols

Summary

Patch release fixing incremental chunk error handling in `ErrorLink` and improving `@stream` processing with `Defer20220824Handler` to prevent runtime errors.

πŸ› Bug Fixes

  • Fixed an issue where errors parsed from incremental chunks in `ErrorLink` could throw when using the `GraphQL17Alpha9Handler`.
  • Added handling for `@stream` payloads that send multiple items in the same chunk when using the `Defer20220824Handler`.
  • Fixed an edge case in `Defer20220824Handler` where an error for a `@stream` item that bubbles to the `@stream` boundary (e.g., a `null` for a non‑null array item) would write items from future chunks to the wrong array index; now the `@stream` field is ignored and future updates are dropped to prevent runtime errors.

πŸ”§ Affected Symbols

ErrorLinkGraphQL17Alpha9HandlerDefer20220824Handler