@brilab-mailer/core 0.0.5-5 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import { MailerProvider, MailerMessagesBuilder, type MailerTemplateEngineRender } from '@brilab-mailer/contracts';
1
+ import { MailerProvider, MailerMessagesBuilder, type MailerSendResult, type MailerTemplateEngineRender } from '@brilab-mailer/contracts';
2
2
  import { MailerService } from "./mailer.service.js";
3
3
  type MailerProviderType<MessagePayload> = MailerProvider<any, any, MessagePayload>;
4
4
  export declare class MailerSender<MessagePayload = object, Provider extends MailerProviderType<MessagePayload> = MailerProviderType<MessagePayload>> extends MailerMessagesBuilder {
@@ -8,7 +8,7 @@ export declare class MailerSender<MessagePayload = object, Provider extends Mail
8
8
  constructor(_send: MailerService<Provider>['send'], _render?: MailerTemplateEngineRender | undefined);
9
9
  useTemplate(...params: Parameters<MailerTemplateEngineRender>): MailerSender;
10
10
  addTemplateContext(context?: Record<string, any>): MailerSender;
11
- send(): Promise<void>;
11
+ send(): Promise<MailerSendResult>;
12
12
  }
13
13
  export {};
14
14
  //# sourceMappingURL=mailer-sender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mailer-sender.d.ts","sourceRoot":"","sources":["../../src/lib/mailer-sender.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EACd,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,KAAK,kBAAkB,CAAC,cAAc,IAAI,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAA;AAIlF,qBAAa,YAAY,CACxB,cAAc,GAAG,MAAM,EACvB,QAAQ,SAAS,kBAAkB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC,cAAc,CAAC,CACvF,SAAQ,qBAAqB;IAI7B,OAAO,CAAC,QAAQ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AM,EAAE,GAAG,CAAC,GAAG,YAAY;IAUzD,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAc9C"}
@@ -1,3 +1,11 @@
1
+ import type { MailerModuleOptions } from './types.js';
1
2
  export declare const MAILER_RETRY_ATTEMPTS_DEFAULT = 3;
2
3
  export declare const MAILER_RETRY_BACKOFF_MS_DEFAULT: number[];
4
+ /**
5
+ * Resolves retry options from the values the application passes in, falling
6
+ * back to defaults. The library never reads process env itself — the host app
7
+ * resolves everything (from its own NestJS config) and passes it through
8
+ * `register({ options })` / `registerAsync(useFactory -> { options })`.
9
+ */
10
+ export declare const resolveMailerOptions: (overrides?: Partial<MailerModuleOptions>) => MailerModuleOptions;
3
11
  //# sourceMappingURL=mailer.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mailer.constants.d.ts","sourceRoot":"","sources":["../../src/lib/mailer.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,+BAA+B,UAAoB,CAAC"}
