github emdash-cms/emdash emdash@0.24.0

latest releases: emdash@0.24.1, @emdash-cms/plugin-embeds@0.1.29, @emdash-cms/auth@0.24.1...
7 hours ago

Minor Changes

  • #1577 79fc8b5 Thanks @marcusbellamyshaw-cell! - Adds offset pagination to getEmDashCollection for numbered archive routes

    getEmDashCollection now accepts an offset option alongside limit, so you can render numbered archive URLs like /page/2 or /tag/security/page/3 without walking cursors or over-fetching from the start:

    const perPage = 20;
    const { entries, hasMore } = await getEmDashCollection("posts", {
    	limit: perPage,
    	offset: (page - 1) * perPage,
    	orderBy: { published_at: "desc" },
    });

    Results now include a hasMore boolean whenever limit is set, so you can show a "next page" link without an extra count query. offset is ignored when a cursor is supplied — cursor (keyset) pagination still wins.

Patch Changes

  • #1558 e659a5c Thanks @marcusbellamyshaw-cell! - Fixes EmDash overriding security headers set by the host site (#1393). The baseline X-Content-Type-Options, Referrer-Policy, and Permissions-Policy headers were applied unconditionally, overwriting stricter values a host had already set on its own routes. These headers are now applied only when the host hasn't set them — matching the existing Content-Security-Policy behavior — so a host's own values win while EmDash still provides defaults when none are set.

  • #1636 d8487f9 Thanks @MA2153! - Fixes ctx.cron being undefined during astro dev under the @astrojs/cloudflare adapter, which silently prevented plugins from scheduling cron tasks and stopped the cron hook from ever firing in local dev. The in-process scheduler now keys off Astro's command rather than Vite's, so plugin cron, scheduled publishing, and cleanup run again.

  • Updated dependencies [f5566e8, d063b51, 43a70d4]:

    • @emdash-cms/admin@0.24.0
    • @emdash-cms/auth@0.24.0
    • @emdash-cms/gutenberg-to-portable-text@0.24.0

Don't miss a new emdash release

NewReleases is sending notifications on new releases.