Changelog
1.0.0 (2019-08-04)
Importing the CommonJS module with require('poll')
no longer resolves to the poll
function. Use require('poll').default
instead.
const poll = require('poll').default;
Non-breaking changes:
The package is now available as an ES module. If you use poll
as a dependency, import it like this:
import poll from 'poll/dist/esm/poll.mjs';
Tests now use Jest instead of Ava.
Tests are now based on fake timers instead of calling setTimeout
in the tests directly. Unfortunately, tests still require a lot of trickery to manually clear out the promise queue. If you know how to test this without sprinkling await Promise.resolve()
all over my tests, I’m all ears!
Changelog
0.1.0 (2019-08-03)