Packages

@sindresorhus/is

8.1.0 · 11 May 2026MIT93.8M / weekRepositoryHomepagenpmAtom feed

Your version

8.0.0

major9 Apr 2026Where it was published

8.1.0 is the newest release of 8.x.

In short

1 breaking7 new5 fixed

  • breaking

    Require Node.js 22 faf7003

Release note

Breaking

New

Fixes

  • Fix isEmptyObject and isNonEmptyObject incorrectly accepting functions and arrays 3b40955

  • Fix isNumericString incorrectly accepting strings with surrounding whitespace 47415dc

  • Fix isInRange silently returning false when range contains NaN (now throws) ac46b54

  • Fix isEnumCase incorrectly accepting numeric enum key names cb4ee0e

  • Fix numeric type guards (isInteger, isEvenInteger, isOddInteger, isSafeInteger, isPositiveNumber, isNegativeNumber, isInfinite, isNan, isValidLength) narrowing the false branch to never 13febb6

    • These now use branded types so that if (!is.integer(n)) { ... } keeps n as number instead of never


v7.2.0...v8.0.0