Repository navigation
v3.9.0
Minor Changes
-
#155
2a6fb55Thanks @taigfs! - fix(ui):sonneris now a PEER dependency (^1.7.0 || ^2.0.0) instead of a regular dependency.With
sonner@^2.0.7as a regular dependency, an app that pins another major (for examplesonner@1.7.4) got a second copy nested under@devfellowship/components/node_modules/sonner.<SonnerToaster>rendered with the nested copy, sotoast()imported from the app's ownsonnerwrote to a different store and nothing showed. The app'ssonneris now the only copy. npm 7+ installs the peer by itself; pnpm and yarn users addsonnerto their app. New guardscripts/check-consumer-single-copy.mjsinstalls the package into a throw-away consumer withsonner@1.7.4, and asserts that no nested copy exists and that a toast from the app'ssonner, and one from/hooks, render.