@sarimarcus/content-sites-core 0.31.3 → 0.31.5

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.31.5 (2026-10-08)
6
+
7
+ - `./schema`: `activityBuilder` sets `isAccessibleForFree` from `isFreeEntry`, like the other builders. A `free` tag now counts, and a price that opens with a conditional "Free" ("Free (self-guided) or from €25") omits the property instead of asserting `false`. Changed pages: Córdoba activity/free-tour-cordoba, patio-de-la-juderia-flamenco-dinner, visite-patios and natural-swimming-pools; Granada activity/granada-artisan-crafts, granada-markets-guide and los-cahorros-guided-hike; Dark Skies tours/bryce-canyon-astronomy-festival and bryce-canyon-full-moon-hike (SLA-2998).
8
+
9
+ ## 0.31.4 (2026-10-08)
10
+
11
+ - No changes; lockstep release with ui and tourism (SLA-3020).
12
+
5
13
  ## 0.31.3 (2026-10-08)
6
14
 
7
15
  - No changes; lockstep release with tourism (SLA-3019).
@@ -1,6 +1,6 @@
1
1
  import { generateOpeningHours } from "./hours.js";
2
2
  import { offer, placeNode } from "./nodes.js";
3
- import { aggregateRating, geoCoordinates, normalizeHotelPriceRange, parsePriceFromString, postalAddress, postalCodeOf, } from "./values.js";
3
+ import { aggregateRating, geoCoordinates, isFreeEntry, normalizeHotelPriceRange, postalAddress, postalCodeOf, } from "./values.js";
4
4
  /** Hotel at route `hotel`; no `openingHours` means open around the clock. */
5
5
  export function hotelBuilder(options) {
6
6
  const { address, defaultCheckinTime = '14:00', defaultCheckoutTime = '12:00' } = options;
@@ -33,7 +33,7 @@ export function activityBuilder(options) {
33
33
  address: postalAddress(address, data, { street: data.address || data.meetingPoint, postalCode: postalCodeOf(data) }),
34
34
  geo: geoCoordinates(data.coordinates),
35
35
  touristType,
36
- isAccessibleForFree: parsePriceFromString(data.price) === 0,
36
+ isAccessibleForFree: isFreeEntry(data),
37
37
  publicAccess: true,
38
38
  availableLanguage: data.languages || defaultLanguages,
39
39
  telephone: data.phone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-core",
3
- "version": "0.31.3",
3
+ "version": "0.31.5",
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,7 +1,7 @@
1
1
  import { generateOpeningHours } from './hours.ts';
2
2
  import { offer, placeNode } from './nodes.ts';
3
3
  import {
4
- aggregateRating, geoCoordinates, normalizeHotelPriceRange, parsePriceFromString, postalAddress, postalCodeOf,
4
+ aggregateRating, geoCoordinates, isFreeEntry, normalizeHotelPriceRange, postalAddress, postalCodeOf,
5
5
  type AddressPolicy,
6
6
  } from './values.ts';
7
7
  import type { SchemaBuilder } from './types.ts';
@@ -55,7 +55,7 @@ export function activityBuilder(options: ActivityOptions): SchemaBuilder {
55
55
  address: postalAddress(address, data, { street: data.address || data.meetingPoint, postalCode: postalCodeOf(data) }),
56
56
  geo: geoCoordinates(data.coordinates),
57
57
  touristType,
58
- isAccessibleForFree: parsePriceFromString(data.price) === 0,
58
+ isAccessibleForFree: isFreeEntry(data),
59
59
  publicAccess: true,
60
60
  availableLanguage: data.languages || defaultLanguages,
61
61
  telephone: data.phone,