Skip to content

Commit 93cc1f9

Browse files
committed
prepare release
1 parent 53fca28 commit 93cc1f9

File tree

50 files changed

+137
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+137
-110
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
->exclude(__DIR__ . '/src/Core/tests/Fixtures')
1313
->exclude(__DIR__ . '/src/Tokenizer/tests')
1414
->exclude(__DIR__ . '/src/Prototype/tests')
15-
->exclude(__DIR__ . '/src/Scaffolder/tests/App/runtime')
1615
->exclude(__DIR__ . '/src/Snapshots/tests')
1716
->exclude(__DIR__ . '/src/Core/tests/Internal/Proxy/ProxyClassRendererTest.php')
1817
->exclude(__DIR__ . '/src/Core/tests/Exception/ClosureRendererTraitTest.php')

CHANGELOG.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,44 @@
11
# CHANGELOG
22

3-
## Unreleased
3+
## 3.15.0 - 2025-01-24
4+
5+
- Core
6+
- `AppEnvironment` enum: added aliases for `production` and `test` environments by @roxblnfk.
7+
- Added a new option in the container to control default behavior when rebinding singletons.
8+
In the future, the container will be stricter by default,
9+
so it's recommended to set `allowSingletonsRebinding` to `false` right away.
10+
- Fixed resolving of scoped Autowire objects.
11+
- Cache
12+
- Added events that are dispatched before cache operations like `KeyWriting`, `CacheRetrieving`, `KeyDeleting`
13+
and failed operations like `KeyWriteFailed`, `KeyDeleteFailed`.
14+
- Optimized operations with multiple cache records.
15+
- Added an ability to set custom cache storage.
16+
- Router
17+
- The `ServerRequestInterface` object is now passed into the call context of interceptors
18+
- Added a new middleware pipeline `LazyPipeline`.
19+
The pipeline resolves middleware from the container right before execution to avoid ignoring container scopes.
20+
- `\Spiral\Http\Pipeline` is deprecated now.
21+
- Added strict mode for `UriHandler`. Strict mode ensures all required URI segments are validated.
22+
If any are missing, an exception is thrown.
23+
- Telemetry
24+
- `AbstractTracer::runScope()` method does not open a container scope anymore.
25+
- Spans are no longer created for each Middleware: the pipeline fills the list with called middlewares in one span.
26+
The number of pipelines equals the number of spans.
27+
- The `http.response_content_length` field is no longer filled.
428

529
## 3.14.10 - 2025-01-22
630

731
- **Bug Fixes**
8-
- [spiral/telemetry] Improve types for `SpanInterface`
9-
- [spiral/stempler] Fix parsing of `@` inside a string that is not a directive
32+
- [spiral/telemetry] Improve types for `SpanInterface`
33+
- [spiral/stempler] Fix parsing of `@` inside a string that is not a directive
1034

1135
## 3.14.9 - 2025-01-07
1236

1337
- **Bug Fixes**
14-
- [spiral/core] Define Auth* middleware in `http` scope
15-
- [spiral/auth-http] Fixed injectors binding via `Binder::bind` method
16-
- [spiral/telemetry] Fixed returning type in TelemetryProcessor for Monolog
17-
- [spiral/stempler] Fixed directory import in stempler component
38+
- [spiral/core] Define Auth* middleware in `http` scope
39+
- [spiral/auth-http] Fixed injectors binding via `Binder::bind` method
40+
- [spiral/telemetry] Fixed returning type in TelemetryProcessor for Monolog
41+
- [spiral/stempler] Fixed directory import in stempler component
1842

1943
## 3.14.8 - 2024-12-11
2044

@@ -30,8 +54,8 @@
3054
## 3.14.6 - 2024-10-22
3155

3256
- **Bug Fixes**
33-
- [spiral/core] `ServerRequestInterface` is always resolved into a Proxy in the `http` scope
34-
- [spiral/cache] `EventDispatcher` is now injected into `CacheManager`
57+
- [spiral/core] `ServerRequestInterface` is always resolved into a Proxy in the `http` scope
58+
- [spiral/cache] `EventDispatcher` is now injected into `CacheManager`
3559

