Notistack: Unmet peer dependency "prop-type" "classnames"

Created on 13 Feb 2019  路  5Comments  路  Source: iamhosseindhv/notistack

Expected Behavior

yarn gives no warning

Current Behavior

yarn gives two unmet peer dependency warning

Steps to Reproduce

yarn add notistack

Context

I have a typescript project. I have no reason to add prop-types in mine.
I think prop-types and classnames should be dependencies and not peerDependencies.

Your Environment

| Tech | Version |
|--------------|---------|
| Notistack | v0.4.2 |

All 5 comments

@iamhosseindhv What do you think of making classnames a dependency instead of a peer dependency? You can benchmark the other libraries, it's what most maintainers do. If your concern is with the potential bundle duplication, you can make the accepted scope wide.

Alternatively, you can replace the package with clsx. We have replaced classnames usage with clsx in Material-UI v4-alpha.

Related to https://github.com/mui-org/material-ui/pull/14572/files#r257685108

The React team encourages the usage of prop-type as a dependency.

@oliviertassinari Thanks, let me buy you a 馃崝for your interest !

@VincentLanglet Il faut essayer Cojean maintenant !

Thanks @oliviertassinari and @VincentLanglet. I'll move them both to dependencies. And it'll be published in the next version. CHANGELOG

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seannguyn picture seannguyn  路  4Comments

Brettm12345 picture Brettm12345  路  6Comments

iamhosseindhv picture iamhosseindhv  路  8Comments

kubalobo picture kubalobo  路  5Comments

nebojsanb picture nebojsanb  路  3Comments