Skip to content

Commit

Permalink
Merge pull request #7115 from kenjis/release-4.3.1
Browse files Browse the repository at this point in the history
Prep for 4.3.1 release
  • Loading branch information
kenjis authored Jan 14, 2023
2 parents e5f321f + c0c54c0 commit 68e138f
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 16 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [v4.3.1](https://github.com/codeigniter4/CodeIgniter4/tree/v4.3.1) (2023-01-14)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.3.0...v4.3.1)

### Fixed Bugs

* fix: Email config in the .env doesn't appear as expected by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7078
* fix: TypeError in Validation is_unique/is_not_unique by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7085
* fix: revert method name resetQuery() changed accidentally by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7083
* fix: handling float in Validation Strcit Rules (greater_than, greater_than_equal_to, less_than, less_than_equal_to) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7098
* docs: add missing instruction for Config/Exceptions in PHP 8.2 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7100
* fix: Call to undefined method Composer\InstalledVersions::getAllRawData() error by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7107

### Refactoring

* [Rector] Enable AddDefaultValueForUndefinedVariableRector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/7088

## [v4.3.0](https://github.com/codeigniter4/CodeIgniter4/tree/v4.3.0) (2023-01-10)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.2.12...v4.3.0)

Expand All @@ -12,7 +28,6 @@
* fix: exceptionHandler may return invalid HTTP status code by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/6228
* feat: add Form helpers for Validation Errors by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/6384
* fix: ValidationInterface by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/6253
* [Reverted] Make Unique Index Name Unique by @sclubricants in https://github.com/codeigniter4/CodeIgniter4/pull/6516
* fix: types in database classes by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/6527
* fix: ResponseInterface (1) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/6556
* Improve BaseConnection::getForeignKeyData() and Forge::addForeignKey() by @sclubricants in https://github.com/codeigniter4/CodeIgniter4/pull/6468
Expand Down
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CodeIgniter
/**
* The current version of CodeIgniter Framework
*/
public const CI_VERSION = '4.3.0';
public const CI_VERSION = '4.3.1';

/**
* App startup time.
Expand Down
20 changes: 7 additions & 13 deletions user_guide_src/source/changelogs/v4.3.1.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
Version 4.3.1
#############

Release Date: Unreleased
Release Date: January 14, 2023

**4.3.1 release of CodeIgniter4**

.. contents::
:local:
:depth: 3

BREAKING
********

Message Changes
***************

Changes
*******

Deprecations
************

Bugs Fixed
**********

* Fixed: some environment variable (**.env**) values were not reflected in Email Config
* Fixed: TypeError in Validation ``is_unique`` and ``is_not_unique``
* Fixed: revert method name ``BaseBuilder::resetQuery()`` changed accidentally
* Fixed: handling float in Validation Strcit Rules (``greater_than``, ``greater_than_equal_to``, ``less_than``, ``less_than_equal_to``)
* Fixed: missing instruction for ``Config\Exceptions`` in PHP 8.2 in the user guide

See the repo's
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
for a complete list of bugs fixed.
2 changes: 1 addition & 1 deletion user_guide_src/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
version = '4.3'

# The full version, including alpha/beta/rc tags.
release = '4.3.0'
release = '4.3.1'

# -- General configuration ---------------------------------------------------

Expand Down
81 changes: 81 additions & 0 deletions user_guide_src/source/installation/upgrade_431.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
##############################
Upgrading from 4.3.0 to 4.3.1
##############################

Please refer to the upgrade instructions corresponding to your installation method.

- :ref:`Composer Installation App Starter Upgrading <app-starter-upgrading>`
- :ref:`Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>`
- :ref:`Manual Installation Upgrading <installing-manual-upgrading>`

.. contents::
:local:
:depth: 2

Composer Version
****************

.. important:: If you use Composer, CodeIgniter v4.3 requires
Composer 2.0.14 or later.

If you are using older version of Composer, upgrade your ``composer`` tool,
and delete the **vendor/** directory, and run ``composer update`` again.

The procedure, for example, is as follows::

> composer self-update
> rm -rf vendor/
> composer update

Mandatory File Changes
**********************

Config Files
============

app/Config/Email.php
--------------------

- If you updated **app/Config/Email.php** when upgrading to v4.3.0, you must
set the default values to ``$fromEmail``, ``$fromName``, ``$recipients``,
``$SMTPHost``, ``$SMTPUser`` and ``$SMTPPass`` to apply environment variable
(**.env**) values.
- If no default values are set, setting environment variables for them will not
be reflected in the Config object.

app/Config/Exceptions.php
-------------------------

- If you are using PHP 8.2, you need to add new properties ``$logDeprecations`` and ``$deprecationLogLevel``.

Project Files
*************

Some files in the **project space** (root, app, public, writable) received updates. Due to
these files being outside of the **system** scope they will not be changed without your intervention.

There are some third-party CodeIgniter modules available to assist with merging changes to
the project space: `Explore on Packagist <https://packagist.org/explore/?query=codeigniter4%20updates>`_.

Content Changes
===============

The following files received significant changes (including deprecations or visual adjustments)
and it is recommended that you merge the updated versions with your application:

Config
------

- app/Config/Encryption.php
- Set the default value ``''`` to ``$fromEmail``, ``$fromName``,
``$recipients``, ``$SMTPHost``, ``$SMTPUser`` and ``$SMTPPass``
to apply environment variable (**.env**) values.

All Changes
===========

This is a list of all files in the **project space** that received changes;
many will be simple comments or formatting that have no effect on the runtime:

- app/Config/Email.php
- composer.json
1 change: 1 addition & 0 deletions user_guide_src/source/installation/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ See also :doc:`./backward_compatibility_notes`.

backward_compatibility_notes

upgrade_431
upgrade_430
upgrade_4212
upgrade_4211
Expand Down

0 comments on commit 68e138f

Please sign in to comment.