Skip to content

Conversation

MichielDeMey
Copy link
Contributor

This PR will add node-postgres as a peerDependency forcing you to bring your own version.
As a side-effect of this change, the library's version will require a major version bump since we cannot guarantee backward-compatibility for everyone.

The earliest version of pg that I could find that we can support is technically >=5.0.0 (calling pg.native will return null in case the native library was not installed), but the tests rely on pg.Pool which was introduced in 6.0.0, hence the safest version we can support right now is 6.0.0.

If we want to safely add support for 5.0.0 we'll have to re-write the tests to remove dependency on pg.Pool.

Fixes #42.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina requested a review from cemremengu February 12, 2019 15:08
Copy link
Contributor

@cemremengu cemremengu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cemremengu
Copy link
Contributor

@mcollina we are bumping a major right?

@mcollina
Copy link
Member

mcollina commented Feb 12, 2019 via email

@cemremengu cemremengu merged commit be94c60 into fastify:master Feb 12, 2019
@cemremengu
Copy link
Contributor

@MichielDeMey v2.0.0 is now on npm

@MichielDeMey
Copy link
Contributor Author

Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants