@sarimarcus/content-sites-core 0.63.0 → 0.64.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 +10 -0
- package/dist/schema/events.js +2 -2
- package/dist/schema/pages.js +1 -1
- package/package.json +1 -1
- package/src/schema/events.ts +2 -2
- package/src/schema/pages.ts +1 -1
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.64.0 (2026-11-12)
|
|
6
|
+
|
|
7
|
+
- No changes (lockstep release).
|
|
8
|
+
|
|
9
|
+
## 0.63.1 (2026-11-09)
|
|
10
|
+
|
|
11
|
+
Fix (SLA-3903); a page that passes a relative url renders exactly as before.
|
|
12
|
+
|
|
13
|
+
- `collectionPageBuilder` and `eventItemListBuilder` (JSON-LD): an absolute `url` is left alone instead of being prefixed with the origin and base path (`absOrHttp`).
|
|
14
|
+
|
|
5
15
|
## 0.63.0 (2026-11-09)
|
|
6
16
|
|
|
7
17
|
- No changes (lockstep release).
|
package/dist/schema/events.js
CHANGED
|
@@ -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.
|
|
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.
|
|
109
|
+
head: { url: ctx.absOrHttp(item.url) },
|
|
110
110
|
isFree,
|
|
111
111
|
organizer: options.itemOrganizer(item),
|
|
112
112
|
offers: price !== null ? offer(price, currency, {
|
package/dist/schema/pages.js
CHANGED
|
@@ -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.
|
|
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
package/src/schema/events.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
160
|
+
head: { url: ctx.absOrHttp(item.url) },
|
|
161
161
|
isFree,
|
|
162
162
|
organizer: options.itemOrganizer(item),
|
|
163
163
|
offers: price !== null ? offer(price, currency, {
|
package/src/schema/pages.ts
CHANGED
|
@@ -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.
|
|
124
|
+
url: data.url ? ctx.absOrHttp(data.url) : ctx.siteBaseUrl,
|
|
125
125
|
mainEntity: hasItems ? {
|
|
126
126
|
'@type': 'ItemList',
|
|
127
127
|
name: data.name,
|