payload-plugin-newsletter 0.8.6 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ## [0.8.6] - 2025-07-02
1
+ ## [0.8.7] - 2025-07-01
2
+
3
+ ### Fixed
4
+ - Fixed TypeScript errors with ExtendedPayloadRequest interface
5
+ - Added TypeScript checking to CI/CD pipeline to prevent publishing with type errors
6
+
7
+ ## [0.8.6] - 2025-07-01
2
8
 
3
9
  ### Fixed
4
10
  - **Critical**: Fixed all endpoint handlers for Payload v3 compatibility
package/CLAUDE.md CHANGED
@@ -144,6 +144,11 @@ This project uses **Bun** as the preferred package manager and runtime.
144
144
  4. Update documentation
145
145
  5. Make progressive commits
146
146
 
147
+ ### When Updating CHANGELOG.md
148
+ 1. First check the current date with: `date +"%Y-%m-%d"`
149
+ 2. Use the actual current date in changelog entries
150
+ 3. Follow semantic versioning principles
151
+
147
152
  ### When Reviewing Reference Code
148
153
  - Extract patterns, not implementations
149
154
  - Generalize any specific logic
package/dist/types.d.cts CHANGED
@@ -415,15 +415,9 @@ interface UpdatePreferencesRequestData {
415
415
  [key: string]: boolean;
416
416
  };
417
417
  }
418
- interface ExtendedPayloadRequest {
418
+ interface ExtendedPayloadRequest extends Request {
419
419
  payload: any;
420
- headers: Headers & {
421
- authorization?: string;
422
- referer?: string;
423
- referrer?: string;
424
- 'user-agent'?: string;
425
- };
426
- data: unknown;
420
+ data?: unknown;
427
421
  ip?: string;
428
422
  connection?: {
429
423
  remoteAddress?: string;
package/dist/types.d.ts CHANGED
@@ -415,15 +415,9 @@ interface UpdatePreferencesRequestData {
415
415
  [key: string]: boolean;
416
416
  };
417
417
  }
418
- interface ExtendedPayloadRequest {
418
+ interface ExtendedPayloadRequest extends Request {
419
419
  payload: any;
420
- headers: Headers & {
421
- authorization?: string;
422
- referer?: string;
423
- referrer?: string;
424
- 'user-agent'?: string;
425
- };
426
- data: unknown;
420
+ data?: unknown;
427
421
  ip?: string;
428
422
  connection?: {
429
423
  remoteAddress?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-plugin-newsletter",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Complete newsletter management plugin for Payload CMS with subscriber management, magic link authentication, and email service integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",