@nest-boot/bullmq-mikro-orm 7.0.4 → 7.1.0

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.
Files changed (34) hide show
  1. package/dist/bullmq-mikro-orm-module-options.interface.d.ts +6 -0
  2. package/dist/bullmq-mikro-orm.module.d.ts +17 -0
  3. package/dist/bullmq-mikro-orm.module.js +17 -0
  4. package/dist/bullmq-mikro-orm.module.js.map +1 -1
  5. package/dist/bullmq-mikro-orm.module.spec.d.ts +1 -0
  6. package/dist/bullmq-mikro-orm.module.spec.js +38 -0
  7. package/dist/bullmq-mikro-orm.module.spec.js.map +1 -0
  8. package/dist/bullmq-mikro-orm.service.spec.d.ts +1 -0
  9. package/dist/bullmq-mikro-orm.service.spec.js +199 -0
  10. package/dist/bullmq-mikro-orm.service.spec.js.map +1 -0
  11. package/dist/entities/job.entity.d.ts +20 -0
  12. package/dist/entities/job.entity.js +9 -0
  13. package/dist/entities/job.entity.js.map +1 -1
  14. package/dist/entities/job.entity.spec.d.ts +1 -0
  15. package/dist/entities/job.entity.spec.js +42 -0
  16. package/dist/entities/job.entity.spec.js.map +1 -0
  17. package/dist/enums/job-status.enum.d.ts +9 -0
  18. package/dist/enums/job-status.enum.js +9 -0
  19. package/dist/enums/job-status.enum.js.map +1 -1
  20. package/dist/index.spec.d.ts +1 -0
  21. package/dist/index.spec.js +47 -0
  22. package/dist/index.spec.js.map +1 -0
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/dist/utils/convert-bullmq-job-state-to-job-status.util.d.ts +3 -3
  25. package/dist/utils/convert-bullmq-job-state-to-job-status.util.js +3 -3
  26. package/dist/utils/convert-bullmq-job-state-to-job-status.util.spec.d.ts +1 -0
  27. package/dist/utils/convert-bullmq-job-state-to-job-status.util.spec.js +22 -0
  28. package/dist/utils/convert-bullmq-job-state-to-job-status.util.spec.js.map +1 -0
  29. package/dist/utils/should-include-queue.util.d.ts +10 -10
  30. package/dist/utils/should-include-queue.util.js +13 -13
  31. package/dist/utils/should-include-queue.util.js.map +1 -1
  32. package/dist/utils/should-include-queue.util.spec.js +17 -17
  33. package/dist/utils/should-include-queue.util.spec.js.map +1 -1
  34. package/package.json +26 -16
@@ -1,8 +1,8 @@
1
1
  import { JobState } from "bullmq";
2
2
  import { JobStatus } from "../enums/job-status.enum";
3
3
  /**
4
- * BullMQ 的任务状态转换为内部 JobStatus 枚举
5
- * @param state BullMQ 任务状态或 "unknown"
6
- * @returns 对应的 JobStatus 枚举值
4
+ * Converts a BullMQ job state to the internal JobStatus enum.
5
+ * @param state - The BullMQ job state or "unknown".
6
+ * @returns The corresponding JobStatus enum value.
7
7
  */
8
8
  export declare function convertBullmqJobStateToJobStatus(state: JobState | "unknown"): JobStatus;
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.convertBullmqJobStateToJobStatus = convertBullmqJobStateToJobStatus;
4
4
  const job_status_enum_1 = require("../enums/job-status.enum");
5
5
  /**
6
- * BullMQ 的任务状态转换为内部 JobStatus 枚举
7
- * @param state BullMQ 任务状态或 "unknown"
8
- * @returns 对应的 JobStatus 枚举值
6
+ * Converts a BullMQ job state to the internal JobStatus enum.
7
+ * @param state - The BullMQ job state or "unknown".
8
+ * @returns The corresponding JobStatus enum value.
9
9
  */
