mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
When the `bigint` option is not set (the default), PostgreSQL int8/bigint values that fit within Number.MAX_SAFE_INTEGER (±2^53-1) are now returned as JavaScript numbers instead of strings. Values outside that range continue to be returned as strings to avoid precision loss. This makes common operations like COUNT(*) return numbers as users expect. Fixes #22188 Co-Authored-By: Claude <noreply@anthropic.com>