Skip to content

v1.21.1

Choose a tag to compare

@github-actions github-actions released this 31 Oct 15:11
· 1560 commits to main since this release
ef9ae07

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 a logout followed by an error left the user logged in, and error responses had no X-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 wraps next in 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 an ArgumentError before any SQL runs, also when it names fewer: Laravel's statement fails too.
  • Cast.integer turned the string 168.6, as PostgreSQL returns numeric, into null. It now reads strings as PHP's (int): 168, and 0 for text with no leading number.
  • WithoutOverlapping kept its lock in the process store whatever QUEUE_UNIQUE_LOCK_STORE said, so workers in other processes ran the same job together. It now uses that setting.