You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package is intentionally misleading having no overlap with in its name or functionality with what is expected of use-invariant
An invariant is defined as:
a function, quantity, or property which remains unchanged when a specified transformation is applied
It is commonly understood as a validity test against some assertion. With the most well known example being Facebook's own invariant method — and of course its clone on npm "invariant".
It would be fair that someone installing use-invariant to expect a tool that follows this nomenclature.
If this is not name squatting than I believe it is malicious in that it performs work over the network when all convention would imply its a React hook for assertions.
Resolution
Request npm remove the use-invariant package for misleading the community.
The text was updated successfully, but these errors were encountered:
Issue
The package is intentionally misleading having no overlap with in its name or functionality with what is expected of
use-invariant
An invariant is defined as:
It is commonly understood as a validity test against some assertion. With the most well known example being Facebook's own invariant method — and of course its clone on npm "invariant".
It would be fair that someone installing
use-invariant
to expect a tool that follows this nomenclature.If this is not name squatting than I believe it is malicious in that it performs work over the network when all convention would imply its a React hook for assertions.
Resolution
Request npm remove the
use-invariant
package for misleading the community.The text was updated successfully, but these errors were encountered: