Minor Changes
-
#1577
79fc8b5Thanks @marcusbellamyshaw-cell! - Adds offset pagination togetEmDashCollectionfor numbered archive routesgetEmDashCollectionnow accepts anoffsetoption alongsidelimit, so you can render numbered archive URLs like/page/2or/tag/security/page/3without 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
hasMoreboolean wheneverlimitis set, so you can show a "next page" link without an extra count query.offsetis ignored when acursoris supplied — cursor (keyset) pagination still wins.
Patch Changes
-
#1558
e659a5cThanks @marcusbellamyshaw-cell! - Fixes EmDash overriding security headers set by the host site (#1393). The baselineX-Content-Type-Options,Referrer-Policy, andPermissions-Policyheaders 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 existingContent-Security-Policybehavior — so a host's own values win while EmDash still provides defaults when none are set. -
#1636
d8487f9Thanks @MA2153! - Fixesctx.cronbeing undefined duringastro devunder the@astrojs/cloudflareadapter, which silently prevented plugins from scheduling cron tasks and stopped thecronhook 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