Skip to content

Releases: gajus/slonik

slonik@49.10.9

Choose a tag to compare

@github-actions github-actions released this 26 Jul 16:12
0d9da1d

Patch Changes

  • de20433 Thanks @gajus! - Update roarr to ^7.21.7

  • Updated dependencies [de20433]:

    • @slonik/sql-tag@49.10.9
    • @slonik/driver@49.10.9
    • @slonik/errors@49.10.9
    • @slonik/pg-driver@49.10.9
    • @slonik/utilities@49.10.9

slonik@49.10.8

Choose a tag to compare

@github-actions github-actions released this 26 Jul 14:23
15582eb

Patch Changes

  • 45f2ebe Thanks @gajus! - Avoid Promise.race allocation on every connection checkout

    Every pool-level query wrapped its handler in Promise.race, so that a connection-level error event surfaces immediately instead of leaving the checkout waiting. That guard is needed — without it, an error arriving while no query is in flight is not surfaced at all, which is exactly the idleInTransactionSessionTimeout case — but Promise.race is an expensive way to express it: it allocates the array, a capability, and a resolve-element closure per entry, on every checkout.

    A deferred's resolve and reject are already idempotent, so forwarding both the routine and the connection error into the same deferred gives identical semantics with materially less machinery. The first settlement wins and later calls are no-ops, so a connection error arriving after the routine has settled is still discarded, and a routine that rejects after a connection error still cannot produce an unhandled rejection.

    Measured over 500,000 checkouts: 1,829 B and 237 ns per checkout, down to 1,095 B and 153 ns — roughly 40% fewer bytes and 36% less time. End to end against PostgreSQL 17 at a pool size of 10, CPU per query fell from ~41.5 µs to ~38.7 µs (about 7%), and the raceError frame fell from 1.40% to 0.48% of active CPU.

  • Updated dependencies [8a9878a]:

    • @slonik/sql-tag@49.10.8
    • @slonik/driver@49.10.8
    • @slonik/errors@49.10.8
    • @slonik/pg-driver@49.10.8
    • @slonik/utilities@49.10.8

slonik-sql-tag-raw@49.10.9

Choose a tag to compare

@github-actions github-actions released this 26 Jul 16:12
0d9da1d

Patch Changes

  • 5c4e88c Thanks @gajus! - Declare @types/node where Node globals are used

    roarr@7.21.7 dropped the /// <reference types="node" /> directive from its type declarations. These packages use process and Buffer but never declared @types/node themselves — they were picking up the Node globals transitively through roarr, so removing the directive broke their builds. Each now declares @types/node directly.

  • de20433 Thanks @gajus! - Update roarr to ^7.21.7

  • Updated dependencies [de20433]:

    • @slonik/sql-tag@49.10.9

slonik-sql-tag-raw@49.10.8

Choose a tag to compare

@github-actions github-actions released this 26 Jul 14:23
15582eb

Patch Changes

  • Updated dependencies [8a9878a]:
    • @slonik/sql-tag@49.10.8

slonik-interceptor-query-logging@49.10.9

Choose a tag to compare

@github-actions github-actions released this 26 Jul 16:12
0d9da1d

Patch Changes

  • 5c4e88c Thanks @gajus! - Declare @types/node where Node globals are used

    roarr@7.21.7 dropped the /// <reference types="node" /> directive from its type declarations. These packages use process and Buffer but never declared @types/node themselves — they were picking up the Node globals transitively through roarr, so removing the directive broke their builds. Each now declares @types/node directly.

slonik-interceptor-query-logging@49.10.8

Choose a tag to compare

@github-actions github-actions released this 26 Jul 14:22
15582eb
slonik-interceptor-query-logging@49.10.8

slonik-interceptor-query-cache@49.10.9

Choose a tag to compare

@github-actions github-actions released this 26 Jul 16:12
0d9da1d

Patch Changes

slonik-interceptor-query-cache@49.10.8

Choose a tag to compare

@github-actions github-actions released this 26 Jul 14:22
15582eb
slonik-interceptor-query-cache@49.10.8

slonik-interceptor-field-name-transformation@49.10.9

Choose a tag to compare

@github-actions github-actions released this 26 Jul 16:12
0d9da1d
slonik-interceptor-field-name-transformation@49.10.9

slonik-interceptor-field-name-transformation@49.10.8

Choose a tag to compare

@github-actions github-actions released this 26 Jul 14:23
15582eb
slonik-interceptor-field-name-transformation@49.10.8