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
  • b2aad37462 remove test-node.js, use Function constructor to preserve whitespace Tim Griesser 2025-10-31 11:04:37 -04:00
  • e5991b561e fix: is.class for minified class expression Tim Griesser 2025-10-31 09:35:59 -04:00
  • 979eb763fc add failing test for is.class bug Tim Griesser 2025-10-31 09:35:47 -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
  • 1aef825c46 Fix code issues and improve maintainability morningstarxcdcode 2025-06-13 13:01:07 +05:30
  • ef35cc350a
    Structure fixtures so they can be easily tested for exclusivity (#215) Bjorn Stromberg 2025-06-06 19:58:46 +08:00
  • c1b22998a1 move keysOf into a new utilities file Bjorn Stromberg 2025-06-06 08:53:13 +08:00
  • 266d23f7bb Structure fixtures so they can be tested for exclusivity without extensive exclude declarations Bjorn Stromberg 2025-06-05 11:27:29 +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
  • b177d02e3a
    Update index.ts Sindre Sorhus 2024-09-06 22:47:52 +07:00
  • d77be18d42 Fix index-as-message bug in assertArray Martin Eneqvist 2024-09-06 09:56:14 +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
  • 592f6d94f9 BREAKING: remove deprecated methods and improve Class definition Bjorn Stromberg 2024-06-25 12:28:58 +08:00
  • 92699e1049
    Replace ts-node with tsimp (#208) Bjorn Stromberg 2024-06-25 08:08:48 +08:00
  • a171a582d7 chore: replace ts-node with tsimp Bjorn Stromberg 2024-06-24 11:29:03 +08:00
  • 5301915f32 Change type guard for whitespace from string to ' ' Closes #206 Martin Eneqvist 2024-05-22 16:41:11 +02: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
  • 0ead3e6840
    Update readme.md Sindre Sorhus 2024-04-23 12:57:01 +07:00
  • 7a397c996f Adds custom assertion message example to README Martin Eneqvist 2024-04-22 13:19:06 +02:00
  • d9619cdc01 Allow custom assertion messages Martin Eneqvist 2024-04-19 22:10:02 +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
  • 7621daea18
    Update readme.md Sindre Sorhus 2024-02-29 14:20:36 +07:00
  • 1e4e6e827d A more elaborate description in readme Martin Eneqvist 2024-02-28 13:47:50 +01:00
  • f8f85516af Add .validDate() Martin Eneqvist 2024-02-08 15:50:45 +01:00
  • 0e687a23a8
    Fix readme headings (#202) patrik csak 2024-01-05 23:30:28 -08:00
  • 035d7b89c6 fix headings patrik csak 2024-01-05 15:26:36 -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
  • ab4a3e99a0
    feat: ensure there's at least 1 char in non-empty string Simon Podlipsky 2023-10-26 14:56:07 +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
  • d721a125cb Add main entry to package.json Duc Anh Phi 2023-08-23 11:28:12 +02:00
  • bd7947e490 add list formatting Duc Anh Phi 2023-08-22 18:21:15 +02:00
  • c2a14bc6c4 fix linting Duc Anh Phi 2023-08-22 18:04:36 +02:00
  • 4742409b5b remove list formatting Duc Anh Phi 2023-08-22 17:52:48 +02:00
  • c7389ffdf0 add main entry in package.json Duc Anh Phi 2023-08-22 16:32:38 +02: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
  • 61fe29e3f7 rename domElement to htmlElement for more accuracy Bjorn Stromberg 2023-08-10 10:53:46 +08:00
  • c0e622af93 docs: update class method description Harminder Virk 2022-10-06 15:05:09 +05:30
  • d7a9358c62 Update @sindresorhus/tsconfig to v4 Bjorn Stromberg 2023-08-10 09:57:39 +08:00
  • 85c89925b6
    Give better assertion messages for assert.all and assert.any (#193) Bjorn Stromberg 2023-08-09 19:49:06 +08:00
  • cae2664bca Use Intl.ListFormat Bjorn Stromberg 2023-08-09 09:24:01 +08:00
  • fdb697e34c Give better assertion messages when using our own methods for assert.all & assert.any (Fixes #107) Bjorn Stromberg 2023-08-07 11:39:21 +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
  • 74480cc84e
    Update readme.md Sindre Sorhus 2023-08-07 02:49:28 +02:00
  • 50267157bd
    Update readme.md Sindre Sorhus 2023-08-07 02:48:47 +02:00
  • d97524932c Move Named Exports section close to Usage Bjorn Stromberg 2023-08-06 11:20:15 +08:00
  • 76303b8a3a Add documentation for named exports and name default method as detect = 2023-08-03 09:21:14 +09:00
  • 66943d06b3 Improve description for validLength = 2023-08-03 08:55:29 +09:00
  • 7b43a3dbea Add bigint to list of primitives = 2023-08-03 08:23:39 +09:00
  • 853fd9a59b Add more comments for deprecated functions = 2023-08-03 08:04:04 +09:00
  • 514d5c38cb
    Add deprecation message Bjorn Stromberg 2023-08-03 07:59:56 +09:00
  • ca30df8046
    Add period to end of sentence Bjorn Stromberg 2023-08-03 07:58:46 +09:00
  • cffdb4aa02 Named exports = 2023-07-31 15:19:12 +09:00
  • bd5dfda993
    Replace enums with string literals (#190) Bjorn Stromberg 2023-07-30 19:32:34 +08:00
  • d8674487dd Replace enums with string literals Bjorn Stromberg 2023-07-24 03:09:00 +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
  • 0fee49d171 Make ResolveTypesOfTypeGuardsTuple more readable Tal Mac 2023-07-23 14:55:39 +03:00
  • fb7acd87c6
    Update package.json Sindre Sorhus 2023-07-23 12:56:48 +02:00
  • 05a131dffd add expectTypeOf Tal Mac 2023-07-23 00:41:32 +03:00
  • b12fcef980 Add Type tests Tal Mac 2023-07-22 02:02:37 +03:00
  • a04c656ec7 Add is.TupleLike#156 Tal Mac 2023-07-21 23:58:17 +03:00