CakePHP v4.0.5 Release Notes

Release Date: 2020-03-29 // 11 days ago
  • πŸš€ The CakePHP core team is happy to announce the immediate availability of CakePHP 4.0.5. This is a maintenance release for the 4.0 branch that fixes several community reported issues.

    πŸ›  Bugfixes

    πŸ‘€ You can expect the following changes in 4.0.5. See the changelog for every commit.

    • SMTP delivery failure exceptions now include the error text received from the destination server.
    • πŸ‘Œ Improved API documentation.
    • βͺ Table::saveMany() now correctly rollbacks a transaction when an entity other than the first fails to save because of application rules or database failure.
    • ConsoleIntegrationTestTrait now uses mocked _out and _err objects if they have been set.
    • ConsoleInput::read() now handles false values from fgets() and readline.
    • πŸ‘ CounterCacheBehavior now handles null association values better when custom finders are used.
    • Http\Response now allows usage of unassigned HTTP status codes between 100 and 599.
    • πŸ”Š Binary data in SQL query logs is now encoded as hexadecimal to improve readability of query logs.

    Contributors to 4.0.5

    πŸš€ Thank you to all the contributors that helped make this release happen:

    • ADmad
    • Corey Taylor
    • Edgaras JanuΕ‘auskas
    • Jad Bitar
    • Mark Scherer
    • Mark Story
    • Victor Eduardo de Assis
    • nook24

    πŸ“š As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.


Previous changes from v4.0.4

  • πŸš€ The CakePHP core team is happy to announce the immediate availability of CakePHP 4.0.4. This is a maintenance release for the 4.0 branch that fixes several community reported issues.

    πŸ›  Bugfixes

    πŸ‘€ You can expect the following changes in 4.0.4. See the changelog for every commit.

    • πŸ”€ Http\Response::$_contenType was removed as it was often wrong and out of sync with the getHeader('Content-Type') value.
    • πŸ‘ NumberHelper::precision() had the $options parameter added so it can better wrap Number::precision().
    • βž• Add timestamptimezone mapping to FormHelper and DateTimeWidget.
    • βœ… IntegrationTestCaseTrait once again raises exceptions when disableErrorHandlerMiddleware() is used.
    • datetime-local values are rendered with milliseconds by DateTimeWidget only when step size is less than 1.
    • πŸ‘Œ Improved API documentation.
    • πŸ‘Œ Improved missing template exception messages. They now list out the full path of every attempted file.
    • ⚑️ CounterCacheBehavior no longer attempts to update values when the foreign key is null.
    • πŸ‘» Loading optional associations with leftJoinWith() and contain() no longer raises an exception about missing association data.
    • TextHelper::autoParagraph() now accepts null.
    • HtmlHelper::para() now accepts null.
    • πŸ’… Validation::decimal() now handles Polish formatted numbers correctly.
    • HasMany associations now set invalid messages and errors on the parent entity when non-atomic saves fail.
    • πŸ‘Œ Improved missing database exception message.
    • Logged fatal errors now include the file and line position.

    Contributors to 4.0.4

    πŸš€ Thank you to all the contributors that helped make this release happen:

    • ADmad
    • Corey Taylor
    • Justin Slamka
    • Mark Scherer
    • Mark Story
    • Michal
    • Rachman Chavik
    • Remi Collet
    • Victor Eduardo de Assis

    πŸ“š As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.