Skip to content

Commit 981b434

Browse files
committed
Merge branch 'master' of github.com:brianc/node-postgres
2 parents 9b74634 + de96422 commit 981b434

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NEWS.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ We do not include break-fix version release in this file.
99
#### Breaking changes
1010
- [Parse the DATE PostgreSQL type as local time](https://github.com/brianc/node-postgres/pull/514)
1111

12-
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.
12+
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.
1313

1414
- [Fix possible numeric precision loss on numeric & int8 arrays](https://github.com/brianc/node-postgres/pull/501)
1515

16-
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
16+
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
1717
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.
1818

1919
- [Fix to input array of dates being improperly converted to utc](https://github.com/benesch/node-postgres/commit/c41eedc3e01e5527a3d5c242fa1896f02ef0b261#diff-7172adb1fec2457a2700ed29008a8e0aR108)
2020

21-
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.
21+
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.
2222

2323
- [Query no longer emits `end` event if it ends due to an error](https://github.com/brianc/node-postgres/commit/357b64d70431ec5ca721eb45a63b082c18e6ffa3)
2424

@@ -39,7 +39,7 @@ Avoids a scenario where your pool could fill up with disconnected & unusable cli
3939

4040
- [Break type parsing code into separate module](https://github.com/brianc/node-postgres/pull/541)
4141

42-
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
42+
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
4343

4444
### v2.11.0
4545
- Add support for [application_name](https://github.com/brianc/node-postgres/pull/497)

0 commit comments

Comments
 (0)