balupton / meta

Meta: Issues, tasks, ideas, etc that I have, or you have for me. Kind of like a public email.
Creative Commons Zero v1.0 Universal
3 stars 1 forks source link

Blog post about peerDependencies #1

Closed balupton closed 6 years ago

balupton commented 10 years ago

@markdalgleish can you let me know some questions, or areas you specifically want more knowledge about? So that I can address them in a blog post.

source

markdalgleish commented 10 years ago

I'm mostly interested in what semver ranges plugins should use when specifying peer dependencies, and how optimistic they are. Should they lock down the major version or just specify the minimum supported version?

My concern here is that an update to the major version of the peer dependency might be as relatively harmless as deprecating a feature nobody uses, but this would suddenly invalidate all the plugins which would now potentially be expecting different versions of their host framework for no good reason. Some plugins might break, but maybe only 1% of plugins break.

I imagine, as a framework author, this could scare me into basically never touching the core API. I'd love to hear if there's a way to make peer dependencies worth the hassle.

balupton commented 6 years ago

Closing, as it all depends on your requirements.