@luhtech/site-template 0.14.1 → 0.14.3

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": "@luhtech/site-template",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "Shared Astro component library + content-instance contract for LuhTech venture marketing sites -- one template renders every site from content/page.schema.json + content/site.schema.json instances.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "luhtech": {
50
50
  "schemaPins": {
51
- "content/page.schema.json": "1.3.0",
51
+ "content/page.schema.json": "2.1.0",
52
52
  "content/site.schema.json": "1.1.0",
53
53
  "content/capability-claim.schema.json": "0.2.0",
54
54
  "content/tool.schema.json": "1.1.0",
@@ -3,7 +3,7 @@ import Ajv from 'ajv';
3
3
  import addFormats from 'ajv-formats';
4
4
  import { fetchSchema, fetchSupportSchema } from './schemaFetch.js';
5
5
 
6
- const PAGE_PIN = '1.4.0';
6
+ const PAGE_PIN = '2.1.0';
7
7
  const CAPABILITY_CLAIM_PIN = '0.2.0';
8
8
 
9
9
  let validatorPromise: ReturnType<typeof buildValidator> | null = null;
@@ -12,7 +12,7 @@ async function buildValidator() {
12
12
  const ajv = new Ajv({ strict: false, allErrors: true });
13
13
  addFormats(ajv);
14
14
 
15
- const [pageSchema, capabilityClaimSchema, cellSchema, definitionsSchema, graphSchema, ventureEnum] =
15
+ const [pageSchema, capabilityClaimSchema, cellSchema, definitionsSchema, graphSchema, ventureEnum, contentSpineSchema] =
16
16
  await Promise.all([
17
17
  fetchSchema('content/page.schema.json', PAGE_PIN),
18
18
  fetchSchema('content/capability-claim.schema.json', CAPABILITY_CLAIM_PIN),
@@ -20,6 +20,11 @@ async function buildValidator() {
20
20
  fetchSupportSchema('_definitions/definitions.schema.json'),
21
21
  fetchSupportSchema('_definitions/graph.schema.json'),
22
22
  fetchSupportSchema('_enums/venture.enum.json'),
23
+ // page.schema.json v2.0.0 (content-spine adoption) $refs this for
24
+ // publishRecordRefs/themeRefs/strategyRef/producedBy -- missing here
25
+ // until now because PAGE_PIN itself couldn't move past v1.4.0 (see
26
+ // this same PR's own PAGE_PIN fix) to ever need it.
27
+ fetchSupportSchema('_definitions/content-spine.schema.json'),
23
28
  ]);
24
29
 
25
30
  ajv.addSchema(capabilityClaimSchema as object);
@@ -27,6 +32,7 @@ async function buildValidator() {
27
32
  ajv.addSchema(definitionsSchema as object);
28
33
  ajv.addSchema(graphSchema as object);
29
34
  ajv.addSchema(ventureEnum as object);
35
+ ajv.addSchema(contentSpineSchema as object);
30
36
 
31
37
  return ajv.compile(pageSchema as object);
32
38
  }