strapi-plugin-magic-mail 2.10.11 → 3.0.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +21 -10
  3. package/dist/{_chunks/App-CInlcJMb.js → admin/App-BhDvUsMa.js} +97 -789
  4. package/dist/{_chunks/App-D4bFKNcg.mjs → admin/App-CjlxXCZb.mjs} +109 -801
  5. package/dist/{_chunks/PluginSettings-cZXE_vy8.js → admin/PluginSettings-Css2nHrB.js} +10 -4
  6. package/dist/{_chunks/PluginSettings-XwyzH95_.mjs → admin/PluginSettings-Duc_Y571.mjs} +10 -4
  7. package/dist/{_chunks/StyledButtons-CdOf4Sps.mjs → admin/StyledButtons-aq1EWrQ-.mjs} +1 -2
  8. package/dist/{_chunks/StyledButtons-DVGuFoqy.js → admin/StyledButtons-jHF7TXal.js} +1 -2
  9. package/dist/{_chunks/de-CF2ItE3Z.js → admin/de-DKEFnBGC.js} +0 -21
  10. package/dist/{_chunks/de-CwbYw2jT.mjs → admin/de-SKsLY2de.mjs} +0 -21
  11. package/dist/{_chunks/en-CK6UpShS.js → admin/en-CvtZE1HH.js} +0 -21
  12. package/dist/{_chunks/en-ZRmfU4qX.mjs → admin/en-Ds2Q7fue.mjs} +0 -21
  13. package/dist/{_chunks/es-DQHwzPpP.mjs → admin/es-BEvzLtTg.mjs} +20 -21
  14. package/dist/{_chunks/es-BpV1MIdm.js → admin/es-BbLLes3D.js} +20 -21
  15. package/dist/{_chunks/fr-BG1WfEVm.mjs → admin/fr-CRpwImX6.mjs} +20 -21
  16. package/dist/{_chunks/fr-vpziIpRp.js → admin/fr-nH9uN6s9.js} +20 -21
  17. package/dist/admin/index.js +6 -44
  18. package/dist/admin/index.mjs +4 -43
  19. package/dist/{_chunks/pt-CMoGrOib.mjs → admin/pt-CjOe2N_n.mjs} +20 -21
  20. package/dist/{_chunks/pt-ODpAhDNa.js → admin/pt-qt_48NxL.js} +20 -21
  21. package/dist/server/index.js +8052 -17573
  22. package/dist/server/index.mjs +8079 -17578
  23. package/package.json +40 -27
  24. package/dist/_chunks/LicensePage-B61HnhyD.mjs +0 -352
  25. package/dist/_chunks/LicensePage-sB-xDRL9.js +0 -354
  26. package/dist/_chunks/Settings-BRFoD1yZ.js +0 -354
  27. package/dist/_chunks/Settings-DoSrZKfp.mjs +0 -352
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ # [3.0.0](https://github.com/Schero94/Magic-Mail/compare/v2.10.11...v3.0.0) (2026-07-11)
2
+
3
+
4
+ * feat(free)!: make MagicMail fully free and remove all licensing and telemetry ([d713246](https://github.com/Schero94/Magic-Mail/commit/d71324630bd9fb00d838dbbc25581f73e815bb5c))
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **admin:** repair broken admin contracts and toggle accessibility ([e436849](https://github.com/Schero94/Magic-Mail/commit/e436849d404bf66a7093f7b5980f2f7b45bfc26f))
10
+ * **delivery:** correct provider adapters, failover accounting and quota atomicity ([755ccfe](https://github.com/Schero94/Magic-Mail/commit/755ccfea866c16cd54dbe7cfcd203421362aa241))
11
+ * **domain:** correct account, settings, template, routing and lifecycle contracts ([e81bea9](https://github.com/Schero94/Magic-Mail/commit/e81bea99a942e776265673b813e63772715062d8))
12
+ * **security:** close OAuth XSS, duplicate delivery, tracking and sanitization gaps ([e7a1bc9](https://github.com/Schero94/Magic-Mail/commit/e7a1bc9c9514fcb3405ca6155d6b90b970b0a56b))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * The license system is removed. The admin /license/* endpoints,
18
+ the license-guard service, the paid-tier feature gates, the license admin pages,
19
+ and all device/telemetry pings to the former license server no longer exist.
20
+ Every feature (all providers, unlimited accounts, routing rules, templates, and
21
+ version history) is available to everyone with no license key or activation.
22
+ Existing installations keep working; any stored license key is ignored.
23
+
24
+ - Server: delete license-guard service, license controller, /license/* routes,
25
+ config/features.js, and every license call site (email-router, accounts,
26
+ oauth, routing-rules, email-designer).
27
+ - Admin: delete LicensePage, license Settings page, useLicense hook and
28
+ LicenseGuard; drop the Upgrade/License settings links and the license
29
+ heartbeat; render every tab/feature and template versioning unconditionally;
30
+ remove paywalls and upgrade CTAs; drop license/tier translation keys.
31
+ - README: remove the license-validation "additional condition" and tier limits.
32
+
1
33
  ## [2.10.11](https://github.com/Schero94/Magic-Mail/compare/v2.10.10...v2.10.11) (2026-04-21)
2
34
 
3
35
 
package/README.md CHANGED
@@ -138,7 +138,10 @@ await strapi.plugin('magic-mail').service('email-router').sendMessage({
138
138
  // POST /api/magic-mail/send-whatsapp
139
139
  await fetch('/api/magic-mail/send-whatsapp', {
140
140
  method: 'POST',
141
- headers: { 'Content-Type': 'application/json' },
141
+ headers: {
142
+ 'Content-Type': 'application/json',
143
+ 'Authorization': 'Bearer YOUR_STRAPI_API_TOKEN'
144
+ },
142
145
  body: JSON.stringify({
143
146
  phoneNumber: '+491234567890',
144
147
  message: 'Hello from MagicMail!'
@@ -148,7 +151,10 @@ await fetch('/api/magic-mail/send-whatsapp', {
148
151
  // POST /api/magic-mail/send-message (unified)
149
152
  await fetch('/api/magic-mail/send-message', {
150
153
  method: 'POST',
151
- headers: { 'Content-Type': 'application/json' },
154
+ headers: {
155
+ 'Content-Type': 'application/json',
156
+ 'Authorization': 'Bearer YOUR_STRAPI_API_TOKEN'
157
+ },
152
158
  body: JSON.stringify({
153
159
  channel: 'whatsapp',
154
160
  phoneNumber: '+491234567890',
@@ -234,6 +240,8 @@ When both **MagicMail** and **Magic-Link** are installed:
234
240
 
235
241
  ### Installation
236
242
 
243
+ Requires Node.js 20.19 or newer and Strapi 5.50 or newer.
244
+
237
245
  ```bash
238
246
  npm install strapi-plugin-magic-mail
239
247
  # or
@@ -563,8 +571,8 @@ console.log(stats);
563
571
  // { category: 'marketing', count: 4 },
564
572
  // { category: 'notification', count: 3 }
565
573
  // ],
566
- // maxTemplates: 3, // FREE tier limit
567
- // remaining: 0 // Upgrade needed!
574
+ // maxTemplates: -1, // unlimited (all features are free)
575
+ // remaining: -1 // unlimited
568
576
  // }
569
577
  ```
570
578
 
@@ -589,8 +597,7 @@ console.log(rendered.html); // Preview HTML
589
597
 
590
598
  **3. Version Control**
591
599
  ```javascript
592
- // ADVANCED+: Keep version history
593
- // Automatically enabled for ADVANCED and ENTERPRISE licenses
600
+ // Template version history is always enabled (free for everyone).
594
601
  ```
595
602
 
596
603
  **4. Organize with Tags**
@@ -1386,8 +1393,12 @@ DATABASE_NAME=strapi
1386
1393
  DATABASE_USERNAME=strapi
1387
1394
  DATABASE_PASSWORD=password
1388
1395
 
1389
- # Optional - Custom encryption key
1390
- ENCRYPTION_KEY=your-32-byte-secret-key-here
1396
+ # Required in production. Keep this stable across deploys and backups.
1397
+ # Generate: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
1398
+ MAGIC_MAIL_ENCRYPTION_KEY=your-generated-secret-with-at-least-32-bytes
1399
+
1400
+ # Optional dedicated OAuth-state signing secret. APP_KEYS is used otherwise.
1401
+ MAGIC_MAIL_OAUTH_STATE_SECRET=your-generated-secret-with-at-least-32-bytes
1391
1402
  ```
1392
1403
 
1393
1404
  ### OAuth Callback URLs
@@ -1539,8 +1550,8 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
1539
1550
 
1540
1551
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1541
1552
 
1542
- **ADDITIONAL CONDITION:**
1543
- The license validation system (including but not limited to license-guard.js, license controller, and related API endpoints) must remain intact and functional. Removing, bypassing, or disabling the license validation system is strictly prohibited.
1553
+ MagicMail is fully free and open source. Every feature is available to everyone
1554
+ with no license key, tier, activation, or usage limit.
1544
1555
 
1545
1556
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1546
1557