Skip to content

Commit cf440fa

Browse files
committed
docs: categorize changelog v4.2.0
1 parent 0388d54 commit cf440fa

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

user_guide_src/source/changelogs/v4.2.0.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@ Release Date: Not Released
1212
BREAKING
1313
********
1414

15+
Method Signature Changes
16+
========================
17+
1518
- The method signature of ``CodeIgniter\Database\BaseBuilder::join()`` and ``CodeIgniter\Database\*\Builder::join()`` have been changed.
1619
- The method signature of ``Validation::setRule()`` has been changed. The ``string`` typehint on the ``$rules`` parameter was removed. Extending classes should likewise remove the parameter so as not to break LSP.
1720
- The method signature of ``CodeIgniter\CLI\CommandRunner::_remap()`` has been changed to fix a bug.
21+
- The default parameter values for ``Service::reset()`` and ``CIUnitTestCase::resetServices()`` have been changed from ``false`` to ``true``. This is to eliminate unexpected problems during testing, such as ``lang()`` not getting translated messages.
22+
23+
Behavior Changes
24+
================
25+
1826
- The ``CodeIgniter\CodeIgniter`` class has a new property ``$context`` and it must have the correct context at runtime. So the following files have been changed:
1927
- ``public/index.php``
2028
- ``spark``
@@ -24,7 +32,6 @@ BREAKING
2432
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
2533
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
2634
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
27-
- The default parameter values for ``Service::reset()`` and ``CIUnitTestCase::resetServices()`` have been changed from ``false`` to ``true``. This is to eliminate unexpected problems during testing, such as ``lang()`` not getting translated messages.
2835

2936
Enhancements
3037
************
@@ -75,6 +82,14 @@ Database
7582
- ``DBForge::addField()`` default value raw SQL string support. See :ref:`forge-addfield-default-value-rawsql`.
7683
- QueryBuilder. Union queries. See :ref:`query-builder-union`.
7784

85+
Helpers and Functions
86+
=====================
87+
88+
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
89+
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
90+
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
91+
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
92+
7893
Others
7994
======
8095

@@ -85,11 +100,7 @@ Others
85100
- See :ref:`content-security-policy` for details.
86101
- New :doc:`../outgoing/view_decorators` allow modifying the generated HTML prior to caching.
87102
- Added Validation Strict Rules. See :ref:`validation-traditional-and-strict-rules`.
88-
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
89-
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
90103
- Added support for webp files to **app/Config/Mimes.php**.
91-
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
92-
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
93104
- RouteCollection::addRedirect() can now use placeholders.
94105
- Debugbar enhancements
95106
- Debug toolbar is now using ``microtime()`` instead of ``time()``.

0 commit comments

Comments
 (0)