v1.6.0
Minor Changes
-
b9ff9ba:
check --ssrnow diagnoses a dual-React environment instead of blaming your
components. When the check's renderer resolves a different React instance than
your cases use (the classicbunx @awarebydefault/display-caserun from a
directory that doesn't depend on the tool, which pulls a second React into a temp
prefix), every hook-using case used to throwresolveDispatcher() … useStateand
get misreported as "can't render before scripts — move browser APIs into
effects/handlers, or declare the componentbrowserOnly." That turned one
environment fault into hundreds of false "fix your component" findings.The
ssrcheck now detects the condition once — by runtime module identity, not
path — and reports a single environment fault that names both React copies
(path + version), classifies the cause (abunx/temp install, a real version
conflict, or an un-deduped duplicate), and prescribes the exact fix, including the
nearestpackage.jsonto add the tool to. It explicitly steers you away from
component edits andbrowserOnly, and skips the per-case sweep that would only
manufacture false positives. A runtime-symptom safety net collapses the findings
even when the up-front probe can't run. Healthy single-React showcases — and
hook-free showcases that need no React — are unaffected.