Skip to content

Commit f829560

Browse files
authored
Removing illuminate/view from the main framework's require (#633)
* Prepare relasing mantle-framework/framework * CHANGELOG * Suggest the real package * Validate the monorepo * Introduce monorepo-validate * Bump to symfony/console 7 fully * LInt fixes * Small bump * Ensure prefer-lowest passes * Remove prefer lowest from 8.4 * Fixing faker * Require http * Rephrase the changelog * Suggest illuminate/view * Testing CI * Retry a leaky test * Retry a leaky test * Fixing another * Fixing snap
1 parent f295306 commit f829560

File tree

19 files changed

+93
-57
lines changed

19 files changed

+93
-57
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ on:
1313
- '*.*.x'
1414

1515
jobs:
16+
monorepo-validate:
17+
if: github.event.pull_request.draft == false
18+
timeout-minutes: 10
19+
runs-on: ubuntu-latest
20+
name: "Lint Tests"
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Run General Tests
25+
uses: alleyinteractive/action-test-general@develop
26+
27+
- name: Run Linter
28+
uses: alleyinteractive/action-test-php@develop
29+
with:
30+
php-version: '8.4'
31+
skip-services: 'true'
32+
skip-wordpress-install: 'true'
33+
test-command: 'composer monorepo-validate'
1634
lint-tests:
1735
if: github.event.pull_request.draft == false
1836
timeout-minutes: 10
@@ -42,6 +60,9 @@ jobs:
4260
multisite: [true, false]
4361
php: [8.2, 8.3, 8.4]
4462
wordpress: ["latest"]
63+
exclude:
64+
- php: 8.4
65+
dependencies: "prefer-lowest"
4566
runs-on: ubuntu-latest
4667
concurrency:
4768
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}-P${{ matrix.php }}-WP${{ matrix.wordpress }}-MS${{ matrix.multisite && '1' || '0' }}-D${{ matrix.dependencies }}
@@ -65,6 +86,7 @@ jobs:
6586
all-pr-checks-passed:
6687
name: All PR checks passed
6788
needs:
89+
- monorepo-validate
6890
- lint-tests
6991
- unit-tests
7092
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v1.5.0 - 2025-02-05
9+
10+
### Changed
11+
12+
- Dropped `illuminate/view` from the `alleyinteractive/mantle-framework`
13+
package. There is a conflict between the dependent package
14+
`illuminate/support` and `spatie/once`. `alleyinteractive/mantle` will be
15+
updated to require `illuminate/view` directly.
16+
- Upgraded `mantle-framework/testkit` to support `nunomaduro/collision` v8 (which requires PHP 8.2 and PHPUnit 10+).
17+
- Drop support for `symfony/console` v6.2. All Symfony components are now at v7.0.
18+
819
## v1.4.5 - 2025-02-03
920

1021
### Fixed

composer.json

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,39 @@
1818
"alleyinteractive/wp-filter-side-effects": "^1.0 || ^2.0",
1919
"doctrine/inflector": "^2.0.8",
2020
"dragonmantank/cron-expression": "^3.3.3",
21-
"fakerphp/faker": "^1.23",
22-
"illuminate/view": "^11.38",
21+
"fakerphp/faker": "^1.24",
2322
"laravel/serializable-closure": "^1.3.1",
2423
"league/commonmark": "^2.6.0",
25-
"league/flysystem": "^3.15",
24+
"league/flysystem": "^3.29",
2625
"monolog/monolog": "^2.9.1",
2726
"nesbot/carbon": "^3.8.4",
2827
"nette/php-generator": "^4.1",
29-
"nunomaduro/collision": "^6.0 || ^7.0",
30-
"nunomaduro/termwind": "^1.15.1",
28+
"nunomaduro/collision": "^6.0 || ^7.0 || ^8.0",
29+
"nunomaduro/termwind": "^1.15.1 || ^2.0",
3130
"psr/container": "^1.1.1 || ^2.0.2",
3231
"psr/log": "^1.0.1 || ^2.0 || ^3.0",
3332
"psr/simple-cache": "^3.0",
3433
"ramsey/uuid": "^4.7.4",
3534
"spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1",
36-
"symfony/console": "^6.2 || ^7.0",
37-
"symfony/css-selector": "^6.2 || ^7.0",
38-
"symfony/finder": "^7.0",
35+
"symfony/console": "^7.2",
36+
"symfony/css-selector": "^7.2.0",
37+
"symfony/finder": "^7.2.0",
3938
"symfony/http-foundation": "^7.2.0",
40-
"symfony/http-kernel": "^7.0",
41-
"symfony/mime": "^7.0",
42-
"symfony/routing": "^7.0",
43-
"symfony/string": "^7.0",
44-
"symfony/var-dumper": "^7.0",
45-
"vlucas/phpdotenv": "^5.5",
39+
"symfony/http-kernel": "^7.2.0",
40+
"symfony/mime": "^7.2.0",
41+
"symfony/routing": "^7.2.0",
42+
"symfony/string": "^7.2.0",
43+
"symfony/var-dumper": "^7.2.0",
44+
"symfony/yaml": "^7.2.0",
45+
"vlucas/phpdotenv": "^5.6.1",
4646
"voku/portable-ascii": "^2.0.1"
4747
},
4848
"require-dev": {
4949
"alleyinteractive/alley-coding-standards": "^2.0",
5050
"alleyinteractive/wp-match-blocks": "^1.0 || ^2.0 || ^3.0",
5151
"guzzlehttp/guzzle": "^7.7",
52-
"league/flysystem-aws-s3-v3": "^3.15",
52+
"illuminate/view": "^11.38",
53+
"league/flysystem-aws-s3-v3": "^3.29",
5354
"mockery/mockery": "^1.6.12",
5455
"php-stubs/wp-cli-stubs": "^2.11",
5556
"phpstan/extension-installer": "^1.4",
@@ -74,6 +75,7 @@
7475
"mantle-framework/facade": "self.version",
7576
"mantle-framework/faker": "self.version",
7677
"mantle-framework/filesystem": "self.version",
78+
"mantle-framework/framework": "self.version",
7779
"mantle-framework/http": "self.version",
7880
"mantle-framework/http-client": "self.version",
7981
"mantle-framework/log": "self.version",
@@ -140,16 +142,17 @@
140142
"@phpcbf"
141143
],
142144
"merge": "monorepo-builder merge",
145+
"monorepo-validate": "monorepo-builder validate",
143146
"phpcbf": "phpcbf --standard=./phpcs.xml .",
144-
"phpcs": "phpcs --standard=./phpcs.xml .",
145147
"phpcs-modified": "./bin/phpcs-modified-files.sh",
148+
"phpcs": "phpcs --standard=./phpcs.xml .",
146149
"phpstan": "phpstan --memory-limit=1536M",
147-
"phpunit": "phpunit",
148150
"phpunit:multisite": "WP_MULTISITE=1 phpunit",
149-
"rector": "rector process --dry-run",
151+
"phpunit": "phpunit",
150152
"rector:fix": "rector process",
151-
"release": "monorepo-builder release --ansi",
153+
"rector": "rector process --dry-run",
152154
"release:patch": "monorepo-builder release patch --ansi",
155+
"release": "monorepo-builder release --ansi",
153156
"test": [
154157
"@phpcs",
155158
"@phpstan",
@@ -158,6 +161,7 @@
158161
]
159162
},
160163
"suggest": {
161-
"brianium/paratest": "Run PHPUnit tests in parallel"
164+
"brianium/paratest": "Run PHPUnit tests in parallel",
165+
"illuminate/view": "For Blade templating"
162166
}
163167
}

