2013-03-29 23:39:05 +08:00
All major and minor releases are briefly explained below.
For richer information consult the commit log on github with referenced pull requests.
We do not include break-fix version release in this file.
2014-01-06 22:11:22 +08:00
### v2.11.0
- Add support for [application_name ](https://github.com/brianc/node-postgres/pull/497 )
2013-12-28 06:22:27 +08:00
### v2.10.0
- Add support for [the password file ](http://www.postgresql.org/docs/9.3/static/libpq-pgpass.html )
2013-12-20 12:34:49 +08:00
### v2.9.0
- Add better support for [unix domain socket ](https://github.com/brianc/node-postgres/pull/487 ) connections
2013-10-19 01:19:01 +08:00
### v2.8.0
- Add support for parsing JSON[] and UUID[] result types
2013-10-03 11:43:46 +08:00
### v2.7.0
- Use single row mode in native bindings when available [@rpedela]
- reduces memory consumption when handling row values in 'row' event
- Automatically bind buffer type parameters as binary [@eugeneware]
2013-09-06 06:04:45 +08:00
### v2.6.0
- Respect PGSSLMODE environment variable
2013-08-29 13:20:14 +08:00
### v2.5.0
- Ability to opt-in to int8 parsing via `pg.defaults.parseInt8 = true`
2013-08-23 11:33:38 +08:00
### v2.4.0
- Use eval in the result set parser to increase performance
2013-07-31 02:17:22 +08:00
### v2.3.0
- Remove built-in support for binary Int64 parsing.
_Due to the low usage & required compiled dependency this will be pushed into a 3rd party add-on_
2013-07-15 22:25:58 +08:00
### v2.2.0
- [Add support for excapeLiteral and escapeIdentifier in both JavaScript and the native bindings ](https://github.com/brianc/node-postgres/pull/396 )
2013-07-10 12:21:14 +08:00
### v2.1.0
2013-07-10 12:19:06 +08:00
- Add support for SSL connections in JavaScript driver
2013-07-10 12:25:17 +08:00
- this means you can connect to heroku postgres from your local machine without the native bindings!
2013-07-10 12:19:06 +08:00
- [Add field metadata to result object ](https://github.com/brianc/node-postgres/blob/master/test/integration/client/row-description-on-results-tests.js )
- [Add ability for rows to be returned as arrays instead of objects ](https://github.com/brianc/node-postgres/blob/master/test/integration/client/results-as-array-tests.js )
2013-07-10 12:21:14 +08:00
### v2.0.0
2013-06-19 10:39:14 +08:00
- 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 https://github.com/brianc/node-postgres/pull/353
If you are unhappy with these changes you can always [override the built in type parsing fairly easily ](https://github.com/brianc/node-pg-parse-float ).
2013-07-10 12:21:14 +08:00
### v1.3.0
2013-06-07 08:34:37 +08:00
- Make client_encoding configurable and optional
2013-07-10 12:21:14 +08:00
### v1.2.0
2013-06-05 10:19:58 +08:00
- return field metadata on result object: access via result.fields[i].name/dataTypeID
2013-07-10 12:21:14 +08:00
### v1.1.0
2013-04-22 23:53:25 +08:00
- built in support for `JSON` data type for PostgreSQL Server @ v9.2.0 or greater
2013-07-10 12:21:14 +08:00
### v1.0.0
2013-03-14 21:44:20 +08:00
- remove deprecated functionality
2013-05-28 21:32:24 +08:00
- Callback function passed to `pg.connect` now __requires__ 3 arguments
- Client#pauseDrain() / Client#resumeDrain removed
- numeric, decimal, and float data types no longer parsed into float before being returned. Will be returned from query results as `String`
2013-03-14 21:44:20 +08:00
2013-03-29 04:35:59 +08:00
### v0.15.0
- client now emits `end` when disconnected from back-end server
- if client is disconnected in the middle of a query, query receives an error
2013-03-14 21:44:20 +08:00
### v0.14.0
- add deprecation warnings in prep for v1.0
- fix read/write failures in native module under node v0.9.x