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

Question/change request: moment as a peer dependency #799

Open
seansfkelley opened this issue Nov 7, 2019 · 2 comments
Open

Question/change request: moment as a peer dependency #799

seansfkelley opened this issue Nov 7, 2019 · 2 comments

Comments

@seansfkelley
Copy link

seansfkelley commented Nov 7, 2019

In the past, moment was changed to be a peer dependency. This seems like the right thing to do for reasons outlined in tickets like #622.

It was then reverted with no explanation, perhaps in response to #622 (comment) (which observed that this would be a breaking change, and that's true, though moment-timezone is still 0.x.x so breaking changes are allowed at any time).

So the question/request is: can we make moment a peer dependency again, or, why was it reverted to no longer be a peer dependency?

My use-case: I also use moment-range, which, like moment-timezone, side-effect changes the moment. I want them to share an instance of moment, but as the dependencies are currently defined, I have to purposely not install moment and instead pull it through moment-timezone. This means moment-range complains about missing peer dependencies, even though there's not actually a problem.

cc @Americas who opened the original issue/PR to move it to a peer dependency.

@ichernev
Copy link
Contributor

I'm all for this, it's a breaking change, but it's for the better, also moment-timezone is not stable as you pointed out (starting with zero), so I think it's fine :)

@gilmoreorless
Copy link
Member

A breaking change proposal is open, which would include this change: #1039

@gilmoreorless gilmoreorless added this to the 1.0.0 milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants