Skip to content

Bump depencies #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
2 changes: 1 addition & 1 deletion .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
config: ./composer-require-checker.json
2 changes: 1 addition & 1 deletion .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.3']
['8.3', '8.4']
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,30 @@
"yiisoft/di": "^1.0",
"yiisoft/friendly-exception": "^1.1",
"yiisoft/http": "^1.2",
"yiisoft/http-middleware": "^1.1",
"yiisoft/middleware-dispatcher": "^5.2",
"yiisoft/router": "^3.0",
"yiisoft/router": "^4.0",
"yiisoft/translator": "^3.0",
"yiisoft/var-dumper": "^1.4",
"yiisoft/yii-debug": "dev-master",
"yiisoft/yii-middleware": "^1.0",
"yiisoft/yii-middleware": "^1.1",
"zircote/swagger-php": "^4.0"
},
"require-dev": {
"codeception/codeception": "^5.0",
"maglnet/composer-require-checker": "^4.2",
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^9.6 || ^10.0",
"rector/rector": "^2.1.1",
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^5.22",
"vimeo/psalm": "^5.22 || ^6.12",
"yiisoft/active-record": "dev-master",
"yiisoft/assets": "^4.0",
"yiisoft/csrf": "^2.0",
"yiisoft/db": "1.2 as dev-master",
"yiisoft/db-sqlite": "^1.0",
"yiisoft/psr-dummy-provider": "^1.0",
"yiisoft/router-fastroute": "^3.0",
"yiisoft/router-fastroute": "^4.0",
"yiisoft/test-support": "^3.0",
"yiisoft/yii-cycle": "dev-master",
"yiisoft/yii-http": "^1.0",
Expand Down
12 changes: 6 additions & 6 deletions config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
declare(strict_types=1);

use Psr\Http\Message\ResponseFactoryInterface;
use Yiisoft\Csrf\CsrfMiddleware;
use Yiisoft\Csrf\CsrfTokenMiddleware;
use Yiisoft\DataResponse\Middleware\FormatDataResponseAsJson;
use Yiisoft\HttpMiddleware\CorsAllowAllMiddleware;
use Yiisoft\Router\Group;
use Yiisoft\Router\Route;
use Yiisoft\Validator\ValidatorInterface;
Expand All @@ -16,7 +17,6 @@
use Yiisoft\Yii\Debug\Api\Inspector\Controller\GitController;
use Yiisoft\Yii\Debug\Api\Inspector\Controller\InspectController;
use Yiisoft\Yii\Debug\Api\Inspector\Controller\OpcacheController;
use Yiisoft\Yii\Middleware\CorsAllowAll;
use Yiisoft\Yii\Middleware\IpFilter;

if (!(bool) ($params['yiisoft/yii-debug-api']['enabled'] ?? false)) {
Expand All @@ -25,8 +25,8 @@

return [
Group::create('/debug/api')
->withCors(CorsAllowAll::class)
->disableMiddleware(CsrfMiddleware::class)
->withCors(CorsAllowAllMiddleware::class)
->disableMiddleware(CsrfTokenMiddleware::class)
->middleware(
static function (ResponseFactoryInterface $responseFactory, ValidatorInterface $validator) use ($params) {
return new IpFilter(
Expand Down Expand Up @@ -60,8 +60,8 @@ static function (ResponseFactoryInterface $responseFactory, ValidatorInterface $
->name('event-stream'),
),
Group::create('/inspect/api')
->withCors(CorsAllowAll::class)
->disableMiddleware(CsrfMiddleware::class)
->withCors(CorsAllowAllMiddleware::class)
->disableMiddleware(CsrfTokenMiddleware::class)
->middleware(
static function (ResponseFactoryInterface $responseFactory, ValidatorInterface $validator) use ($params) {
return new IpFilter(
Expand Down
Loading