mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 09:43:13 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30207ce0c2 | ||
|
|
0f37f1cb23 | ||
|
|
99a905cdee | ||
|
|
6eac079440 | ||
|
|
4a1e7b8d5a | ||
|
|
351e36b273 |
2
.github/workflows/publish-release.yml
vendored
2
.github/workflows/publish-release.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: [ '8.0' ]
|
php-version: [ '8.0', '8.1' ]
|
||||||
swoole: [ 'yes', 'no' ]
|
swoole: [ 'yes', 'no' ]
|
||||||
steps:
|
steps:
|
||||||
- uses: geekyeggo/delete-artifact@v1
|
- uses: geekyeggo/delete-artifact@v1
|
||||||
|
|||||||
18
CHANGELOG.md
18
CHANGELOG.md
@@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
||||||
|
|
||||||
|
## [2.10.1] - 2021-12-21
|
||||||
|
### Added
|
||||||
|
* *Nothing*
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* *Nothing*
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
* *Nothing*
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
* *Nothing*
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* [#1285](https://github.com/shlinkio/shlink/issues/1285) Fixed error caused by database connections expiring after some hours of inactivity.
|
||||||
|
* [#1286](https://github.com/shlinkio/shlink/issues/1286) Fixed `x-request-id` header not being generated during non-rest requests.
|
||||||
|
|
||||||
|
|
||||||
## [2.10.0] - 2021-12-12
|
## [2.10.0] - 2021-12-12
|
||||||
### Added
|
### Added
|
||||||
* [#1163](https://github.com/shlinkio/shlink/issues/1163) Allowed setting not-found redirects for default domain in the same way it's done for any other domain.
|
* [#1163](https://github.com/shlinkio/shlink/issues/1163) Allowed setting not-found redirects for default domain in the same way it's done for any other domain.
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
"pugx/shortid-php": "^1.0",
|
"pugx/shortid-php": "^1.0",
|
||||||
"ramsey/uuid": "^4.2",
|
"ramsey/uuid": "^4.2",
|
||||||
"shlinkio/shlink-common": "^4.2",
|
"shlinkio/shlink-common": "^4.2.1",
|
||||||
"shlinkio/shlink-config": "^1.4",
|
"shlinkio/shlink-config": "^1.4",
|
||||||
"shlinkio/shlink-event-dispatcher": "^2.3",
|
"shlinkio/shlink-event-dispatcher": "^2.3",
|
||||||
"shlinkio/shlink-importer": "^2.5",
|
"shlinkio/shlink-importer": "^2.5",
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ return [
|
|||||||
'error-handler' => [
|
'error-handler' => [
|
||||||
'middleware' => [
|
'middleware' => [
|
||||||
ContentLengthMiddleware::class,
|
ContentLengthMiddleware::class,
|
||||||
|
RequestIdMiddleware::class,
|
||||||
ErrorHandler::class,
|
ErrorHandler::class,
|
||||||
Rest\Middleware\CrossDomainMiddleware::class,
|
Rest\Middleware\CrossDomainMiddleware::class,
|
||||||
],
|
],
|
||||||
@@ -24,7 +25,6 @@ return [
|
|||||||
'error-handler-rest' => [
|
'error-handler-rest' => [
|
||||||
'path' => '/rest',
|
'path' => '/rest',
|
||||||
'middleware' => [
|
'middleware' => [
|
||||||
RequestIdMiddleware::class,
|
|
||||||
ProblemDetails\ProblemDetailsMiddleware::class,
|
ProblemDetails\ProblemDetailsMiddleware::class,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ return (static function () {
|
|||||||
|
|
||||||
'options' => [
|
'options' => [
|
||||||
'worker_num' => (int) env('WEB_WORKER_NUM', 16),
|
'worker_num' => (int) env('WEB_WORKER_NUM', 16),
|
||||||
'task_worker_num' => $taskWorkers < MIN_TASK_WORKERS ? MIN_TASK_WORKERS : $taskWorkers,
|
'task_worker_num' => max($taskWorkers, MIN_TASK_WORKERS),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class CloseDbConnectionEventListener
|
|||||||
($this->wrapped)($event);
|
($this->wrapped)($event);
|
||||||
} finally {
|
} finally {
|
||||||
$this->em->getConnection()->close();
|
$this->em->getConnection()->close();
|
||||||
$this->em->clear();
|
$this->em->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class CloseDbConnectionEventListenerTest extends TestCase
|
|||||||
$close = $conn->close()->will(function (): void {
|
$close = $conn->close()->will(function (): void {
|
||||||
});
|
});
|
||||||
$getConn = $this->em->getConnection()->willReturn($conn->reveal());
|
$getConn = $this->em->getConnection()->willReturn($conn->reveal());
|
||||||
$clear = $this->em->clear()->will(function (): void {
|
$close = $this->em->close()->will(function (): void {
|
||||||
});
|
});
|
||||||
$open = $this->em->open()->will(function (): void {
|
$open = $this->em->open()->will(function (): void {
|
||||||
});
|
});
|
||||||
@@ -51,7 +51,7 @@ class CloseDbConnectionEventListenerTest extends TestCase
|
|||||||
self::assertTrue($wrappedWasCalled);
|
self::assertTrue($wrappedWasCalled);
|
||||||
$close->shouldHaveBeenCalledOnce();
|
$close->shouldHaveBeenCalledOnce();
|
||||||
$getConn->shouldHaveBeenCalledOnce();
|
$getConn->shouldHaveBeenCalledOnce();
|
||||||
$clear->shouldHaveBeenCalledOnce();
|
$close->shouldHaveBeenCalledOnce();
|
||||||
$open->shouldHaveBeenCalledOnce();
|
$open->shouldHaveBeenCalledOnce();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user