Commit graph

  • 7821031c66 Fix CI main Sindre Sorhus 2026-05-11 22:57:22 +09:00
  • a439305554 8.1.0 v8.1.0 Sindre Sorhus 2026-05-11 20:22:19 +09:00
  • 2d4956e634 Add negative assertion helper Sindre Sorhus 2026-05-10 15:01:37 +09:00
  • 48df5c429c 8.0.0 v8.0.0 Sindre Sorhus 2026-04-09 22:09:01 +07:00
  • 13febb6b01 Fix some type guards Sindre Sorhus 2026-04-09 00:31:33 +07:00
  • cb4ee0e92c Fix isEnumCase incorrectly accepting numeric enum key names Sindre Sorhus 2026-04-08 19:53:46 +07:00
  • 54fc09406a Add negativeInteger, nonNegativeInteger, arrayOf, and oneOf predicates Sindre Sorhus 2026-04-08 18:58:23 +07:00
  • 63be5c0c19 Add finiteNumber, nonNegativeNumber, and positiveInteger predicates Sindre Sorhus 2026-04-08 16:12:51 +07:00
  • ac46b5400d Fix isInRange silently returning false when range contains NaN Sindre Sorhus 2026-04-08 14:54:37 +07:00
  • 47415dc46a Fix isNumericString incorrectly accepting strings with surrounding whitespace Sindre Sorhus 2026-04-08 05:21:23 +07:00
  • 3b40955b02 Fix handling of functions and arrays in isEmptyObject and isNonEmptyObject Sindre Sorhus 2026-04-08 04:56:05 +07:00
  • faf700367e Require Node.js 22 Sindre Sorhus 2026-04-07 17:38:43 +07:00
  • eff8e6b318 7.2.0 v7.2.0 Sindre Sorhus 2025-12-27 11:35:17 +01:00
  • 9bdcd9b57f Add predicate factory mode to is.any and is.all Sindre Sorhus 2025-12-20 02:51:20 +01:00
  • fbcc68e139 7.1.1 v7.1.1 Sindre Sorhus 2025-11-01 00:20:45 +07:00
  • e7c84fcb79
    Fix is.class for minified class expression (#217) Tim Griesser 2025-10-31 13:18:25 -04:00
  • d22ab62991 7.1.0 v7.1.0 Sindre Sorhus 2025-09-14 02:05:33 +07:00
  • 1f2440ae0d Add is.optional and assert.optional Sindre Sorhus 2025-09-13 02:27:50 +07:00
  • c68ad76062 Fix TypeScript type narrowing issue with isUrlString Sindre Sorhus 2025-09-12 03:58:08 +07:00
  • ef35cc350a
    Structure fixtures so they can be easily tested for exclusivity (#215) Bjorn Stromberg 2025-06-06 19:58:46 +08:00
  • 882a91c54f 7.0.2 v7.0.2 Sindre Sorhus 2025-06-04 12:57:42 +03:00
  • e8e8124ba7 FIx observable checking Sindre Sorhus 2025-06-04 12:13:16 +03:00
  • 47a5099325 Minor tweaks Sindre Sorhus 2025-06-04 12:12:42 +03:00
  • e0976457e0 7.0.1 v7.0.1 Sindre Sorhus 2024-09-06 22:54:53 +07:00
  • 5565c5e3ba
    Fix passing in assertion message to assertArray (#210) Martin Eneqvist 2024-09-06 17:52:56 +02:00
  • ab85d9bca9 7.0.0 v7.0.0 Sindre Sorhus 2024-07-10 15:43:01 +02:00
  • 0ff273fee8 Require Node.js 18 Sindre Sorhus 2024-07-10 15:41:12 +02:00
  • 25a376875d
    Fix type guard for isWhitespaceString and isEmptyStringOrWhitespace (#207) Martin Eneqvist 2024-06-26 14:31:56 +02:00
  • 8cbcaee674
    Remove deprecated methods and improve Class definition (#209) Bjorn Stromberg 2024-06-26 20:30:00 +08:00
  • 92699e1049
    Replace ts-node with tsimp (#208) Bjorn Stromberg 2024-06-25 08:08:48 +08:00
  • 47f49741ea 6.3.1 v6.3.1 Sindre Sorhus 2024-05-16 11:15:23 +03:00
  • 0df21e4151 Add missing type guard for is.enumCase Sindre Sorhus 2024-05-16 11:11:44 +03:00
  • f7148e19dc Meta tweaks Sindre Sorhus 2024-04-28 23:54:22 +07:00
  • a1987f8bad 6.3.0 v6.3.0 Sindre Sorhus 2024-04-23 12:59:46 +07:00
  • f2e5834421
    Support custom assertion messages (#204) Martin Eneqvist 2024-04-23 07:58:28 +02:00
  • 664b9077e1 6.2.0 v6.2.0 Sindre Sorhus 2024-02-29 14:29:43 +07:00
  • 07ea404e86 Meta tweaks Sindre Sorhus 2024-02-06 14:55:52 +07:00
  • e9418fe1b9
    Add .validDate() (#203) Martin Eneqvist 2024-02-29 08:23:30 +01:00
  • 0e687a23a8
    Fix readme headings (#202) patrik csak 2024-01-05 23:30:28 -08:00
  • 1acbd9e202 6.1.0 v6.1.0 Sindre Sorhus 2023-10-26 21:39:39 +07:00
  • 0d4cf6fcc8
    Improve TypeScript type for isNonEmptyString() and isNonEmptyStringAndNotWhitespace() (#200) Simon Podlipsky 2023-10-26 16:37:39 +02:00
  • f10e2caf3d 6.0.1 v6.0.1 Sindre Sorhus 2023-10-15 19:26:47 +07:00
  • e7e2213e91 directInstanceOf: Fix handling of undefined and null Sindre Sorhus 2023-10-15 16:01:29 +07:00
  • 9d6c91ee58
    Add Node.js 20 to CI (#181) Bjorn Stromberg 2023-08-16 18:09:57 +08:00
  • 877ed1cc6a 6.0.0 v6.0.0 Sindre Sorhus 2023-08-15 20:51:44 +02:00
  • dadca59f6a Update dev dependencies Sindre Sorhus 2023-08-15 20:50:56 +02:00
  • 68e0c95857
    Update @sindresorhus/tsconfig to v4 (#194) Bjorn Stromberg 2023-08-10 22:07:56 +08:00
  • bcec30d735
    Rename is.domElement() to is.htmlElement() (#196) Bjorn Stromberg 2023-08-10 22:06:46 +08:00
  • ee79af32b6
    Update class method description (#195) Bjorn Stromberg 2023-08-10 22:05:22 +08:00
  • 85c89925b6
    Give better assertion messages for assert.all and assert.any (#193) Bjorn Stromberg 2023-08-09 19:49:06 +08:00
  • e03c249d6c
    Drop support for Node.js 14 (#192) Bjorn Stromberg 2023-08-07 23:18:36 +08:00
  • 5044c91273
    Implement named exports (#191) Bjorn Stromberg 2023-08-07 08:50:03 +08:00
  • bd5dfda993
    Replace enums with string literals (#190) Bjorn Stromberg 2023-07-30 19:32:34 +08:00
  • 44beb083a3 5.6.0 v5.6.0 Sindre Sorhus 2023-07-23 14:40:00 +02:00
  • 3868f47783
    Add .tupleLike() (#189) Tal Michel 2023-07-23 15:35:23 +03:00
  • 94dc715577 5.5.2 v5.5.2 Sindre Sorhus 2023-07-17 11:42:55 +02:00
  • 20ad8231c2
    Fix is.nonEmptyArray() type narrowing with undefined (#188) Eugene 2023-07-17 10:42:04 +01:00
  • ad0c3b1429 5.5.1 v5.5.1 Sindre Sorhus 2023-07-16 16:20:29 +02:00
  • 9d26c020ee
    Fix type guards for assert.{truthy,falsy,nan} (#187) hyperbola 2023-07-16 22:19:31 +08:00
  • 278e0e9696 5.5.0 v5.5.0 Sindre Sorhus 2023-07-15 00:28:14 +02:00
  • 1284da085f
    Add is.positiveNumber and is.negativeNumber (#184) Eugene 2023-07-14 23:26:30 +01:00
  • 3177d11801
    Fix type narrowing for nonEmptyArray (#185) Eugene 2023-07-14 23:24:56 +01:00
  • 9265e9072d Add test for #183 Sindre Sorhus 2023-06-10 11:43:41 +03:00
  • 7d468191f4 5.4.1 v5.4.1 Sindre Sorhus 2023-06-04 11:04:07 +03:00
  • d1574d358d
    Revert exports change in package.json (#180) Bjorn Stromberg 2023-06-04 16:01:35 +08:00
  • 61a437eba3 5.4.0 v5.4.0 Sindre Sorhus 2023-05-30 21:16:59 +07:00
  • 65404fbd8e Meta tweaks Sindre Sorhus 2023-05-30 21:13:40 +07:00
  • 888e145c5a
    Improve type guard/assertion of numericString() (#178) Xananax 2023-05-30 13:43:51 +02:00
  • e559b37b72 Update dev dependencies Sindre Sorhus 2022-10-17 18:02:01 +07:00
  • f3693674f6 Add failing test for #174 Sindre Sorhus 2022-10-17 17:51:49 +07:00
  • 911f44dc36 5.3.0 v5.3.0 Sindre Sorhus 2022-07-21 16:30:26 +02:00
  • 33cd815503 Meta tweaks Sindre Sorhus 2022-07-21 16:27:57 +02:00
  • 592d9093cd Make nonEmptyArray() more strongly-typed Sindre Sorhus 2022-07-21 16:26:15 +02:00
  • d3ff1fdfce 5.2.0 v5.2.0 Sindre Sorhus 2022-06-21 14:07:38 +02:00
  • 45cae31f4d
    Improve plainObject() (#169) ehmicky 2022-06-21 14:05:40 +02:00
  • dc99f7cd4a 5.1.0 v5.1.0 Sindre Sorhus 2022-06-13 14:07:07 +07:00
  • e503a9ec49
    Add .weakRef() (#165) Eric(书生) 2022-06-13 15:05:26 +08:00
  • 06d217f70c 5.0.1 v5.0.1 Sindre Sorhus 2022-06-11 18:28:13 +07:00
  • ac7c567c2b Fix typo Sindre Sorhus 2022-06-11 18:27:36 +07:00
  • 778c5da5b3 5.0.0 v5.0.0 Sindre Sorhus 2022-06-11 18:19:55 +07:00
  • d6fc1ce0fe Require Node.js 14, TS 4.7, and move to ESM (#167) Sindre Sorhus 2022-06-11 17:44:01 +07:00
  • c408f5a268
    Fix NaN detection in .is() (#159) Filip Skokan 2022-06-09 19:05:31 +02:00
  • 65ea91297e 4.6.0 v4.6.0 Sindre Sorhus 2022-02-27 14:21:30 +07:00
  • 5b7ea154e6
    Add .isBlob() (#162) Eric(书生) 2022-02-27 15:16:25 +08:00
  • 6cbefb9af7 Meta tweaks Sindre Sorhus 2022-02-25 16:19:29 +07:00
  • dc2dc9a438 4.5.0 v4.5.0 Sindre Sorhus 2022-02-25 16:16:30 +07:00
  • 23cf074a73
    Add .nonEmptyStringAndNotWhitespace() (#161) Ivan Katliarchuk 2022-02-25 09:10:57 +00:00
  • 04ccf21dba Document TypeScript naming limitation Sindre Sorhus 2022-02-01 11:37:28 +07:00
  • c3d12667fd 4.4.0 v4.4.0 Sindre Sorhus 2022-01-25 17:29:45 +07:00
  • 63d75d68ee
    Add type guard for is.truthy and is.falsy (#151) Zane Shannon 2022-01-25 02:28:33 -08:00
  • 73daee6648
    Improve .enumCase doc formatting in readme (#154) Pedro Augusto de Paula Barbosa 2022-01-18 01:48:03 -03:00
  • b1efe7f5cf 4.3.0 v4.3.0 Sindre Sorhus 2022-01-17 13:04:39 +07:00
  • a5b4017d5e
    Add is.enumCase and assert.enumCase (#150) Olivier Beaulieu 2022-01-17 00:55:40 -05:00
  • f5cc764e22 4.2.1 v4.2.1 Sindre Sorhus 2022-01-07 21:35:19 +07:00
  • ad661ebcee
    Fix is.iterable and is.asyncIterable TypeScript types (#149) Stuart Dotson 2022-01-07 09:32:06 -05:00
  • a82aeeaa5e Add FAQ about instanceof Sindre Sorhus 2021-10-31 12:34:45 +07:00
  • 13b2343dfc 4.2.0 v4.2.0 Sindre Sorhus 2021-09-13 21:27:03 +07:00
  • a8de3d6f34
    Add is.formData and is.urlSearchParams (#139) Kayson Wu 2021-09-13 22:25:44 +08:00
  • b007935b4b 4.1.0 v4.1.0 Sindre Sorhus 2021-09-10 15:30:39 +07:00
  • d2f98e472d
    Add is.propertyKey (#138) PopGoesTheWza 2021-09-10 10:26:13 +02:00