Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b4a526c
Require the reviewed Guzzle fork releases
binaryfire Nov 25, 2026
b8c2844
Encode the copied request URL on the exception page
binaryfire Nov 25, 2026
b9ba30b
Keep encoded parameters intact in numeric query strings
binaryfire Nov 25, 2026
1b3d2f3
Disconnect database connections through a teardown hook
binaryfire Nov 25, 2026
51d21d1
Validate dynamic component, slot and attribute names
binaryfire Nov 25, 2026
b38f34a
Derive validation rules from JSON schemas
binaryfire Nov 25, 2026
001caf9
Bound chained JSON Schema references
binaryfire Nov 25, 2026
b9040a3
Compare normalized keys when checking guarded attributes
binaryfire Nov 25, 2026
137c71d
Escape stringable component attributes and prepended defaults
binaryfire Nov 25, 2026
68677ae
Compare user IDs as strings in the broadcasting routes stub
binaryfire Nov 25, 2026
2b806bf
Cover the autocomplete prompt fallback
binaryfire Nov 25, 2026
fa01afe
Keep trans_choice conditions after " | "
binaryfire Nov 25, 2026
ee81ab4
Stop empty input fields from hiding uploaded files
binaryfire Nov 25, 2026
36c3617
Align relation withCasts() with upstream
binaryfire Nov 25, 2026
f0863eb
Add model retrieval helpers to form requests
binaryfire Nov 25, 2026
e3e043e
Pass options through copyToDisk() and moveToDisk()
binaryfire Nov 25, 2026
56a4e1d
Add lockForNoKeyUpdate() to the query builder
binaryfire Nov 25, 2026
c15cfd2
Cover clearing a stale password hash on passwordless login
binaryfire Nov 25, 2026
78a9244
Dispatch UniqueJobSkipped from the scheduler
binaryfire Nov 25, 2026
680a371
Add transaction duration monitoring
binaryfire Nov 25, 2026
75a2311
Allow a manager's default driver to be an enum
binaryfire Nov 25, 2026
20ccc9e
Test against PostgreSQL 19
binaryfire Nov 25, 2026
fd68f0d
Use strict doubles in two ported tests
binaryfire Nov 25, 2026
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
47 changes: 47 additions & 0 deletions .github/workflows/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,53 @@ jobs:
DB_PASSWORD: password
run: bin/run-database-tests.sh pgsql

pgsql_19:
runs-on: ubuntu-latest
timeout-minutes: 10

services:
postgres:
image: pgvector/pgvector:0.8.7-pg19
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: testing
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5

container:
image: ghcr.io/hypervel/components-ci:php${{ matrix.php }}-swoole-nightly

strategy:
fail-fast: false
matrix:
php: ["8.4", "8.5"]

name: PostgreSQL 19 (PHP ${{ matrix.php }})

steps:
- name: Checkout code
uses: actions/checkout@v7.0.1
with:
persist-credentials: false

- name: Log trigger context
uses: ./.github/actions/log-trigger-context

- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o

- name: Execute integration tests
env:
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: testing
DB_USERNAME: postgres
DB_PASSWORD: password
run: bin/run-database-tests.sh pgsql