src/mantle/assets/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"require": {
66
"php": "^8.2",
77
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
8-
"alleyinteractive/wp-asset-manager": "^1.3.7",
8+
"alleyinteractive/wp-asset-manager": "^1.4.0",
99
"mantle-framework/contracts": "^1.0",
1010
"mantle-framework/support": "^1.0"
1111
},

src/mantle/auth/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"php": "^8.2",
77
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
88
"mantle-framework/http": "^1.0",
9-
"symfony/http-kernel": "^7.0"
9+
"symfony/http-kernel": "^7.2.0"
1010
},
1111
"extra": {
1212
"wordpress-autoloader": {

src/mantle/console/class-command.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ public function run( InputInterface $input, OutputInterface $output ): int {
139139
*
140140
* @param InputInterface $input
141141
* @param OutputInterface $output
142-
* @return int
143142
*/
144-
protected function execute( InputInterface $input, OutputInterface $output ) {
143+
protected function execute( InputInterface $input, OutputInterface $output ): int {
145144
$this->set_input( $input );
146145
$this->set_output( $output );
147146

src/mantle/console/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
88
"mantle-framework/contracts": "^1.0",
99
"mantle-framework/support": "^1.0",
10-
"nette/php-generator": "^3.6.9",
11-
"symfony/console": "^6.2 || ^7.0",
12-
"symfony/finder": "^7.0",
13-
"symfony/string": "^7.0"
10+
"nette/php-generator": "^4.1",
11+
"symfony/console": "^7.2",
12+
"symfony/finder": "^7.2.0",
13+
"symfony/string": "^7.2.0"
1414
},
1515
"extra": {
1616
"wordpress-autoloader": {

src/mantle/database/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"require": {
66
"php": "^8.2",
77
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
8-
"alleyinteractive/wp-filter-side-effects": "^2.0",
8+
"alleyinteractive/wp-filter-side-effects": "^1.0 || ^2.0",
99
"mantle-framework/contracts": "^1.0",
1010
"mantle-framework/support": "^1.0",
1111
"psr/container": "^1.1.1 || ^2.0.2",
12-
"symfony/finder": "^7.0"
12+
"symfony/finder": "^7.2.0"
1313
},
1414
"extra": {
1515
"wordpress-autoloader": {

src/mantle/events/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"mantle-framework/contracts": "^1.0",
1010
"mantle-framework/support": "^1.0",
1111
"psr/container": "^1.1.1 || ^2.0.2",
12-
"symfony/finder": "^7.0"
12+
"symfony/finder": "^7.2.0"
1313
},
1414
"extra": {
1515
"wordpress-autoloader": {

src/mantle/faker/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"require": {
66
"php": "^8.2",
77
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
8-
"fakerphp/faker": "^1.23"
8+
"fakerphp/faker": "^1.24"
99
},
1010
"extra": {
1111
"wordpress-autoloader": {

0 commit comments

Comments
 (0)