jstransformer icon indicating copy to clipboard operation
jstransformer copied to clipboard

Deprecate/remove Promise

Open RobLoach opened this issue 10 years ago • 7 comments

Now that node 4.0.0 is out, it means we are currently supportly three different versions of Node. It would be nice to just target that previous 2 releases. Considering that, I propose we remove http://npm.im/promise and use the native Promise.

RobLoach avatar Sep 09 '15 13:09 RobLoach

:-1: We should stay with it until April 2017, If understood correctly, when 0.10 will be totally obsoleted. That's why I changed my boilerplate travis file for builds to support only 0.10, 0.12 and 4.

tunnckoCore avatar Sep 09 '15 14:09 tunnckoCore

I agree with @tunnckoCore. This is definitely something we want to do, but I think this is about 6 months too early.

ForbesLindesay avatar Sep 16 '15 21:09 ForbesLindesay

Node 6 is out now, and it has been more than 6 months. Support only Node.js 4, 5, and 6?

RobLoach avatar May 31 '16 15:05 RobLoach

We at @pugjs are using jstransformers for Pug 2.0.0, which supports everything from 0.10. It'd be a shame to see a module we use not support the Node.js versions Pug supports, especially when the support requires literally one line of code.

TimothyGu avatar May 31 '16 17:05 TimothyGu

It'd be a shame to see a module we use not support the Node.js versions Pug supports

:+1:

tunnckoCore avatar May 31 '16 21:05 tunnckoCore

What is your support window? Will it align with Node.js's LTS schedule?

RobLoach avatar Jun 01 '16 07:06 RobLoach

We're no longer supporting Node.js 0.10. Node.js 0.12 has native Promise support. We can now safely remove http://npm.im/promise .

A lot of the use of http://npm.im/promise is .nodeify and .denodeify. It is converting a lot of async functions back and forth between Promises/callbacks. We could likely clean some of that up.

RobLoach avatar Nov 04 '16 15:11 RobLoach