@sarimarcus/content-sites-core 0.7.0-rc.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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.7.0 (2026-09-30)
6
+
7
+ - Stable release of 0.7.0-rc.1, unchanged: adopted on all three sites with every page identical (Córdoba's 8 walk pages differ only by a stylesheet reorder, screenshots unchanged); astro check 0 errors (SLA-2747).
8
+
9
+ ## 0.7.0-rc.1 (2026-09-30)
10
+
11
+ - `buildImageMap` / `keyBySlug` are typed with Astro's `ImageMetadata` again, as the site copies were; the generic form typed an untyped `import.meta.glob` result as `unknown` (SLA-2747).
12
+
5
13
  ## 0.7.0-rc.0 (2026-09-30)
6
14
 
7
15
  - Ships compiled `dist/` (ESM + declarations) for every subpath, so code Node loads directly (factory tests, `astro.config.mjs`) can import core.
@@ -1,8 +1,9 @@
1
+ import type { ImageMetadata } from 'astro';
1
2
  /**
2
3
  * Key an eager `import.meta.glob` result by file basename: `/src/assets/x/<slug>.webp` → `<slug>`.
3
4
  * The glob itself must stay a literal at the call site (Vite requires it).
4
5
  */
5
- export declare function buildImageMap<T>(mods: Record<string, {
6
- default: T;
7
- }>): Record<string, T>;
6
+ export declare function buildImageMap(mods: Record<string, {
7
+ default: ImageMetadata;
8
+ }>): Record<string, ImageMetadata>;
8
9
  export declare const keyBySlug: typeof buildImageMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-core",
3
- "version": "0.7.0-rc.0",
3
+ "version": "0.7.0",
4
4
  "description": "Non-visual utilities, Astro config builders and SEO schema assembly shared by the content sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,8 +1,10 @@
1
+ import type { ImageMetadata } from 'astro';
2
+
1
3
  /**
2
4
  * Key an eager `import.meta.glob` result by file basename: `/src/assets/x/<slug>.webp` → `<slug>`.
3
5
  * The glob itself must stay a literal at the call site (Vite requires it).
4
6
  */
5
- export function buildImageMap<T>(mods: Record<string, { default: T }>): Record<string, T> {
7
+ export function buildImageMap(mods: Record<string, { default: ImageMetadata }>): Record<string, ImageMetadata> {
6
8
  return Object.fromEntries(
7
9
  Object.entries(mods).map(([path, mod]) => {
8
10
  const slug = path.split('/').pop()!.replace('.webp', '');