Relay v2.0.0 Release Notes

Release Date: 2019-03-31 // about 3 years ago
  • The 2.x series introduces a major change to the way Relay handles middleware. While the 1.x series featured a "double pass" signature (function (request, response, next)), the 2.x series is fully-compatible with PSR-15's "single pass" or "lambda" recommendation (function (request, handler) : response).

    Note that middleware designed for Relay 1.x are not compatible with PSR-15 server request handlers ("dispatchers") like Relay 2.x.