Skip to content
This repository was archived by the owner on May 28, 2020. It is now read-only.

remove unnecessary libs, add general improvements#7

Open
fedealconada wants to merge 1 commit into
cGuille:masterfrom
fedealconada:master
Open

remove unnecessary libs, add general improvements#7
fedealconada wants to merge 1 commit into
cGuille:masterfrom
fedealconada:master

Conversation

@fedealconada

Copy link
Copy Markdown

No description provided.

@cGuille cGuille left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

Thank you for your contribution.

I am not sure how to feel about this. This looks like a breaking change at two levels:

  • Break web browser compatibility.
  • Break backwards compatibility, since it requires JS classes, that might not be available in every engine that was previously supported.

I am not into JS / node this days, so I am not sure about investing time in a library that was not updated for years.
I don't mind to transfer ownership or mark the repo as deprecated in favor of something else, though.

Comment thread src/async-polling.js
@@ -1,79 +1,66 @@
(function () {
'use strict';
const EventEmitter = require('events');

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this break web browser support?

@r0ughnex r0ughnex Mar 8, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add a EventEmitter polyfill for older browsers?

@r0ughnex r0ughnex Mar 9, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And add Babel for getting around issues with JS classes?

@cGuille

cGuille commented Jan 25, 2019

Copy link
Copy Markdown
Owner

Maybe it's just more appropriate to just define the class in your project, as this lib is very small and simple.

@r0ughnex

r0ughnex commented Mar 8, 2019

Copy link
Copy Markdown

@fedealconada: I have been looking at a lot of polling modules on npm / github, and I really like how simple and effective the interface of this module is. It's a shame it's not maintained!

I'd definitely give a thumbs up, to creating a fork of this update as a new repository 😃
I'm actually thinking of creating a local fork of your PR if not, if that's okay with you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants