@v-office/website-sdk 2.23.0 → 2.24.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/dist/cli.mjs +2 -2
- package/dist/{client-CGO5Pmuv.mjs → client-DC4LG3CP.mjs} +23 -3
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/versions/2.24.0/CHANGELOG.md +19 -0
- package/dist/instructions/versions/2.24.0/MIGRATION.md +17 -0
- package/dist/{rentals-C1W7EvIC.mjs → rentals-eqFhtCdT.mjs} +1 -1
- package/dist/{search-GjMxosfU.mjs → search-CKL-8T8q.mjs} +1 -1
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/versions/2.24.0/CHANGELOG.md +19 -0
- package/instructions/versions/2.24.0/MIGRATION.md +17 -0
- package/instructions/versions/2.24.0/release.json +3 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Ut as defineV9PropertyHighlightSourcesFromUnknown, Vt as defineWebsiteSDKOptions, t as createWebsiteSDK } from "./client-
|
|
2
|
+
import { Ut as defineV9PropertyHighlightSourcesFromUnknown, Vt as defineWebsiteSDKOptions, t as createWebsiteSDK } from "./client-DC4LG3CP.mjs";
|
|
3
3
|
import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
|
|
4
4
|
import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
|
|
5
5
|
import { Command, Flag } from "effect/unstable/cli";
|
|
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
|
|
|
16
16
|
const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region package.json
|
|
19
|
-
var version = "2.
|
|
19
|
+
var version = "2.24.0";
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/cli/output.ts
|
|
22
22
|
const toJson = (value) => Effect.try({
|
|
@@ -283,6 +283,23 @@ const toV9Options = (options) => {
|
|
|
283
283
|
};
|
|
284
284
|
const defineWebsiteSDKOptions = (options) => options;
|
|
285
285
|
//#endregion
|
|
286
|
+
//#region src/constructed-backends.ts
|
|
287
|
+
/**
|
|
288
|
+
* Which backends this process has constructed a website SDK with, recorded by `createWebsiteSDK`
|
|
289
|
+
* once the config was accepted. `@v-office/site-manifest` reads the same key when a build ends and
|
|
290
|
+
* writes the backends into the site manifest, so the platform knows a site's PMS generation from
|
|
291
|
+
* what the SDK was actually told, whatever the site's own configuration code looks like.
|
|
292
|
+
*
|
|
293
|
+
* A registered symbol on `globalThis`, not module state: a build loads the SDK more than once
|
|
294
|
+
* (the content loaders and the prerendered pages run separately bundled copies), and every copy
|
|
295
|
+
* must land in the one record. No imports, so it is as safe in a browser bundle as in Node.
|
|
296
|
+
*/
|
|
297
|
+
const CONSTRUCTED_BACKENDS_KEY = Symbol.for("@v-office/website-sdk/backends");
|
|
298
|
+
const recordConstructedBackend = (backend) => {
|
|
299
|
+
const record = globalThis;
|
|
300
|
+
(record[CONSTRUCTED_BACKENDS_KEY] ??= /* @__PURE__ */ new Set()).add(backend);
|
|
301
|
+
};
|
|
302
|
+
//#endregion
|
|
286
303
|
//#region src/payment/browser.ts
|
|
287
304
|
const getBrowser = () => Effect.gen(function* () {
|
|
288
305
|
const globals = globalThis;
|
|
@@ -5707,7 +5724,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
5707
5724
|
return page;
|
|
5708
5725
|
});
|
|
5709
5726
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
5710
|
-
try: () => import("./search-
|
|
5727
|
+
try: () => import("./search-CKL-8T8q.mjs"),
|
|
5711
5728
|
catch: (cause) => new CoreSDKError({
|
|
5712
5729
|
source: "v10",
|
|
5713
5730
|
operation: "v9.search.runtime",
|
|
@@ -6260,7 +6277,7 @@ const orderRentalsById = ({ rentalIds, rentals }) => {
|
|
|
6260
6277
|
});
|
|
6261
6278
|
};
|
|
6262
6279
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
6263
|
-
try: () => import("./rentals-
|
|
6280
|
+
try: () => import("./rentals-eqFhtCdT.mjs"),
|
|
6264
6281
|
catch: (cause) => new CoreSDKError({
|
|
6265
6282
|
source: "v10",
|
|
6266
6283
|
operation: "v9.rentals.runtime",
|
|
@@ -6397,6 +6414,7 @@ function createWebsiteSDK({ config, options }) {
|
|
|
6397
6414
|
config,
|
|
6398
6415
|
options: v9Options
|
|
6399
6416
|
});
|
|
6417
|
+
recordConstructedBackend("v9");
|
|
6400
6418
|
return {
|
|
6401
6419
|
backend: "v9",
|
|
6402
6420
|
static: {
|
|
@@ -6436,7 +6454,7 @@ function createWebsiteSDK({ config, options }) {
|
|
|
6436
6454
|
config,
|
|
6437
6455
|
options: normalizedOptions
|
|
6438
6456
|
});
|
|
6439
|
-
|
|
6457
|
+
const sdk = {
|
|
6440
6458
|
backend: "v10",
|
|
6441
6459
|
static: {
|
|
6442
6460
|
rentals: { getRentals: (input) => runtime.runPromise(getRentalsEffect(input)) },
|
|
@@ -6472,6 +6490,8 @@ function createWebsiteSDK({ config, options }) {
|
|
|
6472
6490
|
},
|
|
6473
6491
|
dispose: () => runtime.dispose()
|
|
6474
6492
|
};
|
|
6493
|
+
recordConstructedBackend("v10");
|
|
6494
|
+
return sdk;
|
|
6475
6495
|
}
|
|
6476
6496
|
//#endregion
|
|
6477
6497
|
export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, getTermsAndPrivacyPolicyEffect as At, OnOfficeUnitSchema as B, submitPaymentOptionEffect as Bt, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getInitialAvailabilityEffect as Dt, DocumentSummarySchema as E, getFiltersEffect as Et, ErgoPolicyNumberRequestSchema as F, selectCancellationPolicyEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, defineV9PropertyHighlightSources as Ht, ErgoReadPreContractRequestSchema as I, selectInsuranceEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, selectInsurancePaymentEffect as Lt, ErgoCreatePreContractRequestSchema as M, quoteEffect as Mt, ErgoPersonSchema as N, removeAdditionalServiceEffect as Nt, ErgoAddressSchema as O, getRentalsEffect as Ot, ErgoPlanSearchRequestSchema as P, searchEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitContactEffect as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getBankTransferDetailsEffect as Tt, QuoteLineSchema$1 as U, defineV9PropertyHighlightSourcesFromUnknown as Ut, PaymentScheduleItemSchema as V, defineWebsiteSDKOptions as Vt, QuotePricesPayloadSchema as W, V9_FACILITY_ATTRIBUTE_KEYS as Wt, RegionListResponseSchema as X, RawVofficeObjectSchema as Y, RoomImageSchema as Z, CalendarDaySchema as _, V1_OPERATIONS as _t, parseQueryParameters as a, TileCollectionResponseSchema as at, CustomerUnitSummarySchema as b, addAdditionalServiceEffect as bt, V0OpenApiClient as c, TravelInsuranceBookingSchema as ct, makeV0OpenApiClientLive as d, UnitListItemSchema as dt, ServiceImageSchema as et, V1OpenApiClient as f, UnitListResponseSchema as ft, ApiEnvelopeBaseSchema as g, V1_BASE_URL as gt, makeV1OpenApiClientLive as h, UnitServicePriceSchema as ht, collectQueryParameters as i, SetupResponseSchema as it, ErgoCommonFieldsSchema as j, mapSearchEffect as jt, ErgoBankSchema as k, getStartDateSelectedAvailabilityEffect as kt, V0OpenApiClientError as l, TravelInsuranceBookingStoreRequestSchema as lt, makeV1OpenApiClientFetchLive as m, UnitResponseSchema as mt, makeV9CustomAttributeFilterCapabilities as n, ServiceListResponseSchema as nt, toQueryString as o, TileSchema as ot, V1OpenApiClientError as p, UnitOfferSchema as pt, QuoteServiceSchema as q, toBasicQueryInputs as r, SetupDataSchema as rt, applyVofficeFilterDerivedBasicQueryInputs as s, TileTagSchema as st, createWebsiteSDK as t, ServiceLimitSchema as tt, makeV0OpenApiClientFetchLive as u, UnitIdsResponseSchema as ut, CalendarResponseSchema$1 as v, VideoResponseSchema as vt, DocumentStatusSchema as w, createInsurancePreContractEffect as wt, DocumentCollectionResponseSchema as x, bookEffect as xt, CurrentMemberResponseSchema as y, decodeV1OperationResponse as yt, OnOfficeUnitCollectionResponseSchema as z, submitPaymentOption as zt };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as getTermsAndPrivacyPolicyEffect, B as OnOfficeUnitSchema, Bt as submitPaymentOptionEffect, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getInitialAvailabilityEffect, E as DocumentSummarySchema, Et as getFiltersEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectCancellationPolicyEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, Ht as defineV9PropertyHighlightSources, I as ErgoReadPreContractRequestSchema, It as selectInsuranceEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as selectInsurancePaymentEffect, M as ErgoCreatePreContractRequestSchema, Mt as quoteEffect, N as ErgoPersonSchema, Nt as removeAdditionalServiceEffect, O as ErgoAddressSchema, Ot as getRentalsEffect, P as ErgoPlanSearchRequestSchema, Pt as searchEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitContactEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getBankTransferDetailsEffect, U as QuoteLineSchema, Ut as defineV9PropertyHighlightSourcesFromUnknown, V as PaymentScheduleItemSchema, Vt as defineWebsiteSDKOptions, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as mapSearchEffect, k as ErgoBankSchema, kt as getStartDateSelectedAvailabilityEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as submitPaymentOption } from "./client-
|
|
1
|
+
import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as getTermsAndPrivacyPolicyEffect, B as OnOfficeUnitSchema, Bt as submitPaymentOptionEffect, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getInitialAvailabilityEffect, E as DocumentSummarySchema, Et as getFiltersEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectCancellationPolicyEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, Ht as defineV9PropertyHighlightSources, I as ErgoReadPreContractRequestSchema, It as selectInsuranceEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as selectInsurancePaymentEffect, M as ErgoCreatePreContractRequestSchema, Mt as quoteEffect, N as ErgoPersonSchema, Nt as removeAdditionalServiceEffect, O as ErgoAddressSchema, Ot as getRentalsEffect, P as ErgoPlanSearchRequestSchema, Pt as searchEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitContactEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getBankTransferDetailsEffect, U as QuoteLineSchema, Ut as defineV9PropertyHighlightSourcesFromUnknown, V as PaymentScheduleItemSchema, Vt as defineWebsiteSDKOptions, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as mapSearchEffect, k as ErgoBankSchema, kt as getStartDateSelectedAvailabilityEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as submitPaymentOption } from "./client-DC4LG3CP.mjs";
|
|
2
2
|
import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, UnknownAdditionalService, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
3
3
|
//#region codegen/v9/heuristic-generation/public-api.ts
|
|
4
4
|
const customDataAttribute = (name) => name;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/2.24.0/CHANGELOG.md`: release notes for 2.24.0
|
|
7
8
|
- `versions/2.23.0/CHANGELOG.md`: release notes for 2.23.0
|
|
8
9
|
- `versions/2.22.0/CHANGELOG.md`: release notes for 2.22.0
|
|
9
10
|
- `versions/2.21.0/CHANGELOG.md`: release notes for 2.21.0
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.24.0/MIGRATION.md`: Migration: 2.23.0 to 2.24.0
|
|
7
8
|
- `versions/2.23.0/MIGRATION.md`: Migration: 2.22.0 to 2.23.0
|
|
8
9
|
- `versions/2.22.0/MIGRATION.md`: Migration: 2.21.0 to 2.22.0
|
|
9
10
|
- `versions/2.21.0/MIGRATION.md`: Migration: 2.20.4 to 2.21.0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog: 2.24.0
|
|
2
|
+
|
|
3
|
+
The platform needs to know which PMS a site runs on: v9 websites are rebuilt by the v9 PMS,
|
|
4
|
+
v10 websites by the v10 PMS. A site's own code decides the backend, and that code differs from
|
|
5
|
+
site to site, so the platform reads the one place where the decision is final: the config
|
|
6
|
+
`createWebsiteSDK` is constructed with. This release records it for the build's site manifest
|
|
7
|
+
(`@v-office/site-manifest` 0.1.0).
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- `createWebsiteSDK` records the backend (`"v9"` or `"v10"`) of every SDK it constructs, once
|
|
12
|
+
the config was accepted, in a set under `globalThis[Symbol.for("@v-office/website-sdk/backends")]`.
|
|
13
|
+
`@v-office/site-manifest` reads it when the build is done and writes it to
|
|
14
|
+
`dist/site-manifest.json` as `backends`. A config the SDK refuses records nothing.
|
|
15
|
+
|
|
16
|
+
## Changed
|
|
17
|
+
|
|
18
|
+
- Nothing else. The record has no effect on what the SDK does, needs no import and is safe in
|
|
19
|
+
a browser bundle.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Migration: 2.23.0 to 2.24.0
|
|
2
|
+
|
|
3
|
+
## 1. Upgrade
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add @v-office/website-sdk@2.24.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
No changes are required.
|
|
10
|
+
|
|
11
|
+
## 2. Let the site manifest report the backend
|
|
12
|
+
|
|
13
|
+
The backend reaches the site manifest when the build also uses `@v-office/site-manifest` 0.1.0
|
|
14
|
+
or later (`siteManifest()` from `@v-office/site-manifest/astro` in `astro.config`). Nothing has
|
|
15
|
+
to be configured: the manifest reports the backend of every SDK the build constructs, in the
|
|
16
|
+
content loaders or while prerendering pages. An SDK that the site creates only in the browser
|
|
17
|
+
is not part of the build and is not reported.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Wt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-
|
|
1
|
+
import { Wt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-DC4LG3CP.mjs";
|
|
2
2
|
import { c as parseVofficeUnitData, i as VofficeUnitDataPropertyMetadata, n as VofficeUnitDataPropertyCategoryLabelKeys, o as parseVofficeFacilityData, r as VofficeUnitDataPropertyCategoryValues, s as parseVofficeFeedbackData, t as VofficeUnitDataFieldSchemas } from "./v9-data-BnYxa2Ek.mjs";
|
|
3
3
|
import { a as toFacilityImages, c as toLocalizedString, d as rentalFacilitiesForObjectGroupRelationQuery, f as rentalIdsQuery, h as rentalsAllWithoutFeedbacksQuery, i as toLocation, m as rentalsAllFeedbacksQuery, o as toImages, p as rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery, r as renderVofficePropertyAttribute, s as toAddress, t as toRentalHighlights } from "./to-rental-highlights-C1NF2uuE.mjs";
|
|
4
4
|
import { CoreSDKError, makeTranslate, renderResolvedCustomAttribute, toCustomAttributeList, toResolvedCustomAttributeCategoryTranslationKey } from "@v-office/sdk-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-
|
|
1
|
+
import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-DC4LG3CP.mjs";
|
|
2
2
|
import { c as parseVofficeUnitData } from "./v9-data-BnYxa2Ek.mjs";
|
|
3
3
|
import { i as toLocation, l as mapSearchQuery, n as toV9RentalHighlightKey, o as toImages, s as toAddress, t as toRentalHighlights, u as searchQuery } from "./to-rental-highlights-C1NF2uuE.mjs";
|
|
4
4
|
import { CoreSDKError, STABLE_SEARCH_INPUTS, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, parseChildrenAges, parseOccupancyCount, resolveExpandedCompositions, toFormattedSearchPrice, toIsoDateFromPeriodQueryDate, toStableSearchInputBackendQueryKeys, toStableSearchInputParameterValues, toStableSearchInputQueryKeys, toUnusedFilterKeys } from "@v-office/sdk-core";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/2.24.0/CHANGELOG.md`: release notes for 2.24.0
|
|
7
8
|
- `versions/2.23.0/CHANGELOG.md`: release notes for 2.23.0
|
|
8
9
|
- `versions/2.22.0/CHANGELOG.md`: release notes for 2.22.0
|
|
9
10
|
- `versions/2.21.0/CHANGELOG.md`: release notes for 2.21.0
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.24.0/MIGRATION.md`: Migration: 2.23.0 to 2.24.0
|
|
7
8
|
- `versions/2.23.0/MIGRATION.md`: Migration: 2.22.0 to 2.23.0
|
|
8
9
|
- `versions/2.22.0/MIGRATION.md`: Migration: 2.21.0 to 2.22.0
|
|
9
10
|
- `versions/2.21.0/MIGRATION.md`: Migration: 2.20.4 to 2.21.0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog: 2.24.0
|
|
2
|
+
|
|
3
|
+
The platform needs to know which PMS a site runs on: v9 websites are rebuilt by the v9 PMS,
|
|
4
|
+
v10 websites by the v10 PMS. A site's own code decides the backend, and that code differs from
|
|
5
|
+
site to site, so the platform reads the one place where the decision is final: the config
|
|
6
|
+
`createWebsiteSDK` is constructed with. This release records it for the build's site manifest
|
|
7
|
+
(`@v-office/site-manifest` 0.1.0).
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- `createWebsiteSDK` records the backend (`"v9"` or `"v10"`) of every SDK it constructs, once
|
|
12
|
+
the config was accepted, in a set under `globalThis[Symbol.for("@v-office/website-sdk/backends")]`.
|
|
13
|
+
`@v-office/site-manifest` reads it when the build is done and writes it to
|
|
14
|
+
`dist/site-manifest.json` as `backends`. A config the SDK refuses records nothing.
|
|
15
|
+
|
|
16
|
+
## Changed
|
|
17
|
+
|
|
18
|
+
- Nothing else. The record has no effect on what the SDK does, needs no import and is safe in
|
|
19
|
+
a browser bundle.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Migration: 2.23.0 to 2.24.0
|
|
2
|
+
|
|
3
|
+
## 1. Upgrade
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add @v-office/website-sdk@2.24.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
No changes are required.
|
|
10
|
+
|
|
11
|
+
## 2. Let the site manifest report the backend
|
|
12
|
+
|
|
13
|
+
The backend reaches the site manifest when the build also uses `@v-office/site-manifest` 0.1.0
|
|
14
|
+
or later (`siteManifest()` from `@v-office/site-manifest/astro` in `astro.config`). Nothing has
|
|
15
|
+
to be configured: the manifest reports the backend of every SDK the build constructs, in the
|
|
16
|
+
content loaders or while prerendering pages. An SDK that the site creates only in the browser
|
|
17
|
+
is not part of the build and is not reported.
|