Merge branch 'master' of github.com:brianc/node-postgres
This commit is contained in:
commit
981b4345f0
8
NEWS.md
8
NEWS.md
@ -9,16 +9,16 @@ We do not include break-fix version release in this file.
|
||||
#### Breaking changes
|
||||
- [Parse the DATE PostgreSQL type as local time](https://github.com/brianc/node-postgres/pull/514)
|
||||
|
||||
After [some discussion](https://github.com/brianc/node-postgres/issues/510) it was decided node-postgres was non-compliant in how it was handling DATE results. They were being converted to UTC, but the PostgreSQL documentation specifies they should be returned in the client timezome. This is a breaking change, and if you use the `date` type you might want to examine your code and make sure nothing is impacted.
|
||||
After [some discussion](https://github.com/brianc/node-postgres/issues/510) it was decided node-postgres was non-compliant in how it was handling DATE results. They were being converted to UTC, but the PostgreSQL documentation specifies they should be returned in the client timezone. This is a breaking change, and if you use the `date` type you might want to examine your code and make sure nothing is impacted.
|
||||
|
||||
- [Fix possible numeric precision loss on numeric & int8 arrays](https://github.com/brianc/node-postgres/pull/501)
|
||||
|
||||
pg@v2.0 included changes to not convert large integers into their JavaScript number representation because of possiblity for numeric precision loss. The same types in arrays were not taken into account. This fix applies the same type of type-coercion rules to arrays of those types, so there will be no more possible numeric loss on an array of very large int8s for example. This is a breaking change because now a return type from a query of `int8[]` will contain _string_ representations
|
||||
pg@v2.0 included changes to not convert large integers into their JavaScript number representation because of possibility for numeric precision loss. The same types in arrays were not taken into account. This fix applies the same type of type-coercion rules to arrays of those types, so there will be no more possible numeric loss on an array of very large int8s for example. This is a breaking change because now a return type from a query of `int8[]` will contain _string_ representations
|
||||
of the integers. Use your favorite JavaScript bignum module to represent them without precision loss, or punch over the type converter to return the old style arrays again.
|
||||
|
||||
- [Fix to input array of dates being improperly converted to utc](https://github.com/benesch/node-postgres/commit/c41eedc3e01e5527a3d5c242fa1896f02ef0b261#diff-7172adb1fec2457a2700ed29008a8e0aR108)
|
||||
|
||||
Single `date` parameters were properly sent to postgres properly, but an input array of dates was being changed into utc dates. This is a violation of what PostgreSQL expects. Small breaking change, but none-the-less something you should check out if you are inserting an array of dates.
|
||||
Single `date` parameters were properly sent to the PostgreSQL server properly in local time, but an input array of dates was being changed into utc dates. This is a violation of what PostgreSQL expects. Small breaking change, but none-the-less something you should check out if you are inserting an array of dates.
|
||||
|
||||
- [Query no longer emits `end` event if it ends due to an error](https://github.com/brianc/node-postgres/commit/357b64d70431ec5ca721eb45a63b082c18e6ffa3)
|
||||
|
||||
@ -39,7 +39,7 @@ Avoids a scenario where your pool could fill up with disconnected & unusable cli
|
||||
|
||||
- [Break type parsing code into separate module](https://github.com/brianc/node-postgres/pull/541)
|
||||
|
||||
To provide better documentation and a clearer explination of how to override the query result parsing system we broke the type converters [into their own module](https://github.com/brianc/node-pg-types). There is still work around removing the 'globalness' of the type converters so each query or connection can return types differently, but this is a good first step and allow a lot more obvious way to return int8 results as JavaScript numbers, for example
|
||||
To provide better documentation and a clearer explanation of how to override the query result parsing system we broke the type converters [into their own module](https://github.com/brianc/node-pg-types). There is still work around removing the 'global-ness' of the type converters so each query or connection can return types differently, but this is a good first step and allow a lot more obvious way to return int8 results as JavaScript numbers, for example
|
||||
|
||||
### v2.11.0
|
||||
- Add support for [application_name](https://github.com/brianc/node-postgres/pull/497)
|
||||
|
Loading…
Reference in New Issue
Block a user