Repository navigation
v1.21.1
Four fixes in the core. The first matters most: a handler that failed lost its session changes, so a logout followed by an error left the user logged in.
Three of them can change what an application sees: a middleware that wraps next in a transaction now gets a response instead of an exception, so it does not roll back on its own, as in Laravel; insert() refuses a row with other columns than the first, where a missing one used to write NULL; Cast.integer gives 0 for text with no leading number, not null.
Fixed
- An exception skipped the route middleware around it: a handler that failed lost its session changes and its
Set-Cookie, so alogoutfollowed by an error left the user logged in, and error responses had noX-RateLimit-*headers. It now becomes a response at the layer that threw it, as Laravel's pipeline does, and every outer middleware finishes. Metrics and Pulse record the real status instead of 500 for every exception. A middleware that wrapsnextin a transaction now gets a response, not an exception, so it does not roll back on its own. insert()with several rows dropped the columns the first row did not name, silently. A row with other columns than the first is now anArgumentErrorbefore any SQL runs, also when it names fewer: Laravel's statement fails too.Cast.integerturned the string168.6, as PostgreSQL returnsnumeric, intonull. It now reads strings as PHP's(int):168, and0for text with no leading number.WithoutOverlappingkept its lock in theprocessstore whateverQUEUE_UNIQUE_LOCK_STOREsaid, so workers in other processes ran the same job together. It now uses that setting.