Commit Graph

53 Commits

Author SHA1 Message Date
Derrick Hammer 4d4bee14a2
*Update dist 2022-12-15 06:58:16 -05:00
Derrick Hammer cc29396abb
*Switch to commonjs 2022-12-15 06:57:55 -05:00
Derrick Hammer a3434a77f7
*Add dist 2022-12-15 06:54:55 -05:00
Derrick Hammer 0076c9fb03
*Initial refactor to use typescript 2022-12-15 06:54:28 -05:00
Sindre Sorhus 200df03007 Fix CI 2022-07-25 18:34:28 +02:00
Sindre Sorhus 46acd4b511 6.0.0 2022-07-25 18:29:37 +02:00
Sindre Sorhus eb1730ba0c Require Node.js 14
Fixes #27
2022-07-25 18:26:31 +02:00
Gyubong d7920cae0a
Move the secondary parameters into the options parameter (#29) 2022-07-25 18:16:27 +02:00
Sindre Sorhus de29542ac4 Meta tweaks 2022-07-08 14:43:39 +02:00
Sindre Sorhus 56e22052c6 5.1.0 2022-05-26 23:58:36 +07:00
Gyubong 1bf6679148
Support `AbortController` (#26)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-05-26 23:57:52 +07:00
Sindre Sorhus 0c28612eae 5.0.2 2021-10-23 21:00:37 +07:00
Kiko Beats 6b6c4e85c3
Ensure milliseconds argument is not NaN (#25) 2021-10-23 20:54:29 +07:00
Sindre Sorhus 7dd311757e 5.0.1 2021-10-08 13:16:52 +07:00
Kiko Beats bf5d1649cc
Improve timeout error message (#24)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-10-08 13:15:55 +07:00
Sindre Sorhus 495a0bb923
Fix readme typo 2021-07-09 16:56:27 +07:00
Sindre Sorhus d43bbc1589 5.0.0 2021-04-07 00:39:06 +07:00
Sindre Sorhus 458618efa4 Require Node.js 12 and move to ESM 2021-04-07 00:38:12 +07:00
Sindre Sorhus 4f86930f75 4.1.0 2020-12-26 17:45:30 +07:00
peja e26f08d43f
Make timeout clearable (#15)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-12-26 17:42:06 +07:00
Sindre Sorhus 46c25acfc5 4.0.1 2020-12-06 16:12:39 +07:00
Jan Buschtöns b98a872b13
Fix browser compatibility (#18) 2020-12-06 16:12:12 +07:00
Sindre Sorhus bddde18124 4.0.0 2020-12-01 22:52:59 +07:00
Sindre Sorhus 3249b2f014 Require Node.js 10 2020-12-01 22:50:36 +07:00
Pedro Augusto de Paula Barbosa 085f437e49
Add `customTimers` option (#17)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-12-01 22:40:53 +07:00
Sindre Sorhus 5e4f43cf37 Move to GitHub Actions 2020-12-01 14:57:27 +07:00
Sindre Sorhus dececa8aa3 3.2.0 2019-09-17 22:10:35 +07:00
Sindre Sorhus a233d8cd1d Add support for passing in Infinity as `milliseconds`
Fixes #14
2019-09-17 22:09:28 +07:00
Sindre Sorhus 280144779b
Create funding.yml 2019-05-28 16:12:52 +07:00
Sindre Sorhus 21cf551a93 3.1.0 2019-04-04 11:59:47 +07:00
Dimitri Benin 695a09c4be Refactor TypeScript definition to CommonJS compatible export (#11) 2019-04-04 11:58:41 +07:00
Sindre Sorhus c79394a096 3.0.0 2019-03-12 15:23:58 +07:00
Sindre Sorhus 0333387584 Meta tweaks 2019-03-12 15:21:47 +07:00
Dimitri Benin 9a429bc248 Require Node.js 8, add TypeScript definition (#10) 2019-03-12 15:17:11 +07:00
Sindre Sorhus db65c4b511 2.0.1 2017-11-28 21:06:32 +01:00
Ægir Örn Símonarson 7fc1cb3dd2 Catch error thrown in fallback (#8) 2017-11-28 21:05:54 +01:00
Sindre Sorhus 63a486a0f2 2.0.0 2017-11-19 16:37:33 +07:00
Sindre Sorhus a49122996c Document #3 2017-11-19 16:36:02 +07:00
Kevin Mårtensson 0324327342 Cancel any cancelable input promises (#3) 2017-11-19 16:33:44 +07:00
Sindre Sorhus 14d97b13fd 1.2.1 2017-11-19 16:31:49 +07:00
Neek Sandhu 1a651607e1 Fix value check logic for ms arg (#5) 2017-11-19 16:27:16 +07:00
Sindre Sorhus 339b0ac5db 1.2.0 2017-07-02 11:24:45 +02:00
Sindre Sorhus 584ef7473b Meta tweaks 2017-07-02 03:43:15 +02:00
Sindre Sorhus b456b7994e Simplify the code by using `p-finally`
Closes #1
2017-07-02 03:41:51 +02:00
Sindre Sorhus 7bb7ff2be0 1.1.1 2017-05-14 22:03:24 +07:00
Sindre Sorhus 33c1e31d79 Make sure the timeout is positive 2017-05-14 22:03:00 +07:00
Sindre Sorhus fd9ac502ab 1.1.0 2017-05-14 22:00:02 +07:00
Sindre Sorhus 1547fe2c7f Define error name manually so it will work when minified 2017-05-14 21:59:23 +07:00
Sindre Sorhus 7d46b457c3 Allow `Infinity` timeout
Could be useful if the user doesn’t want a timeout based on a conditional.
2017-05-14 21:58:43 +07:00
Sindre Sorhus e6bed583f6 Simplify error 2016-11-23 11:57:27 +07:00