2026-10-25 — The web and React Native SDKs read loyalty data the same way
Fixed — useAkinLoyalty() in @akin-travel/partner-sdk (#2305)
The web SDK now turns loyalty data into the same values as the React Native
SDK. One implementation in @akin-travel/sdk-core serves both, and a
conformance test runs both against one fixture on every change
(#2305 ).
-
Tier progress ignores ghost requirements. A ghost requirement is evaluated on the server but hidden from members. The web SDK did not request the
ghostflag, so a ghost points requirement could set the next-tier threshold, andtierProgress.pointsToNextTierandprogressPercentageshowed the wrong numbers. The web SDK now skips ghost requirements, as React Native does. -
tierProgress.nextTierisnullat the top tier. It wasundefined. The type was alwaysMemberTier | null. -
Absent transaction and tier-history fields are
undefined. A field the API returns asnull(for examplebookingId,reasonor thenights*/stays*/spend*metrics) was passed through asnull. It is now absent, as theLoyaltyTransactionandMemberTierHistorytypes declare. A withheldpointsAtChangestaysundefined, not0. -
Code that checks these fields with
=== nullmust check forundefined(or use== null).
Fixed — <akin-tier-progress> in @akin-travel/sdk-embed
- When the member record has no AKIN points, the element now measures progress
with the spendable balance, as the web and React Native SDKs do. It used
0.
Added — shared loyalty transforms in @akin-travel/sdk-core
calculateTierProgress,deriveMemberTierProgress,deriveLoyaltyBalances,toTransaction,toHistory,extractTransactions,extractStatsandsplitStaysare exported from@akin-travel/sdk-core. Use them if you build your own loyalty UI on the core package.