mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
237 stars 63 forks source link

Move to community standards #15

Closed StevenLangbroek closed 7 years ago

StevenLangbroek commented 8 years ago

Hey guys,

I had some extra time, and started a rewrite in my fork. Some explanation:

ES6 over Coffeescript

The JS community at large is moving to ES6 over Coffeescript, mostly because the most useful features of Coffeescript are in ES6 now (classes, static properties, lexically bound arrow functions with implicit return, ).

Tests

I don't see any tests in the repo, and this worries me. Especially considering alot of stuff is "pure functions", and everything else can have its external dependencies mocked (kudos for that).

ESLint

Proper ESLint setup (in progress btw, not final yet), can make it almost impossible to introduce a whole range of common bugs (typos in variable names, unused modules, accidental shadowing).

I spent about 30 minutes with it so far, you can see in StevenLangbroek:es6. Let me know if this is a direction you want to move in, think I can wrap it up in about 2-3 weeks considering my dayjob (or sooner if you can spare some capacity and feel like it's worth your time ;) ).

RickWong commented 8 years ago

Hi Steven, thanks for your valuable feedback on our Node package.

Internally we have discussed the future of this package as well, and we arrived at the same conclusions as yours regarding the outdated structure, use of deprecated tooling and standards, and the lack of continuous integration. So we definitely share the same ideas about possible improvements.

Daanvm commented 8 years ago

Thanks Steven for the rewrite. Someone else did also write an ES6 client for our api: Geexteam/mollie-ES6. Maybe it makes sense to combine the effort instead of creating multiple versions?

I haven't taken a deeper look into those two rewrites so I have no idea which client would be a beter start to work with. In fact, I don't even know if @Geexteam might be interested in this.

azachar commented 7 years ago

Also, it would be cool, if you could follow http://semver.org/spec/v2.0.0.html. Your new features marked as bug fixes are causing me some issues. ( I am creating a bug report ).

Could you also fix a discrepancy in your tags? You said that the latest version is 1.3.2 but in your tags I only see 1.2.x???

Thanks for your considerations.

philkunz commented 7 years ago

I recommend TypeScript, as it offers ES7 features, static type checking and excellent IDE intellisense.

HofmannZ commented 7 years ago

Any updates on the future of this package?

mikaturk commented 7 years ago

@philkunz yup, using typescript right now with async/await for google cloud functions, native js support is coming to Node in October (Node 8 LTS)

adriaanmol commented 7 years ago

Wont take long anymore. See pull request: #31

dabroek commented 7 years ago

I regret it took this long, yet I am thrilled to announce we just published the updated version of our package under the mollie-api-node@next tag. 🎉