Skip to content

Commit d217510

Browse files
authored
Merge pull request #6736 from kenjis/fix-docs-changelogs-430
docs: improve changelog 4.3.0
2 parents a4d3201 + 7e29e66 commit d217510

File tree

1 file changed

+52
-23
lines changed

1 file changed

+52
-23
lines changed

user_guide_src/source/changelogs/v4.3.0.rst

Lines changed: 52 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ Release Date: Unreleased
77

88
.. contents::
99
:local:
10-
:depth: 2
10+
:depth: 3
11+
12+
Highlights
13+
**********
14+
15+
- TBD
1116

1217
BREAKING
1318
********
@@ -42,10 +47,10 @@ Others
4247

4348
- The ``spark`` file has been changed due to a change in the processing of Spark commands.
4449
- ``InvalidArgumentException`` that is a kind of ``LogicException`` in ``BaseBuilder::_whereIn()`` is not suppressed by the configuration. Previously if ``CI_DEBUG`` was false, the exception was suppressed.
50+
- The data structure returned by :ref:`BaseConnection::getForeignKeyData() <metadata-getforeignkeydata>` has been changed.
4551
- ``RouteCollection::resetRoutes()`` resets Auto-Discovery of Routes. Previously once discovered, RouteCollection never discover Routes files again even if ``RouteCollection::resetRoutes()`` is called.
4652
- ``CITestStreamFilter::$buffer = ''`` no longer causes the filter to be registered to listen for streams. Now there
4753
is a ``CITestStreamFilter::registration()`` method for this. See :ref:`upgrade-430-stream-filter` for details.
48-
- The data structure returned by :ref:`BaseConnection::getForeignKeyData() <metadata-getforeignkeydata>` has been changed.
4954
- :php:func:`script_tag()` and :php:func:`safe_mailto()` no longer output ``type="text/javascript"`` in ``<script>`` tag.
5055

5156
.. _v430-interface-changes:
@@ -57,6 +62,7 @@ Interface Changes
5762
- Now ``RequestInterface`` extends ``MessageInterface``.
5863
- Now ``ResponseInterface`` extends ``MessageInterface``.
5964
- Added missing ``ResponseInterface::getCSP()`` (and ``Response::getCSP()``), ``ResponseInterface::getReasonPhrase()`` and ``ResponseInterface::getCookieStore()`` methods.
65+
- See also `Validation Changes`_.
6066

6167
Method Signature Changes
6268
========================
@@ -87,8 +93,8 @@ Validation
8793

8894
The return value of ``Validation::loadRuleGroup()`` has been changed ``null`` to ``[]`` when the ``$group`` is empty.
8995

90-
Others
91-
------
96+
Database
97+
--------
9298

9399
- The return types of ``CodeIgniter\Database\BasePreparedQuery::close()`` and ``CodeIgniter\Database\PreparedQueryInterface`` have been changed to ``bool`` (previously untyped).
94100
- The return type of ``CodeIgniter\Database\Database::loadForge()`` has been changed to ``Forge``.
@@ -99,10 +105,10 @@ Others
99105
- ``BaseBuilder::_updateBatch()``
100106
- The second parameter ``$values`` has changed to ``$keys``.
101107
- The third parameter ``$index`` has changed to ``$values``. The parameter type also has changed to ``array``.
102-
- The return type of ``API\ResponseTrait::failServerError()`` has been changed to ``ResponseInterface``.
103-
- The following methods have been changed to accept ``ResponseInterface`` as a parameter instead of ``Response``.
104-
- ``Debug\Exceptions::__construct()``
105-
- ``Services::exceptions()``
108+
109+
Database Forge
110+
--------------
111+
106112
- The method signature of ``Forge::dropKey()`` has changed. An additional optional parameter ``$prefixKeyName`` has been added.
107113
- The method signature of ``Forge::addKey()`` has changed. An additional optional parameter ``$keyName`` has been added.
108114
- The method signature of ``Forge::addPrimaryKey()`` has changed. An additional optional parameter ``$keyName`` has been added.
@@ -113,6 +119,14 @@ Others
113119
- ``CodeIgniter\Database\Forge::_processIndexes()``
114120
- ``CodeIgniter\Database\Forge::_processForeignKeys()``
115121

122+
Others
123+
------
124+
125+
- The return type of ``API\ResponseTrait::failServerError()`` has been changed to ``ResponseInterface``.
126+
- The following methods have been changed to accept ``ResponseInterface`` as a parameter instead of ``Response``.
127+
- ``Debug\Exceptions::__construct()``
128+
- ``Services::exceptions()``
129+
116130
Enhancements
117131
************
118132

@@ -139,19 +153,30 @@ Testing
139153
Database
140154
========
141155

142-
- SQLite :ref:`BaseConnection::getIndexData() <db-metadata-getindexdata>` now can return pseudo index named ``PRIMARY`` for `AUTOINCREMENT` column, and each returned index data has ``type`` property.
143-
- SQLSRV now automatically drops ``DEFAULT`` constraint when using :ref:`Forge::dropColumn() <db-forge-dropColumn>`.
144-
- ``BaseConnection::escape()`` now excludes the ``RawSql`` data type. This allows passing SQL strings into data.
145-
- The new method ``Forge::dropPrimaryKey()`` allows dropping the primary key on a table. See :ref:`dropping-a-primary-key`.
156+
Query Builder
157+
-------------
158+
146159
- Improved the SQL structure for ``Builder::updateBatch()``. See :ref:`update-batch` for the details.
147-
- Improved data returned by :ref:`BaseConnection::getForeignKeyData() <metadata-getforeignkeydata>`. All DBMS returns the same structure.
148-
- :php:meth:`CodeIgniter\\Database\\Forge::addForeignKey()` now includes a name parameter to manual set foreign key names. Not supported in SQLite3.
149160
- Added ``when()`` and ``whenNot()`` methods to conditionally add clauses to the query. See :ref:`BaseBuilder::when() <db-builder-when>` for details.
150-
- Added the ability to manually set index names. These methods include: ``Forge::addKey()``, ``Forge::addPrimaryKey()``, and ``Forge::addUniqueKey()``
151-
- Fixed ``Forge::dropKey()`` to allow droping unique indexes. This required the ``DROP CONSTRAINT`` SQL command.
152161
- Added ``upsert()`` and ``upsertBatch()`` methods to QueryBuilder. See :ref:`upsert-data`.
153-
- ``BasePreparedQuery::close()`` now deallocates the prepared statement in all DBMS. Previously, they were not deallocated in Postgre, SQLSRV and OCI8. See :ref:`database-queries-stmt-close`.
162+
163+
Forge
164+
-----
165+
154166
- Added ``Forge::processIndexes()`` allowing the creation of indexes on an existing table. See :ref:`adding-keys` for the details.
167+
- Added the ability to manually set index names. These methods include: ``Forge::addKey()``, ``Forge::addPrimaryKey()``, and ``Forge::addUniqueKey()``
168+
- The new method ``Forge::dropPrimaryKey()`` allows dropping the primary key on a table. See :ref:`dropping-a-primary-key`.
169+
- Fixed ``Forge::dropKey()`` to allow dropping unique indexes. This required the ``DROP CONSTRAINT`` SQL command.
170+
- :php:meth:`CodeIgniter\\Database\\Forge::addForeignKey()` now includes a name parameter to manual set foreign key names. Not supported in SQLite3.
171+
- SQLSRV now automatically drops ``DEFAULT`` constraint when using :ref:`Forge::dropColumn() <db-forge-dropColumn>`.
172+
173+
Others
174+
------
175+
176+
- ``BaseConnection::escape()`` now excludes the ``RawSql`` data type. This allows passing SQL strings into data.
177+
- Improved data returned by :ref:`BaseConnection::getForeignKeyData() <metadata-getforeignkeydata>`. All DBMS returns the same structure.
178+
- SQLite :ref:`BaseConnection::getIndexData() <db-metadata-getindexdata>` now can return pseudo index named ``PRIMARY`` for `AUTOINCREMENT` column, and each returned index data has ``type`` property.
179+
- ``BasePreparedQuery::close()`` now deallocates the prepared statement in all DBMS. Previously, they were not deallocated in Postgre, SQLSRV and OCI8. See :ref:`database-queries-stmt-close`.
155180

156181
Model
157182
=====
@@ -163,9 +188,9 @@ Model
163188
Libraries
164189
=========
165190

166-
- Added option version HTTP2 in :ref:`CURLRequest <curlrequest-version>`.
167191
- Added methods ``replace()``, ``addLineAfter()`` and ``addLineBefore()`` to modify files in Publisher. See :ref:`Publisher <publisher-modifying-files>` for details.
168192
- Now **Encryption** can decrypt data encrypted with CI3's Encryption. See :ref:`encryption-compatible-with-ci3`.
193+
- Added option version HTTP2 in :ref:`CURLRequest <curlrequest-version>`.
169194

170195
Helpers and Functions
171196
=====================
@@ -185,14 +210,22 @@ Others
185210
======
186211

187212
- Added ``$routes->useSupportedLocalesOnly(true)`` so that the Router returns 404 Not Found if the locale in the URL is not supported in ``Config\App::$supportedLocales``. See :ref:`Localization <localization-in-routes>`
188-
- Now you can specify Composer packages to auto-discover manually. See :ref:`Code Modules <modules-specify-composer-packages>`.
189213
- Added new ``$routes->view()`` method to return a the view directly. See :ref:`View Routes <view-routes>`.
190214
- View Cells are now first-class citizens and can located in the **app/Cells** directory. See :ref:`View Cells <app-cells>`.
191215
- Add ``Controlled Cells`` that provide more structure and flexibility to your View Cells. See :ref:`View Cells <controlled-cells>` for details.
216+
- Now you can specify Composer packages to auto-discover manually. See :ref:`Code Modules <modules-specify-composer-packages>`.
217+
218+
Message Changes
219+
***************
220+
221+
- Updated English language strings to be more consistent.
192222

193223
Changes
194224
*******
195225

226+
- Config
227+
- All atomic type properties in ``Config`` classes have been typed.
228+
- Changed the default setting to not redirect when a CSRF check fails so that it is easy to see that it is a CSRF error.
196229
- DBDebug
197230
- To be consistent in behavior regardless of environments, ``Config\Database::$default['DBDebug']`` and ``Config\Database::$tests['DBDebug']`` has been changed to ``true`` by default. With these settings, an exception is always thrown when a database error occurs.
198231
- Now ``DatabaseException`` thrown in ``BaseBuilder`` is thrown if ``$DBDebug`` is true. Previously, it is thrown if ``CI_DEBUG`` is true.
@@ -204,10 +237,6 @@ Changes
204237
- The ``CodeIgniter\CLI\CommandRunner`` class has been removed due to a change in Spark commands processing.
205238
- The system route configuration file ``system/Config/Routes.php`` has been removed.
206239
- The route configuration file ``app/Config/Routes.php`` has been changed. Removed include of system routes configuration file.
207-
- Config
208-
- All atomic type properties in ``Config`` classes have been typed.
209-
- Changed the default setting to not redirect when a CSRF check fails so that it is easy to see that it is a CSRF error.
210-
- Updated English language strings to be more consistent.
211240

212241
Deprecations
213242
************

0 commit comments

Comments
 (0)