@anglefeint/astro-theme 0.1.15 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglefeint/astro-theme",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "Anglefeint core theme package for Astro",
6
6
  "keywords": [
@@ -13,6 +13,9 @@
13
13
  "matrix"
14
14
  ],
15
15
  "license": "MIT",
16
+ "engines": {
17
+ "node": ">=22.12.0"
18
+ },
16
19
  "files": [
17
20
  "src/index.ts",
18
21
  "src/consts.ts",
@@ -43,6 +46,6 @@
43
46
  "./consts": "./src/consts.ts"
44
47
  },
45
48
  "peerDependencies": {
46
- "astro": "^5.0.0"
49
+ "astro": "^5.0.0 || ^6.0.0-beta.0"
47
50
  }
48
51
  }
@@ -1,5 +1,6 @@
1
- import { defineCollection, z } from 'astro:content';
1
+ import { defineCollection } from 'astro:content';
2
2
  import { glob } from 'astro/loaders';
3
+ import { z } from 'astro/zod';
3
4
 
4
5
  const blog = defineCollection({
5
6
  // Load Markdown and MDX files in the `src/content/blog/` directory.
@@ -26,7 +27,7 @@ const blog = defineCollection({
26
27
  author: z.string().optional(),
27
28
  tags: z.array(z.string()).optional(),
28
29
  canonicalTopic: z.string().optional(),
29
- sourceLinks: z.array(z.string().url()).optional(),
30
+ sourceLinks: z.array(z.url()).optional(),
30
31
  }),
31
32
  });
32
33
 
@@ -1,6 +1,6 @@
1
1
  import type { Locale } from './config';
2
2
 
3
- type Messages = {
3
+ export type Messages = {
4
4
  siteTitle: string;
5
5
  siteDescription: string;
6
6
  langLabel: string;
@@ -39,7 +39,7 @@ type Messages = {
39
39
  };
40
40
  };
41
41
 
42
- const MESSAGES: Record<Locale, Messages> = {
42
+ export const DEFAULT_MESSAGES: Record<Locale, Messages> = {
43
43
  en: {
44
44
  siteTitle: 'Angle Feint',
45
45
  siteDescription: 'Cinematic web interfaces and AI-era engineering essays.',
@@ -208,5 +208,5 @@ const MESSAGES: Record<Locale, Messages> = {
208
208
  };
209
209
 
210
210
  export function getMessages(locale: Locale): Messages {
211
- return MESSAGES[locale];
211
+ return DEFAULT_MESSAGES[locale];
212
212
  }