nodeca / promise-memoize

Memoize promise-returning functions. Includes cache expire and prefetch.
MIT License
59 stars 7 forks source link

Build with babel into /es5 for older versions of node #3

Closed forivall closed 8 years ago

forivall commented 8 years ago

Support older versions of node (0.10) via transpiling into /es5 with babel, so, with older versions of node, you just require with

var promiseMemoize = require('promise-memoize/es5')

grumble grumble vendor still hasn't upgraded off of 0.10

puzrin commented 8 years ago

I have a question about es5. How critical is it? 0.10 support is expired, 0.12 about to expire. We usually support compatibility in old modules, but i don't see much reasons to do it in new one.

Could you explain why do you need old nodes support?

puzrin commented 8 years ago

Closed via https://github.com/nodeca/promise-memoize/commit/43810fe2fb48b0c180506a174b667638a4b1a7b0 - more simple and maintainable.