Releases: religiosa1/managed-timeout
Releases · religiosa1/managed-timeout
Release list
3.0.3
3.0.2
2023-10-19
Fix
- Incorrect
timeLeftvalue afterresumecalls
Security
- DevDependencies version bump
3.0.1
2023-10-18
Fix
- Broken npm bundle (previous version unpublished)
3.0.0 (UNPUBLISHED)
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
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
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
2021-04-29
Changed
- DevDependencies version bump
1.1.3
2020-08-17
Added
- License file
Changed
- Module type from commonjs to UMD
- tsconfig settings (module type and required libs)