Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poll

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poll - npm Package Versions

3.2.2

Diff

Changelog

Source

3.2.2 (2023-05-18)

Bug fixes

  • Fixes pkg.exports missing types for bare module specifiers (i.e. imports from poll).
  • Adds missing entry for the type definition file (can now be imported poll/types/index.d.ts without TypeScript complaining).
kleinfreund
published 3.2.1 •

Changelog

Source

3.2.1 (2022-10-18)

Bug fixes

  • Fixes the type for poll incorrectly marking the shouldStopPolling argument as required.
kleinfreund
published 3.2.0 •

Changelog

Source

3.2.0 (2021-11-27)

Features

  • Adds support for providing a delay function which returns the delay value allowing customization of the polling interval. This can be utilized to implement polling with exponential backoff (i.e. where the polling interval steadily increases over time).
kleinfreund
published 3.1.0 •

Changelog

Source

3.1.0 (2021-11-13)

Features

  • Adds support for asynchronous shouldStopPolling functions.
kleinfreund
published 3.0.0 •

Changelog

Source

3.0.0 (2021-08-16)

Breaking changes

  • Changes the package’s distribution format from UMD to ES module.
  • Changes the exported poll function from a default export to a named export. Update your code by replacing import poll from 'poll' with import { poll } from 'poll'.
kleinfreund
published 2.0.1 •

Changelog

Source

2.0.1 (2021-03-27)

Bug fixes

  • Fixes incorrect usage instructions in README.md file.
kleinfreund
published 2.0.0 •

Changelog

Source

2.0.0 (2021-03-21)

Breaking changes

  • Removes the separate ESM and CJS bundles in favour of one UMD bundle that can be used more easily in most scenarios while keeping the bundle size down. The bundle in the dist directory is now also minified.
kleinfreund
published 1.0.1 •

Changelog

Source

1.0.1 (2019-08-23)

Bug fixes

  • Removes safe guard preventing use of poll function with negative delay values.
kleinfreund
published 1.0.0 •

Changelog

Source

1.0.0 (2019-08-04)

Breaking changes

  • 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!

kleinfreund
published 0.1.0 •

Changelog

Source

0.1.0 (2019-08-03)

Features

  • Releases initial version of the poll package.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc