build: update CI4 to v4.5.5 + php and js packages to latest

This commit is contained in:
Yassine Doghri 2024-09-24 10:20:53 +00:00
parent 1d7583d738
commit 1667f5b202
16 changed files with 1729 additions and 1644 deletions

View File

@ -11,7 +11,6 @@ use Kint\Renderer\Rich\ValuePluginInterface;
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* Kint
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* *
* We use Kint's `RichRenderer` and `CLIRenderer`. This area contains options * We use Kint's `RichRenderer` and `CLIRenderer`. This area contains options

View File

@ -5,8 +5,6 @@ declare(strict_types=1);
namespace Config; namespace Config;
/** /**
* Mimes
*
* This file contains an array of mime types. It is used by the Upload class to help identify allowed file types. * This file contains an array of mime types. It is used by the Upload class to help identify allowed file types.
* *
* When more than one variation for an extension exist (like jpg, jpeg, etc) the most common one should be first in the * When more than one variation for an extension exist (like jpg, jpeg, etc) the most common one should be first in the

View File

@ -5,8 +5,6 @@ declare(strict_types=1);
namespace Config; namespace Config;
/** /**
* Paths
*
* Holds the paths that are used by the system to locate the main directories, app, system, etc. * Holds the paths that are used by the system to locate the main directories, app, system, etc.
* *
* Modifying these allows you to restructure your application, share a system folder between multiple applications, and * Modifying these allows you to restructure your application, share a system folder between multiple applications, and

View File

@ -50,9 +50,6 @@ abstract class BaseController extends Controller
*/ */
// protected $session; // protected $session;
/**
* Constructor.
*/
#[Override] #[Override]
public function initController( public function initController(
RequestInterface $request, RequestInterface $request,

View File

@ -51,9 +51,6 @@ class EpisodeAudioController extends Controller
protected Analytics $analyticsConfig; protected Analytics $analyticsConfig;
/**
* Constructor.
*/
#[Override] #[Override]
public function initController( public function initController(
RequestInterface $request, RequestInterface $request,

View File

@ -37,7 +37,7 @@ export class XMLEditor extends LitElement {
editorContents = prettifyXML(this._textarea[0].value, { editorContents = prettifyXML(this._textarea[0].value, {
indentation: " ", indentation: " ",
}); });
} catch (e) { } catch {
// xml doesn't have a root node // xml doesn't have a root node
editorContents = prettifyXML( editorContents = prettifyXML(
"<root>" + this._textarea[0].value + "</root>", "<root>" + this._textarea[0].value + "</root>",

View File

@ -23,7 +23,7 @@
"conditions": [] "conditions": []
}, },
{ {
"action": "composer analyse", "action": "composer phpstan",
"options": [], "options": [],
"conditions": [] "conditions": []
}, },

View File

@ -9,20 +9,20 @@
"php": "^8.3", "php": "^8.3",
"adaures/ipcat-php": "^v1.0.0", "adaures/ipcat-php": "^v1.0.0",
"adaures/podcast-persons-taxonomy": "^v1.0.1", "adaures/podcast-persons-taxonomy": "^v1.0.1",
"aws/aws-sdk-php": "^3.316.9", "aws/aws-sdk-php": "^3.322.3",
"chrisjean/php-ico": "^1.0.4", "chrisjean/php-ico": "^1.0.4",
"cocur/slugify": "^v4.5.1", "cocur/slugify": "^v4.6.0",
"codeigniter4/framework": "v4.5.4", "codeigniter4/framework": "v4.5.5",
"codeigniter4/settings": "v2.2.0", "codeigniter4/settings": "v2.2.0",
"codeigniter4/shield": "v1.1.0", "codeigniter4/shield": "v1.1.0",
"codeigniter4/tasks": "dev-develop", "codeigniter4/tasks": "dev-develop",
"geoip2/geoip2": "v3.0.0", "geoip2/geoip2": "v3.0.0",
"james-heinrich/getid3": "^2.0.0-beta6", "james-heinrich/getid3": "^2.0.0-beta6",
"league/commonmark": "^2.5.1", "league/commonmark": "^2.5.3",
"league/html-to-markdown": "5.1.1", "league/html-to-markdown": "5.1.1",
"melbahja/seo": "^v2.1.1", "melbahja/seo": "^v2.1.1",
"michalsn/codeigniter4-uuid": "v1.1.0", "michalsn/codeigniter4-uuid": "v1.1.0",
"mpratt/embera": "^2.0.40", "mpratt/embera": "^2.0.41",
"opawg/user-agents-v2-php": "dev-main", "opawg/user-agents-v2-php": "dev-main",
"phpseclib/phpseclib": "~2.0.47", "phpseclib/phpseclib": "~2.0.47",
"vlucas/phpdotenv": "v5.6.1", "vlucas/phpdotenv": "v5.6.1",
@ -33,13 +33,13 @@
"require-dev": { "require-dev": {
"captainhook/captainhook": "^5.23.3", "captainhook/captainhook": "^5.23.3",
"codeigniter/phpstan-codeigniter": "v1.4.3", "codeigniter/phpstan-codeigniter": "v1.4.3",
"mikey179/vfsstream": "^v1.6.11", "mikey179/vfsstream": "^v1.6.12",
"phpstan/extension-installer": "^1.4.1", "phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.11.8", "phpstan/phpstan": "^1.12.4",
"phpunit/phpunit": "^10.5.29", "phpunit/phpunit": "^10.5.35",
"rector/rector": "^1.2.2", "rector/rector": "^1.2.5",
"symplify/coding-standard": "^12.2.1", "symplify/coding-standard": "^12.2.3",
"symplify/easy-coding-standard": "^12.3.3" "symplify/easy-coding-standard": "^12.3.5"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
@ -58,7 +58,7 @@
"scripts": { "scripts": {
"dev": "php spark serve", "dev": "php spark serve",
"test": "vendor/bin/phpunit --no-coverage", "test": "vendor/bin/phpunit --no-coverage",
"analyse": "vendor/bin/phpstan analyse --ansi", "phpstan": "vendor/bin/phpstan analyse --ansi",
"rector": "vendor/bin/rector process --dry-run --ansi --memory-limit=2G", "rector": "vendor/bin/rector process --dry-run --ansi --memory-limit=2G",
"rector:fix": "vendor/bin/rector process --ansi --memory-limit=2G", "rector:fix": "vendor/bin/rector process --ansi --memory-limit=2G",
"style": "vendor/bin/ecs check --ansi", "style": "vendor/bin/ecs check --ansi",

533
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -28,9 +28,6 @@ abstract class BaseController extends Controller
*/ */
protected $request; protected $request;
/**
* Constructor.
*/
#[Override] #[Override]
public function initController( public function initController(
RequestInterface $request, RequestInterface $request,

View File

@ -408,7 +408,7 @@ if (! function_exists('linkify')) {
'~(?<!\w)@(?<username>\w++)(?:@(?<domain>(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]))?~', '~(?<!\w)@(?<username>\w++)(?:@(?<domain>(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]))?~',
static function (array $match) use (&$links): string { static function (array $match) use (&$links): string {
// check if host is set and look for actor in database // check if host is set and look for actor in database
if (isset($match['host'])) { if (isset($match['domain'])) {
if ( if (
($actor = model( ($actor = model(
'ActorModel', 'ActorModel',

View File

@ -35,9 +35,6 @@ class InstallController extends Controller
*/ */
protected $helpers = ['form', 'components', 'svg', 'misc', 'setting']; protected $helpers = ['form', 'components', 'svg', 'misc', 'setting'];
/**
* Constructor.
*/
#[Override] #[Override]
public function initController( public function initController(
RequestInterface $request, RequestInterface $request,

View File

@ -76,8 +76,6 @@ class MediaModel extends Model
protected $beforeDelete = ['clearCache']; protected $beforeDelete = ['clearCache'];
/** /**
* Model constructor.
*
* @param ConnectionInterface|null $db DB Connection * @param ConnectionInterface|null $db DB Connection
* @param ValidationInterface|null $validation Validation * @param ValidationInterface|null $validation Validation
*/ */

View File

@ -30,17 +30,17 @@
"dependencies": { "dependencies": {
"@amcharts/amcharts4": "^4.10.39", "@amcharts/amcharts4": "^4.10.39",
"@amcharts/amcharts4-geodata": "^4.1.30", "@amcharts/amcharts4-geodata": "^4.1.30",
"@codemirror/commands": "^6.6.0", "@codemirror/commands": "^6.6.2",
"@codemirror/lang-xml": "^6.1.0", "@codemirror/lang-xml": "^6.1.0",
"@codemirror/language": "^6.10.2", "@codemirror/language": "^6.10.3",
"@codemirror/state": "^6.4.1", "@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.29.1", "@codemirror/view": "^6.33.0",
"@floating-ui/dom": "^1.6.8", "@floating-ui/dom": "^1.6.11",
"@github/clipboard-copy-element": "^1.3.0", "@github/clipboard-copy-element": "^1.3.0",
"@github/hotkey": "^3.1.1", "@github/hotkey": "^3.1.1",
"@github/markdown-toolbar-element": "^2.2.3", "@github/markdown-toolbar-element": "^2.2.3",
"@github/relative-time-element": "^4.4.2", "@github/relative-time-element": "^4.4.3",
"@patternfly/elements": "^3.0.2", "@patternfly/elements": "^4.0.1",
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e", "@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
"@vime/core": "^5.4.1", "@vime/core": "^5.4.1",
"choices.js": "^10.2.0", "choices.js": "^10.2.0",
@ -48,50 +48,50 @@
"flatpickr": "^4.6.13", "flatpickr": "^4.6.13",
"leaflet": "^1.9.4", "leaflet": "^1.9.4",
"leaflet.markercluster": "^1.5.3", "leaflet.markercluster": "^1.5.3",
"lit": "^3.1.4", "lit": "^3.2.0",
"marked": "^13.0.3", "marked": "^13.0.3",
"wavesurfer.js": "^7.8.2", "wavesurfer.js": "^7.8.6",
"xml-formatter": "^3.6.3" "xml-formatter": "^3.6.3"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.3.0", "@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.2.2", "@commitlint/config-conventional": "^19.5.0",
"@csstools/css-tokenizer": "^2.4.1", "@csstools/css-tokenizer": "^3.0.1",
"@semantic-release/changelog": "^6.0.3", "@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3", "@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^13.2.0", "@semantic-release/gitlab": "^13.2.1",
"@tailwindcss/forms": "^0.5.7", "@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.13", "@tailwindcss/typography": "^0.5.15",
"@types/leaflet": "^1.9.12", "@types/leaflet": "^1.9.12",
"@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^7.14.1", "@typescript-eslint/parser": "^8.7.0",
"all-contributors-cli": "^6.26.1", "all-contributors-cli": "^6.26.1",
"commitizen": "^4.3.0", "commitizen": "^4.3.0",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cssnano": "^7.0.4", "cssnano": "^7.0.6",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0", "eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.4", "husky": "^9.1.6",
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"lint-staged": "^15.2.7", "lint-staged": "^15.2.10",
"postcss": "^8.4.40", "postcss": "^8.4.47",
"postcss-import": "^16.1.0", "postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.5", "postcss-nesting": "^13.0.0",
"postcss-preset-env": "^9.6.0", "postcss-preset-env": "^10.0.5",
"postcss-reporter": "^7.1.0", "postcss-reporter": "^7.1.0",
"prettier": "3.3.3", "prettier": "3.3.3",
"prettier-plugin-organize-imports": "^4.0.0", "prettier-plugin-organize-imports": "^4.1.0",
"semantic-release": "^24.0.0", "semantic-release": "^24.1.1",
"stylelint": "^16.8.1", "stylelint": "^16.9.0",
"stylelint-config-standard": "^36.0.1", "stylelint-config-standard": "^36.0.1",
"svgo": "^3.3.2", "svgo": "^3.3.2",
"tailwindcss": "^3.4.7", "tailwindcss": "^3.4.13",
"typescript": "^5.5.4", "typescript": "~5.5.4",
"vite": "^5.3.5", "vite": "^5.4.7",
"vite-plugin-pwa": "^0.20.1", "vite-plugin-pwa": "^0.20.5",
"workbox-build": "^7.1.1", "workbox-build": "^7.1.1",
"workbox-core": "^7.1.0", "workbox-core": "^7.1.0",
"workbox-routing": "^7.1.0", "workbox-routing": "^7.1.0",

2719
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -40,23 +40,25 @@ class preload
[ [
'include' => __DIR__ . '/vendor/codeigniter4/framework/system', // Change this path if using manual installation 'include' => __DIR__ . '/vendor/codeigniter4/framework/system', // Change this path if using manual installation
'exclude' => [ 'exclude' => [
'/system/bootstrap.php',
// Not needed if you don't use them. // Not needed if you don't use them.
'/system/Database/OCI8/', '/system/Database/OCI8/',
'/system/Database/Postgre/', '/system/Database/Postgre/',
'/system/Database/SQLite3/', '/system/Database/SQLite3/',
'/system/Database/SQLSRV/', '/system/Database/SQLSRV/',
// Not needed. // Not needed for web apps.
'/system/Database/Seeder.php', '/system/Database/Seeder.php',
'/system/Test/', '/system/Test/',
'/system/Language/',
'/system/CLI/', '/system/CLI/',
'/system/Commands/', '/system/Commands/',
'/system/Publisher/', '/system/Publisher/',
'/system/ComposerScripts.php', '/system/ComposerScripts.php',
// Not Class/Function files.
'/system/Config/Routes.php',
'/system/Language/',
'/system/bootstrap.php',
'/system/rewrite.php',
'/Views/', '/Views/',
// Errors occur. // Errors occur.
'/system/Config/Routes.php',
'/system/ThirdParty/', '/system/ThirdParty/',
], ],
], ],