Skip to content

Releases: religiosa1/managed-timeout

3.0.3

Choose a tag to compare

@religiosa1 religiosa1 released this 26 Oct 14:26

2023-10-26

Fix

  • different d.ts files now included depending on esm/cjs import

Changed

  • removed all redundant files besides the actual dist from the npm package

3.0.2

Choose a tag to compare

@religiosa1 religiosa1 released this 19 Oct 08:18

2023-10-19

Fix

  • Incorrect timeLeft value after resume calls

Security

  • DevDependencies version bump

3.0.1

Choose a tag to compare

@religiosa1 religiosa1 released this 18 Oct 13:02

2023-10-18

Fix

  • Broken npm bundle (previous version unpublished)

3.0.0 (UNPUBLISHED)

Choose a tag to compare

@religiosa1 religiosa1 released this 18 Oct 12:41

2023-10-18

Added

  • callback to be called on cancellation can now be provided via start()
    second argument argument
  • Cancel calls can recieve a reason argument, passed down to cancel callback or
    used in abortion promise

Changed

  • non-started Timeouts can be rejected now
  • Timeout cancellation will result in Promise cancellation with reject error.

2.1.0

Choose a tag to compare

@religiosa1 religiosa1 released this 24 Jan 17:56

2022-01-24

Added

  • ESM module export added, UMD module changed to CJS.
  • minifaction for the bundles (bundle size decreased to 3.2kB)

Fix

  • Potential errors when execute was called before start() call (with no cb provided)
  • Incorrect execute() behavior on finished and cancelled state, introduced in 2.0.0

Changed

  • all private methods changed to be ECMAScript privates

2.0.0

Choose a tag to compare

@religiosa1 religiosa1 released this 24 Jan 00:07

2022-01-23

Added

  • state field

Changed

  • all private fields changed to be ECMAScript privates
  • cb now recieves timeout instance as its argument, promise resolves with it too
  • promise rejected value changed to be an error instance instead of a string
  • non-int delay values now throw an error

Removed

  • ES5 support was dropped. ES2015 is now the minimum supported target.

Security

  • DevDependencies versions bumb

1.1.4

Choose a tag to compare

@religiosa1 religiosa1 released this 24 Jan 00:06

2021-04-29

Changed

  • DevDependencies version bump

1.1.3

Choose a tag to compare

@religiosa1 religiosa1 released this 24 Jan 00:05

2020-08-17

Added

  • License file

Changed

  • Module type from commonjs to UMD
  • tsconfig settings (module type and required libs)