fix: migrate from node-cron to croner (#5407)

This commit is contained in:
Meier Lukas authored and GitHub committed 2026-05-01 16:21:38 +02:00
1 parent ed6680ba6a
commit e8edc203b6
10 files changed
+72 -116

No files matched your search

+17 -61
View File
@@ -240,9 +240,6 @@ catalogs:
'@types/node':
specifier: ^24.12.2
version: 24.12.2
'@types/node-cron':
specifier: ^3.0.11
version: 3.0.11
'@types/node-unifi':
specifier: ^2.5.1
version: 2.5.1
@@ -321,6 +318,9 @@ catalogs:
cookies:
specifier: ^0.9.1
version: 0.9.1
croner:
specifier: 10.0.1
version: 10.0.1
cross-env:
specifier: ^10.1.0
version: 10.1.0
@@ -435,9 +435,6 @@ catalogs:
next-intl:
specifier: 4.9.1
version: 4.9.1
node-cron:
specifier: ^4.2.1
version: 4.2.1
node-loader:
specifier: ^2.1.0
version: 2.1.0
@@ -986,6 +983,9 @@ importers:
'@homarr/widgets':
specifier: workspace:^0.1.0
version: link:../../packages/widgets
croner:
specifier: 'catalog:'
version: 10.0.1
dayjs:
specifier: 'catalog:'
version: 1.11.20
@@ -1526,9 +1526,6 @@ importers:
'@trpc/tanstack-react-query':
specifier: 'catalog:'
version: 11.16.0(@tanstack/react-query@5.100.5(react@19.2.5))(@trpc/client@11.16.0(@trpc/server@11.16.0(typescript@5.9.3))(typescript@5.9.3))(@trpc/server@11.16.0(typescript@5.9.3))(react@19.2.5)(typescript@5.9.3)
node-cron:
specifier: 'catalog:'
version: 4.2.1
react:
specifier: 'catalog:'
version: 19.2.5
@@ -1545,9 +1542,6 @@ importers:
'@homarr/tsconfig':
specifier: workspace:^0.1.0
version: link:../../tooling/typescript
'@types/node-cron':
specifier: 'catalog:'
version: 3.0.11
'@types/react':
specifier: 'catalog:'
version: 19.2.14
@@ -1661,9 +1655,9 @@ importers:
'@homarr/db':
specifier: workspace:^0.1.0
version: link:../db
node-cron:
croner:
specifier: 'catalog:'
version: 4.2.1
version: 10.0.1
devDependencies:
'@homarr/eslint-config':
specifier: workspace:^0.2.0
@@ -1674,9 +1668,6 @@ importers:
'@homarr/tsconfig':
specifier: workspace:^0.1.0
version: link:../../tooling/typescript
'@types/node-cron':
specifier: 'catalog:'
version: 3.0.11
eslint:
specifier: 'catalog:'
version: 9.39.4
@@ -4383,7 +4374,6 @@ packages:
'@million/lint@1.0.14':
resolution: {integrity: sha512-u6/kglVwZRu5+GMmtkNlGLqJVkgTl0TtM+hLa9rBg7pldx+5NG5bk45NvL37uZmAr2Xfa1C6qHb7GrFwfP372g==}
deprecated: This package is no longer maintained
hasBin: true
'@ndaidong/bellajs@12.0.1':
@@ -5688,9 +5678,6 @@ packages:
'@types/ms@2.1.0':
resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
'@types/node-cron@3.0.11':
resolution: {integrity: sha512-0ikrnug3/IyneSHqCBeslAhlK2aBfYek1fGo4bP4QnZPmiqSGRK+Oy7ZMisLWkesffJvQ1cqAcBnJC+8+nxIAg==}
'@types/node-fetch@2.6.13':
resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==}
@@ -6635,6 +6622,10 @@ packages:
resolution: {integrity: sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==}
engines: {node: '>= 14'}
croner@10.0.1:
resolution: {integrity: sha512-ixNtAJndqh173VQ4KodSdJEI6nuioBWI0V1ITNKhZZsO0pEMoDxz539T4FTTbSZ/xIOSuDnzxLVRqBVSvPNE2g==}
engines: {node: '>=18.0'}
cross-env@10.1.0:
resolution: {integrity: sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==}
engines: {node: '>=20'}
@@ -6886,9 +6877,6 @@ packages:
dom-walk@0.1.2:
resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==}
dompurify@3.3.3:
resolution: {integrity: sha512-Oj6pzI2+RqBfFG+qOaOLbFXLQ90ARpcGG6UePL82bJLtdsa6CYJD7nmiU8MW9nQNOtCHV3lZ/Bzq1X0QYbBZCA==}
dompurify@3.4.1:
resolution: {integrity: sha512-JahakDAIg1gyOm7dlgWSDjV4n7Ip2PKR55NIT6jrMfIgLFgWo81vdr1/QGqWtFNRqXP9UV71oVePtjqS2ebnPw==}
@@ -7403,10 +7391,6 @@ packages:
fast-xml-builder@1.1.5:
resolution: {integrity: sha512-4TJn/8FKLeslLAH3dnohXqE3QSoxkhvaMzepOIZytwJXZO69Bfz0HBdDHzOTOon6G59Zrk6VQ2bEiv1t61rfkA==}
fast-xml-parser@5.7.1:
resolution: {integrity: sha512-8Cc3f8GUGUULg34pBch/KGyPLglS+OFs05deyOlY7fL2MTagYPKrVQNmR1fLF/yJ9PH5ZSTd3YDF6pnmeZU+zA==}
hasBin: true
fast-xml-parser@5.7.2:
resolution: {integrity: sha512-P7oW7tLbYnhOLQk/Gv7cZgzgMPP/XN03K02/Jy6Y/NHzyIAIpxuZIM/YqAkfiXFPxA2CTm7NtCijK9EDu09u2w==}
hasBin: true
@@ -7503,15 +7487,6 @@ packages:
fn.name@1.1.0:
resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==}
follow-redirects@1.15.9:
resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==}
engines: {node: '>=4.0'}
peerDependencies:
debug: '*'
peerDependenciesMeta:
debug:
optional: true
follow-redirects@1.16.0:
resolution: {integrity: sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==}
engines: {node: '>=4.0'}
@@ -8793,10 +8768,6 @@ packages:
resolution: {integrity: sha512-lytcDEdxKjGJPTLEfW4mYMigRezMlyJY8W4wxJK8zE533Jlb8L8dRuObJFWg2P+AuOIxoCgKF+2Oq4d4Zd0OUA==}
engines: {node: ^18 || ^20 || >= 21}
node-cron@4.2.1:
resolution: {integrity: sha512-lgimEHPE/QDgFlywTd8yTR61ptugX3Qer29efeyWw2rv259HtGBNn1vZVmp8lB9uo9wC0t/AT4iGqXxia+CJFg==}
engines: {node: '>=6.0.0'}
node-domexception@1.0.0:
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
engines: {node: '>=10.5.0'}
@@ -11867,7 +11838,7 @@ snapshots:
dependencies:
'@ndaidong/bellajs': 12.0.1
cross-fetch: 4.1.0
fast-xml-parser: 5.7.1
fast-xml-parser: 5.7.2
html-entities: 2.6.0
transitivePeerDependencies:
- encoding
@@ -14021,8 +13992,6 @@ snapshots:
'@types/ms@2.1.0': {}
'@types/node-cron@3.0.11': {}
'@types/node-fetch@2.6.13':
dependencies:
'@types/node': 24.12.2
@@ -14675,7 +14644,7 @@ snapshots:
axios@1.9.0:
dependencies:
follow-redirects: 1.15.9
follow-redirects: 1.16.0
form-data: 4.0.5
proxy-from-env: 1.1.0
transitivePeerDependencies:
@@ -15103,6 +15072,8 @@ snapshots:
crc-32: 1.2.2
readable-stream: 4.5.2
croner@10.0.1: {}
cross-env@10.1.0:
dependencies:
'@epic-web/invariant': 1.0.0
@@ -15340,10 +15311,6 @@ snapshots:
dom-walk@0.1.2: {}
dompurify@3.3.3:
optionalDependencies:
'@types/trusted-types': 2.0.7
dompurify@3.4.1:
optionalDependencies:
'@types/trusted-types': 2.0.7
@@ -15991,13 +15958,6 @@ snapshots:
dependencies:
path-expression-matcher: 1.5.0
fast-xml-parser@5.7.1:
dependencies:
'@nodable/entities': 2.1.0
fast-xml-builder: 1.1.5
path-expression-matcher: 1.5.0
strnum: 2.2.3
fast-xml-parser@5.7.2:
dependencies:
'@nodable/entities': 2.1.0
@@ -16102,8 +16062,6 @@ snapshots:
fn.name@1.1.0: {}
follow-redirects@1.15.9: {}
follow-redirects@1.16.0: {}
for-each@0.3.5:
@@ -17512,8 +17470,6 @@ snapshots:
node-addon-api@8.3.1: {}
node-cron@4.2.1: {}
node-domexception@1.0.0: {}
node-emoji@2.2.0:
@@ -19220,7 +19176,7 @@ snapshots:
classnames: 2.5.1
css.escape: 1.5.1
deep-extend: 0.6.0
dompurify: 3.3.3
dompurify: 3.4.1
ieee754: 1.2.1
immutable: 3.8.2
js-file-download: 0.4.12