payload-plugin-newsletter 0.21.1 → 0.21.2
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 +8 -0
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [0.21.2] - 2025-08-06
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- Fixed webhook endpoint paths to include `/newsletter` prefix for proper API routing
|
|
5
|
+
- Changed `/webhooks/broadcast` to `/newsletter/webhooks/broadcast`
|
|
6
|
+
- Changed `/webhooks/verify` to `/newsletter/webhooks/verify`
|
|
7
|
+
- This ensures webhooks work correctly with Payload's API routing
|
|
8
|
+
|
|
1
9
|
## [0.21.1] - 2025-08-06
|
|
2
10
|
|
|
3
11
|
### Fixed
|
package/dist/server.js
CHANGED
|
@@ -2725,7 +2725,7 @@ async function routeWebhookEvent(event, req, config) {
|
|
|
2725
2725
|
// src/endpoints/webhooks/broadcast.ts
|
|
2726
2726
|
var createBroadcastWebhookEndpoint = (config) => {
|
|
2727
2727
|
return {
|
|
2728
|
-
path: "/webhooks/broadcast",
|
|
2728
|
+
path: "/newsletter/webhooks/broadcast",
|
|
2729
2729
|
method: "post",
|
|
2730
2730
|
handler: async (req) => {
|
|
2731
2731
|
try {
|
|
@@ -2791,7 +2791,7 @@ var createBroadcastWebhookEndpoint = (config) => {
|
|
|
2791
2791
|
// src/endpoints/webhooks/verify.ts
|
|
2792
2792
|
var createWebhookVerifyEndpoint = (config) => {
|
|
2793
2793
|
return {
|
|
2794
|
-
path: "/webhooks/verify",
|
|
2794
|
+
path: "/newsletter/webhooks/verify",
|
|
2795
2795
|
method: "post",
|
|
2796
2796
|
handler: async (req) => {
|
|
2797
2797
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-plugin-newsletter",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
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",
|