Change8

release-1741187374134

📦 graphql-yogaView on GitHub →
3 features🔧 3 symbols

Summary

graphql-yoga 5.13.0 adds a new Instruments API for observability, supports multiple and custom‑ordered instruments plugins, and updates several Envelop and whatwg-node dependencies.

Migration Steps

  1. Install the new @envelop/instruments package (>=1.0.0) as a dependency.
  2. Update @envelop/core to version ^5.2.1.
  3. Update @whatwg-node/promise-helpers to ^1.2.4.
  4. Update @whatwg-node/server to ^0.10.0.
  5. If using custom instrument ordering, import and use composeInstruments from 'graphql-yoga'.

✨ New Features

  • Introduced Instruments API allowing code to run before, after, or around the whole execution of a GraphQL phase, enabling observability integrations.
  • Supported multiple instruments plugins; they are automatically composed in the order of the plugin array.
  • Added ability to manually compose instruments with composeInstruments for custom ordering.

🔧 Affected Symbols

createYogacomposeInstrumentsPlugin.instruments