10
10
  function convertBullmqJobStateToJobStatus(state) {
11
11
  switch (state) {
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const job_status_enum_1 = require("../enums/job-status.enum");
4
+ const convert_bullmq_job_state_to_job_status_util_1 = require("./convert-bullmq-job-state-to-job-status.util");
5
+ describe("convertBullmqJobStateToJobStatus", () => {
6
+ it.each([
7
+ ["active", job_status_enum_1.JobStatus.ACTIVE],
8
+ ["completed", job_status_enum_1.JobStatus.COMPLETED],
9
+ ["delayed", job_status_enum_1.JobStatus.DELAYED],
10
+ ["failed", job_status_enum_1.JobStatus.FAILED],
11
+ ["prioritized", job_status_enum_1.JobStatus.PRIORITIZED],
12
+ ["waiting", job_status_enum_1.JobStatus.WAITING],
13
+ ["waiting-children", job_status_enum_1.JobStatus.WAITING_CHILDREN],
14
+ ["unknown", job_status_enum_1.JobStatus.UNKNOWN],
15
+ ])("should convert %s to %s", (state, status) => {
16
+ expect((0, convert_bullmq_job_state_to_job_status_util_1.convertBullmqJobStateToJobStatus)(state)).toBe(status);
17
+ });
18
+ it("should convert unsupported states to unknown", () => {
19
+ expect((0, convert_bullmq_job_state_to_job_status_util_1.convertBullmqJobStateToJobStatus)("paused")).toBe(job_status_enum_1.JobStatus.UNKNOWN);
20
+ });
21
+ });
22
+ //# sourceMappingURL=convert-bullmq-job-state-to-job-status.util.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert-bullmq-job-state-to-job-status.util.spec.js","sourceRoot":"","sources":["../../src/utils/convert-bullmq-job-state-to-job-status.util.spec.ts"],"names":[],"mappings":";;AAAA,8DAAqD;AACrD,+GAAiG;AAEjG,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,EAAE,CAAC,IAAI,CAAC;QACN,CAAC,QAAQ,EAAE,2BAAS,CAAC,MAAM,CAAC;QAC5B,CAAC,WAAW,EAAE,2BAAS,CAAC,SAAS,CAAC;QAClC,CAAC,SAAS,EAAE,2BAAS,CAAC,OAAO,CAAC;QAC9B,CAAC,QAAQ,EAAE,2BAAS,CAAC,MAAM,CAAC;QAC5B,CAAC,aAAa,EAAE,2BAAS,CAAC,WAAW,CAAC;QACtC,CAAC,SAAS,EAAE,2BAAS,CAAC,OAAO,CAAC;QAC9B,CAAC,kBAAkB,EAAE,2BAAS,CAAC,gBAAgB,CAAC;QAChD,CAAC,SAAS,EAAE,2BAAS,CAAC,OAAO,CAAC;KACtB,CAAC,CAAC,yBAAyB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACvD,MAAM,CAAC,IAAA,8EAAgC,EAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,IAAA,8EAAgC,EAAC,QAAiB,CAAC,CAAC,CAAC,IAAI,CAC9D,2BAAS,CAAC,OAAO,CAClB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  /**
2
- * 判断队列是否应该被包含
3
- * @param queueName 队列名称
4
- * @param includeQueues 包含的队列列表(为空表示包含所有)
5
- * @param excludeQueues 排除的队列列表
6
- * @returns 如果队列应该被包含则返回 true
2
+ * Determines whether a queue should be included.
3
+ * @param queueName - The queue name.
4
+ * @param includeQueues - List of queues to include (empty means include all).
5
+ * @param excludeQueues - List of queues to exclude.
6
+ * @returns True if the queue should be included.
7
7
  *
8
- * 规则:
9
- * 1. 如果在 excludeQueues 中,返回 false
10
- * 2. 如果 includeQueues 为空,返回 true(包含所有未排除的队列)
11
- * 3. 如果在 includeQueues 中,返回 true
12
- * 4. 否则返回 false
8
+ * Rules:
9
+ * 1. If in excludeQueues, return false.
10
+ * 2. If includeQueues is empty, return true (include all non-excluded queues).
11
+ * 3. If in includeQueues, return true.
12
+ * 4. Otherwise return false.
13
13
  */
14
14
  export declare function shouldIncludeQueue(queueName: string, includeQueues: string[], excludeQueues: string[]): boolean;
@@ -2,28 +2,28 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.shouldIncludeQueue = shouldIncludeQueue;
4
4
  /**
5
- * 判断队列是否应该被包含
6
- * @param queueName 队列名称
7
- * @param includeQueues 包含的队列列表(为空表示包含所有)
8
- * @param excludeQueues 排除的队列列表
9
- * @returns 如果队列应该被包含则返回 true
5
+ * Determines whether a queue should be included.
6
+ * @param queueName - The queue name.
7
+ * @param includeQueues - List of queues to include (empty means include all).
8
+ * @param excludeQueues - List of queues to exclude.
9
+ * @returns True if the queue should be included.
10
10
  *
11
- * 规则:
12
- * 1. 如果在 excludeQueues 中,返回 false
13
- * 2. 如果 includeQueues 为空,返回 true(包含所有未排除的队列)
14
- * 3. 如果在 includeQueues 中,返回 true
15
- * 4. 否则返回 false
11
+ * Rules:
12
+ * 1. If in excludeQueues, return false.
13
+ * 2. If includeQueues is empty, return true (include all non-excluded queues).
14
+ * 3. If in includeQueues, return true.
15
+ * 4. Otherwise return false.
16
16
  */
17
17
  function shouldIncludeQueue(queueName, includeQueues, excludeQueues) {
18
- // 优先检查排除列表
18
+ // Check exclude list first (takes priority)
19
19
  if (excludeQueues.includes(queueName)) {
20
20
  return false;
21
21
  }
22
- // 如果没有指定包含列表,则包含所有未排除的队列
22
+ // If no include list is specified, include all non-excluded queues
23
23
  if (includeQueues.length === 0) {
24
24
  return true;
25
25
  }
26
- // 检查是否在包含列表中
26
+ // Check if in include list
27
27
  return includeQueues.includes(queueName);
28
28
  }
29
29
  //# sourceMappingURL=should-include-queue.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"should-include-queue.util.js","sourceRoot":"","sources":["../../src/utils/should-include-queue.util.ts"],"names":[],"mappings":";;AAaA,gDAiBC;AA9BD;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB,CAChC,SAAiB,EACjB,aAAuB,EACvB,aAAuB;IAEvB,WAAW;IACX,IAAI,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yBAAyB;IACzB,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,aAAa;IACb,OAAO,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC"}
1
+ {"version":3,"file":"should-include-queue.util.js","sourceRoot":"","sources":["../../src/utils/should-include-queue.util.ts"],"names":[],"mappings":";;AAaA,gDAiBC;AA9BD;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB,CAChC,SAAiB,EACjB,aAAuB,EACvB,aAAuB;IAEvB,4CAA4C;IAC5C,IAAI,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,mEAAmE;IACnE,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,2BAA2B;IAC3B,OAAO,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC"}
@@ -2,57 +2,57 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const should_include_queue_util_1 = require("./should-include-queue.util");
4
4
  describe("shouldIncludeQueue", () => {
5
- describe("当没有设置任何过滤器", () => {
6
- it("应该包含所有队列", () => {
5
+ describe("when no filters are set", () => {
6
+ it("should include all queues", () => {
7
7
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("any-queue", [], [])).toBe(true);
8
8
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("test-queue", [], [])).toBe(true);
9
9
  });
10
10
  });
11
- describe("当只设置了 excludeQueues", () => {
11
+ describe("when only excludeQueues is set", () => {
12
12
  const excludeQueues = ["debug-queue", "test-queue"];
13
- it("应该排除在列表中的队列", () => {
13
+ it("should exclude queues in the list", () => {
14
14
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("debug-queue", [], excludeQueues)).toBe(false);
15
15
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("test-queue", [], excludeQueues)).toBe(false);
16
16
  });
17
- it("应该包含不在列表中的队列", () => {
17
+ it("should include queues not in the list", () => {
18
18
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("production-queue", [], excludeQueues)).toBe(true);
19
19
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("email-queue", [], excludeQueues)).toBe(true);
20
20
  });
21
21
  });
22
- describe("当只设置了 includeQueues", () => {
22
+ describe("when only includeQueues is set", () => {
23
23
  const includeQueues = ["email-queue", "notification-queue"];
24
- it("应该包含在列表中的队列", () => {
24
+ it("should include queues in the list", () => {
25
25
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("email-queue", includeQueues, [])).toBe(true);
26
26
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("notification-queue", includeQueues, [])).toBe(true);
27
27
  });
28
- it("应该排除不在列表中的队列", () => {
28
+ it("should exclude queues not in the list", () => {
29
29
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("debug-queue", includeQueues, [])).toBe(false);
30
30
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("other-queue", includeQueues, [])).toBe(false);
31
31
  });
32
32
  });
33
- describe("当同时设置了 includeQueues excludeQueues", () => {
33
+ describe("when both includeQueues and excludeQueues are set", () => {
34
34
  const includeQueues = ["email-queue", "notification-queue", "debug-queue"];
35
35
  const excludeQueues = ["debug-queue"];
36
- it("excludeQueues 应该优先于 includeQueues", () => {
37
- // debug-queue includeQueues 中,但也在 excludeQueues
38
- // 应该被排除
36
+ it("excludeQueues should take priority over includeQueues", () => {
37
+ // debug-queue is in includeQueues but also in excludeQueues
38
+ // it should be excluded
39
39
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("debug-queue", includeQueues, excludeQueues)).toBe(false);
40
40
  });
41
- it("应该包含在 includeQueues 中且不在 excludeQueues 中的队列", () => {
41
+ it("should include queues in includeQueues but not in excludeQueues", () => {
42
42
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("email-queue", includeQueues, excludeQueues)).toBe(true);
43
43
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("notification-queue", includeQueues, excludeQueues)).toBe(true);
44
44
  });
45
- it("应该排除不在 includeQueues 中的队列", () => {
45
+ it("should exclude queues not in includeQueues", () => {
46
46
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("other-queue", includeQueues, excludeQueues)).toBe(false);
47
47
  });
48
48
  });
49
- describe("边界情况", () => {
50
- it("应该处理空字符串队列名", () => {
49
+ describe("edge cases", () => {
50
+ it("should handle empty string queue names", () => {
51
51
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("", [], [])).toBe(true);
52
52
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("", [""], [])).toBe(true);
53
53
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("", [], [""])).toBe(false);
54
54
  });
55
- it("应该区分大小写", () => {
55
+ it("should be case-sensitive", () => {
56
56
  const includeQueues = ["Email-Queue"];
57
57
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("email-queue", includeQueues, [])).toBe(false);
58
58
  expect((0, should_include_queue_util_1.shouldIncludeQueue)("Email-Queue", includeQueues, [])).toBe(true);
@@ -1 +1 @@
1
- {"version":3,"file":"should-include-queue.util.spec.js","sourceRoot":"","sources":["../../src/utils/should-include-queue.util.spec.ts"],"names":[],"mappings":";;AAAA,2EAAiE;AAEjE,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;YAClB,MAAM,CAAC,IAAA,8CAAkB,EAAC,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3D,MAAM,CAAC,IAAA,8CAAkB,EAAC,YAAY,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACnC,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;QAEpD,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE;YACrB,MAAM,CAAC,IAAA,8CAAkB,EAAC,aAAa,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzE,MAAM,CAAC,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CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpD,MAAM,CAAC,IAAA,8CAAkB,EAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;YAClC,MAAM,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC;YACtC,MAAM,CAAC,IAAA,8CAAkB,EAAC,aAAa,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzE,MAAM,CAAC,IAAA,8CAAkB,EAAC,aAAa,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@nest-boot/bullmq-mikro-orm",
3
- "version": "7.0.4",
3
+ "version": "7.1.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/nest-boot/nest-boot.git",
7
+ "directory": "packages/bullmq-mikro-orm"
8
+ },
4
9
  "description": "",
5
- "author": "d4rkcr0w <me@d4rkcr0w.com>",
10
+ "author": {
11
+ "name": "Xudong Huang",
12
+ "email": "me@huangxudong.com",
13
+ "url": "https://www.huangxudong.com/"
14
+ },
6
15
  "homepage": "",
7
16
  "license": "MIT",
8
17
  "main": "dist/index.js",
@@ -15,27 +24,27 @@
15
24
  "templates"
16
25
  ],
17
26
  "devDependencies": {
18
- "@mikro-orm/core": "^6.5.8",
27
+ "@mikro-orm/core": "^6.6.2",
19
28
  "@nestjs/bullmq": "^11.0.4",
20
- "@nestjs/common": "^11.1.9",
21
- "@nestjs/core": "^11.1.9",
22
- "@nestjs/testing": "^11.1.9",
29
+ "@nestjs/common": "^11.1.11",
30
+ "@nestjs/core": "^11.1.11",
31
+ "@nestjs/testing": "^11.1.11",
23
32
  "@types/jest": "^29.5.14",
24
- "@types/node": "^22.18.6",
33
+ "@types/node": "^24.12.4",
25
34
  "bullmq": "^5.61.0",
26
35
  "dotenv": "^17.2.3",
27
- "eslint": "^9.36.0",
36
+ "eslint": "^9.39.3",
28
37
  "jest": "^29.7.0",
29
38
  "reflect-metadata": "^0.2.2",
30
39
  "rxjs": "^7.8.2",
31
40
  "ts-jest": "^29.4.4",
32
41
  "typescript": "^5.9.3",
33
- "@nest-boot/bullmq": "^7.0.2",
34
- "@nest-boot/eslint-config": "^7.0.2",
35
- "@nest-boot/eslint-plugin": "^7.0.3",
36
- "@nest-boot/request-context": "^7.4.2",
37
- "@nest-boot/schedule": "^7.0.2",
38
- "@nest-boot/tsconfig": "^7.0.1"
42
+ "@nest-boot/eslint-plugin": "^7.0.8",
43
+ "@nest-boot/request-context": "^7.5.0",
44
+ "@nest-boot/eslint-config": "^7.1.0",
45
+ "@nest-boot/bullmq": "^7.1.0",
46
+ "@nest-boot/tsconfig": "^7.1.0",
47
+ "@nest-boot/schedule": "^7.1.0"
39
48
  },
40
49
  "peerDependencies": {
41
50
  "@mikro-orm/core": "^6.0.0",
@@ -63,9 +72,10 @@
63
72
  },
64
73
  "scripts": {
65
74
  "build": "tsc -p tsconfig.build.json",
66
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
75
+ "clean": "rm -rf .nx && rm -rf node_modules && rm -rf dist",
67
76
  "dev": "tsc -w -p tsconfig.build.json",
68
- "lint": "eslint \"{src,test}/**/*.ts\" --fix",
77
+ "lint": "eslint \"{src,test}/**/*.ts\"",
78
+ "lint:fix": "eslint \"{src,test}/**/*.ts\" --fix",
69
79
  "test": "jest",
70
80
  "test:cov": "jest --coverage",
71
81
  "test:watch": "jest --watch",