github gajus/slonik slonik@49.10.3

latest releases: @slonik/utilities@49.10.6, @slonik/driver@49.10.6, slonik-interceptor-query-cache@49.10.6...
4 hours ago

Patch Changes

  • e445fea Thanks @gajus! - Avoid copying the interceptor array on every query

    executeQueryInternal copied clientConfiguration.interceptors with .slice()
    on every query before running the result hooks. The array is readonly and is
    never mutated during a query — the before-query and error hooks already iterate
    it directly — so the copy was a wasted array allocation per query.

    The interceptors are now read directly. Behaviour is unchanged; this removes
    fixed-per-query allocation, most noticeable on high-throughput workloads.

  • Updated dependencies []:

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

Don't miss a new slonik release

NewReleases is sending notifications on new releases.