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

Feature request: Move project to Node 14 and Typescript #38

Closed
cesco69 opened this issue May 27, 2021 · 5 comments
Closed

Feature request: Move project to Node 14 and Typescript #38

cesco69 opened this issue May 27, 2021 · 5 comments

Comments

@cesco69
Copy link
Contributor

cesco69 commented May 27, 2021

I want suggest to move the project to a modern environment like Node 14 and Typescript for help open souce developer to work with Winbox. Currently Winbox "tasks script" aren't compatible with "Node 14" and the absence of typescript make the code obscure.

Bonus suggestion: add "unit test" for check the "pull request".

Thaks for your lib!

@David-Carty
Copy link

David-Carty commented May 27, 2021

My user base doesn't use TypeScript. Please can you keep a copy of the vanilla JS version if you switch to TS? Also, if you do switch to TS then you may as well make a web component and use Lit (https://lit.dev/).

@fzammetti
Copy link

I think all you really need is a type definition file. It shouldn't matter to anyone whether a library you use is written in TS or plain JS, it's going to be JS in the end anyway. But having the type definitions available is nice if your own app is TS-based (like mine is).

@photonstorm
Copy link

TS Defs are a nice-to-have, for sure. I use Winbox exclusively within TS. But it's absolutely trivial to get by without them. The docs and examples are comprehensive enough and the code is easy to read. TS defs should be a community contribution, it doesn't require recoding the whole lib.

@fzammetti
Copy link

Hey, look at that, seems it's already available: https://www.typescriptlang.org/dt/search?search=winbox

@ts-thomas
Copy link
Contributor

ts-thomas commented Jun 2, 2021

Since JS is a subset of TS I see no need to fully switch to typescript. Also, it does not fit the target audience for such a lib. I make open source software for peoples, which doesn't have the professional skills to do that by themselves. Switching to TS will not make those things better. Also it is a pure web library meant to run in a browser, so that makes JavaScript as the best candidate. I see no advantages in contribution when switching this library from a subset of TS to native TS. That's why type definitions are build for.

Unfortunately I have not the time to write tests, write type definitions or providing any adapters for React, Angular, VueJS and all others. That should made via contribution. My implementation is purely based on living standards which could be simply integrated into every stack. Specific characteristics for specific use cases or environments are left as a task for the developer.

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

5 participants