Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jan 24, 2025
1 parent 53fca28 commit 93cc1f9
Show file tree
Hide file tree
Showing 50 changed files with 137 additions and 110 deletions.
1 change: 0 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
->exclude(__DIR__ . '/src/Core/tests/Fixtures')
->exclude(__DIR__ . '/src/Tokenizer/tests')
->exclude(__DIR__ . '/src/Prototype/tests')
->exclude(__DIR__ . '/src/Scaffolder/tests/App/runtime')
->exclude(__DIR__ . '/src/Snapshots/tests')
->exclude(__DIR__ . '/src/Core/tests/Internal/Proxy/ProxyClassRendererTest.php')
->exclude(__DIR__ . '/src/Core/tests/Exception/ClosureRendererTraitTest.php')
Expand Down
42 changes: 33 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
# CHANGELOG

## Unreleased
## 3.15.0 - 2025-01-24

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

## 3.14.10 - 2025-01-22

- **Bug Fixes**
- [spiral/telemetry] Improve types for `SpanInterface`
- [spiral/stempler] Fix parsing of `@` inside a string that is not a directive
- [spiral/telemetry] Improve types for `SpanInterface`
- [spiral/stempler] Fix parsing of `@` inside a string that is not a directive

## 3.14.9 - 2025-01-07

- **Bug Fixes**
- [spiral/core] Define Auth* middleware in `http` scope
- [spiral/auth-http] Fixed injectors binding via `Binder::bind` method
- [spiral/telemetry] Fixed returning type in TelemetryProcessor for Monolog
- [spiral/stempler] Fixed directory import in stempler component
- [spiral/core] Define Auth* middleware in `http` scope
- [spiral/auth-http] Fixed injectors binding via `Binder::bind` method
- [spiral/telemetry] Fixed returning type in TelemetryProcessor for Monolog
- [spiral/stempler] Fixed directory import in stempler component

## 3.14.8 - 2024-12-11

Expand All @@ -30,8 +54,8 @@
## 3.14.6 - 2024-10-22

- **Bug Fixes**
- [spiral/core] `ServerRequestInterface` is always resolved into a Proxy in the `http` scope
- [spiral/cache] `EventDispatcher` is now injected into `CacheManager`
- [spiral/core] `ServerRequestInterface` is always resolved into a Proxy in the `http` scope
- [spiral/cache] `EventDispatcher` is now injected into `CacheManager`

