Skip to content

Commit b8035c2

Browse files
authored
feat: move to cron v4 (#1428)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated internal dependencies for improved compatibility and performance. - Adjusted package configuration to include an additional built dependency. - **Bug Fixes** - Improved the accuracy of task status reporting in the UPNP job manager. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 1b279bb commit b8035c2

File tree

5 files changed

+5655
-3742
lines changed

5 files changed

+5655
-3742
lines changed

api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"@nestjs/graphql": "^13.0.3",
7373
"@nestjs/passport": "^11.0.0",
7474
"@nestjs/platform-fastify": "^11.0.11",
75-
"@nestjs/schedule": "^5.0.0",
76-
"@nestjs/throttler": "^6.2.1",
75+
"@nestjs/schedule": "^6.0.0",
76+
"@nestjs/throttler": "^6.4.0",
7777
"@reduxjs/toolkit": "^2.3.0",
7878
"@runonflux/nat-upnp": "^1.0.2",
7979
"@types/diff": "^8.0.0",
@@ -94,7 +94,7 @@
9494
"command-exists": "^1.2.9",
9595
"convert": "^5.8.0",
9696
"cookie": "^1.0.2",
97-
"cron": "3.5.0",
97+
"cron": "4.3.1",
9898
"cross-fetch": "^4.0.0",
9999
"diff": "^8.0.0",
100100
"dockerode": "^4.0.5",

api/src/upnp/jobs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UPNPJobManager {
3535
}
3636

3737
isRunning(): boolean {
38-
return this.renewalTask?.running ?? false;
38+
return this.renewalTask?.isActive ?? false;
3939
}
4040
}
4141

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"protobufjs",
3636
"simple-git-hooks",
3737
"ssh2",
38+
"unrs-resolver",
3839
"vue-demi"
3940
]
4041
},

packages/unraid-api-plugin-connect/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
"format": "prettier --write \"src/**/*.{ts,js,json}\"",
1616
"codegen": "MOTHERSHIP_GRAPHQL_LINK='https://staging.mothership.unraid.net/ws' graphql-codegen --config codegen.ts"
1717
},
18-
"keywords": ["unraid", "connect", "unraid plugin"],
18+
"keywords": [
19+
"unraid",
20+
"connect",
21+
"unraid plugin"
22+
],
1923
"author": "Lime Technology, Inc. <unraid.net>",
2024
"license": "GPL-2.0-or-later",
2125
"description": "Unraid Connect plugin for Unraid API",
@@ -31,7 +35,7 @@
3135
"@nestjs/core": "^11.0.11",
3236
"@nestjs/event-emitter": "^3.0.1",
3337
"@nestjs/graphql": "^13.0.3",
34-
"@nestjs/schedule": "^5.0.0",
38+
"@nestjs/schedule": "^6.0.0",
3539
"@runonflux/nat-upnp": "^1.0.2",
3640
"@types/ini": "^4.1.1",
3741
"@types/ip": "^1.1.3",
@@ -75,7 +79,7 @@
7579
"@nestjs/core": "^11.0.11",
7680
"@nestjs/event-emitter": "^3.0.1",
7781
"@nestjs/graphql": "^13.0.3",
78-
"@nestjs/schedule": "^5.0.0",
82+
"@nestjs/schedule": "^6.0.0",
7983
"@runonflux/nat-upnp": "^1.0.2",
8084
"camelcase-keys": "^9.1.3",
8185
"class-transformer": "^0.5.1",

0 commit comments

Comments
 (0)