Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping support for node v0.10? #1057

Closed
evansiroky opened this issue Jun 21, 2016 · 2 comments
Closed

Dropping support for node v0.10? #1057

evansiroky opened this issue Jun 21, 2016 · 2 comments

Comments

@evansiroky
Copy link

I got a failed continuous integration build based on commit 2fd9c77. Does this mean that this pg package no longer supports node 0.10?

Here is the continuous integration build: https://travis-ci.org/evansiroky/db-streamer/builds/139227721

@brianc
Copy link
Owner

brianc commented Jun 21, 2016

It still supports node@0.10 - you'll need to polyfill the Promise API:

https://github.com/brianc/node-postgres/blob/master/test/test-helper.js#L5

That's how I did it here. note: my tests are still running green against node@0.10! Sorry for the headache!

@brianc brianc closed this as completed Jun 21, 2016
@MehranJanfeshan
Copy link

I had the same problem and I got polyfill and added this code to fix everything:

if (typeof Promise == 'undefined') { global.Promise = require('promise-polyfill') }

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

No branches or pull requests

3 participants