Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 0 additions & 17 deletions .changeset/humble-onions-send.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/benchmark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @slonik/benchmark

## 48.13.0

### Patch Changes

- Updated dependencies [[`c92d1df`](https://github.com/gajus/slonik/commit/c92d1df8e0e7fa3124dc69f32175a8b6df1b866d)]:
- slonik@48.13.0

## 48.12.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/benchmark",
"version": "48.12.3",
"version": "48.13.0",
"private": true,
"scripts": {
"benchmark": "NODE_ENV=production node benchmark.js"
Expand All @@ -10,6 +10,6 @@
"pg": "^8.18.0",
"pg-promise": "^11.15.0",
"postgres": "^3.4.7",
"slonik": "^48.12.3"
"slonik": "^48.13.0"
}
}
23 changes: 23 additions & 0 deletions packages/driver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @slonik/driver

## 48.13.0

### Minor Changes

- [#764](https://github.com/gajus/slonik/pull/764) [`c92d1df`](https://github.com/gajus/slonik/commit/c92d1df8e0e7fa3124dc69f32175a8b6df1b866d) Thanks [@gajus](https://github.com/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

## 48.12.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/driver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/driver",
"version": "48.12.3",
"version": "48.13.0",
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"keywords": [
"postgresql",
Expand Down Expand Up @@ -32,8 +32,8 @@
"test": "ava --verbose --serial"
},
"dependencies": {
"@slonik/types": "^48.12.3",
"@slonik/utilities": "^48.12.3",
"@slonik/types": "^48.13.0",
"@slonik/utilities": "^48.13.0",
"roarr": "^7.21.4",
"serialize-error": "^12.0.0",
"strict-event-emitter-types": "^2.0.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/errors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @slonik/errors

## 48.13.0

### Patch Changes

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

## 48.12.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/errors",
"version": "48.12.3",
"version": "48.13.0",
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"keywords": [
"postgresql",
Expand Down Expand Up @@ -32,7 +32,7 @@
"test": "ava --verbose --serial"
},
"dependencies": {
"@slonik/types": "^48.12.3"
"@slonik/types": "^48.13.0"
},
"devDependencies": {
"@standard-schema/spec": "^1.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/pg-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @slonik/pg-driver

## 48.13.0

### Patch Changes

- Updated dependencies [[`c92d1df`](https://github.com/gajus/slonik/commit/c92d1df8e0e7fa3124dc69f32175a8b6df1b866d)]:
- @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

## 48.12.3

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/pg-driver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/pg-driver",
"version": "48.12.3",
"version": "48.13.0",
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"keywords": [
"postgresql",
Expand Down Expand Up @@ -32,11 +32,11 @@
"test": "ava --verbose --serial"
},
"dependencies": {
"@slonik/driver": "^48.12.3",
"@slonik/errors": "^48.12.3",
"@slonik/sql-tag": "^48.12.3",
"@slonik/types": "^48.12.3",
"@slonik/utilities": "^48.12.3",
"@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",
"pg": "^8.18.0",
"pg-query-stream": "^4.12.0",
"pg-types": "^4.1.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/slonik-dataloaders/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @slonik/dataloaders

## 48.13.0

## 48.12.3

## 48.12.2
Expand Down
6 changes: 3 additions & 3 deletions packages/slonik-dataloaders/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/dataloaders",
"version": "48.12.3",
"version": "48.13.0",
"description": "Utilities for creating DataLoaders using Slonik.",
"keywords": [
"interceptor",
Expand Down Expand Up @@ -31,9 +31,9 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@slonik/types": "^48.12.3",
"@slonik/types": "^48.13.0",
"@standard-schema/spec": "^1.0.0",
"slonik": "^48.12.3",
"slonik": "^48.13.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# slonik-interceptor-field-name-transformation

## 48.13.0

## 48.12.3

## 48.12.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slonik-interceptor-field-name-transformation",
"version": "48.12.3",
"version": "48.13.0",
"description": "Transforms Slonik query result field names.",
"keywords": [
"format",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"ava": "^6.4.1",
"slonik": "^48.12.3",
"slonik": "^48.13.0",
"tsimp": "^2.0.12",
"typescript": "^5.9.3"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/slonik-interceptor-query-cache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# slonik-interceptor-query-cache

## 48.13.0

## 48.12.3

## 48.12.2
Expand Down
4 changes: 2 additions & 2 deletions packages/slonik-interceptor-query-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slonik-interceptor-query-cache",
"version": "48.12.3",
"version": "48.13.0",
"description": "Logs Slonik queries.",
"keywords": [
"interceptor",
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"ava": "^6.4.1",
"slonik": "^48.12.3",
"slonik": "^48.13.0",
"tsimp": "^2.0.12",
"typescript": "^5.9.3"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/slonik-interceptor-query-logging/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# slonik-interceptor-query-logging

## 48.13.0

## 48.12.3

## 48.12.2
Expand Down
4 changes: 2 additions & 2 deletions packages/slonik-interceptor-query-logging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slonik-interceptor-query-logging",
"version": "48.12.3",
"version": "48.13.0",
"description": "Logs Slonik queries.",
"keywords": [
"interceptor",
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"ava": "^6.4.1",
"slonik": "^48.12.3",
"slonik": "^48.13.0",
"tsimp": "^2.0.12",
"typescript": "^5.9.3"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/slonik-sql-tag-raw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# slonik-sql-tag-raw

## 48.13.0

### Patch Changes

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

## 48.12.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/slonik-sql-tag-raw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slonik-sql-tag-raw",
"version": "48.12.3",
"version": "48.13.0",
"description": "Logs Slonik queries.",
"keywords": [
"interceptor",
Expand All @@ -26,12 +26,12 @@
"test": "ava --verbose --serial"
},
"dependencies": {
"@slonik/sql-tag": "^48.12.3",
"@slonik/sql-tag": "^48.13.0",
"roarr": "^7.21.4"
},
"devDependencies": {
"ava": "^6.4.1",
"slonik": "^48.12.3",
"slonik": "^48.13.0",
"tsimp": "^2.0.12",
"typescript": "^5.9.3"
},
Expand Down
26 changes: 26 additions & 0 deletions packages/slonik/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# slonik

## 48.13.0

### Minor Changes

- [#764](https://github.com/gajus/slonik/pull/764) [`c92d1df`](https://github.com/gajus/slonik/commit/c92d1df8e0e7fa3124dc69f32175a8b6df1b866d) Thanks [@gajus](https://github.com/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`](https://github.com/gajus/slonik/commit/c92d1df8e0e7fa3124dc69f32175a8b6df1b866d)]:
- @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

## 48.12.3

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/slonik/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slonik",
"version": "48.12.3",
"version": "48.13.0",
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"keywords": [
"postgresql",
Expand Down Expand Up @@ -33,11 +33,11 @@
},
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"@slonik/driver": "^48.12.3",
"@slonik/errors": "^48.12.3",
"@slonik/pg-driver": "^48.12.3",
"@slonik/sql-tag": "^48.12.3",
"@slonik/utilities": "^48.12.3",
"@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",
"@standard-schema/spec": "^1.0.0",
"iso8601-duration": "^2.1.3",
"p-limit": "^6.2.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/sql-tag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @slonik/sql-tag

## 48.13.0

### Patch Changes

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

## 48.12.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/sql-tag/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slonik/sql-tag",
"version": "48.12.3",
"version": "48.13.0",
"description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
"keywords": [
"postgresql",
Expand Down Expand Up @@ -32,8 +32,8 @@
"test": "ava --verbose --serial"
},
"dependencies": {
"@slonik/errors": "^48.12.3",
"@slonik/types": "^48.12.3",
"@slonik/errors": "^48.13.0",
"@slonik/types": "^48.13.0",
"roarr": "^7.21.4",
"safe-stable-stringify": "^2.5.0",
"serialize-error": "^12.0.0",
Expand Down
Loading