Skip to content

Commit

Permalink
fix(deps): update dependency croner to v9 (#30)
Browse files Browse the repository at this point in the history
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

<details>
<summary>hexagon/croner (croner)</summary>

###
[`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
([#&#8203;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)
([#&#8203;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/@&#8203;hexagon/croner](https://jsr.io/@&#8203;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.

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->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).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michał Garapich <michal@garapich.pl>
  • Loading branch information
renovate[bot] and garrappachc authored Oct 23, 2024
1 parent c4e7756 commit 2f81e59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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' },
)
2 changes: 1 addition & 1 deletion src/twitch-tv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default fp(
return
}

Cron('* * * * *', async () => {
new Cron('* * * * *', async () => {
try {
await refreshStreams()
} catch (error) {
Expand Down

0 comments on commit 2f81e59

Please sign in to comment.