3660
## 3.14.4 - 2024-09-23
3761

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"psr/http-server-middleware": "^1.0",
5555
"psr/log": "1 - 3",
5656
"psr/simple-cache": "2 - 3",
57+
"ramsey/uuid": "^4.7",
5758
"spiral/attributes": "^2.8|^3.0",
5859
"spiral/composer-publish-plugin": "^1.0",
5960
"symfony/console": "^6.1 || ^7.0",
@@ -91,8 +92,8 @@
9192
"Spiral\\Distribution\\": "src/Distribution/src",
9293
"Spiral\\DotEnv\\": "src/Bridge/Dotenv/src",
9394
"Spiral\\Encrypter\\": "src/Encrypter/src",
94-
"Spiral\\Exceptions\\": "src/Exceptions/src",
9595
"Spiral\\Events\\": "src/Events/src",
96+
"Spiral\\Exceptions\\": "src/Exceptions/src",
9697
"Spiral\\Files\\": "src/Files/src",
9798
"Spiral\\Filters\\": "src/Filters/src",
9899
"Spiral\\Http\\": "src/Http/src",
@@ -138,13 +139,12 @@
138139
"league/flysystem-async-aws-s3": "^2.0 || ^3.0",
139140
"league/flysystem-aws-s3-v3": "^2.0 || ^3.0",
140141
"mikey179/vfsstream": "^1.6",
141-
"mockery/mockery": "^1.5",
142-
"phpunit/phpunit": "10.5.3",
142+
"mockery/mockery": "^1.6",
143+
"phpunit/phpunit": "^10.5",
143144
"ramsey/collection": "^1.2",
144-
"ramsey/uuid": "^4.2.3",
145145
"rector/rector": "~2.0.0",
146146
"spiral/code-style": "^2.2.2",
147-
"spiral/nyholm-bridge": "^1.2",
147+
"spiral/nyholm-bridge": "^1.3",
148148
"spiral/testing": "^2.8",
149149
"spiral/validator": "^1.3",
150150
"symplify/monorepo-builder": "^10.2.7",
@@ -158,8 +158,8 @@
158158
"src/Auth/tests",
159159
"src/AuthHttp/tests"
160160
],
161-
"Spiral\\Tests\\Broadcasting\\": "src/Broadcasting/tests",
162161
"Spiral\\Tests\\Boot\\": "src/Boot/tests",
162+
"Spiral\\Tests\\Broadcasting\\": "src/Broadcasting/tests",
163163
"Spiral\\Tests\\Cache\\": "src/Cache/tests",
164164
"Spiral\\Tests\\Config\\": "src/Config/tests",
165165
"Spiral\\Tests\\Console\\": "src/Console/tests",
@@ -173,8 +173,8 @@
173173
"Spiral\\Tests\\Distribution\\": "src/Distribution/tests",
174174
"Spiral\\Tests\\DotEnv\\": "src/Bridge/Dotenv/tests",
175175
"Spiral\\Tests\\Encrypter\\": "src/Encrypter/tests",
176-
"Spiral\\Tests\\Exceptions\\": "src/Exceptions/tests",
177176
"Spiral\\Tests\\Events\\": "src/Events/tests",
177+
"Spiral\\Tests\\Exceptions\\": "src/Exceptions/tests",
178178
"Spiral\\Tests\\Files\\": "src/Files/tests",
179179
"Spiral\\Tests\\Filters\\": "src/Filters/tests",
180180
"Spiral\\Tests\\Framework\\": "tests/Framework",
@@ -226,23 +226,23 @@
226226
"spiral/debug": "self.version",
227227
"spiral/distribution": "self.version",
228228
"spiral/dotenv-bridge": "self.version",
229-
"spiral/interceptors": "self.version",
230229
"spiral/encrypter": "self.version",
231-
"spiral/exceptions": "self.version",
232230
"spiral/events": "self.version",
231+
"spiral/exceptions": "self.version",
233232
"spiral/files": "self.version",
234233
"spiral/filters": "self.version",
235234
"spiral/hmvc": "self.version",
236235
"spiral/http": "self.version",
236+
"spiral/interceptors": "self.version",
237237
"spiral/logger": "self.version",
238238
"spiral/mailer": "self.version",
239239
"spiral/models": "self.version",
240240
"spiral/monolog-bridge": "self.version",
241241
"spiral/pagination": "self.version",
242242
"spiral/prototype": "self.version",
243+
"spiral/queue": "self.version",
243244
"spiral/reactor": "self.version",
244245
"spiral/router": "self.version",
245-
"spiral/queue": "self.version",
246246
"spiral/scaffolder": "self.version",
247247
"spiral/security": "self.version",
248248
"spiral/sendit": "self.version",

