Packages

pg

8.23.1 · 30 Sep 2026MIT106.3M / weekRepositorynpmAtom feed

Your version

2.0.0

major19 Jun 2013Where it was published

2.11.2 is the newest release of 2.x.

In short

1 changed

Security

1 advisory affects 2.0.0; 2.11.2 fixes them

Release note

  • Properly handle various PostgreSQL to JavaScript type conversions to avoid data loss:

PostgreSQL | pg@v2.0 JavaScript | pg@v1.0 JavaScript
--------------------------------|----------------
float4     | number (float)     | string
float8     | number (float)     | string
int8       | string             | number (int)
numeric    | string             | number (float)
decimal    | string             | number (float)

For more information see #353
If you are unhappy with these changes you can always override the built in type parsing fairly easily.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.