Releases: cakephp/cakephp
CakePHP 5.1.0-RC1 released
The CakePHP core team is happy to announce the first release candidate for CakePHP 5.1.0. The 5.1 release includes several behavior changes to increase correctness and new features. The highlights of those include:
- Connection now creates unique read and write drivers if the keys
read
orwrite
are present in the config regardless of values. - FormHelper no longer generates
aria-required
attributes on input elements that also have therequired
attribute set. Thearia-required
attribute is redundant on these elements and generates HTML validation warnings. If you are usingaria-required
attribute in styling or scripting you'll need to update your application. - Adding associations with duplicate names will now raise exceptions. You can use
$table->associations()->has()
to conditionally define associations if required. - View cells now emit events around their actions
Cell.beforeAction
andCell.afterAction
. Validation::enum()
andValidator::enum()
were added. These validation methods simplify validating backed enum values.Validation::enumOnly()
andValidation::enumExcept()
were added to check for specific cases and further simplify validating backed enum values.Client
now emitsHttpClient.beforeSend
andHttpClient.afterSend
events when requests are sent. You can use these events to perform logging, caching or collect telemetry.Http\Server::terminate()
was added. This method triggers theServer.terminate
event which can be used to run logic after the response has been sent in fastcgi environments. In other environments theServer.terminate
event runs before the response has been sent.
What's new in 5.1.0
The migration guide has a complete list of what's new in 5.1.0. We recommend you give that page a read when upgrading as it notes the behavior changes present in 5.1.0.
How you Can Help
You can help deliver 5.1.0 by contributing in one of many ways:
- Check the documentation for mistakes, outdated, unclear or broken examples. We've been trying to update the documentation as we go, but there are likely examples or sections we've missed.
- Try it out! Give CakePHP 5.1.0 a test drive. Let us know how upgrading went and if there were any rough spots.
- File issues for regressions in existing features, or suggest new features. Even if those features don't make it into 5.1.0, we're early in the process of planning 5.2 and value community feedback.
Contributors to 5.1.0-RC1
Thank you to all the contributors that have contributed to this release:
-
Adam Halfar
-
ADmad
-
Fernando Herrero
-
Frank de Graaf (Phally)
-
J.Brabec
-
Jozef Grencik
-
Kevin Pfeifer
-
KrzysiekNDS
-
Mark Scherer
-
Mark Story
-
Maximilian Ruta
-
ndm2
-
othercorey
-
Robert Pustułka
As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.
CakePHP 5.0.8 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 5.0.8. This is a maintenance release for the 5.0 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 5.0.8. See the changelog for every commit.
- Added connection role to logged queries.
- Improved compatibility with 4.x finders. You can now call finder with named parameters but have the finder implemented with an
$options
array. - Eagerloaders now propagate connection roles.
- Error logs from fallback failures in
WebExceptionRenderer
now include stack traces making debugging easier. - Update documentation for
SelectQuery
. cake i18n extract
now allows--path
and--plugin
to be provided at the same time.
Contributors to 5.0.8
Thank you to all the contributors that helped make this release happen:
- ADmad
- Alejandro Ibarra
- Corey Taylor
- Jonathan Guillot
- Mark Scherer
- Mark Story
- othercorey
- wowDAS Markus Ramšak
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 4.5.5 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 4.5.5. This is a maintenance release for the 4.4 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 4.5.5. See the changelog for every commit.
- Fix problem formatting milliseconds using i18nFormat.
Contributors to 4.5.5
Thank you to all the contributors that helped make this release happen:
- freefri
- Mark Story
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 5.0.7 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 5.0.7. This is a maintenance release for the 5.0 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 5.0.7. See the changelog for every commit.
- Add logging to error rendering failures. When error rendering fails, CakePHP will log error messages.
- Fix file handle leak in
StubConsoleInput
. - Reverted recent changes in connection aliasing. The test runner will automatically alias all live connections to
test_
prefixed ones. - Improved enum support in
FormHelper
. IntegrationTestTrait
no longer adds security tokens to GET requests with data.- Improved response assertion method output. Failure messages will now include the response body.
Contributors to 5.0.7
Thank you to all the contributors that helped make this release happen:
- ADmad
- KrzysiekNDS
- Mark Scherer
- Mark Story
- othercorey
- RoboSchmied
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 5.0.6 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 5.0.6. This is a maintenance release for the 5.0 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 5.0.6. See the changelog for every commit.
- Fix validation of
ChronosTime
instances to be considered valid by thetime
validation method. - Allow
Collection::groupBy()
to work withEnum
values. - Improve display of console exceptions in production mode.
- Fix
Hash::insert()
with{s}
placeholders and attribute conditions on uneven datasets. - Fix potentially leaking file descriptor in
StubConsoleInput
. - Fixed formatting error of datetimes with microseconds.
- Fixed parsing of datetimes of microseconds.
Contributors to 5.0.6
Thank you to all the contributors that helped make this release happen:
- ADmad
- freefri
- Kevin Pfeifer
- Mark Scherer
- Mark Story
- othercorey
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 4.5.4 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 4.5.4. This is a maintenance release for the 4.4 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 4.5.4. See the changelog for every commit.
- Fix
Hash::insert()
and paths containing{s}
and conditions, and data where all values after{s}
are not arrays.
Contributors to 4.5.4
Thank you to all the contributors that helped make this release happen:
- Mark Story
- othercorey
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 5.0.5 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 5.0.5. This is a maintenance release for the 5.0 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 5.0.5. See the changelog for every commit.
- Fixed dirty state tracking for entities that use
TranslateBehavior
and useResultSet
methods to mutate records. - Improved marshalling nullable enum values from strings.
- Shifted the logic for getting view variables to serialize into
SerializedView::serializeKeys()
so it is easier to override. - Improved session gc time when server side idle timeouts are disabled. PHP defaults are now used, and you can configure this with application configuration as well.
CollectionTrait::combine()
is now compatible with enum keys.- Fixed an array to string warning in
EventFiredWith
constraints. - Improve API documentation.
- Reduce potential for
empty
cloaking throrugh refactoring. - Fixed a regression with converting
Date
objects passed intodatetime
columns via the ORM into query parameters. - Fixed type error in
IntegrationTestTrait
when adding tokens to requests.
Contributors to 5.0.4
Thank you to all the contributors that helped make this release happen:
- Adam Halfar
- ADmad
- dependabot[bot]
- fabian-mcfly
- Ishan Vyas
- Kevin Pfeifer
- Mark Scherer
- Mark Story
- othercorey
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 4.5.3
The CakePHP core team is happy to announce the immediate availability of CakePHP 4.5.3. This is a maintenance release for the 4.4 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 4.5.3. See the changelog for every commit.
- Configuration based path keys are normalized to integer keys now.
- Update requirements to be compatible with
paragonie/csp-builder:^3
. - Cookie assertion methods are now compatible with
RedirectResponse
. - Fixed dev error page rendering in PHP8.3
- CI matrix now includes PHP8.3
- Improve assertion failure message of
EventFiredWith
constraint.
Contributors to 4.5.3
Thank you to all the contributors that helped make this release happen:
- Fabian Friedel
- fabian-mcfly
- Ishan Vyas
- Mark Scherer
- Mark Story
- othercorey
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 5.0.4
The CakePHP core team is happy to announce the immediate availability of CakePHP 5.0.4. This is a maintenance release for the 5.0 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 5.0.4. See the changelog for every commit.
- Improve support for template paths being defined as an associative array.
- Improved output of
cache_clear
commands. - Updated Sqlite mapping for
binaryuuid
to useUUID_TEXT
. - The
Exception.beforeRender
event can now prevent default rendering from occurring by setting a result and stopping the event. - Fixed regression in SQLite schema reflection for older versions of SQLite.
- Fixed off by one errors in code location for
dd()
. - Updated dependency on paragonie/csp-builder to accept 3.0
- The cookie assertions in
IntegrationTestTrait
now work withRedirectResponse
values. - Fixed dev error page rendering in PHP8.3
- Improved display of enum values in FormHelper.
Contributors to 5.0.4
Thank you to all the contributors that helped make this release happen:
- ADmad
- Chris Nizzardini
- fabian-mcfly
- Jens Mischer
- Jorge González
- Kevin Pfeifer
- Marc de Lima Lucio
- Marc Würth
- Mark Scherer
- Mark Story
- othercorey
- Robert Pustułka
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
CakePHP 4.5.2 released
The CakePHP core team is happy to announce the immediate availability of CakePHP 4.5.2. This is a maintenance release for the 4.4 branch that fixes several community reported issues.
Bugfixes
You can expect the following changes in 4.5.2. See the changelog for every commit.
- Fix regression in plugin translation file loading order.
- Marshalling Date values no longer sets a timezone.
- Fix inconsistency between
Error.beforeRender
andException.beforeRender
. You can now stop this event to prevent output being rendered, or set your own result to bypass the default renderer just like error handling. - Added more deprecation annotations for easier upgrading to 5.x.
- Fix off by one errors in
dd()
.
Contributors to 4.5.2
Thank you to all the contributors that helped make this release happen:
- ADmad
- Jens Mischer
- Kevin Pfeifer
- Marc de Lima Lucio
- Marc Würth
- Mark Scherer
- Mark Story
- othercorey
- Robert Pustułka
As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.