DanielduelD

Peer dependency

Can I somehow mark a dependency as "peer"?
So this dependency (which is known to shuffle typings between versions, but generally it is nonbreaking if you use it on highlevel) will not enforce a specific version onto a project?

I depend on Pentagon and Zod
Pentagon also depends on Zod
While I initially wanted to use different version of Zod than pentagon's
(using different versions of Zod makes some inner types clash)

(I can switch zod version to pentagon's, but I feel not everybody would have the same luxury in the future)

If possible - I would like to avoid this solution: https://github.com/denoland/deno/issues/10356#issuecomment-1580352563
GitHub
Background I am the developer of an a new framework for writing Telegram bots (ref, but the purpose is irrelevant here). The core framework is extensible by plugins that can be published by other a...
Was this page helpful?