## 3.14.4 - 2024-09-23

Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"psr/http-server-middleware": "^1.0",
"psr/log": "1 - 3",
"psr/simple-cache": "2 - 3",
"ramsey/uuid": "^4.7",
"spiral/attributes": "^2.8|^3.0",
"spiral/composer-publish-plugin": "^1.0",
"symfony/console": "^6.1 || ^7.0",
Expand Down Expand Up @@ -91,8 +92,8 @@
"Spiral\\Distribution\\": "src/Distribution/src",
"Spiral\\DotEnv\\": "src/Bridge/Dotenv/src",
"Spiral\\Encrypter\\": "src/Encrypter/src",
"Spiral\\Exceptions\\": "src/Exceptions/src",
"Spiral\\Events\\": "src/Events/src",
"Spiral\\Exceptions\\": "src/Exceptions/src",
"Spiral\\Files\\": "src/Files/src",
"Spiral\\Filters\\": "src/Filters/src",
"Spiral\\Http\\": "src/Http/src",
Expand Down Expand Up @@ -138,13 +139,12 @@
"league/flysystem-async-aws-s3": "^2.0 || ^3.0",
"league/flysystem-aws-s3-v3": "^2.0 || ^3.0",
"mikey179/vfsstream": "^1.6",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "10.5.3",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"ramsey/collection": "^1.2",
"ramsey/uuid": "^4.2.3",
"rector/rector": "~2.0.0",
"spiral/code-style": "^2.2.2",
"spiral/nyholm-bridge": "^1.2",
"spiral/nyholm-bridge": "^1.3",
"spiral/testing": "^2.8",
"spiral/validator": "^1.3",
"symplify/monorepo-builder": "^10.2.7",
Expand All @@ -158,8 +158,8 @@
"src/Auth/tests",
"src/AuthHttp/tests"
],
"Spiral\\Tests\\Broadcasting\\": "src/Broadcasting/tests",
"Spiral\\Tests\\Boot\\": "src/Boot/tests",
"Spiral\\Tests\\Broadcasting\\": "src/Broadcasting/tests",
"Spiral\\Tests\\Cache\\": "src/Cache/tests",
"Spiral\\Tests\\Config\\": "src/Config/tests",
"Spiral\\Tests\\Console\\": "src/Console/tests",
Expand All @@ -173,8 +173,8 @@
"Spiral\\Tests\\Distribution\\": "src/Distribution/tests",
"Spiral\\Tests\\DotEnv\\": "src/Bridge/Dotenv/tests",
"Spiral\\Tests\\Encrypter\\": "src/Encrypter/tests",
"Spiral\\Tests\\Exceptions\\": "src/Exceptions/tests",
"Spiral\\Tests\\Events\\": "src/Events/tests",
"Spiral\\Tests\\Exceptions\\": "src/Exceptions/tests",
"Spiral\\Tests\\Files\\": "src/Files/tests",
"Spiral\\Tests\\Filters\\": "src/Filters/tests",
"Spiral\\Tests\\Framework\\": "tests/Framework",
Expand Down Expand Up @@ -226,23 +226,23 @@
"spiral/debug": "self.version",
"spiral/distribution": "self.version",
"spiral/dotenv-bridge": "self.version",
"spiral/interceptors": "self.version",
"spiral/encrypter": "self.version",
"spiral/exceptions": "self.version",
"spiral/events": "self.version",
"spiral/exceptions": "self.version",
"spiral/files": "self.version",
"spiral/filters": "self.version",
"spiral/hmvc": "self.version",
"spiral/http": "self.version",
"spiral/interceptors": "self.version",
"spiral/logger": "self.version",
"spiral/mailer": "self.version",
"spiral/models": "self.version",
"spiral/monolog-bridge": "self.version",
"spiral/pagination": "self.version",
"spiral/prototype": "self.version",
"spiral/queue": "self.version",
"spiral/reactor": "self.version",
"spiral/router": "self.version",
"spiral/queue": "self.version",
"spiral/scaffolder": "self.version",
"spiral/security": "self.version",
"spiral/sendit": "self.version",
Expand Down
10 changes: 7 additions & 3 deletions monorepo-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,16 @@
],
],
'require-dev' => [
'phpunit/phpunit' => '^10.1',
'mockery/mockery' => '^1.5',
'spiral/code-style' => '^1.1',
'phpunit/phpunit' => '^10.5',
'mockery/mockery' => '^1.6',
'spiral/code-style' => '^2.2.2',
'symplify/monorepo-builder' => '^10.2.7',
'vimeo/psalm' => '^5.9',
],
'conflict' => [
"spiral/roadrunner-bridge" => "<3.7",
"spiral/sapi-bridge" => "<1.1"
],
]);

$services = $containerConfigurator->services();
Expand Down
6 changes: 3 additions & 3 deletions src/AnnotatedRoutes/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
}
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"spiral/framework": "^3.1",
"spiral/testing": "^2.8",
"spiral/nyholm-bridge": "^1.2",
"spiral/nyholm-bridge": "^1.3",
"vimeo/psalm": "^5.9"
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Auth/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/AuthHttp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"spiral/cookies": "^3.15",
"spiral/http": "^3.15",
"spiral/debug": "^3.15",
"nyholm/psr7": "^1.5",
"nyholm/psr7": "^1.8",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Boot/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"spiral/events": "^3.15"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Dotenv/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"vlucas/phpdotenv": "^5.4"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"spiral/boot": "^3.15",
"vimeo/psalm": "^5.9"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Monolog/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"require-dev": {
"spiral/boot": "^3.15",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Stempler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"spiral/core": "^3.15"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"spiral/boot": "^3.15",
"spiral/testing": "^2.8",
"mockery/mockery": "^1.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Broadcasting/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
}
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"spiral/boot": "^3.15",
"vimeo/psalm": "^5.9"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
},
"require-dev": {
"spiral/boot": "^3.15",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Config/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"spiral/core": "^3.15"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Console/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"require-dev": {
"spiral/boot": "^3.15",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Cookies/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"spiral/http": "^3.15",
"nyholm/psr7": "^1.5",
"nyholm/psr7": "^1.8",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"spiral/security": "^3.15"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Csrf/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"spiral/http": "^3.15",
"nyholm/psr7": "^1.5",
"nyholm/psr7": "^1.8",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"spiral/logger": "^3.15"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Distribution/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"aws/aws-sdk-php": "^3.270",
"guzzlehttp/psr7": "^1.7|^2.0",
"jetbrains/phpstorm-attributes": "^1.0",
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Encrypter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"defuse/php-encryption": "^2.2"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Events/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"require-dev": {
"spiral/boot": "^3.15",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"psr/log": "1 - 3"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Files/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6",
"vimeo/psalm": "^5.9"
},
"autoload": {
Expand Down
Loading

0 comments on commit 93cc1f9

Please sign in to comment.