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
Fix ?? so non-numeric strings no longer trigger the fallback (0.6.2)
The old coalesce used global `isNaN(a)`, which coerces its argument to a
number first — so `"hello" ?? "fallback"` (and any non-empty array or
plain object) wrongly fell through to the fallback. Switch to
`Number.isNaN`, guard the numeric branch with `typeof a === 'number'`,
and treat empty string / array / object as missing values too. Also
covers `-Infinity` for symmetry with `Infinity`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments