Skip to content

Explore removing moment as a peerDependency #320

@mcMickJuice

Description

@mcMickJuice

Thanks for creating an issue! Please fill out the sections below so that we can accommodate your request:

What kind of issue are you experiencing?

  • Bug
  • Feature Request
  • Question

The moment library is listed as a peerDependency to this library. Lots of apps use moment however it seems a little unreasonable to require this lib (which is huge - though this analysis likely includes the internationalization code) when it's used for admittedly a small of amount of use cases:

I'd like to explore other date libraries, like date-fns which has a smaller footprint. Perhaps we could take an approach of injecting in the users preferred date library, similar to what this library does.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions