Commit graph

113 commits

Author SHA1 Message Date
Aaron Friel
7d37a7dbbc Fix unnecessary global inclusion of dom lib
TypeScript packages depending on this and importing `@sindresorhus/is`
end up with the lib.dom.d.ts in global scope thanks to the deleted
lines.

That's almost never what any user of the package would want, and it has
the side effect of putting a slew of common variable names (including
the variable names "event" and "name" and "parent") into a global scope.

It's particularly sinister because on many of these, TypeScript won't
complain, for example "name" is of type never.
2019-08-25 01:11:48 -07:00
Sindre Sorhus
0cbd9df6ce Minor refactoring 2019-07-01 23:19:25 +07:00
Sindre Sorhus
e358e44dd5 1.0.0 2019-06-30 15:19:21 +07:00
Sindre Sorhus
4f4820ef2f Meta tweaks 2019-06-30 15:18:24 +07:00
Kai Niedziela
f04dffa575 Make is.number(NaN) return false (#90)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2019-06-30 15:09:07 +07:00
Sindre Sorhus
ffc6ce4586 Fix linting 2019-06-15 02:12:31 +07:00
Sindre Sorhus
7bf407fbf1
Create funding.yml 2019-05-28 12:56:17 +07:00
Sindre Sorhus
878d111ae7 0.17.1 2019-05-21 16:48:34 +07:00
Sindre Sorhus
6106086a35 Revert "Drop duplicate export (#84)"
This reverts commit 28913cae88.

Closes #89
Fixes #88
2019-05-21 16:45:07 +07:00
Sindre Sorhus
b064473589 0.17.0 2019-05-13 11:07:28 +07:00
Sindre Sorhus
04cd282265 Fix the capitalization of is.bigInt64Array and is.bigUint64Array 2019-05-13 11:04:48 +07:00
Sindre Sorhus
9bc8307770 0.16.0 2019-05-04 16:13:44 +07:00
Sindre Sorhus
2dac8e96f4 Meta tweaks 2019-05-04 16:11:43 +07:00
Vlad Frangu
dd2a91dce5 Add support for BigInt (#87) 2019-05-04 16:05:23 +07:00
Adam Babcock
373605e40d Test coverage for is(value) (#86) 2019-04-28 15:15:11 +07:00
Sindre Sorhus
120f74ab63 Require Node.js 8 2019-04-01 04:02:25 +07:00
Sindre Sorhus
ea4204f0b4 Switch to XO for linting 2019-03-31 21:34:47 +07:00
Federico Brigante
28913cae88 Drop duplicate export (#84) 2019-03-14 16:32:19 +07:00
Sindre Sorhus
79144f9542 Readme tweaks 2019-02-12 14:40:44 +07:00
Sindre Sorhus
c66885b781 Add sideEffects key to package.json 2019-02-04 12:56:31 +07:00
Sindre Sorhus
0fff8265e6 Fix tests 2019-02-04 03:00:25 +07:00
Sindre Sorhus
3ec41686f7 0.15.0 2019-02-04 02:55:36 +07:00
Sindre Sorhus
2f5e03bed2 Minor tweaks 2019-02-04 02:54:30 +07:00
Sindre Sorhus
9683cd7fd9 Run TS as a require hook for tests instead of precompile 2019-02-04 02:38:38 +07:00
Sindre Sorhus
3c847be5a0 Improve the TypeScript types (#80) 2019-02-04 02:38:38 +07:00
Scottie Enriquez
2502442404 Rename .odd() to .oddInteger() and .even() to .evenInteger() for clarity (#77) 2019-02-04 02:38:38 +07:00
Sindre Sorhus
641d856b36
Stop using TypeScript namespace (#78) 2019-02-02 01:14:08 +07:00
Sindre Sorhus
ab586df0f9 Fix lint issue 2019-01-12 12:14:45 +07:00
Sindre Sorhus
0e1cce5d45
Fix readme typo 2019-01-11 16:34:29 +07:00
Itai Steinherz
4d0120adb7 Fix is.urlString documentation (#76) 2018-12-13 22:38:35 +01:00
Sindre Sorhus
6cb1d1e910 0.14.0 2018-12-13 16:58:24 +01:00
Sindre Sorhus
42fd8d3574 Use the URL global when available 2018-12-13 16:57:06 +01:00
Sindre Sorhus
844b43c9df
Improve the is.observable check (#74)
Fixes #72
2018-12-13 16:52:55 +01:00
Itai Steinherz
566f363632 Add is.urlString (#73) 2018-12-13 16:52:21 +01:00
Sindre Sorhus
2ee148f5a1 Meta tweaks 2018-12-13 00:58:02 +01:00
Sindre Sorhus
9df6f4ebe9 Bump TypeScript version 2018-11-30 15:14:41 +07:00
jokebookservice1
b8a9fb457c Minor documentational correction (#69) 2018-11-02 23:04:44 +07:00
Sindre Sorhus
2232eeea79 0.13.0 2018-11-02 19:08:53 +07:00
Sindre Sorhus
69bbf2d4be Readme improvements 2018-11-02 19:07:38 +07:00
Lukas Tetzlaff
d4869045c2 Refactor any to unknown where possible (#68)
Resolves #62
2018-11-02 17:43:51 +07:00
Itai Steinherz
7317226c80 Add is.numericString() (#67) 2018-11-01 18:21:49 +07:00
Sindre Sorhus
9ac56f1be7 Minor code style tweaks in the tests 2018-10-30 23:19:19 +07:00
Sindre Sorhus
c983ffa4cd 0.12.0 2018-09-28 13:35:34 +07:00
Sindre Sorhus
45c976071a Don't import util
We don't really need its full power. Not worth the bloat.
2018-09-28 13:32:55 +07:00
Arfat Salman
6e07df5896 Add emptiness methods (#61)
Fix #53
2018-09-28 13:24:35 +07:00
Sindre Sorhus
65c94f1a02 Include TS type lib references directly in the file
Fixes #51
2018-09-28 13:08:17 +07:00
Sam Verschueren
442f7b709f Use is-buffer ponyfill for better browser support (#66) 2018-09-27 02:02:41 +07:00
Alex Russell
ad6f372c47 Fix parameter naming of isAbsoluteMod2 function. (#64) 2018-09-18 19:22:55 +03:00
Sindre Sorhus
36b46f1889 Update dev dependencies 2018-07-31 02:17:39 +07:00
Sindre Sorhus
b2bb3e7d37 0.11.0 2018-07-10 16:56:38 +07:00