@sprintup-cms/sdk 1.4.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to `@sprintup-cms/sdk` will be documented here.
4
4
 
5
+ ## [1.5.0] — 2026-03-07
6
+
7
+ ### Fixed
8
+ - `next/index.ts` now exports both `GET` and `previewExitGET` from the barrel so both
9
+ `export { GET } from '@sprintup-cms/sdk/next'` and
10
+ `export { previewExitGET as GET } from '@sprintup-cms/sdk/next'` work in
11
+ `app/api/cms-preview/exit/route.ts`. Previously only `previewExitGET` was exported,
12
+ causing the exit route to silently fail with a missing-export error.
13
+ - `forge-school-starter` dependencies updated: `@sprintup-cms/sdk@^1.5.0`,
14
+ `next@^16.0.0`, `react/react-dom@^19.0.0`, `tailwindcss@^4.0.0`.
15
+ - `forge-school-starter` now includes `app/page.tsx` (home page at `/`) which was
16
+ previously missing, causing the root route to 404.
17
+ - `lib/cms-preview-route.ts` template no longer maps slug `home` → `/`. It always
18
+ redirects to `/{slug}` so the catch-all `[...slug]` handles it consistently.
19
+ - `lib/external-app/pages-catch-all.tsx` template no longer renders hardcoded
20
+ `<h1>{page.title}</h1>` above blocks (aligned with the `CMSCatchAllPage` fix from v1.4.0).
21
+
5
22
  ## [1.4.0] — 2026-03-07
6
23
 
7
24
  ### Fixed
@@ -613,6 +613,7 @@ async function CMSCatchAllPage({ params }) {
613
613
  }
614
614
 
615
615
  exports.CMSCatchAllPage = CMSCatchAllPage;
616
+ exports.GET = GET;
616
617
  exports.POST = POST;
617
618
  exports.createPreviewExitHandler = createPreviewExitHandler;
618
619
  exports.createRevalidateHandler = createRevalidateHandler;
@@ -91,4 +91,4 @@ declare function CMSCatchAllPage({ params }: {
91
91
  params: Promise<CMSCatchAllParams>;
92
92
  }): Promise<react_jsx_runtime.JSX.Element>;
93
93
 
94
- export { CMSCatchAllPage, type CMSCatchAllParams, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
94
+ export { CMSCatchAllPage, type CMSCatchAllParams, GET, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
@@ -91,4 +91,4 @@ declare function CMSCatchAllPage({ params }: {
91
91
  params: Promise<CMSCatchAllParams>;
92
92
  }): Promise<react_jsx_runtime.JSX.Element>;
93
93
 
94
- export { CMSCatchAllPage, type CMSCatchAllParams, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
94
+ export { CMSCatchAllPage, type CMSCatchAllParams, GET, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
@@ -606,6 +606,6 @@ async function CMSCatchAllPage({ params }) {
606
606
  ] });
607
607
  }
608
608
 
609
- export { CMSCatchAllPage, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
609
+ export { CMSCatchAllPage, GET, POST, createPreviewExitHandler, createRevalidateHandler, generateMetadata, previewEntryGET, GET as previewExitGET };
610
610
  //# sourceMappingURL=index.js.map
611
611
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprintup-cms/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Official SDK for SprintUp Forge CMS — typed API client, Next.js helpers, and React block renderer",
5
5
  "author": "SprintUp <hello@sprintup.io>",
6
6
  "license": "MIT",