@forklaunch/implementation-worker-bullmq 0.5.5 → 0.5.7

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.
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(schemas_exports);
35
35
  // domain/schemas/bullMqWorker.schema.ts
36
36
  var import_internal = require('@forklaunch/internal');
37
37
 
38
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
38
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
39
39
  var typebox_exports = {};
40
40
  __export(typebox_exports, {
41
41
  SchemaValidator: () => SchemaValidator,
@@ -75,15 +75,15 @@ __export(typebox_exports, {
75
75
  });
76
76
  __reExport(typebox_exports, require('@sinclair/typebox'));
77
77
 
78
- // ../../../node_modules/.pnpm/@forklaunch+common@0.5.2/node_modules/@forklaunch/common/lib/index.mjs
78
+ // ../../../node_modules/.pnpm/@forklaunch+common@0.5.3/node_modules/@forklaunch/common/lib/index.mjs
79
79
  var InMemoryBlob = class extends Blob {
80
80
  constructor(content) {
81
- super([Buffer.from(content)]);
81
+ super([content]);
82
82
  this.content = content;
83
83
  }
84
84
  };
85
85
 
86
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
86
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
87
87
  var import_typebox = require('@sinclair/typebox');
88
88
  var import_compiler = require('@sinclair/typebox/compiler');
89
89
  var import_errors = require('@sinclair/typebox/errors');
@@ -121,7 +121,7 @@ var TypeboxSchemaValidator = class {
121
121
  title: 'UUID'
122
122
  });
123
123
  email = import_typebox.Type.String({
124
- pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
124
+ pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
125
125
  errorType: 'email',
126
126
  example: 'a@b.com',
127
127
  title: 'Email'
@@ -289,22 +289,22 @@ var TypeboxSchemaValidator = class {
289
289
  import_typebox.Type.String({
290
290
  errorType: 'binary',
291
291
  format: 'binary',
292
- example: 'a utf-8 encodable string',
292
+ example: 'a base-64 encodable string',
293
293
  title: 'Binary'
294
294
  })
295
295
  )
296
- .Decode((value) => new TextEncoder().encode(value))
296
+ .Decode((value) => new Uint8Array(Buffer.from(value, 'base64')))
297
297
  .Encode((value) => {
298
- if (value instanceof ArrayBuffer) {
298
+ if (value instanceof Buffer) {
299
299
  return String.fromCharCode(...new Uint8Array(value));
300
300
  }
301
301
  return '';
302
302
  });
303
303
  file = import_typebox.Type.Transform(
304
- import_typebox.Type.String({
304
+ import_typebox.Type.Unsafe({
305
305
  errorType: 'binary',
306
306
  format: 'binary',
307
- example: 'a utf-8 encodable blob or file',
307
+ example: 'a raw buffer or file stream',
308
308
  title: 'File'
309
309
  })
310
310
  )
@@ -633,7 +633,7 @@ var BullMqWorkerOptionsSchema = {
633
633
  interval: number
634
634
  };
635
635
 
636
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
636
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
637
637
  var import_v3 = require('zod/v3');
638
638
 
639
639
  // ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
@@ -695,7 +695,7 @@ merge.withOptions = (options, ...objects) => {
695
695
  return result;
696
696
  };
697
697
 
698
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
698
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
699
699
  var import_v32 = require('zod/v3');
700
700
  function extendApi(schema, schemaObject = {}) {
701
701
  const This = schema.constructor;
@@ -1247,7 +1247,7 @@ var ZodSchemaValidator = class {
1247
1247
  email = import_v3.z.string().email().openapi({
1248
1248
  title: 'Email',
1249
1249
  format: 'email',
1250
- pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
1250
+ pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
1251
1251
  example: 'a@b.com'
1252
1252
  });
1253
1253
  uri = import_v3.z.string().url().openapi({
@@ -1369,15 +1369,15 @@ var ZodSchemaValidator = class {
1369
1369
  });
1370
1370
  binary = import_v3.z
1371
1371
  .string()
1372
- .transform((v) => new TextEncoder().encode(v))
1372
+ .transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
1373
1373
  .openapi({
1374
1374
  title: 'Binary',
1375
1375
  type: 'string',
1376
1376
  format: 'binary',
1377
- example: 'a utf-8 encodable string'
1377
+ example: 'a base-64 encodable string'
1378
1378
  });
1379
1379
  file = import_v3.z
1380
- .string()
1380
+ .instanceof(Buffer)
1381
1381
  .transform((val) => {
1382
1382
  return new Blob([val]);
1383
1383
  })
@@ -1385,7 +1385,7 @@ var ZodSchemaValidator = class {
1385
1385
  title: 'File',
1386
1386
  type: 'string',
1387
1387
  format: 'binary',
1388
- example: 'a utf-8 encodable blob or file'
1388
+ example: 'a base-64 encodable blob or file'
1389
1389
  });
1390
1390
  type = () => this.any;
1391
1391
  /**
@@ -25,7 +25,7 @@ var __reExport = (target, mod, secondTarget) => (
25
25
  // domain/schemas/bullMqWorker.schema.ts
26
26
  import { serviceSchemaResolver } from '@forklaunch/internal';
27
27
 
28
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
28
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
29
29
  var typebox_exports = {};
30
30
  __export(typebox_exports, {
31
31
  SchemaValidator: () => SchemaValidator,
@@ -66,15 +66,15 @@ __export(typebox_exports, {
66
66
  __reExport(typebox_exports, typebox_star);
67
67
  import * as typebox_star from '@sinclair/typebox';
68
68
 
69
- // ../../../node_modules/.pnpm/@forklaunch+common@0.5.2/node_modules/@forklaunch/common/lib/index.mjs
69
+ // ../../../node_modules/.pnpm/@forklaunch+common@0.5.3/node_modules/@forklaunch/common/lib/index.mjs
70
70
  var InMemoryBlob = class extends Blob {
71
71
  constructor(content) {
72
- super([Buffer.from(content)]);
72
+ super([content]);
73
73
  this.content = content;
74
74
  }
75
75
  };
76
76
 
77
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
77
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
78
78
  import { FormatRegistry, Kind, KindGuard, Type } from '@sinclair/typebox';
79
79
  import { TypeCheck, TypeCompiler } from '@sinclair/typebox/compiler';
80
80
  import {
@@ -113,7 +113,7 @@ var TypeboxSchemaValidator = class {
113
113
  title: 'UUID'
114
114
  });
115
115
  email = Type.String({
116
- pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
116
+ pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
117
117
  errorType: 'email',
118
118
  example: 'a@b.com',
119
119
  title: 'Email'
@@ -274,22 +274,22 @@ var TypeboxSchemaValidator = class {
274
274
  Type.String({
275
275
  errorType: 'binary',
276
276
  format: 'binary',
277
- example: 'a utf-8 encodable string',
277
+ example: 'a base-64 encodable string',
278
278
  title: 'Binary'
279
279
  })
280
280
  )
281
- .Decode((value) => new TextEncoder().encode(value))
281
+ .Decode((value) => new Uint8Array(Buffer.from(value, 'base64')))
282
282
  .Encode((value) => {
283
- if (value instanceof ArrayBuffer) {
283
+ if (value instanceof Buffer) {
284
284
  return String.fromCharCode(...new Uint8Array(value));
285
285
  }
286
286
  return '';
287
287
  });
288
288
  file = Type.Transform(
289
- Type.String({
289
+ Type.Unsafe({
290
290
  errorType: 'binary',
291
291
  format: 'binary',
292
- example: 'a utf-8 encodable blob or file',
292
+ example: 'a raw buffer or file stream',
293
293
  title: 'File'
294
294
  })
295
295
  )
@@ -609,7 +609,7 @@ var BullMqWorkerOptionsSchema = {
609
609
  interval: number
610
610
  };
611
611
 
612
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
612
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
613
613
  import { z as z2, ZodType } from 'zod/v3';
614
614
 
615
615
  // ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
@@ -671,7 +671,7 @@ merge.withOptions = (options, ...objects) => {
671
671
  return result;
672
672
  };
673
673
 
674
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
674
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
675
675
  import { z } from 'zod/v3';
676
676
  function extendApi(schema, schemaObject = {}) {
677
677
  const This = schema.constructor;
@@ -1219,7 +1219,7 @@ var ZodSchemaValidator = class {
1219
1219
  email = z2.string().email().openapi({
1220
1220
  title: 'Email',
1221
1221
  format: 'email',
1222
- pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
1222
+ pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
1223
1223
  example: 'a@b.com'
1224
1224
  });
1225
1225
  uri = z2.string().url().openapi({
@@ -1339,15 +1339,15 @@ var ZodSchemaValidator = class {
1339
1339
  });
1340
1340
  binary = z2
1341
1341
  .string()
1342
- .transform((v) => new TextEncoder().encode(v))
1342
+ .transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
1343
1343
  .openapi({
1344
1344
  title: 'Binary',
1345
1345
  type: 'string',
1346
1346
  format: 'binary',
1347
- example: 'a utf-8 encodable string'
1347
+ example: 'a base-64 encodable string'
1348
1348
  });
1349
1349
  file = z2
1350
- .string()
1350
+ .instanceof(Buffer)
1351
1351
  .transform((val) => {
1352
1352
  return new Blob([val]);
1353
1353
  })
@@ -1355,7 +1355,7 @@ var ZodSchemaValidator = class {
1355
1355
  title: 'File',
1356
1356
  type: 'string',
1357
1357
  format: 'binary',
1358
- example: 'a utf-8 encodable blob or file'
1358
+ example: 'a base-64 encodable blob or file'
1359
1359
  });
1360
1360
  type = () => this.any;
1361
1361
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-worker-bullmq",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "BullMQ implementation for forklaunch workers",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -42,15 +42,15 @@
42
42
  "lib/**"
43
43
  ],
44
44
  "dependencies": {
45
- "@forklaunch/core": "^0.13.3",
46
- "@forklaunch/internal": "^0.2.3",
45
+ "@forklaunch/core": "^0.13.4",
46
+ "@forklaunch/internal": "^0.2.4",
47
47
  "@sinclair/typebox": "^0.34.40",
48
48
  "bullmq": "^5.58.1",
49
- "zod": "^4.1.0",
50
- "@forklaunch/interfaces-worker": "0.4.4"
49
+ "zod": "^4.1.1",
50
+ "@forklaunch/interfaces-worker": "0.4.6"
51
51
  },
52
52
  "devDependencies": {
53
- "@typescript/native-preview": "7.0.0-dev.20250823.8",
53
+ "@typescript/native-preview": "7.0.0-dev.20250824.1",
54
54
  "depcheck": "^1.4.7",
55
55
  "eslint": "^9.34.0",
56
56
  "prettier": "^3.6.2",