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

Replace moment with date-fns #219

Closed
wants to merge 2 commits into from
Closed

Replace moment with date-fns #219

wants to merge 2 commits into from

Conversation

remcohaszing
Copy link

  • I have changed my target branch to develop 👊

    Neaup, sorry. I decided to make a PR to your feature branch.

#218 #61

Description

All moment dependencies in lib have been replaced with date-fns.

The CustomElements example has been commented out and the PersionPickers example
was left commented out. These both heavily depend on moment.

A lot of util mappings are literally assignments to cherry picked functions from date-fns, or even just native methods of the Date() object. I hope this patch is convincing enough to just drop the idea of customizable utils and just use native Dates and date-fns instead.

All moment dependencies in lib have been replaced with date-fns.

The CustomElements example has been commented out and the PersionPickers example
was left commented out. These both heavily depend on moment.
Copy link
Member

@dmtrKovalenko dmtrKovalenko left a comment

Choose a reason for hiding this comment

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

I`m sorry but actually its not we are looking for, we would have 2 separate utils, that would be reused overall in the project. With moment and date-fns libs used exactly

@remcohaszing
Copy link
Author

That's unfortunate ☹️

I hope this does help you by uncovering more moment dependencies and creating a reference date-fns implementation.

@dmtrKovalenko
Copy link
Member

You helped a lot with date-fns utils creation! Thank you!

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

Successfully merging this pull request may close these issues.

2 participants