|
| 1 | +############################# |
| 2 | +Upgrading from 4.1.5 to 4.1.6 |
| 3 | +############################# |
| 4 | + |
| 5 | +.. contents:: |
| 6 | + :local: |
| 7 | + :depth: 2 |
| 8 | + |
| 9 | +Breaking Changes |
| 10 | +**************** |
| 11 | + |
| 12 | +Validation result changes |
| 13 | +========================= |
| 14 | + |
| 15 | +The previous version of the Validation can't handle an array item. |
| 16 | +Because of the bug fix, the validation results may be different, |
| 17 | +or raise an TypeError. |
| 18 | +But the previous version's results are probably incorrect. |
| 19 | + |
| 20 | +And the Validation separated the validation process of multiple field |
| 21 | +like ``contacts.*.name`` and single field. |
| 22 | +When a single field has an array data, the previous version validates each element of the array. |
| 23 | +The validation rule gets an element of the array as the parameter. |
| 24 | +On the other hand, the current version passes the array to the validation rule as a whole. |
| 25 | + |
| 26 | +Breaking Enhancements |
| 27 | +********************* |
| 28 | + |
| 29 | +Project Files |
| 30 | +************* |
| 31 | + |
| 32 | +Numerous files in the project space (root, app, public, writable) received updates. Due to |
| 33 | +these files being outside of the system scope they will not be changed without your intervention. |
| 34 | +There are some third-party CodeIgniter modules available to assist with merging changes to |
| 35 | +the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_. |
| 36 | + |
| 37 | +.. note:: Except in very rare cases for bug fixes, no changes made to files for the project space |
| 38 | + will break your application. All changes noted here are optional until the next major version, |
| 39 | + and any mandatory changes will be covered in the sections above. |
| 40 | + |
| 41 | +Content Changes |
| 42 | +=============== |
| 43 | + |
| 44 | +The following files received significant changes (including deprecations or visual adjustments) |
| 45 | +and it is recommended that you merge the updated versions with your application: |
| 46 | + |
| 47 | +* |
| 48 | + |
| 49 | +All Changes |
| 50 | +=========== |
| 51 | + |
| 52 | +This is a list of all files in the project space that received changes; |
| 53 | +many will be simple comments or formatting that have no effect on the runtime: |
| 54 | + |
| 55 | +* |
0 commit comments