sqlite:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"google/protobuf": "^5.35",
"guzzlehttp/psr7": "^3.1",
"guzzlehttp/uri-template": "^1.0 || ^2.0",
"hypervel/guzzle": "^8.5.0.2",
"hypervel/guzzle-promises": "^3.1",
"hypervel/guzzle": "^8.6.0.1",
"hypervel/guzzle-promises": "^3.2",
"laravel/agent-detector": "^2.0.5",
"laravel/serializable-closure": "^2.0.11",
"lcobucci/jwt": "^5.7",
Expand Down Expand Up @@ -410,7 +410,8 @@
"sort-packages": true,
"policy": {
"cooldown": {
"period": "3 days"
"period": "3 days",
"ignore": ["hypervel/guzzle", "hypervel/guzzle-promises"]
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/ai/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"hypervel/events": "^0.4",
"hypervel/filesystem": "^0.4",
"hypervel/foundation": "^0.4",
"hypervel/guzzle": "^8.5.0.2",
"hypervel/guzzle-promises": "^3.1",
"hypervel/guzzle": "^8.6.0.1",
"hypervel/guzzle-promises": "^3.2",
"hypervel/http": "^0.4",
"hypervel/json-schema": "^0.4",
"hypervel/log": "^0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/api-client/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"hypervel/conditionable": "^0.4",
"hypervel/container": "^0.4",
"hypervel/contracts": "^0.4",
"hypervel/guzzle": "^8.5.0.2",
"hypervel/guzzle-promises": "^3.1",
"hypervel/guzzle": "^8.6.0.1",
"hypervel/guzzle-promises": "^3.2",
"hypervel/http": "^0.4",
"hypervel/pipeline": "^0.4",
"hypervel/support": "^0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/broadcasting/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"hypervel/contracts": "^0.4",
"hypervel/database": "^0.4",
"hypervel/foundation": "^0.4",
"hypervel/guzzle": "^8.5.0.2",
"hypervel/guzzle-promises": "^3.1",
"hypervel/guzzle": "^8.6.0.1",
"hypervel/guzzle-promises": "^3.2",
"hypervel/http": "^0.4",
"hypervel/object-pool": "^0.4",
"hypervel/queue": "^0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/console/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"hypervel/coroutine": "^0.4",
"hypervel/engine": "^0.4",
"hypervel/filesystem": "^0.4",
"hypervel/guzzle": "^8.5.0.2",
"hypervel/guzzle": "^8.6.0.1",
"hypervel/log": "^0.4",
"hypervel/macroable": "^0.4",
"hypervel/prompts": "^0.4",
Expand Down
9 changes: 9 additions & 0 deletions src/console/src/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Hypervel\Contracts\Queue\ShouldBeUnique;
use Hypervel\Contracts\Queue\ShouldQueue;
use Hypervel\Queue\CallQueuedClosure;
use Hypervel\Queue\Events\UniqueJobSkipped;
use Hypervel\Support\Attributes\BootOnly;
use Hypervel\Support\Collection;
use Hypervel\Support\Facades\Date;
Expand Down Expand Up @@ -271,6 +272,14 @@ protected function dispatchUniqueJobToQueue(object $job, ?string $queue, ?string
$lock = new UniqueLock(Container::getInstance()->make(Cache::class));

if (! $lock->acquireForDispatch($job)) {
if (Container::getInstance()->bound(EventDispatcher::class)) {
$events = Container::getInstance()->make(EventDispatcher::class);

if ($events->hasListeners(UniqueJobSkipped::class)) {
$events->dispatch(new UniqueJobSkipped($job));
}
}

return;
}

Expand Down
1 change: 1 addition & 0 deletions src/database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Documentation: https://hypervel.org/docs/database
- PDO connections require exception mode so failed statements cannot silently continue. Warning and silent options are rejected when connecting; custom connectors and supplied handles must honor the same requirement. See [PDO error mode](https://hypervel.org/docs/database#pdo-error-mode).
- Default retry and lost-connection detection recognizes PDO failures, not arbitrary exception text. Non-PDO drivers provide their own policies through `LostConnectionDetector::detectUsing()` for lost connections or the existing detector bindings; see [detecting database failures](https://hypervel.org/docs/database#detecting-database-failures).
- `DB::transaction()` throws if its closure manually ends the transaction it owns. Let `transaction()` manage completion, or use the manual transaction API separately. Balanced nested transactions remain supported; see [database transactions](https://hypervel.org/docs/database#database-transactions).
- `DB::whenQueryingForLongerThan()` and `DB::whenTransactionRunsLongerThan()` register monitors for every request the worker handles, so they may only be called while the application boots. For the current request, call the same methods on `DB::connection()`. Callbacks registered on a connection run directly instead of through event listeners, so they still run when the related events are faked or no event dispatcher is set. See [monitoring long-running transactions](https://hypervel.org/docs/database#monitoring-long-running-transactions).
- Transaction records use the resolved connection's `getNameWithReadWriteType()`, not its base `getName()`, so distinct base, read and write sessions own separate callbacks. Extensions inspecting transaction records must compare against the resolved owner's full name.
- PostgreSQL multi-column full text indexes and `whereFullText` queries coalesce each column's vector, so a null column doesn't hide a row. Recreate multi-column full text indexes created by Laravel's grammar so searches can use them; see [full text where clauses](https://hypervel.org/docs/queries#full-text-where-clauses).
- SQLite requires 3.32.0 or later rather than Laravel's 3.26.0 minimum, so framework code assumes the newer default limit of 32,766 bindings per statement.
Expand Down
9 changes: 6 additions & 3 deletions src/database/src/Concerns/ManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function transaction(Closure $callback, int $attempts = 1): mixed
}

$this->transactions = max(0, $this->transactions - 1);
$completedTransaction = $this->stopTransactionTimer();
$exception = null;

try {
Expand All @@ -101,7 +102,7 @@ public function transaction(Closure $callback, int $attempts = 1): mixed
}

try {
$this->fireConnectionEvent('committed');
$this->fireCompletedTransactionEvent('committed', $completedTransaction);
} catch (Throwable $throwable) {
if (Coroutine::causedByCancellation($throwable)) {
throw $throwable;
Expand Down Expand Up @@ -260,6 +261,7 @@ public function commit(): void
max(0, $this->transactions - 1),
];

$completedTransaction = $this->stopTransactionTimer();
$exception = null;

try {
Expand All @@ -277,7 +279,7 @@ public function commit(): void
}

try {
$this->fireConnectionEvent('committed');
$this->fireCompletedTransactionEvent('committed', $completedTransaction);
} catch (Throwable $throwable) {
if (Coroutine::causedByCancellation($throwable)) {
throw $throwable;
Expand Down Expand Up @@ -375,6 +377,7 @@ public function rollBack(?int $toLevel = null): void
}

$this->transactions = $toLevel;
$completedTransaction = $this->stopTransactionTimer();
$exception = null;

try {
Expand All @@ -391,7 +394,7 @@ public function rollBack(?int $toLevel = null): void
}

try {
$this->fireConnectionEvent('rollingBack');
$this->fireCompletedTransactionEvent('rollingBack', $completedTransaction);
} catch (Throwable $throwable) {
if (Coroutine::causedByCancellation($throwable)) {
throw $throwable;
Expand Down
Loading
Loading