easy-cms 0.6.0 → 0.7.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.
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-DDTXJJBS.js";
4
+ } from "./chunk-ACQWSB2M.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.exitCode = await run(process.argv.slice(2));
@@ -194,7 +194,7 @@ Commands:
194
194
  generate:types Write TypeScript types for your collections and globals
195
195
  create-admin Create an admin user
196
196
  serve Run the CMS as its own server (admin + REST API)
197
- run-scheduled Publish/unpublish documents whose scheduled time has come
197
+ run-scheduled Run due scheduled publishes and webhook retries
198
198
 
199
199
  Options:
200
200
  --config <file> Config file (default: easy-cms.config.ts)
@@ -229,8 +229,8 @@ terminal, or read from EASY_CMS_ADMIN_PASSWORD when there is no terminal.
229
229
  `,
230
230
  "run-scheduled": `Usage: easy-cms run-scheduled [options]
231
231
 
232
- Runs due scheduled publishes and unpublishes once, for a cron job where no server process
233
- keeps running. Servers run them every minute on their own.
232
+ Runs due scheduled publishes and unpublishes, and retries failed webhook deliveries, once:
233
+ for a cron job where no server process keeps running. Servers do this every minute on their own.
234
234
  `,
235
235
  serve: `Usage: easy-cms serve [--port <n>] [--host <host>] [--watch] [--trust-proxy] [options]
236
236
 
@@ -296,8 +296,12 @@ async function run(argv, io = defaultIO) {
296
296
  try {
297
297
  switch (command) {
298
298
  case "run-scheduled": {
299
- const { ran, failed } = await cms.runScheduled();
299
+ const { ran, failed, webhooks } = await cms.runJobs();
300
300
  io.out(`Ran ${ran} scheduled job(s)${failed ? `, ${failed} failed` : ""}.`);
301
+ if (webhooks.sent || webhooks.failed)
302
+ io.out(
303
+ `Retried webhooks: ${webhooks.sent} sent${webhooks.failed ? `, ${webhooks.failed} gave up` : ""}.`
304
+ );
301
305
  return failed ? 1 : 0;
302
306
  }
303
307
  case "migrate": {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createStandaloneHandler,
3
3
  run,
4
4
  startServer
5
- } from "./chunk-DDTXJJBS.js";
5
+ } from "./chunk-ACQWSB2M.js";
6
6
  export {
7
7
  createStandaloneHandler,
8
8
  run,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-cms",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Command line tool for Easy CMS",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,11 +21,11 @@
21
21
  "node": ">=22.12"
22
22
  },
23
23
  "dependencies": {
24
- "@easy-cms/core": "^0.6.0",
25
- "@easy-cms/admin": "^0.6.0"
24
+ "@easy-cms/core": "^0.7.0",
25
+ "@easy-cms/admin": "^0.7.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@easy-cms/db-sqlite": "^0.6.0"
28
+ "@easy-cms/db-sqlite": "^0.7.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"