@bygghammar/cms-platform 0.49.0 → 0.49.1

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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.49.1
4
+
5
+ - `server/http/backup`: the export response streams the archive as an `ArrayBuffer`, keeping the handler typed under `lib.dom` fetch signatures.
6
+
3
7
  ## 0.49.0
4
8
 
5
9
  - Public-site runtime and backend plumbing are package-owned. New `site/routes`: `createSiteRoutes(pages)` derives `resolveRoute`, `pageHeadMeta`, canonical/hreflang assembly and `sitemapIndexEntries`/`sitemapUrls` from a site's page registry, so every site gets identical SEO behaviour.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygghammar/cms-platform",
3
- "version": "0.49.0",
3
+ "version": "0.49.1",
4
4
  "description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -76,7 +76,8 @@ export async function backupExportResponse(
76
76
  const stamp = new Date().toISOString().replace(/[:.]/g, "-").slice(0, 19);
77
77
  const name = `${(body.label ?? "backup").replace(/[^a-z0-9_-]/gi, "")}-${stamp}.zip`;
78
78
 
79
- return new Response(new Uint8Array(zip as ArrayBufferLike), {
79
+ const zipBytes = new Uint8Array(zip as ArrayBufferLike);
80
+ return new Response(zipBytes.buffer as ArrayBuffer, {
80
81
  status: 200,
81
82
  headers: {
82
83
  "content-type": "application/zip",