@develit-services/notification 0.0.30 → 0.0.32

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.
@@ -3,6 +3,7 @@
3
3
  function defineNotificationServiceWrangler(config) {
4
4
  const { project, name, envs } = config;
5
5
  const base = {
6
+ $schema: "../../node_modules/wrangler/config-schema.json",
6
7
  name: `${project}-${name}`,
7
8
  main: "./src/index.ts",
8
9
  compatibility_date: "2025-06-04",
@@ -11,6 +12,7 @@ function defineNotificationServiceWrangler(config) {
11
12
  enabled: true,
12
13
  head_sampling_rate: 1,
13
14
  logs: {
15
+ enabled: true,
14
16
  invocation_logs: false
15
17
  }
16
18
  },
@@ -65,23 +67,7 @@ function defineNotificationServiceWrangler(config) {
65
67
  database_id: envCfg.d1.id,
66
68
  migrations_dir: "./src/database/migrations"
67
69
  }
68
- ],
69
- queues: {
70
- producers: [
71
- {
72
- binding: "NOTIFICATIONS_QUEUE",
73
- queue: `${project}-notifications-${envName}`
74
- }
75
- ],
76
- consumers: [
77
- {
78
- queue: `${project}-notifications-${envName}`,
79
- max_batch_size: envCfg.queue?.max_batch_size ?? 1,
80
- max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
81
- dead_letter_queue: `${project}-notifications-dlq-${envName}`
82
- }
83
- ]
84
- }
70
+ ]
85
71
  };
86
72
  }
87
73
  return base;
@@ -1,8 +1,7 @@
1
1
  import { N as NotificationServiceWranglerConfig } from '../shared/notification.jEQePmaL.cjs';
2
2
 
3
- /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
-
5
3
  declare function defineNotificationServiceWrangler(config: NotificationServiceWranglerConfig): {
4
+ $schema: string;
6
5
  name: string;
7
6
  main: string;
8
7
  compatibility_date: string;
@@ -11,6 +10,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
11
10
  enabled: boolean;
12
11
  head_sampling_rate: number;
13
12
  logs: {
13
+ enabled: boolean;
14
14
  invocation_logs: boolean;
15
15
  };
16
16
  };
@@ -47,7 +47,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
47
47
  dead_letter_queue: string;
48
48
  }[];
49
49
  };
50
- env: Record<string, any>;
50
+ env: Record<string, unknown>;
51
51
  };
52
52
 
53
53
  export { defineNotificationServiceWrangler };
@@ -1,8 +1,7 @@
1
1
  import { N as NotificationServiceWranglerConfig } from '../shared/notification.jEQePmaL.mjs';
2
2
 
3
- /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
-
5
3
  declare function defineNotificationServiceWrangler(config: NotificationServiceWranglerConfig): {
4
+ $schema: string;
6
5
  name: string;
7
6
  main: string;
8
7
  compatibility_date: string;
@@ -11,6 +10,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
11
10
  enabled: boolean;
12
11
  head_sampling_rate: number;
13
12
  logs: {
13
+ enabled: boolean;
14
14
  invocation_logs: boolean;
15
15
  };
16
16
  };
@@ -47,7 +47,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
47
47
  dead_letter_queue: string;
48
48
  }[];
49
49
  };
50
- env: Record<string, any>;
50
+ env: Record<string, unknown>;
51
51
  };
52
52
 
53
53
  export { defineNotificationServiceWrangler };
@@ -1,8 +1,7 @@
1
1
  import { N as NotificationServiceWranglerConfig } from '../shared/notification.jEQePmaL.js';
2
2
 
3
- /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
-
5
3
  declare function defineNotificationServiceWrangler(config: NotificationServiceWranglerConfig): {
4
+ $schema: string;
6
5
  name: string;
7
6
  main: string;
8
7
  compatibility_date: string;
@@ -11,6 +10,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
11
10
  enabled: boolean;
12
11
  head_sampling_rate: number;
13
12
  logs: {
13
+ enabled: boolean;
14
14
  invocation_logs: boolean;
15
15
  };
16
16
  };
@@ -47,7 +47,7 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
47
47
  dead_letter_queue: string;
48
48
  }[];
49
49
  };
50
- env: Record<string, any>;
50
+ env: Record<string, unknown>;
51
51
  };
52
52
 
53
53
  export { defineNotificationServiceWrangler };
@@ -1,6 +1,7 @@
1
1
  function defineNotificationServiceWrangler(config) {
2
2
  const { project, name, envs } = config;
3
3
  const base = {
4
+ $schema: "../../node_modules/wrangler/config-schema.json",
4
5
  name: `${project}-${name}`,
5
6
  main: "./src/index.ts",
6
7
  compatibility_date: "2025-06-04",
@@ -9,6 +10,7 @@ function defineNotificationServiceWrangler(config) {
9
10
  enabled: true,
10
11
  head_sampling_rate: 1,
11
12
  logs: {
13
+ enabled: true,
12
14
  invocation_logs: false
13
15
  }
14
16
  },
@@ -63,23 +65,7 @@ function defineNotificationServiceWrangler(config) {
63
65
  database_id: envCfg.d1.id,
64
66
  migrations_dir: "./src/database/migrations"
65
67
  }
66
- ],
67
- queues: {
68
- producers: [
69
- {
70
- binding: "NOTIFICATIONS_QUEUE",
71
- queue: `${project}-notifications-${envName}`
72
- }
73
- ],
74
- consumers: [
75
- {
76
- queue: `${project}-notifications-${envName}`,
77
- max_batch_size: envCfg.queue?.max_batch_size ?? 1,
78
- max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
79
- dead_letter_queue: `${project}-notifications-dlq-${envName}`
80
- }
81
- ]
82
- }
68
+ ]
83
69
  };
84
70
  }
85
71
  return base;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/notification",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -53,7 +53,7 @@
53
53
  "drizzle-kit": "^0.31.5",
54
54
  "drizzle-orm": "^0.44.6",
55
55
  "drizzle-seed": "^0.3.1",
56
- "wrangler": "^4.42.2",
56
+ "wrangler": "^4.43.0",
57
57
  "zod": "^4.1.12"
58
58
  },
59
59
  "dependencies": {