Skip to content

fix: switch cron-parser to named import (CronExpressionParser)#1737

Merged
seriousm4x merged 1 commit into
seriousm4x:masterfrom
codeanish:fix/cron-parser-import
May 14, 2026
Merged

fix: switch cron-parser to named import (CronExpressionParser)#1737
seriousm4x merged 1 commit into
seriousm4x:masterfrom
codeanish:fix/cron-parser-import

Conversation

@codeanish

Copy link
Copy Markdown
Contributor

The previous Cron Parser was not correctly parsing the cron schedules as shown in the below screenshot

image

The cron.ts nextCronDate always threw a TypeError which caught and threw Invalid cron

With the fix, it's now showing the correct cron schedules

image

The default export from cron-parser is deprecated/removed in newer
versions. Replace `cronParser` with `CronExpressionParser` in both
the cron helper and settings page.
@invario

invario commented May 14, 2026

Copy link
Copy Markdown
Contributor

Odd that it was working before dependencies were updated in commit 9494c34.

@seriousm4x seriousm4x merged commit 7b8bcfa into seriousm4x:master May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants