@rvoh/psychic-workers 2.7.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,7 +50,7 @@ export default class BaseScheduledService {
50
50
  * @param methodName - the name of the static method you wish to run in the background
51
51
  * @param args - a variadic list of arguments to be sent to your method
52
52
  */
53
- static schedule<T, MethodName extends FunctionPropertyNames<Required<T>>, MethodFunc extends T[MethodName & keyof T], MethodArgs extends MethodFunc extends (...args: any) => any ? Parameters<MethodFunc> : never>(this: T, pattern: string, methodName: MethodName, ...args: MethodArgs): Promise<void>;
53
+ static schedule<T, MethodName extends FunctionPropertyNames<Required<T>>, MethodFunc extends T[MethodName & keyof T], MethodArgs extends (MethodFunc extends (...args: any) => any ? Parameters<MethodFunc> : never)>(this: T, pattern: string, methodName: MethodName, ...args: MethodArgs): Promise<void>;
54
54
  /**
55
55
  * Returns the id that `schedule` registers a job under, which can be passed
56
56
  * to {@link BaseScheduledService.unschedule} to remove that job.
@@ -90,8 +90,8 @@ export interface PsychicBackgroundNativeBullMQOptions extends PsychicBackgroundS
90
90
  * See https://docs.bullmq.io/guide/going-to-production for the different settings to use between
91
91
  * queue and worker connections.
92
92
  */
93
- defaultQueueConnection?: RedisOrRedisClusterConnection;
94
- defaultWorkerConnection?: RedisOrRedisClusterConnection;
93
+ defaultQueueConnection?: RedisOrRedisClusterConnection | undefined;
94
+ defaultWorkerConnection?: RedisOrRedisClusterConnection | undefined;
95
95
  nativeBullMQ: {
96
96
  defaultQueueOptions?: QueueOptionsWithConnectionInstance;
97
97
  /**
@@ -140,7 +140,7 @@ export type QueueOptionsWithConnectionInstance = Omit<QueueOptions, 'connection'
140
140
  * See https://docs.bullmq.io/guide/going-to-production for the different settings to use between
141
141
  * queue and worker connections.
142
142
  */
143
- queueConnection?: RedisOrRedisClusterConnection;
143
+ queueConnection?: RedisOrRedisClusterConnection | undefined;
144
144
  workerConnection?: RedisOrRedisClusterConnection | undefined;
145
145
  };
146
146
  export interface PsychicBackgroundSimpleOptions extends PsychicBackgroundSharedOptions {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic-workers",
4
4
  "description": "Background job system for Psychic applications",
5
- "version": "2.7.0",
5
+ "version": "2.8.1",
6
6
  "author": "RVO Health",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -40,6 +40,9 @@
40
40
  "files": [
41
41
  "dist/**/*"
42
42
  ],
43
+ "engines": {
44
+ "node": ">=24"
45
+ },
43
46
  "scripts": {
44
47
  "psy": "NODE_ENV=${NODE_ENV:-test} pnpm psy:ts",
45
48
  "psy:js": "node ./dist/test-app/src/cli/index.js",
@@ -64,46 +67,46 @@
64
67
  "@eslint/js": "^10.0.1",
65
68
  "@koa/cors": "^5.0.0",
66
69
  "@koa/etag": "^5.0.2",
67
- "@koa/router": "^15.4.0",
68
- "@rvoh/dream": "^2.5.3",
69
- "@rvoh/dream-spec-helpers": "^2.1.1",
70
- "@rvoh/psychic": "^3.0.3",
71
- "@rvoh/psychic-spec-helpers": "^3.0.0",
72
- "@types/koa": "^3.0.2",
70
+ "@koa/router": "^15.7.0",
71
+ "@rvoh/dream": "^2.33.0",
72
+ "@rvoh/dream-spec-helpers": "^2.3.0",
73
+ "@rvoh/psychic": "^3.15.2",
74
+ "@rvoh/psychic-spec-helpers": "^3.4.0",
75
+ "@types/koa": "^3.0.3",
73
76
  "@types/koa-bodyparser": "^4.3.13",
74
77
  "@types/koa-conditional-get": "^2.0.4",
75
78
  "@types/koa-etag": "^3.0.4",
76
79
  "@types/koa__cors": "^5.0.1",
77
80
  "@types/koa__router": "^12.0.5",
78
- "@types/node": "^22.12.0",
81
+ "@types/node": "^26.6.3",
79
82
  "@types/pg": "^8",
80
- "@types/supertest": "^6.0.3",
81
- "@typescript-eslint/parser": "^8.67.0",
83
+ "@types/supertest": "^7.2.1",
84
+ "@typescript-eslint/parser": "^8.70.1",
82
85
  "bullmq": "^5.64.0",
83
- "eslint": "^10.0.1",
86
+ "eslint": "^10.11.0",
84
87
  "ioredis": "^5.8.2",
85
- "koa": "^3.1.2",
88
+ "koa": "^3.2.1",
86
89
  "koa-bodyparser": "^4.4.1",
87
90
  "koa-conditional-get": "^3.0.0",
88
- "kysely": "^0.28.17",
91
+ "kysely": "^0.29.6",
89
92
  "kysely-codegen": "~0.20.0",
90
93
  "luxon-jest-matchers": "^0.1.14",
91
- "openapi-typescript": "^7.9.1",
92
- "pg": "^8.13.1",
93
- "prettier": "^3.3.3",
94
- "supertest": "^7.2.2",
94
+ "openapi-typescript": "^7.13.0",
95
+ "pg": "^8.23.0",
96
+ "prettier": "^3.9.9",
97
+ "supertest": "^7.3.0",
95
98
  "tslib": "^2.7.0",
96
- "tsx": "^4.20.6",
97
- "typedoc": "^0.28.17",
98
- "typescript": "^5.8.2",
99
- "typescript-eslint": "^8.67.0",
100
- "vite": "^7.3.6",
101
- "vitest": "^4.1.11"
99
+ "tsx": "^4.23.15",
100
+ "typedoc": "^0.28.20",
101
+ "typescript": "^5.9.3",
102
+ "typescript-eslint": "^8.70.1",
103
+ "vite": "^8.3.1",
104
+ "vitest": "^5.0.2"
102
105
  },
103
- "packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b",
106
+ "packageManager": "pnpm@12.14.0+sha512.c18ba6d87993d3d164cb5e8948f32b2c06ee854487e06cd8d86781342fb3e5bb4634367034711e86802baa9c37bea906ce1929ad08d70884c97d801df13389a6",
104
107
  "dependencies": {
105
- "commander": "^14.0.2",
106
- "dotenv": "^17.2.3",
108
+ "commander": "^14.0.3",
109
+ "dotenv": "^17.4.2",
107
110
  "pluralize-esm": "^9.0.5"
108
111
  }
109
112
  }