magic-editor-x 2.5.1 → 2.5.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 +12 -0
- package/dist/server/index.js +5 -2
- package/dist/server/index.mjs +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.5.2](https://github.com/Schero94/Magic-Editor-X/compare/v2.5.1...v2.5.2) (2026-11-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **link-check:** show the next scheduled run on Strapi before 5.61 ([#13](https://github.com/Schero94/Magic-Editor-X/issues/13)) ([2228217](https://github.com/Schero94/Magic-Editor-X/commit/22282172f528840747a6f867546ab6d0c176af64))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Settings > Configuration shows the next run of the scheduled link check on Strapi 5.38 to 5.60 again. Those releases schedule cron jobs with node-schedule, whose next run is a cron-parser date object instead of a `Date`, so `nextRunAt` was always empty there.
|
|
14
|
+
|
|
3
15
|
## [2.5.1](https://github.com/Schero94/Magic-Editor-X/compare/v2.5.0...v2.5.1) (2026-11-17)
|
|
4
16
|
|
|
5
17
|
|
package/dist/server/index.js
CHANGED
|
@@ -22358,7 +22358,9 @@ var require_link_schedule = __commonJS({
|
|
|
22358
22358
|
},
|
|
22359
22359
|
/**
|
|
22360
22360
|
* Next planned run of this process's cron job (from the job handle's
|
|
22361
|
-
* `nextInvocation()`), or null.
|
|
22361
|
+
* `nextInvocation()`), or null. Strapi 5.61+ (croner) returns a Date;
|
|
22362
|
+
* earlier 5.x releases (node-schedule 2) return a cron-parser `CronDate`,
|
|
22363
|
+
* which is converted with its `toDate()`.
|
|
22362
22364
|
* @returns {Date|null} Next fire time.
|
|
22363
22365
|
*/
|
|
22364
22366
|
nextRun() {
|
|
@@ -22366,7 +22368,8 @@ var require_link_schedule = __commonJS({
|
|
|
22366
22368
|
const entry = (strapi.cron && Array.isArray(strapi.cron.jobs) ? strapi.cron.jobs : []).find(
|
|
22367
22369
|
(job) => job && job.name === CRON_NAME
|
|
22368
22370
|
);
|
|
22369
|
-
const
|
|
22371
|
+
const raw = entry && entry.job && entry.job.nextInvocation ? entry.job.nextInvocation() : null;
|
|
22372
|
+
const next = raw && typeof raw.toDate === "function" ? raw.toDate() : raw;
|
|
22370
22373
|
return next instanceof Date && !Number.isNaN(next.getTime()) ? next : null;
|
|
22371
22374
|
} catch {
|
|
22372
22375
|
return null;
|
package/dist/server/index.mjs
CHANGED
|
@@ -22354,7 +22354,9 @@ var require_link_schedule = __commonJS({
|
|
|
22354
22354
|
},
|
|
22355
22355
|
/**
|
|
22356
22356
|
* Next planned run of this process's cron job (from the job handle's
|
|
22357
|
-
* `nextInvocation()`), or null.
|
|
22357
|
+
* `nextInvocation()`), or null. Strapi 5.61+ (croner) returns a Date;
|
|
22358
|
+
* earlier 5.x releases (node-schedule 2) return a cron-parser `CronDate`,
|
|
22359
|
+
* which is converted with its `toDate()`.
|
|
22358
22360
|
* @returns {Date|null} Next fire time.
|
|
22359
22361
|
*/
|
|
22360
22362
|
nextRun() {
|
|
@@ -22362,7 +22364,8 @@ var require_link_schedule = __commonJS({
|
|
|
22362
22364
|
const entry = (strapi.cron && Array.isArray(strapi.cron.jobs) ? strapi.cron.jobs : []).find(
|
|
22363
22365
|
(job) => job && job.name === CRON_NAME
|
|
22364
22366
|
);
|
|
22365
|
-
const
|
|
22367
|
+
const raw = entry && entry.job && entry.job.nextInvocation ? entry.job.nextInvocation() : null;
|
|
22368
|
+
const next = raw && typeof raw.toDate === "function" ? raw.toDate() : raw;
|
|
22366
22369
|
return next instanceof Date && !Number.isNaN(next.getTime()) ? next : null;
|
|
22367
22370
|
} catch {
|
|
22368
22371
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-editor-x",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Free, open-source block editor for Strapi 5: Editor.js custom field with Media Library uploads, custom blocks, version history, live collaboration across several servers and an optional AI assistant with your own provider.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|