Sindre Sorhus
|
7821031c66
|
Fix CI
|
2026-05-11 22:57:22 +09:00 |
|
Sindre Sorhus
|
2d4956e634
|
Add negative assertion helper
Fixes #220
|
2026-05-11 20:17:16 +09:00 |
|
Sindre Sorhus
|
13febb6b01
|
Fix some type guards
|
2026-04-09 14:56:49 +07:00 |
|
Sindre Sorhus
|
cb4ee0e92c
|
Fix isEnumCase incorrectly accepting numeric enum key names
|
2026-04-09 14:17:12 +07:00 |
|
Sindre Sorhus
|
54fc09406a
|
Add negativeInteger, nonNegativeInteger, arrayOf, and oneOf predicates
|
2026-04-08 19:13:51 +07:00 |
|
Sindre Sorhus
|
63be5c0c19
|
Add finiteNumber, nonNegativeNumber, and positiveInteger predicates
|
2026-04-08 16:26:44 +07:00 |
|
Sindre Sorhus
|
ac46b5400d
|
Fix isInRange silently returning false when range contains NaN
|
2026-04-08 15:09:53 +07:00 |
|
Sindre Sorhus
|
47415dc46a
|
Fix isNumericString incorrectly accepting strings with surrounding whitespace
|
2026-04-08 05:51:14 +07:00 |
|
Sindre Sorhus
|
3b40955b02
|
Fix handling of functions and arrays in isEmptyObject and isNonEmptyObject
|
2026-04-08 05:51:13 +07:00 |
|
Sindre Sorhus
|
faf700367e
|
Require Node.js 22
|
2026-04-08 04:38:52 +07:00 |
|
Sindre Sorhus
|
9bdcd9b57f
|
Add predicate factory mode to is.any and is.all
Fixes #218
|
2025-12-27 11:33:25 +01:00 |
|
Tim Griesser
|
e7c84fcb79
|
Fix is.class for minified class expression (#217)
|
2025-11-01 00:18:25 +07:00 |
|
Sindre Sorhus
|
1f2440ae0d
|
Add is.optional and assert.optional
Fixes #111
|
2025-09-13 15:48:57 +07:00 |
|
Sindre Sorhus
|
c68ad76062
|
Fix TypeScript type narrowing issue with isUrlString
Fixes #212
|
2025-09-12 05:08:52 +07:00 |
|
Bjorn Stromberg
|
ef35cc350a
|
Structure fixtures so they can be easily tested for exclusivity (#215)
|
2025-06-06 13:58:46 +02:00 |
|
Sindre Sorhus
|
e8e8124ba7
|
FIx observable checking
Fixes #214
|
2025-06-04 12:55:44 +03:00 |
|
Sindre Sorhus
|
47a5099325
|
Minor tweaks
|
2025-06-04 12:12:42 +03:00 |
|
Martin Eneqvist
|
5565c5e3ba
|
Fix passing in assertion message to assertArray (#210)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2024-09-06 22:52:56 +07:00 |
|
Sindre Sorhus
|
0ff273fee8
|
Require Node.js 18
|
2024-07-10 15:41:12 +02:00 |
|
Martin Eneqvist
|
25a376875d
|
Fix type guard for isWhitespaceString and isEmptyStringOrWhitespace (#207)
|
2024-06-26 14:31:56 +02:00 |
|
Bjorn Stromberg
|
8cbcaee674
|
Remove deprecated methods and improve Class definition (#209)
|
2024-06-26 14:30:00 +02:00 |
|
Sindre Sorhus
|
0df21e4151
|
Add missing type guard for is.enumCase
Fixes #205
|
2024-05-16 11:11:44 +03:00 |
|
Martin Eneqvist
|
f2e5834421
|
Support custom assertion messages (#204)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2024-04-23 12:58:28 +07:00 |
|
Martin Eneqvist
|
e9418fe1b9
|
Add .validDate() (#203)
|
2024-02-29 14:23:30 +07:00 |
|
Simon Podlipsky
|
0d4cf6fcc8
|
Improve TypeScript type for isNonEmptyString() and isNonEmptyStringAndNotWhitespace() (#200)
|
2023-10-26 21:37:39 +07:00 |
|
Sindre Sorhus
|
e7e2213e91
|
directInstanceOf: Fix handling of undefined and null
Fixes #199
|
2023-10-15 16:01:29 +07:00 |
|
Bjorn Stromberg
|
bcec30d735
|
Rename is.domElement() to is.htmlElement() (#196)
|
2023-08-10 16:06:46 +02:00 |
|
Bjorn Stromberg
|
85c89925b6
|
Give better assertion messages for assert.all and assert.any (#193)
|
2023-08-09 13:49:06 +02:00 |
|
Bjorn Stromberg
|
5044c91273
|
Implement named exports (#191)
|
2023-08-07 02:50:03 +02:00 |
|
Bjorn Stromberg
|
bd5dfda993
|
Replace enums with string literals (#190)
|
2023-07-30 13:32:34 +02:00 |
|
Tal Michel
|
3868f47783
|
Add .tupleLike() (#189)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2023-07-23 14:35:23 +02:00 |
|
Eugene
|
20ad8231c2
|
Fix is.nonEmptyArray() type narrowing with undefined (#188)
|
2023-07-17 11:42:04 +02:00 |
|
hyperbola
|
9d26c020ee
|
Fix type guards for assert.{truthy,falsy,nan} (#187)
|
2023-07-16 16:19:31 +02:00 |
|
Eugene
|
1284da085f
|
Add is.positiveNumber and is.negativeNumber (#184)
|
2023-07-15 00:26:30 +02:00 |
|
Eugene
|
3177d11801
|
Fix type narrowing for nonEmptyArray (#185)
|
2023-07-15 00:24:56 +02:00 |
|
Sindre Sorhus
|
65404fbd8e
|
Meta tweaks
|
2023-05-30 21:15:24 +07:00 |
|
Xananax
|
888e145c5a
|
Improve type guard/assertion of numericString() (#178)
|
2023-05-30 18:43:51 +07:00 |
|
Sindre Sorhus
|
e559b37b72
|
Update dev dependencies
|
2022-10-17 18:19:38 +07:00 |
|
Sindre Sorhus
|
592d9093cd
|
Make nonEmptyArray() more strongly-typed
Fixes #171
|
2022-07-21 16:28:43 +02:00 |
|
ehmicky
|
45cae31f4d
|
Improve plainObject() (#169)
|
2022-06-21 14:05:40 +02:00 |
|
Eric(书生)
|
e503a9ec49
|
Add .weakRef() (#165)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-06-13 14:05:26 +07:00 |
|
Sindre Sorhus
|
d6fc1ce0fe
|
Require Node.js 14, TS 4.7, and move to ESM (#167)
|
2022-06-11 17:44:43 +07:00 |
|
Filip Skokan
|
c408f5a268
|
Fix NaN detection in .is() (#159)
|
2022-06-10 00:05:31 +07:00 |
|
Eric(书生)
|
5b7ea154e6
|
Add .isBlob() (#162)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-02-27 14:16:25 +07:00 |
|
Sindre Sorhus
|
6cbefb9af7
|
Meta tweaks
|
2022-02-25 16:19:29 +07:00 |
|
Ivan Katliarchuk
|
23cf074a73
|
Add .nonEmptyStringAndNotWhitespace() (#161)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-02-25 16:10:57 +07:00 |
|
Zane Shannon
|
63d75d68ee
|
Add type guard for is.truthy and is.falsy (#151)
|
2022-01-25 17:28:33 +07:00 |
|
Olivier Beaulieu
|
a5b4017d5e
|
Add is.enumCase and assert.enumCase (#150)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-01-17 12:55:40 +07:00 |
|
Stuart Dotson
|
ad661ebcee
|
Fix is.iterable and is.asyncIterable TypeScript types (#149)
|
2022-01-07 21:32:06 +07:00 |
|
Kayson Wu
|
a8de3d6f34
|
Add is.formData and is.urlSearchParams (#139)
|
2021-09-13 21:25:44 +07:00 |
|