From 2f81e5992ca10fa137904b1780eb429c6da24ca6 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 23 Oct 2024 13:58:52 +0200
Subject: [PATCH] fix(deps): update dependency croner to v9 (#30)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [croner](https://croner.56k.guru)
([source](https://redirect.github.com/hexagon/croner)) | [`8.1.2` ->
`9.0.0`](https://renovatebot.com/diffs/npm/croner/8.1.2/9.0.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/croner/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/croner/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/croner/8.1.2/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/croner/8.1.2/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
hexagon/croner (croner)
###
[`v9.0.0`](https://redirect.github.com/Hexagon/croner/releases/tag/9.0.0)
[Compare
Source](https://redirect.github.com/hexagon/croner/compare/8.1.2...9.0.0)
#### Croner 9.0.0
This major release brings significant changes to Croner, improving
consistency, fixing bugs, and modernizing the codebase.
##### Changes
- **Bug Fixes:**
- Fixed an issue where "every X seconds" crons would fail with a
"maximum call stack exceeded" error
([#260](https://redirect.github.com/hexagon/croner/issues/260)).
- Fixed an issue where types were not supported when using ES module via
[jsr.io](https://jsr.io)
([#258](https://redirect.github.com/hexagon/croner/issues/258)).
- **API Changes:**
- The `new` keyword is now mandatory when instantiating Croner (e.g.,
`new Cron(/* ... */)`).
- The default export has been removed. You now need to use `import {
Cron } from 'croner';` or `const { Cron } = require('croner');`.
- **File Structure Changes** *(relevant for direct file access)*:
- All files in the `/dist` directory are now minified. `croner.min.js`
has been renamed to `croner.js`.
- Typings have been moved from `/types` to `/dist`.
- Only the `/src` directory is exposed in the jsr module
[jsr.io/@hexagon/croner](https://jsr.io/@hexagon/croner).
- **Codebase Modernization:**
- The entire codebase has been migrated from JavaScript with JSDoc to
TypeScript.
- Deno is now used for formatting, type checking, and linting, resulting
in a cleaner and more maintainable repository. Esbuild is used to build
the [npm module](https://www.npmjs.com/package/croner) and typings.
**Upgrade Notice:**
Due to the API and file structure changes, upgrading from 8.x to 9.x may
require modifications to your existing code. Please review the above
changes carefully before migrating.
---
### Configuration
๐
**Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
๐ฆ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
โป **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
๐ **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/tf2pickup-org/tf2pickup).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michaล Garapich
---
package.json | 2 +-
pnpm-lock.yaml | 10 +++++-----
.../plugins/remove-dead-game-servers.ts | 2 +-
src/twitch-tv/index.ts | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package.json b/package.json
index 6ab394fd..c7ace303 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"@tailwindcss/typography": "0.5.15",
"async-mutex": "0.5.0",
"autoprefixer": "10.4.20",
- "croner": "8.1.2",
+ "croner": "9.0.0",
"date-fns": "4.1.0",
"dotenv": "16.4.5",
"fastify": "5.0.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5b2f64de..32e10ea1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -51,8 +51,8 @@ importers:
specifier: 10.4.20
version: 10.4.20(postcss@8.4.47)
croner:
- specifier: 8.1.2
- version: 8.1.2
+ specifier: 9.0.0
+ version: 9.0.0
date-fns:
specifier: 4.1.0
version: 4.1.0
@@ -1094,8 +1094,8 @@ packages:
resolution: {integrity: sha512-bsSztFoaR8bw9MlFCrTHzc1wOKCUKOBsbgFdoDilZDkETAOOjKSqV7L+EQLbTaylwvZasd9vM4MGKotJaUfSpA==}
engines: {node: '>=18'}
- croner@8.1.2:
- resolution: {integrity: sha512-ypfPFcAXHuAZRCzo3vJL6ltENzniTjwe/qsLleH1V2/7SRDjgvRQyrLmumFTLmjFax4IuSxfGXEn79fozXcJog==}
+ croner@9.0.0:
+ resolution: {integrity: sha512-onMB0OkDjkXunhdW9htFjEhqrD54+M94i6ackoUkjHKbRnXdyEyKRelp4nJ1kAz32+s27jP1FsebpJCVl0BsvA==}
engines: {node: '>=18.0'}
cross-spawn@7.0.3:
@@ -3591,7 +3591,7 @@ snapshots:
cookie@1.0.0: {}
- croner@8.1.2: {}
+ croner@9.0.0: {}
cross-spawn@7.0.3:
dependencies:
diff --git a/src/static-game-servers/plugins/remove-dead-game-servers.ts b/src/static-game-servers/plugins/remove-dead-game-servers.ts
index a954167c..901ddf39 100644
--- a/src/static-game-servers/plugins/remove-dead-game-servers.ts
+++ b/src/static-game-servers/plugins/remove-dead-game-servers.ts
@@ -22,7 +22,7 @@ export default fp(
// eslint-disable-next-line @typescript-eslint/require-await
async () => {
// run every minute
- Cron('* * * * *', removeDeadGameServers)
+ new Cron('* * * * *', removeDeadGameServers)
},
{ name: 'remove dead game servers' },
)
diff --git a/src/twitch-tv/index.ts b/src/twitch-tv/index.ts
index 75232566..d75c088a 100644
--- a/src/twitch-tv/index.ts
+++ b/src/twitch-tv/index.ts
@@ -40,7 +40,7 @@ export default fp(
return
}
- Cron('* * * * *', async () => {
+ new Cron('* * * * *', async () => {
try {
await refreshStreams()
} catch (error) {