monorepo-builder.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,16 @@
104104
],
105105
],
106106
'require-dev' => [
107-
'phpunit/phpunit' => '^10.1',
108-
'mockery/mockery' => '^1.5',
109-
'spiral/code-style' => '^1.1',
107+
'phpunit/phpunit' => '^10.5',
108+
'mockery/mockery' => '^1.6',
109+
'spiral/code-style' => '^2.2.2',
110110
'symplify/monorepo-builder' => '^10.2.7',
111111
'vimeo/psalm' => '^5.9',
112112
],
113+
'conflict' => [
114+
"spiral/roadrunner-bridge" => "<3.7",
115+
"spiral/sapi-bridge" => "<1.1"
116+
],
113117
]);
114118

115119
$services = $containerConfigurator->services();

src/AnnotatedRoutes/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
}
4444
},
4545
"require-dev": {
46-
"mockery/mockery": "^1.5",
47-
"phpunit/phpunit": "^10.1",
46+
"mockery/mockery": "^1.6",
47+
"phpunit/phpunit": "^10.5",
4848
"spiral/framework": "^3.1",
4949
"spiral/testing": "^2.8",
50-
"spiral/nyholm-bridge": "^1.2",
50+
"spiral/nyholm-bridge": "^1.3",
5151
"vimeo/psalm": "^5.9"
5252
},
5353
"autoload-dev": {

src/Auth/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"psr/event-dispatcher": "^1.0"
3838
},
3939
"require-dev": {
40-
"phpunit/phpunit": "^10.1",
40+
"phpunit/phpunit": "^10.5",
4141
"vimeo/psalm": "^5.9"
4242
},
4343
"autoload": {

src/AuthHttp/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"psr/event-dispatcher": "^1.0"
4141
},
4242
"require-dev": {
43-
"phpunit/phpunit": "^10.1",
43+
"phpunit/phpunit": "^10.5",
4444
"spiral/cookies": "^3.15",
4545
"spiral/http": "^3.15",
4646
"spiral/debug": "^3.15",
47-
"nyholm/psr7": "^1.5",
47+
"nyholm/psr7": "^1.8",
4848
"vimeo/psalm": "^5.9"
4949
},
5050
"autoload": {

src/Boot/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"spiral/events": "^3.15"
4444
},
4545
"require-dev": {
46-
"phpunit/phpunit": "^10.1",
47-
"mockery/mockery": "^1.5",
46+
"phpunit/phpunit": "^10.5",
47+
"mockery/mockery": "^1.6",
4848
"vimeo/psalm": "^5.9"
4949
},
5050
"autoload": {

src/Bridge/Dotenv/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"vlucas/phpdotenv": "^5.4"
3838
},
3939
"require-dev": {
40-
"mockery/mockery": "^1.5",
41-
"phpunit/phpunit": "^10.1",
40+
"mockery/mockery": "^1.6",
41+
"phpunit/phpunit": "^10.5",
4242
"spiral/boot": "^3.15",
4343
"vimeo/psalm": "^5.9"
4444
},

src/Bridge/Monolog/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
},
3939
"require-dev": {
4040
"spiral/boot": "^3.15",
41-
"phpunit/phpunit": "^10.1",
42-
"mockery/mockery": "^1.5",
41+
"phpunit/phpunit": "^10.5",
42+
"mockery/mockery": "^1.6",
4343
"vimeo/psalm": "^5.9"
4444
},
4545
"autoload": {

src/Bridge/Stempler/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"spiral/core": "^3.15"
4343
},
4444
"require-dev": {
45-
"phpunit/phpunit": "^10.1",
45+
"phpunit/phpunit": "^10.5",
4646
"spiral/boot": "^3.15",
4747
"spiral/testing": "^2.8",
48-
"mockery/mockery": "^1.5",
48+
"mockery/mockery": "^1.6",
4949
"vimeo/psalm": "^5.9"
5050
},
5151
"autoload": {

src/Broadcasting/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
}
4949
},
5050
"require-dev": {
51-
"mockery/mockery": "^1.5",
52-
"phpunit/phpunit": "^10.1",
51+
"mockery/mockery": "^1.6",
52+
"phpunit/phpunit": "^10.5",
5353
"spiral/boot": "^3.15",
5454
"vimeo/psalm": "^5.9"
5555
},

src/Cache/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
},
4848
"require-dev": {
4949
"spiral/boot": "^3.15",
50-
"mockery/mockery": "^1.5",
51-
"phpunit/phpunit": "^10.1",
50+
"mockery/mockery": "^1.6",
51+
"phpunit/phpunit": "^10.5",
5252
"vimeo/psalm": "^5.9"
5353
},
5454
"autoload-dev": {

src/Config/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"spiral/core": "^3.15"
3939
},
4040
"require-dev": {
41-
"phpunit/phpunit": "^10.1",
42-
"mockery/mockery": "^1.5",
41+
"phpunit/phpunit": "^10.5",
42+
"mockery/mockery": "^1.6",
4343
"vimeo/psalm": "^5.9"
4444
},
4545
"autoload": {

src/Console/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
},
4343
"require-dev": {
4444
"spiral/boot": "^3.15",
45-
"phpunit/phpunit": "^10.1",
46-
"mockery/mockery": "^1.5",
45+
"phpunit/phpunit": "^10.5",
46+
"mockery/mockery": "^1.6",
4747
"vimeo/psalm": "^5.9"
4848
},
4949
"autoload": {

src/Cookies/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"psr/http-server-middleware": "^1.0"
4040
},
4141
"require-dev": {
42-
"phpunit/phpunit": "^10.1",
43-
"mockery/mockery": "^1.5",
42+
"phpunit/phpunit": "^10.5",
43+
"mockery/mockery": "^1.6",
4444
"spiral/http": "^3.15",
45-
"nyholm/psr7": "^1.5",
45+
"nyholm/psr7": "^1.8",
4646
"vimeo/psalm": "^5.9"
4747
},
4848
"autoload": {

src/Core/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"spiral/security": "^3.15"
3939
},
4040
"require-dev": {
41-
"mockery/mockery": "^1.5",
42-
"phpunit/phpunit": "^10.1",
41+
"mockery/mockery": "^1.6",
42+
"phpunit/phpunit": "^10.5",
4343
"vimeo/psalm": "^5.9"
4444
},
4545
"autoload": {

src/Csrf/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"psr/http-server-middleware": "^1.0"
4040
},
4141
"require-dev": {
42-
"phpunit/phpunit": "^10.1",
43-
"mockery/mockery": "^1.5",
42+
"phpunit/phpunit": "^10.5",
43+
"mockery/mockery": "^1.6",
4444
"spiral/http": "^3.15",
45-
"nyholm/psr7": "^1.5",
45+
"nyholm/psr7": "^1.8",
4646
"vimeo/psalm": "^5.9"
4747
},
4848
"autoload": {

src/Debug/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"spiral/logger": "^3.15"
3838
},
3939
"require-dev": {
40-
"phpunit/phpunit": "^10.1",
40+
"phpunit/phpunit": "^10.5",
4141
"vimeo/psalm": "^5.9"
4242
},
4343
"autoload": {

src/Distribution/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"aws/aws-sdk-php": "^3.270",
3838
"guzzlehttp/psr7": "^1.7|^2.0",
3939
"jetbrains/phpstorm-attributes": "^1.0",
40-
"phpunit/phpunit": "^10.1",
40+
"phpunit/phpunit": "^10.5",
4141
"vimeo/psalm": "^5.9"
4242
},
4343
"autoload-dev": {

src/Encrypter/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"defuse/php-encryption": "^2.2"
4040
},
4141
"require-dev": {
42-
"phpunit/phpunit": "^10.1",
42+
"phpunit/phpunit": "^10.5",
4343
"vimeo/psalm": "^5.9"
4444
},
4545
"autoload": {

src/Events/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
},
4141
"require-dev": {
4242
"spiral/boot": "^3.15",
43-
"phpunit/phpunit": "^10.1",
44-
"mockery/mockery": "^1.5",
43+
"phpunit/phpunit": "^10.5",
44+
"mockery/mockery": "^1.6",
4545
"vimeo/psalm": "^5.9"
4646
},
4747
"autoload": {

src/Exceptions/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"psr/log": "1 - 3"
4343
},
4444
"require-dev": {
45-
"mockery/mockery": "^1.5",
46-
"phpunit/phpunit": "^10.1",
45+
"mockery/mockery": "^1.6",
46+
"phpunit/phpunit": "^10.5",
4747
"vimeo/psalm": "^5.9"
4848
},
4949
"autoload": {

src/Files/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"php": ">=8.1"
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^10.1",
40-
"mockery/mockery": "^1.5",
39+
"phpunit/phpunit": "^10.5",
40+
"mockery/mockery": "^1.6",
4141
"vimeo/psalm": "^5.9"
4242
},
4343
"autoload": {

0 commit comments

Comments
 (0)