Skip to content

Releases: sindresorhus/is

v8.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 11 May 11:22
  • Add negative assertion helper 2d4956e

v8.0.0...v8.1.0

v8.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 09 Apr 15:42

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

v7.2.0

Choose a tag to compare

@sindresorhus sindresorhus released this 27 Dec 10:44
  • Add predicate factory mode to is.any and is.all 9bdcd9b

v7.1.1...v7.2.0

v7.1.1

Choose a tag to compare

@sindresorhus sindresorhus released this 31 Oct 17:26
  • Fix is.class for minified class expression (#217) e7c84fc

v7.1.0...v7.1.1

v7.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 13 Sep 19:22
  • Add is.optional and assert.optional 1f2440a
  • Fix TypeScript type narrowing issue with isUrlString c68ad76

v7.0.2...v7.1.0

v7.0.2

Choose a tag to compare

@sindresorhus sindresorhus released this 04 Jun 09:58

v7.0.1...v7.0.2

v7.0.1

Choose a tag to compare

@sindresorhus sindresorhus released this 06 Sep 15:55
  • Fix passing in assertion message to assertArray (#210) 5565c5e

v7.0.0...v7.0.1

v7.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 10 Jul 13:43

Breaking

  • Require Node.js 18 0ff273f
  • Remove deprecated methods and improve Class definition (#209) 8cbcaee

Fixes

  • Fix type guard for isWhitespaceString and isEmptyStringOrWhitespace (#207) 25a3768
  • Don't depend on any Node.js types 0ff273f

v6.3.1...v7.0.0

v6.3.1

Choose a tag to compare

@sindresorhus sindresorhus released this 16 May 08:15
  • Add missing type guard for is.enumCase 0df21e4

v6.3.0...v6.3.1

v6.3.0

Choose a tag to compare

@sindresorhus sindresorhus released this 23 Apr 06:01

v6.2.0...v6.3.0