@sarimarcus/content-sites-core 0.62.0 → 0.63.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
@@ -2,6 +2,16 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.63.1 (2026-11-09)
6
+
7
+ Fix (SLA-3903); a page that passes a relative url renders exactly as before.
8
+
9
+ - `collectionPageBuilder` and `eventItemListBuilder` (JSON-LD): an absolute `url` is left alone instead of being prefixed with the origin and base path (`absOrHttp`).
10
+
11
+ ## 0.63.0 (2026-11-09)
12
+
13
+ - No changes (lockstep release).
14
+
5
15
  ## 0.62.0 (2026-11-08)
6
16
 
7
17
  Additive (SLA-3977); an article without `embeds` renders exactly as before.
@@ -98,7 +98,7 @@ export function eventItemListBuilder(options) {
98
98
  return {
99
99
  '@type': 'ListItem',
100
100
  position: item.position,
101
- item: { '@type': 'WebPage', name: item.name, description: item.description, url: ctx.abs(item.url) },
101
+ item: { '@type': 'WebPage', name: item.name, description: item.description, url: ctx.absOrHttp(item.url) },
102
102
  };
103
103
  }
104
104
  const { isFree, price } = eventPrice(item);
@@ -106,7 +106,7 @@ export function eventItemListBuilder(options) {
106
106
  '@type': 'ListItem',
107
107
  position: item.position,
108
108
  item: eventNode(ctx, options, item, {
109
- head: { url: ctx.abs(item.url) },
109
+ head: { url: ctx.absOrHttp(item.url) },
110
110
  isFree,
111
111
  organizer: options.itemOrganizer(item),
112
112
  offers: price !== null ? offer(price, currency, {
@@ -90,7 +90,7 @@ export function collectionPageBuilder(options = {}) {
90
90
  '@type': 'CollectionPage',
91
91
  name: data.name,
92
92
  description: data.description,
93
- url: data.url ? ctx.abs(data.url) : ctx.siteBaseUrl,
93
+ url: data.url ? ctx.absOrHttp(data.url) : ctx.siteBaseUrl,
94
94
  mainEntity: hasItems ? {
95
95
  '@type': 'ItemList',
96
96
  name: data.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-core",
3
- "version": "0.62.0",
3
+ "version": "0.63.1",
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",
@@ -149,7 +149,7 @@ export function eventItemListBuilder(options: EventItemListOptions): SchemaBuild
149
149
  return {
150
150
  '@type': 'ListItem',
151
151
  position: item.position,
152
- item: { '@type': 'WebPage', name: item.name, description: item.description, url: ctx.abs(item.url) },
152
+ item: { '@type': 'WebPage', name: item.name, description: item.description, url: ctx.absOrHttp(item.url) },
153
153
  };
154
154
  }
155
155
  const { isFree, price } = eventPrice(item);
@@ -157,7 +157,7 @@ export function eventItemListBuilder(options: EventItemListOptions): SchemaBuild
157
157
  '@type': 'ListItem',
158
158
  position: item.position,
159
159
  item: eventNode(ctx, options, item, {
160
- head: { url: ctx.abs(item.url) },
160
+ head: { url: ctx.absOrHttp(item.url) },
161
161
  isFree,
162
162
  organizer: options.itemOrganizer(item),
163
163
  offers: price !== null ? offer(price, currency, {
@@ -121,7 +121,7 @@ export function collectionPageBuilder(options: CollectionPageOptions = {}): Sche
121
121
  '@type': 'CollectionPage',
122
122
  name: data.name,
123
123
  description: data.description,
124
- url: data.url ? ctx.abs(data.url) : ctx.siteBaseUrl,
124
+ url: data.url ? ctx.absOrHttp(data.url) : ctx.siteBaseUrl,
125
125
  mainEntity: hasItems ? {
126
126
  '@type': 'ItemList',
127
127
  name: data.name,