decoders

For library authors

How to declare decoders as a dependency when publishing a library to npm.

It's recommended to declare decoders as a peer dependency in your library instead of a regular dependency. This lets your library's users control which version of decoders they wish to use, and your library simply adopts their preference.

Your library should not force a specific version of decoders on your users. Always prefer * to maximize compatibility by default. If you absolutely require a minimum version, use a wide range and be sure to also include the next major, otherwise your users can't upgrade without waiting for a new release from your library.