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

node.js version support #20

Open
benpptung opened this issue Nov 21, 2018 · 2 comments
Open

node.js version support #20

benpptung opened this issue Nov 21, 2018 · 2 comments

Comments

@benpptung
Copy link

I'm sorry I'm still using Node.js 4 because I have no time to upgrade Nodejs, a lot of tooling, testing..I need to make sure my production server working as usual.

I see this "node": ">= 4.0" in package.json.

However, I see the following error while I'm trying to require tinify

preserve(...options) {
SyntaxError: Unexpected token

I do hope to use tinify, because I have about 12,000 pics need to be optimized in our website. Is there any chance to make tinify-node.js to support Nodejs 4 ?

Thank you :)

@jesperlofgren
Copy link
Contributor

jesperlofgren commented Nov 22, 2018

Hi benpptung,

I'm sorry to tell you that we do not support NodeJS versions older than 6.0.

1.6.0

  • Rewrite in TypeScript to provide automatically generated and tested types.
  • Drop support for NodeJS 4.0 and below (end of life).

I changed the version to 6.0 in package.json to avoid confusion in the future. Thanks for pointing this out to us.

@frankvanbeem
Copy link

Hi benpptung,

If you need a simple solution, you can try and older version of the client.
1.5.0 should be the latest version that still supports it.
Though keep in mind that we no longer maintain that version, so there won't be any more updates or bug fixes.

I hope this helps!

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