croner

Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.

MIT License

Downloads
7M
Stars
1.9K
Committers
14

Bot releases are hidden (Show)

croner - 4.3.8

Published by Hexagon over 2 years ago

Changes

New Contributors

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.7...4.3.8

croner - 4.3.7

Published by Hexagon over 2 years ago

Fixes

  • TypeScript: Allow both named and default imports

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.6...4.3.7

croner - 4.3.6

Published by Hexagon over 2 years ago

Fixes

  • Fix return value of external call to .msToNext() between triggers when using interval: option.

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.4...4.3.6

croner - 4.3.4

Published by Hexagon over 2 years ago

Fixes

  • Fix #74, bug with enumerate() and interval: option

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.3...4.3.4

croner - 4.3.3

Published by Hexagon over 2 years ago

Fixes

  • Performance improvements
  • Code cleanup
  • Fix #73, Inconsistent bug prone timezone argument order reported by @kyrylkov

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.2...4.3.3

croner - 4.3.2

Published by Hexagon over 2 years ago

Bugfixes

  • Fix .next() showing current run during triggered function
  • Fix for first run timing with option interval: x

Chores

  • Add Deno TS test
  • Add test for .next() showing current run during triggered function
  • Reorganize tests
  • Update dev-dependencies
  • Rebuild docs

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.1...4.3.2

croner - 4.3.1

Published by Hexagon over 2 years ago

Fixed

  • Minor bug where .msToNext() did return incorrect value when called "externally" without a previous run specified.
  • Fixed TS type issue where .msToNext() did not accept a string,

Chores

  • Add Deno CI-pipeline, targeting 1.16.x and 1.x (latest)
  • Add basic Deno tests

Full Changelog: https://github.com/Hexagon/croner/compare/4.3.0...4.3.1

croner - 4.3.0

Published by Hexagon over 2 years ago

Added

  • Implemented #63. Limit triggering to a minimum interval of x seconds. See example.
  • Implemented #62. Support using nicknames (@hourly, @weekly etc.). See pattern docs.

Chores

  • Bump development dependencies

Note: Bumped minor (4.2 -> 4.3) due to added functionality. Not a breaking change.

Full Changelog: https://github.com/Hexagon/croner/compare/4.2.3...4.3.0

croner - 4.2.3

Published by Hexagon over 2 years ago

Bugfixes

  • Fix #65, Providing invalid date results in an infinite loop (legacyMode)
  • Fix #66, Infinite loop with specific crontab (legacyMode)

Chores

  • Add test case for #64

Full Changelog: https://github.com/Hexagon/croner/compare/4.2.2...4.2.3

croner - 4.2.2

Published by Hexagon over 2 years ago

Bugfixes

  • Fixed bug: Incorrect next date when using legacy mode #64

Chores

  • Dependency update
  • Minor documentation update

Full Changelog: https://github.com/Hexagon/croner/compare/4.2.1...4.2.2

croner - 4.2.1

Published by Hexagon over 2 years ago

Fixes

  • Fix issue #56, Star combined with number in pattern does not throw

Chores

  • More tests
  • Documentation updates
  • Dependency update

Full Changelog: https://github.com/Hexagon/croner/compare/4.2.0...4.2.1

croner - 4.2.0

Published by Hexagon over 2 years ago

Features

  • New option - legacyMode: true.
    When enabled, day-of-week and day-of-month are ORed instead of ANDed. See #53 for more information

  • It is now possible to combine L with specific days, like 0 0 0 1,L * * to run both first and last day of month.

Chores

  • Refactor
  • Additional tests

Notes

This is not a breaking change in any way, but minor is bumped due to modified internals and new features. 4.1 will be supported with hotfixes until 4.2 has settled.

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.97...4.2.0

croner - 4.1.97

Published by Hexagon over 2 years ago

Bugfixes

  • Revert to previous day-of-week implementation to fix #54 reported by @undsoft

Chores

  • Add test cases for issue #54
croner - 4.1.96

Published by Hexagon over 2 years ago

Bugfixes

  • Fixed #51 Minor JSDoc and Type issue
  • Fixed #52 Next not calculated correctly using stepping with months

Chores

  • Documentation updates

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.95...4.1.96

croner - 4.1.95

Published by Hexagon over 2 years ago

Bugfix

  • Fix typing issue with .enumerate(). previous was not optional.

Chores

  • Add basic ts build-tests on build:dist.

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.94...4.1.95

croner - 4.1.94

Published by Hexagon over 2 years ago

Bugfix

New Contributors

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.93...4.1.94

croner - 4.1.93

Published by Hexagon over 2 years ago

Bugfix

  • Fix #47, L does not increment when using enumerate()

Chores

  • More test cases

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.92...4.1.93

croner - 4.1.92

Published by Hexagon over 2 years ago

New features

  • Added support for ISO 8601 UTC formatted strings where date/time strings are allowed (startAt, one-off pattern etc.)

Bugfixes

  • Fix rare TZ-bugs found by refactor/new test cases

Chores

  • Refactor

Full Changelog: https://github.com/Hexagon/croner/compare/4.1.91...4.1.92

croner - 4.1.91

Published by Hexagon over 2 years ago

Minor bump due to slightly changed interface. Just added functionality, not breaking in any way.

Fixes

New features

  • Add support for one-off scheduling in 6c601a96f9a792a5faea3cda222916297a7c23ca, closes #4

Chores

  • Group test cases, closes #12

Full Changelog: https://github.com/Hexagon/croner/compare/4.0.90...4.1.91

croner - 4.0.90

Published by Hexagon over 2 years ago

Bugfix

  • Fix last day of month bug

Full Changelog: https://github.com/Hexagon/croner/compare/4.0.89...4.0.90