@forklaunch/implementation-worker-kafka 0.5.5 → 0.5.6

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/kafka.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
  )
@@ -635,7 +635,7 @@ var KafkaWorkerOptionsSchema = {
635
635
  peekCount: number
636
636
  };
637
637
 
638
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
638
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
639
639
  var import_v3 = require('zod/v3');
640
640
 
641
641
  // ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
@@ -697,7 +697,7 @@ merge.withOptions = (options, ...objects) => {
697
697
  return result;
698
698
  };
699
699
 
700
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
700
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
701
701
  var import_v32 = require('zod/v3');
702
702
  function extendApi(schema, schemaObject = {}) {
703
703
  const This = schema.constructor;
@@ -1249,7 +1249,7 @@ var ZodSchemaValidator = class {
1249
1249
  email = import_v3.z.string().email().openapi({
1250
1250
  title: 'Email',
1251
1251
  format: 'email',
1252
- 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])+)])`,
1252
+ 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])+)])`,
1253
1253
  example: 'a@b.com'
1254
1254
  });
1255
1255
  uri = import_v3.z.string().url().openapi({
@@ -1371,15 +1371,15 @@ var ZodSchemaValidator = class {
1371
1371
  });
1372
1372
  binary = import_v3.z
1373
1373
  .string()
1374
- .transform((v) => new TextEncoder().encode(v))
1374
+ .transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
1375
1375
  .openapi({
1376
1376
  title: 'Binary',
1377
1377
  type: 'string',
1378
1378
  format: 'binary',
1379
- example: 'a utf-8 encodable string'
1379
+ example: 'a base-64 encodable string'
1380
1380
  });
1381
1381
  file = import_v3.z
1382
- .string()
1382
+ .instanceof(Buffer)
1383
1383
  .transform((val) => {
1384
1384
  return new Blob([val]);
1385
1385
  })
@@ -1387,7 +1387,7 @@ var ZodSchemaValidator = class {
1387
1387
  title: 'File',
1388
1388
  type: 'string',
1389
1389
  format: 'binary',
1390
- example: 'a utf-8 encodable blob or file'
1390
+ example: 'a base-64 encodable blob or file'
1391
1391
  });
1392
1392
  type = () => this.any;
1393
1393
  /**
@@ -25,7 +25,7 @@ var __reExport = (target, mod, secondTarget) => (
25
25
  // domain/schemas/kafka.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
  )
@@ -611,7 +611,7 @@ var KafkaWorkerOptionsSchema = {
611
611
  peekCount: number
612
612
  };
613
613
 
614
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
614
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
615
615
  import { z as z2, ZodType } from 'zod/v3';
616
616
 
617
617
  // ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
@@ -673,7 +673,7 @@ merge.withOptions = (options, ...objects) => {
673
673
  return result;
674
674
  };
675
675
 
676
- // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.3/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
676
+ // ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
677
677
  import { z } from 'zod/v3';
678
678
  function extendApi(schema, schemaObject = {}) {
679
679
  const This = schema.constructor;
@@ -1221,7 +1221,7 @@ var ZodSchemaValidator = class {
1221
1221
  email = z2.string().email().openapi({
1222
1222
  title: 'Email',
1223
1223
  format: 'email',
1224
- 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])+)])`,
1224
+ 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])+)])`,
1225
1225
  example: 'a@b.com'
1226
1226
  });
1227
1227
  uri = z2.string().url().openapi({
@@ -1341,15 +1341,15 @@ var ZodSchemaValidator = class {
1341
1341
  });
1342
1342
  binary = z2
1343
1343
  .string()
1344
- .transform((v) => new TextEncoder().encode(v))
1344
+ .transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
1345
1345
  .openapi({
1346
1346
  title: 'Binary',
1347
1347
  type: 'string',
1348
1348
  format: 'binary',
1349
- example: 'a utf-8 encodable string'
1349
+ example: 'a base-64 encodable string'
1350
1350
  });
1351
1351
  file = z2
1352
- .string()
1352
+ .instanceof(Buffer)
1353
1353
  .transform((val) => {
1354
1354
  return new Blob([val]);
1355
1355
  })
@@ -1357,7 +1357,7 @@ var ZodSchemaValidator = class {
1357
1357
  title: 'File',
1358
1358
  type: 'string',
1359
1359
  format: 'binary',
1360
- example: 'a utf-8 encodable blob or file'
1360
+ example: 'a base-64 encodable blob or file'
1361
1361
  });
1362
1362
  type = () => this.any;
1363
1363
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-worker-kafka",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Kafka 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
  "kafkajs": "^2.2.4",
49
- "zod": "^4.1.0",
50
- "@forklaunch/interfaces-worker": "0.4.4"
49
+ "zod": "^4.1.1",
50
+ "@forklaunch/interfaces-worker": "0.4.5"
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",