Skip to content

Version Packages#765

Merged
gajus merged 1 commit intomainfrom
changeset-release/main
Mar 12, 2026
Merged

Version Packages#765
gajus merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@slonik/driver@48.13.0

Minor Changes

  • #764 c92d1df Thanks @gajus! - Add 'DISABLE_TIMEOUT' support for idleTimeout and maximumConnectionAge.

    Previously, passing idleTimeout: 'DISABLE_TIMEOUT' was silently ignored — the sentinel string was accepted by the type but never propagated through createPoolConfiguration, so the idle timer always fired at the default 10s. Similarly, maximumConnectionAge only accepted a plain number with no way to opt out of age-based connection recycling.

    Changes:

    • idleTimeout: 'DISABLE_TIMEOUT' now correctly disables idle connection cleanup. Connections above minimumPoolSize are kept alive indefinitely until explicitly released or the pool is ended.
    • maximumConnectionAge now accepts 'DISABLE_TIMEOUT' to disable age-based recycling. Connections are no longer destroyed and replaced after the default 30-minute lifetime.
    • Passing 0 for either field now emits a warning and clamps to 1ms (matching the existing idleTimeout=0 behaviour), rather than being silently ignored.
    • DriverConfiguration.maximumConnectionAge in @slonik/driver is widened to 'DISABLE_TIMEOUT' | number for consistency with the other timeout fields.

    Internally, 'DISABLE_TIMEOUT' is resolved to Number.POSITIVE_INFINITY at the createPoolConfiguration boundary so that createConnectionPool works with plain numeric comparisons throughout.

Patch Changes

  • Updated dependencies []:
    • @slonik/types@48.13.0
    • @slonik/utilities@48.13.0

slonik@48.13.0

Minor Changes

  • #764 c92d1df Thanks @gajus! - Add 'DISABLE_TIMEOUT' support for idleTimeout and maximumConnectionAge.

    Previously, passing idleTimeout: 'DISABLE_TIMEOUT' was silently ignored — the sentinel string was accepted by the type but never propagated through createPoolConfiguration, so the idle timer always fired at the default 10s. Similarly, maximumConnectionAge only accepted a plain number with no way to opt out of age-based connection recycling.

    Changes:

    • idleTimeout: 'DISABLE_TIMEOUT' now correctly disables idle connection cleanup. Connections above minimumPoolSize are kept alive indefinitely until explicitly released or the pool is ended.
    • maximumConnectionAge now accepts 'DISABLE_TIMEOUT' to disable age-based recycling. Connections are no longer destroyed and replaced after the default 30-minute lifetime.
    • Passing 0 for either field now emits a warning and clamps to 1ms (matching the existing idleTimeout=0 behaviour), rather than being silently ignored.
    • DriverConfiguration.maximumConnectionAge in @slonik/driver is widened to 'DISABLE_TIMEOUT' | number for consistency with the other timeout fields.

    Internally, 'DISABLE_TIMEOUT' is resolved to Number.POSITIVE_INFINITY at the createPoolConfiguration boundary so that createConnectionPool works with plain numeric comparisons throughout.

Patch Changes

  • Updated dependencies [c92d1df]:
    • @slonik/driver@48.13.0
    • @slonik/errors@48.13.0
    • @slonik/pg-driver@48.13.0
    • @slonik/sql-tag@48.13.0
    • @slonik/utilities@48.13.0

@slonik/errors@48.13.0

Patch Changes

  • Updated dependencies []:
    • @slonik/types@48.13.0

@slonik/pg-driver@48.13.0

Patch Changes

  • Updated dependencies [c92d1df]:
    • @slonik/driver@48.13.0
    • @slonik/errors@48.13.0
    • @slonik/sql-tag@48.13.0
    • @slonik/types@48.13.0
    • @slonik/utilities@48.13.0

slonik-sql-tag-raw@48.13.0

Patch Changes

  • Updated dependencies []:
    • @slonik/sql-tag@48.13.0

@slonik/sql-tag@48.13.0

Patch Changes

  • Updated dependencies []:
    • @slonik/errors@48.13.0
    • @slonik/types@48.13.0

@slonik/utilities@48.13.0

Patch Changes

  • Updated dependencies []:
    • @slonik/errors@48.13.0
    • @slonik/types@48.13.0

@slonik/dataloaders@48.13.0

slonik-interceptor-field-name-transformation@48.13.0

slonik-interceptor-query-cache@48.13.0

slonik-interceptor-query-logging@48.13.0

@slonik/test-ssls@48.13.0

@slonik/types@48.13.0

@slonik/benchmark@48.13.0

Patch Changes

  • Updated dependencies [c92d1df]:
    • slonik@48.13.0

@gajus gajus merged commit 79db971 into main Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant