v4.2.7 (2022-10-06)
- fix: make Time::__toString() database-compatible on any locale by @kenjis in codeigniter4#6461
- fix: set_cookie() does not use Config\Cookie values by @kenjis in codeigniter4#6544
- fix:
required_without
rule logic inValidation
class. by @ping-yee in codeigniter4#6589
- fix: typos in messages in Language/en/Email.php by @kenjis in codeigniter4#6517
- fix: table attribute cannot applied on td element by @ddevsr in codeigniter4#6538
- add: set up "script_name" to handle every request by index.php file. by @ping-yee in codeigniter4#6522
- fix: CSP autoNonce = false by @kenjis in codeigniter4#6570
- fix: inconsistent new line view in
date_helper
by @ddevsr in codeigniter4#6582 - fix: safe_mailto() does not work with CSP by @kenjis in codeigniter4#6604
- fix: script_tag() does not work with CSP by @kenjis in codeigniter4#6611
- fix:
$cleanValidationRules
does not work in Model updates by @kenjis in codeigniter4#6588 - Fixed a bug that URLs with trailing newlines do not become invalid in validation. by @ytetsuro in codeigniter4#6618
- fix: missing
valid_json
in Validation Language by @ddevsr in codeigniter4#6624 - fix: default values for Session Redis Handler by @kenjis in codeigniter4#6614
- Update coding-standards version by @paulbalandan in codeigniter4#6537
- chore: update ThirdParty Kint to 4.2.2 by @kenjis in codeigniter4#6583
- Refactor: CodeIgniter::generateCacheName() by @iRedds in codeigniter4#6498
- refactor: replace
global $app
with Services by @ping-yee in codeigniter4#6524 - refactor: small refactoring in view() by @kenjis in codeigniter4#6546
- refactor: replace utf8_encode() with mb_convert_encoding() by @kenjis in codeigniter4#6564
- refactor: make $precision int in View Filter round by @kenjis in codeigniter4#6566
v4.2.6 (2022-09-04)
- fix: AssertionError occurs when using Validation in CLI by @daycry in codeigniter4#6452
- fix: [Validation] JSON data may cause "Array to string conversion" error by @kenjis in codeigniter4#6467
- Fix fatal error gets turned to
0
severity on shutdown handler by @paulbalandan in codeigniter4#6472 - Fix redis cache increment/decrement methods by @paulbalandan in codeigniter4#6473
- Fix broken caching system when array of allowed parameters used by @JavaDeveloperKiev in codeigniter4#6475
- fix: Strict Validation Rules greater_than/less_than by @kenjis in codeigniter4#6492
- refactor: fix PHPStan errors by @kenjis in codeigniter4#6470
- Bump
friendsofphp/php-cs-fixer
to~3.11.0
by @paulbalandan in codeigniter4#6471 - Fix overlooked coding style violations by @paulbalandan in codeigniter4#6491
v4.2.5 (2022-08-28)
- Add $cached param to BaseConnection::tableExists() by @sclubricants in codeigniter4#6364
- Fix validation custom error asterisk field by @ping-yee in codeigniter4#6378
- fix: Email class may not log an error when it fails to send by @kenjis in codeigniter4#6362
- fix: Response::download() causes TypeError by @kenjis in codeigniter4#6361
- fix: command usages by @kenjis in codeigniter4#6402
- Fix: The subquery adds a prefix for the table alias. by @iRedds in codeigniter4#6390
- Fix Sqlite Table::createTable() by @sclubricants in codeigniter4#6396
- docs: add missing
@method
groupBy()
in Model by @kenjis in codeigniter4#6433 - fix: CLIRequest Erros in CLI by @kenjis in codeigniter4#6421
- fix: Call to undefined method CodeIgniter\HTTP\CLIRequest::getLocale() by @kenjis in codeigniter4#6442
- chore: update Kint to 4.2.0 by @kenjis in codeigniter4#6436
- refactor: add test for DownloadResponse by @kenjis in codeigniter4#6375
- refactor: ValidationTest by @kenjis in codeigniter4#6382
- refactor: remove unused
_parent_name
in BaseBuilder::objectToArray() by @kenjis in codeigniter4#6427 - Remove unneeded abstract
handle()
method by @paulbalandan in codeigniter4#6434
v4.2.4 (2022-08-13)
Hotfix release to fix download errors (see codeigniter4#6361)
v4.2.3 (2022-08-06)
- SECURITY: Improve CSRF protection (for Shield CSRF security fix)
v4.2.2 (2022-08-05)
- fix: when running on CLI, two Request objects were used in the system by @kenjis in codeigniter4#6089
- fix: Builder insert()/update() does not accept an object by @kenjis in codeigniter4#6216
- fix: create table if not exists when indexes already exist by @sclubricants in codeigniter4#6249
- fix: page cache saves Response data before running after filters by @kenjis in codeigniter4#6282
- fix: random_string('crypto') may return string less than $len or ErrorException by @kenjis in codeigniter4#6334
- Fixed: BaseBuilder increment/decrement do not reset state after a query by @iRedds in codeigniter4#6146
- fix: SQLite3\Connection\getIndexData() error by @kenjis in codeigniter4#6152
- fix:
is_image
causes PHP 8.1 deprecated error by @kenjis in codeigniter4#6157 - fix: prepared query is executed when using QueryBuilder by @kenjis in codeigniter4#6164
- fix: Time::getAge() calculation by @kenjis in codeigniter4#6159
- fix: Session cookies are sent twice with Ajax by @kenjis in codeigniter4#6167
- fix: QueryBuilder breaks select when escape is false by @kenjis in codeigniter4#5118
- fix: PHPDoc return type in ControllerTestTrait methods by @iRedds in codeigniter4#6168
- fix:
$routes->group('/', ...)
creates the routefoo///bar
by @kenjis in codeigniter4#6186 - fix: use lang('HTTP.pageNotFound') on production 404 page by @kenjis in codeigniter4#6202
- fix: BaseConnection may create dynamic property by @kenjis in codeigniter4#6198
- fix: Email SMTP may throw Uncaught ErrorException by @kenjis in codeigniter4#6184
- fix: CSP reportOnly behavior by @kenjis in codeigniter4#6201
- fix: lang() causes Error on CLI by @kenjis in codeigniter4#6209
- fix: multiple pagers with models do not work by @kenjis in codeigniter4#6211
- fix: tweak empty line output of
spark db:table
by @kenjis in codeigniter4#6215 - fix: custom validation error is cleared when calling setRule() twice by @kenjis in codeigniter4#6241
- Fix: Validation of fields with a leading asterisk. by @iRedds in codeigniter4#6243
- fix: Call to undefined method CodeIgniter\Pager\PagerRenderer::getDetails() by @kenjis in codeigniter4#6251
- fix: exceptionHandler may cause HTTPException: Unknown HTTP status code by @kenjis in codeigniter4#6254
- fix: invalid INSERT/DELETE query when Query Builder uses table alias by @kenjis in codeigniter4#5376
- fix: Add db port entry into env file. by @nalakapws in codeigniter4#6250
- fix: update
.gitattributes
by @totoprayogo1916 in codeigniter4#6256 - fix: format_number() can't be used on CLI by @kenjis in codeigniter4#6263
- fix: add parameter checking for max_size by @kenjis in codeigniter4#6261
- fix: route name is not displayed in Exception message by @kenjis in codeigniter4#6269
- fix:
spark routes
shows 404 error when using regex by @kenjis in codeigniter4#6279 - fix: Entity::hasChanged() returns wrong result to mapped property by @kenjis in codeigniter4#6285
- fix: unable to add more than one file to FileCollection constructor by @kenjis in codeigniter4#6291
- fix: Security::derandomize() may cause hex2bin() error by @kenjis in codeigniter4#6292
- fix: use getenv() instead of $_SERVER in detectEnvironment() by @fcosrno in codeigniter4#6257
- fix: OCI8 uses deprecated Entity by @kenjis in codeigniter4#6323
- fix: Parse error occurs before PHP version check by @kenjis in codeigniter4#6327
- fix: 404 page might display Exception message in production environment by @kenjis in codeigniter4#6333
- refactor: replace $e->getMessage() with $e in log_message() by @kenjis in codeigniter4#6182
- refactor: add CompleteDynamicPropertiesRector by @kenjis in codeigniter4#6187
- refactor: debug toolbar by @kenjis in codeigniter4#6272
- refactor: Exception exit code by @kenjis in codeigniter4#6286
- chore: Remove Vagrant by @kenjis in codeigniter4#6314
- refactor: CSRF protection by @kenjis in codeigniter4#6320
v4.2.1 (2022-06-16)
- Fix MIME guessing of extension from type by @paulbalandan in codeigniter4#6059
- fix: get_cookie() may not use the cookie prefix by @kenjis in codeigniter4#6082
- fix: get_cookie() does not take Config\Cookie::$prefix by @kenjis in codeigniter4#6080
- fix: session cookie name bug by @kenjis in codeigniter4#6091
- fix: Session Handlers do not take Config\Cookie by @kenjis in codeigniter4#6081
- fix: reverse routing does not work with full classname starting with
\
by @kenjis in codeigniter4#6104 - fix: insert error message in QueryBuilder by @kenjis in codeigniter4#6108
- fix:
spark routes
shows "ERROR: 404" by @kenjis in codeigniter4#6098 - fix: Time::setTestNow() does not work with fa Locale by @kenjis in codeigniter4#6116
- fix:
migrate --all
causesClass "SQLite3" not found
error by @kenjis in codeigniter4#6117 - fix: event DBQuery is not fired on failed query when DBDebug is true by @kenjis in codeigniter4#6127
- fix:
Time::humanize()
causes error with ar locale by @kenjis in codeigniter4#6120 - Fix decorators by @lonnieezell in codeigniter4#6090
- Fix lost error message by test when after testInsertResultFail. by @ytetsuro in codeigniter4#6113
- test: fix forgetting to restore DBDebug value by @kenjis in codeigniter4#6115
- Apply AutoRouterImproved::translateURIDashes() by @pjsde in codeigniter4#6084
- Remove useless catch by @paulbalandan in codeigniter4#6095
- Move preload.php example to starter app by @samsonasik in codeigniter4#6088
- style: compile sass by @kenjis in codeigniter4#6099
v4.2.0 (2022-06-03)
- Validation: support placeholders for anything by @paulbalandan in codeigniter4#5545
- Fix: Validation. Error key for field with asterisk by @iRedds in codeigniter4#5609
- Improve exception logging by @paulbalandan in codeigniter4#5684
- fix: spark can't use options on PHP 7.4 by @kenjis in codeigniter4#5836
- fix: [Autoloader] Composer classmap usage by @kenjis in codeigniter4#5850
- fix: using multiple CLI::color() in CLI::write() outputs strings with wrong color by @kenjis in codeigniter4#5893
- refactor: [Router] extract a class for auto-routing by @kenjis in codeigniter4#5877
- feat: Debugbar request microtime by @kenjis in codeigniter4#5958
- refactor:
system/bootstrap.php
only loads files and registers autoloader by @kenjis in codeigniter4#5972 - fix:
dot_array_search()
unexpected behavior by @kenjis in codeigniter4#5940 - feat: QueryBuilder join() raw SQL string support by @kenjis in codeigniter4#5875
- fix: change BaseService::reset() $initAutoloader to true by default by @kenjis in codeigniter4#6020
- chore: update admin/framework/composer.json Kint by @kenjis in codeigniter4#5531
- fix: BaseConnection::getConnectDuration() number_format(): Passing null to parameter by @kenjis in codeigniter4#5536
- Fix: Debug toolbar selectors by @iRedds in codeigniter4#5544
- Fix: Toolbar. ciDebugBar.showTab() context. by @iRedds in codeigniter4#5554
- Refactor Database Collector display by @paulbalandan in codeigniter4#5553
- fix: add missing Migration lang item by @kenjis in codeigniter4#5557
- feat: add Validation Strict Rules by @kenjis in codeigniter4#5445
- fix:
Time::createFromTimestamp()
sets incorrect time when specifying timezone by @totoprayogo1916 in codeigniter4#5588 - fix: Entity's isset() and unset() by @kenjis in codeigniter4#5497
- Fix: Deletion timestamp of the Model is updated when a record that has been soft-deleted is deleted again by @iRedds in codeigniter4#5578
- Fix: Added alias escaping in subquery by @iRedds in codeigniter4#5601
- fix: spark migrate:status does not show status with different namespaces by @kenjis in codeigniter4#5605
- BaseService - Use lowercase key in resetSingle by @najdanovicivan in codeigniter4#5596
- Fix
array_flatten_with_dots
ignores empty array values by @paulbalandan in codeigniter4#5606 - fix: debug toolbar Routes Params output by @kenjis in codeigniter4#5619
- fix: DownloadResponse memory leak by @kenjis in codeigniter4#5623
- fix: spark does not show Exception by @kenjis in codeigniter4#5638
- fix: Config CSRF $redirect does not work by @kenjis in codeigniter4#5665
- fix: do not call header() if headers have already been sent by @kenjis in codeigniter4#5680
- fix: $routes->setDefaultMethod() does not work by @kenjis in codeigniter4#5682
- fix: debug toolbar vars response headers includes request headers by @zl59503020 in codeigniter4#5701
- fix: 404 override controller does not output Response object body by @kenjis in codeigniter4#5703
- fix: auto routes incorrectly display route filters with GET method by @kenjis in codeigniter4#5712
- fix: Model::paginate() missing argument $group by @kenjis in codeigniter4#5699
- Fix options are not passed to Command $params by @kenjis in codeigniter4#5206
- fix: forceGlobalSecureRequests break URI schemes other than HTTP by @kenjis in codeigniter4#5730
- fix: TypeError when
$tokenRandomize = true
and no token posted by @kenjis in codeigniter4#5742 - fix: $builder->ignore()->insertBatch() only ignores on first iteration by @kenjis in codeigniter4#5672
- fix: app/Config/Routes.php is loaded twice on Windows by @kenjis in codeigniter4#5780
- fix: table name is double prefixed when LIKE clause by @kenjis in codeigniter4#5778
- fix: Publisher $restrictions regex to FCPATH by @kenjis in codeigniter4#5793
- fix: Timer::getElapsedTime() returns incorrect value by @kenjis in codeigniter4#5798
- bug: Publisher $restrictions regex typo by @MGatner in codeigniter4#5800
- fix: [Validation] valid_date ErrorException when the field is not sent by @kenjis in codeigniter4#5804
- fix: [Pager] can't get correct current page from segment by @kenjis in codeigniter4#5803
- fix: bug that allows dynamic controllers to be used by @kenjis in codeigniter4#5814
- config: remove App\ and Config\ in autoload.psr-4 in app starter composer.json by @kenjis in codeigniter4#5824
- fix: failover's DBPrefix not working by @kenjis in codeigniter4#5816
- fix: Validation returns incorrect errors after Redirect with Input by @kenjis in codeigniter4#5844
- feat: [Parser] add configs to change conditional delimiters by @kenjis in codeigniter4#5842
- fix: Commands::discoverCommands() loads incorrect classname by @kenjis in codeigniter4#5849
- fix: Publisher::discover() loads incorrect classname by @kenjis in codeigniter4#5858
- fix: validation errors in Model are not cleared when running validation again by @kenjis in codeigniter4#5861
- fix: Parser fails with
({variable})
in loop by @kenjis in codeigniter4#5840 - fix: [BaseConfig] string value is set from environment variable even if it should be int/float by @kenjis in codeigniter4#5779
- fix: add Escaper Exception classes in $coreClassmap by @kenjis in codeigniter4#5891
- fix: Composer PSR-4 overwrites Config\Autoload::$psr4 by @kenjis in codeigniter4#5902
- fix: Reverse Routing does not take into account the default namespace by @kenjis in codeigniter4#5936
- fix: [Validation] Fields with an asterisk throws exception by @kenjis in codeigniter4#5938
- fix: GDHandler::convert() does not work by @kenjis in codeigniter4#5969
- fix: Images\Handlers\GDHandler Implicit conversion from float to int loses precision by @kenjis in codeigniter4#5965
- fix: GDHandler::save() removes transparency by @kenjis in codeigniter4#5971
- fix: route limit to subdomains does not work by @kenjis in codeigniter4#5961
- fix: Model::_call() static analysis by @kenjis in codeigniter4#5970
- fix: invalid css in error_404.php by @kenjis in codeigniter4#5978
- Fix: Route placeholder (:any) with {locale} by @iRedds in codeigniter4#6003
- Changing the subquery builder for the Oracle by @iRedds in codeigniter4#5999
- fix: CURLRequest request body is not reset on the next request by @kenjis in codeigniter4#6014
- Bug: The SQLSRV driver ignores the port value from the config. by @iRedds in codeigniter4#6036
- fix:
set_radio()
not working as expected by @kenjis in codeigniter4#6037 - fix: add config for SQLite3 Foreign Keys by @kenjis in codeigniter4#6050
- fix: Ignore non-HTML responses in storePreviousURL by @tearoom6 in codeigniter4#6012
- fix: SQLite3\Table::copyData() does not escape column names by @kenjis in codeigniter4#6055
- Fix
slash_item()
erroring when property fetched does not exist onConfig\App
by @paulbalandan in codeigniter4#6058
- Feature Add Oracle driver by @ytetsuro in codeigniter4#2487
- feat: new improved auto router by @kenjis in codeigniter4#5889
- feat: new improved auto router
spark routes
command by @kenjis in codeigniter4#5953 - feat:
db:table
command by @kenjis in codeigniter4#5979
- feat: CSP enhancements by @kenjis in codeigniter4#5516
- Feature: Subqueries in the FROM section by @iRedds in codeigniter4#5510
- Added new View Decorators. by @lonnieezell in codeigniter4#5567
- feat: auto routes listing by @kenjis in codeigniter4#5590
- Feature: "spark routes" command shows routes with closure. by @iRedds in codeigniter4#5651
- feat:
spark routes
shows filters by @kenjis in codeigniter4#5628 - Allow calling getQuery() multiple times, and other improvements by @vlakoff in codeigniter4#5127
- feat: add Controller::validateData() by @kenjis in codeigniter4#5639
- feat: can add route handler as callable by @kenjis in codeigniter4#5713
- Checking if the subquery uses the same object as the main query by @iRedds in codeigniter4#5743
- Feature: Subquery for SELECT by @iRedds in codeigniter4#5736
- Extend Validation from BaseConfig so Registrars can add rules. by @lonnieezell in codeigniter4#5789
- config: add mime type for webp by @kenjis in codeigniter4#5838
- feat: add
$includeDir
option toget_filenames()
by @kenjis in codeigniter4#5862 - feat: throws exception when controller name in routes contains
/
by @kenjis in codeigniter4#5885 - [PHPStan] Prepare for PHPStan 1.6.x-dev by @samsonasik in codeigniter4#5876
- [Rector] Add back SimplifyUselessVariableRector by @samsonasik in codeigniter4#5911
- Redirecting Routes. Placeholders. by @iRedds in codeigniter4#5916
- script_tag(): cosmetic for value-less attributes by @xlii-chl in codeigniter4#5884
- feat: QueryBuilder raw SQL string support by @kenjis in codeigniter4#5817
- improve Router Exception message by @kenjis in codeigniter4#5984
- feat: DBForge::addField()
default
value raw SQL string support by @kenjis in codeigniter4#5957 - Add sample file for preloading by @kenjis in codeigniter4#5974
- Feature. QueryBuilder. Query union. by @iRedds in codeigniter4#6015
- feat:
getFieldData()
returns nullable data on PostgreSQL by @kenjis in codeigniter4#5981
- refactor: add Factories::models() to suppress PHPStan error by @kenjis in codeigniter4#5358
- Fixed style for PHP7.4 by @ytetsuro in codeigniter4#5581
- Fix Autoloader::initialize() by @kenjis in codeigniter4#5592
- refactor: CURLRequest and the slow tests by @kenjis in codeigniter4#5593
- Refactor
if_exist
validation with dot notation by @paulbalandan in codeigniter4#5607 - refactor: small changes in Filters and Router by @kenjis in codeigniter4#5627
- refactor: replace deprecated
getFilterForRoute()
by @kenjis in codeigniter4#5624 - refactor: make BaseController abstract by @kenjis in codeigniter4#5647
- refactor: move logic to prevent access to initController by @kenjis in codeigniter4#5648
- refactor: remove migrations routes by @kenjis in codeigniter4#5652
- refactor: update Kint CSP nonce by @kenjis in codeigniter4#5657
- Deprecate object implementations of
clean_path()
function by @paulbalandan in codeigniter4#5681 - refactor: Session does not use cookies() by @kenjis in codeigniter4#5656
- refactor: replace deprecated Response::getReason() with getReasonPhrase() by @kenjis in codeigniter4#5700
- refactor: isCLI() in CLIRequest and IncomingRequest by @kenjis in codeigniter4#5653
- refactor: CodeIgniter has context by @kenjis in codeigniter4#5650
- Forge use statement by @mostafakhudair in codeigniter4#5729
- refactor: remove
&
before $db by @kenjis in codeigniter4#5726 - refactor: remove unneeded
&
references in ContentSecurityPolicy.php by @kenjis in codeigniter4#5734 - Nonce replacement optimization. by @iRedds in codeigniter4#5733
- [Rector] Clean up skip config and re-run Rector by @samsonasik in codeigniter4#5813
- refactor: DB Session Handler by @kenjis in codeigniter4#5696
- Rename
Abstact
toAbstract
by @paulbalandan in codeigniter4#5833 - refactor: extract RedirectResponse::withErrors() method by @kenjis in codeigniter4#5860
- Optimizing the RouteCollection::getRoutes() method by @iRedds in codeigniter4#5918
- refactor: add strtolower() to Request::getMethod() by @kenjis in codeigniter4#5963
- refactor: remove
$_SERVER['HTTP_HOST']
in RouteCollection by @kenjis in codeigniter4#5962 - refactor: deprecate const
EVENT_PRIORITY_*
by @kenjis in codeigniter4#6000 - fix: replace EVENT_PRIORITY_NORMAL with Events::PRIORITY_NORMAL by @kenjis in codeigniter4#6005
- Router class optimization. by @iRedds in codeigniter4#6004
- Prefer
is_file()
by @MGatner in codeigniter4#6025 - refactor: use get_filenames() 4th param in FileLocator by @kenjis in codeigniter4#6026
- refactor: use get_filenames() 4th param by @kenjis in codeigniter4#6031
- refactor: CodeIgniter $context check by @kenjis in codeigniter4#6047
- Small change to improve code reading by @valmorflores in codeigniter4#6051
- refactor: remove
CodeIgniter\Services
by @kenjis in codeigniter4#6053
See CHANGELOG_4.1.md