jacobmischka / svelte-flatpickr

Flatpickr component for Svelte.
https://www.npmjs.com/package/svelte-flatpickr
MIT License
162 stars 23 forks source link

What do you think about making flatpickr peer dep? #43

Closed frederikhors closed 2 years ago

frederikhors commented 2 years ago

What do you think about making flatpickr peer dep?

jacobmischka commented 2 years ago

I don't think it's necessary, semantic versioning should be enough, npm upgrade should always give you the latest one since we don't provide a maximum version (until 5.0 is released, if ever). The only reason to would be if people wanted to use older versions of it, which I don't see the reason for.

jacobmischka commented 2 years ago

If you want to lock the dependency you can add it to your own dependencies and that's the one that your package manager should give you, or you can use a package manager with specific resolutions like yarn.