1
+ {"version":3,"file":"mailer.constants.d.ts","sourceRoot":"","sources":["../../src/lib/mailer.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,+BAA+B,UAAsB,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAChC,YAAY,OAAO,CAAC,mBAAmB,CAAC,KACtC,mBAGD,CAAC"}
@@ -1,2 +1,12 @@
1
1
  export const MAILER_RETRY_ATTEMPTS_DEFAULT = 3;
2
2
  export const MAILER_RETRY_BACKOFF_MS_DEFAULT = [500, 1000, 2000];
3
+ /**
4
+ * Resolves retry options from the values the application passes in, falling
5
+ * back to defaults. The library never reads process env itself — the host app
6
+ * resolves everything (from its own NestJS config) and passes it through
7
+ * `register({ options })` / `registerAsync(useFactory -> { options })`.
8
+ */
9
+ export const resolveMailerOptions = (overrides) => ({
10
+ maxAttempts: overrides?.maxAttempts ?? MAILER_RETRY_ATTEMPTS_DEFAULT,
11
+ backoffMs: overrides?.backoffMs ?? MAILER_RETRY_BACKOFF_MS_DEFAULT,
12
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"mailer.module.d.ts","sourceRoot":"","sources":["../../src/lib/mailer.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkB,MAAM,gBAAgB,CAAC;AAmB/D,OAAO,KAAK,EAGX,+BAA+B,EAC/B,0BAA0B,EAC1B,MAAM,YAAY,CAAA;AAEnB,qBAEa,YAAY;IACxB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,aAAa;IAmElE,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,+BAA+B,GAAG,aAAa;CA6E5E"}
1
+ {"version":3,"file":"mailer.module.d.ts","sourceRoot":"","sources":["../../src/lib/mailer.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkB,MAAM,gBAAgB,CAAC;AAa/D,OAAO,KAAK,EAEX,+BAA+B,EAC/B,0BAA0B,EAC1B,MAAM,YAAY,CAAA;AAEnB,qBAEa,YAAY;IACxB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,aAAa;IAqDlE,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,+BAA+B,GAAG,aAAa;CA+D5E"}
@@ -1,10 +1,9 @@
1
1
  var MailerModule_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { Global, Module } from '@nestjs/common';
4
- import { ConfigModule, ConfigService } from '@nestjs/config';
5
- import { MAILER_ASYNC, MAILER_OPTIONS, MAILER_PROVIDER, MAILER_PROVIDER_OPTIONS, MAILER_PROVIDER_NATIVE_CLIENT, MAILER_TEMPLATE_ENGINE, MAILER_TEMPLATE_ENGINE_OPTIONS, MAILER_RETRY_ATTEMPTS, MAILER_RETRY_BACKOFF_MS, } from '@brilab-mailer/contracts';
4
+ import { MAILER_ASYNC, MAILER_OPTIONS, MAILER_PROVIDER, MAILER_PROVIDER_OPTIONS, MAILER_PROVIDER_NATIVE_CLIENT, MAILER_TEMPLATE_ENGINE, MAILER_TEMPLATE_ENGINE_OPTIONS, } from '@brilab-mailer/contracts';
6
5
  import { MailerService } from './mailer.service.js';
7
- import { MAILER_RETRY_ATTEMPTS_DEFAULT, MAILER_RETRY_BACKOFF_MS_DEFAULT } from "./mailer.constants.js";
6
+ import { resolveMailerOptions } from './mailer.constants.js';
8
7
  let MailerModule = MailerModule_1 = class MailerModule {
9
8
  static register(params) {
10
9
  if (!params?.providerClass) {
@@ -13,22 +12,11 @@ let MailerModule = MailerModule_1 = class MailerModule {
13
12
  }
14
13
  return {
15
14
  module: MailerModule_1,
16
- imports: [ConfigModule],
15
+ imports: [],
17
16
  providers: [
18
17
  {
19
18
  provide: MAILER_OPTIONS,
20
- useFactory: (config) => {
21
- const maxAttempts = config.get(MAILER_RETRY_ATTEMPTS) ?? MAILER_RETRY_ATTEMPTS_DEFAULT;
22
- const backoffConfig = config.get(MAILER_RETRY_BACKOFF_MS);
23
- const backoffMs = backoffConfig
24
- ? backoffConfig.split(',').map((v) => Number(v.trim()) || 0)
25
- : MAILER_RETRY_BACKOFF_MS_DEFAULT;
26
- return {
27
- maxAttempts: params.options?.maxAttempts ?? maxAttempts,
28
- backoffMs: (params.options?.backoffMs ?? backoffMs),
29
- };
30
- },
31
- inject: [ConfigService],
19
+ useValue: resolveMailerOptions(params.options),
32
20
  },
33
21
  {
34
22
  provide: MAILER_PROVIDER,
@@ -75,7 +63,7 @@ let MailerModule = MailerModule_1 = class MailerModule {
75
63
  }
76
64
  return {
77
65
  module: MailerModule_1,
78
- imports: [ConfigModule, ...(params.imports || [])],
66
+ imports: [...(params.imports || [])],
79
67
  providers: [
80
68
  {
81
69
  provide: MAILER_ASYNC,
@@ -84,19 +72,8 @@ let MailerModule = MailerModule_1 = class MailerModule {
84
72
  },
85
73
  {
86
74
  provide: MAILER_OPTIONS,
87
- useFactory: async (config, asyncCfg) => {
88
- const maxAttemptsFromConfig = config.get(MAILER_RETRY_ATTEMPTS) ?? MAILER_RETRY_ATTEMPTS_DEFAULT;
89
- const backoffConfig = config.get(MAILER_RETRY_BACKOFF_MS);
90
- const backoffMsFromConfig = backoffConfig
91
- ? backoffConfig.split(',').map((v) => Number(v.trim()) || 0)
92
- : MAILER_RETRY_BACKOFF_MS_DEFAULT;
93
- const overrides = asyncCfg?.options || {};
94
- return {
95
- maxAttempts: overrides.maxAttempts ?? maxAttemptsFromConfig,
96
- backoffMs: (overrides.backoffMs ?? backoffMsFromConfig),
97
- };
98
- },
99
- inject: [ConfigService, MAILER_ASYNC],
75
+ useFactory: (asyncCfg) => resolveMailerOptions(asyncCfg?.options),
76
+ inject: [MAILER_ASYNC],
100
77
  },
101
78
  {
102
79
  provide: MAILER_PROVIDER,
@@ -1,4 +1,4 @@
1
- import { MailerMessagesResolved } from '@brilab-mailer/contracts';
1
+ import { MailerMessagesResolved, MailerSendResult } from '@brilab-mailer/contracts';
2
2
  import type { MailerProvider, MailerNativeClientType, MailerTemplateEngine } from '@brilab-mailer/contracts';
3
3
  import type { MailerModuleOptions } from "./types.js";
4
4
  import { MailerSender } from "./mailer-sender.js";
@@ -10,7 +10,7 @@ export declare class MailerService<Provider extends MailerProvider<any, any, any
10
10
  constructor(options: MailerModuleOptions, provider: Provider, native_client?: MailerNativeClientType<Provider> | undefined, _templater?: MailerTemplateEngine | undefined);
11
11
  get nativeClient(): MailerNativeClientType<Provider>;
12
12
  get templater(): MailerTemplateEngine;
13
- send(resolved: MailerMessagesResolved): Promise<void>;
13
+ send(resolved: MailerMessagesResolved): Promise<MailerSendResult>;
14
14
  sender(): MailerSender<object, Provider>;
15
15
  private withRetry;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mailer.service.d.ts","sourceRoot":"","sources":["../../src/lib/mailer.service.ts"],"names":[],"mappings":"AACA,O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,CAAC;AAElD,qBACa,aAAa,CAAC,QAAQ,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,cAAc;IAGxF,OAAO,CAAC,QAAQ,CAAC,OAAO;IAExB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;IAG/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC;gBARX,OAAO,EAAE,mBAAmB,EAE5B,QAAQ,EAAE,QAAQ,EAGlB,aAAa,CAAC,EAAE,sBAAsB,CAAC,QAAQ,CAAC,YAAA,EAGhD,UAAU,CAAC,EAAE,oBAAoB,YAAA;IAInD,IAAW,YAAY,IAAI,sBAAsB,CAAC,QAAQ,CAAC,CAQ1D;IAED,IAAW,SAAS,IAAI,oBAAoB,CAI3C;IAEY,IAAI,CAAC,QAAQ,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAUvE,MAAM,IAAI,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC;YAOjC,SAAS;CAwBvB"}
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata, __param } from "tslib";
2
2
  import { Inject, Injectable, Optional } from '@nestjs/common';
3
- import { MAILER_OPTIONS, MAILER_PROVIDER, MAILER_PROVIDER_NATIVE_CLIENT, MAILER_TEMPLATE_ENGINE, } from '@brilab-mailer/contracts';
3
+ import { MAILER_OPTIONS, MAILER_PROVIDER, MAILER_PROVIDER_NATIVE_CLIENT, MAILER_TEMPLATE_ENGINE, MailerSendError, } from '@brilab-mailer/contracts';
4
+ import { randomUUID } from 'node:crypto';
4
5
  import { MailerSender } from "./mailer-sender.js";
5
- const SINGLE_SEND = true;
6
6
  let MailerService = class MailerService {
7
7
  options;
8
8
  provider;
@@ -31,34 +31,37 @@ let MailerService = class MailerService {
31
31
  }
32
32
  async send(resolved) {
33
33
  const payload = this.provider.createPayload(resolved);
34
- const run = async () => {
35
- await this.provider.send(payload);
34
+ // One stable key per logical send so the retry loop can't duplicate
35
+ // emails on providers that honor idempotency (e.g. Resend).
36
+ const options = {
37
+ idempotencyKey: resolved.idempotencyKey ?? randomUUID(),
36
38
  };
37
- if (SINGLE_SEND)
38
- return run();
39
- return this.withRetry(run);
39
+ return this.withRetry(() => this.provider.send(payload, options));
40
40
  }
41
41
  sender() {
42
- return new MailerSender(this.send.bind(this), this._templater?.render?.bind(this._templater)
43
- // (...rest) => this.send.call(this, ...rest),
44
- );
42
+ return new MailerSender(this.send.bind(this), this._templater?.render?.bind(this._templater));
45
43
  }
46
44
  async withRetry(fn) {
47
- let attempt = 0;
45
+ const { backoffMs } = this.options;
46
+ const maxAttempts = Math.max(1, this.options.maxAttempts);
48
47
  let lastError;
49
- const { maxAttempts, backoffMs } = this.options;
50
- while (attempt < maxAttempts) {
48
+ for (let attempt = 0; attempt < maxAttempts; attempt++) {
51
49
  try {
52
- await fn();
53
- return;
50
+ return await fn();
54
51
  }
55
52
  catch (err) {
56
53
  lastError = err;
57
- attempt++;
58
- if (attempt >= maxAttempts)
54
+ // Permanent failures (e.g. 4xx validation) are not worth retrying.
55
+ if (err instanceof MailerSendError && !err.retryable)
59
56
  break;
60
- const delay = backoffMs[Math.min(attempt - 1, backoffMs.length - 1)];
61
- await new Promise(res => setTimeout(res, delay));
57
+ const isLast = attempt >= maxAttempts - 1;
58
+ if (isLast)
59
+ break;
60
+ const delay = backoffMs.length
61
+ ? backoffMs[Math.min(attempt, backoffMs.length - 1)]
62
+ : 0;
63
+ if (delay > 0)
64
+ await new Promise((res) => setTimeout(res, delay));
62
65
  }
63
66
  }
64
67
  throw lastError;
package/lib/types.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ModuleMetadata, Type } from "@nestjs/common";
2
2
  import { MailerProvider, type MailerProviderOptionsType, MailerTemplateEngine, MailerTemplateEngineOptionsType } from "@brilab-mailer/contracts";
3
3
  export interface MailerModuleOptions {
4
4
  maxAttempts: number;
5
- backoffMs: [number, number, number];
5
+ backoffMs: number[];
6
6
  }
7
7
  export interface MailerModuleRegisterParams {
8
8
  providerClass: Type<MailerProvider<any, any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EACN,cAAc,EACd,KAAK,yBAAyB,EAAE,oBAAoB,EAAE,+BAA+B,EACrF,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,mBAAmB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,0BAA0B;IAC1C,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9C,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACvC,mBAAmB,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACjD,qBAAqB,CAAC,EAAE,+BAA+B,CAAC;CACxD;AAGD,MAAM,WAAW,8BAA8B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,+BAA+B,CAAC;CACxD;AAED,MAAM,WAAW,+BAAgC,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IACvF,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAEjD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,K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E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brilab-mailer/core",
3
- "version": "0.0.5-5",
3
+ "version": "0.2.0",
4
4
  "author": "Bohdan Radchenko <radchenkobs@gmail.com>",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -24,10 +24,9 @@
24
24
  "directory": "dist"
25
25
  },
26
26
  "peerDependencies": {
27
- "@nestjs/common": "^10.0.0",
28
- "@nestjs/config": "^3.0.0"
27
+ "@nestjs/common": "^10.0.0"
29
28
  },
30
29
  "dependencies": {
31
- "@brilab-mailer/contracts": "^0.0.5-5"
30
+ "@brilab-mailer/contracts": "^0.2.0"
32
31
  }
33
32
  }