GithubHelp home page GithubHelp logo

Doesn't work on node 6 about color2k HOT 9 CLOSED

ricokahler avatar ricokahler commented on June 26, 2024
Doesn't work on node 6

from color2k.

Comments (9)

ricokahler avatar ricokahler commented on June 26, 2024 1

Let me know if this does the trick!

I also added you as a co-author. Thanks for contributing!

from color2k.

ljharb avatar ljharb commented on June 26, 2024

Filed #352.

from color2k.

ricokahler avatar ricokahler commented on June 26, 2024

Hello there!

Thank you for filing an issue and opening a PR so quickly. I appreciate it and I'll definitely try to resolve this within the next few hours.

v1.2.1 breaks on node 6 with a syntax error, which is a breaking change in a minor version

I apologize for this, that was not the intention whatsoever. Version 1.2 was the version I opted to have this lib be bundled by microbundle instead of my own rollup config. The irony of this is that the switch caused more noise than convenience.


Please fix this ASAP, so react-dates can continue depending on this package. I'll be happy to make a PR.

There's nothing wrong with your PR as-is, however, I'm currently hesitant on taking any sort of dependencies just by the principles of this lib. Let me spend a few minutes trying to come up with alternatives that don't add dependencies and I'll post here when that's done.


Out of curiosity, why does react-dates need to support Node 6 in the first place? Is there an upstream issue? Most ecosystems I've seen only support Node 10+. (e.g. create-react-app and next)

from color2k.

github-actions avatar github-actions commented on June 26, 2024

πŸŽ‰ This issue has been resolved in version 1.2.3 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from color2k.

ricokahler avatar ricokahler commented on June 26, 2024

@ljharb, I just opened #354 with the topic of adding Node 6 support tests in CI.

If you're familiar with how to do that kind of testing, some guidance (or even a PR) would be greatly appreciated and would ensure any changes that break Node 6 compatibility would become blockers.

from color2k.

ljharb avatar ljharb commented on June 26, 2024

react-dates supports much older nodes than 6; it’s a browser lib so it needs to support IE 11, for example.

It’s fine if you don’t want a dependency, altho more deps are better :-)

Sure, i can look into the tests.

from color2k.

ricokahler avatar ricokahler commented on June 26, 2024

Re-opening since you found this: #353 (comment)

from color2k.

ljharb avatar ljharb commented on June 26, 2024

Filed #355 for the fix; #356 for the tests.

from color2k.

github-actions avatar github-actions commented on June 26, 2024

πŸŽ‰ This issue has been resolved in version 1.2.4 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from color2k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.