Skip to content

Commit

Permalink
Add release for 5.1.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 21, 2024
1 parent a9c147b commit c43374f
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
84 changes: 84 additions & 0 deletions 2024/05/20/cakephp_510RC1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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`` or
``write`` are present in the config regardless of values.
- FormHelper no longer generates ``aria-required`` attributes on input elements
that also have the ``required`` attribute set. The ``aria-required`` attribute
is redundant on these elements and generates HTML validation warnings. If you
are using ``aria-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`` and
``Cell.afterAction``.
- ``Validation::enum()`` and ``Validator::enum()`` were added. These validation
methods simplify validating backed enum values.
- ``Validation::enumOnly()`` and ``Validation::enumExcept()`` were added to
check for specific cases and further simplify validating backed enum values.
- ``Client`` now emits ``HttpClient.beforeSend`` and ``HttpClient.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 the
``Server.terminate`` event which can be used to run logic after the response
has been sent in fastcgi environments. In other environments the
``Server.terminate`` event runs *before* the response has been sent.


What's new in 5.1.0
-------------------

The `migration guide
<https://book.cakephp.org/5.next/en/appendices/5-1-migration-guide.html>`_ 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 <https://book.cakephp.org/5.next/en/>`_ 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.

Download a `packaged release on github
<https://github.com/cakephp/cakephp/releases>`_.

.. author:: markstory
.. categories:: news
.. tags:: release,news
1 change: 1 addition & 0 deletions master.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Sitemap
.. toctree::
:maxdepth: 1

2024/05/20/cakephp_510RC1
2024/05/10/cakephp_508
2024/04/27/cakephp_455
2024/04/05/cakephp_507
Expand Down

0 comments on commit c43374f

Please sign in to comment.