All notable changes to the YouVersion Platform React SDK.
@youversion/platform-core, @youversion/platform-react-hooks and
@youversion/platform-react-ui are a fixed group in .changeset/config.json, so they
share a version number and release together. Each entry below notes which packages it
affected.
Generated from the per-package changelogs by scripts/build-root-changelog.mjs — edit those,
or the changeset, rather than this file.
-
(@youversion/platform-core, @youversion/platform-react-hooks) 7c578f2: Align Core and React Hooks with the UI package at version 3.0.0 as part of the fixed package release. This version alignment does not add breaking API changes to either package.
-
(@youversion/platform-react-ui) 7c578f2: Ship the coordinated Shadow DOM rollout as a breaking rendered-DOM change. The compatible public UI boundary now mounts in client-created open shadow roots:
YouVersionAuthButton, the chapter and version picker roots,BibleReader.Root, and standalone theme settings, scripture, card, avatar, footnote, and separator surfaces. SDK-owned compound members and composed children reuse their owning boundary.Server output for these components is a childless light-DOM host whose inline
displaydeclares the boundary's intended layout until the passive-effect client mount. Automatic shadow hosts therefore require strict CSP applications to allow or hash style attributes as described in the UI Content Security Policy guidance. Document queries and global CSS no longer reach component internals, forwarded element refs become available after that mount, and native events observed outside a root are retargeted to its host. Keep form ownership, native labels, and ARIA ID references within one tree; use public props, callbacks, refs, and role-based automation instead of depending on internal markup. Fonts remain document-owned,remsizing follows the document root,directionremains inherited, and ancestor layout can still constrain the host. Shadow-local overlays use the native top layer, and opening a peer popover dismisses the current peer. The native Popover API is required for isolated floating content; there is no inline fallback, and an unhandled open error can unmount the affected consumer React root. Popover content also respects Radix's available collision height. Validated bubblingclick,keydown,keyup,pointerdown,pointerup,mousedown,mouseup,dblclick,contextmenu, focus, blur, and nativeinputpaths reach light-DOM ancestor React handlers once. The host corrects duplicate ReactonInputdelivery; ReactonChangewas already delivered once because the outer event is retargeted to the non-form host. Capture handlers and unlisted composed bubbling families can still receive duplicate delivery. YPE-6210 coversonClickCapture; focused Chromium probes observed duplicate move, wheel, keypress, drag-start, and copy delivery. This list is representative, not exhaustive.Textarea, standaloneVerseActionPopover,YouVersionProvider, andBaseYouVersionProviderremain outside the automatic boundary for their document-level form, anchor, context, style, or font contracts. The release does not add runtime rollout controls or phased-release infrastructure.See the release-candidate evidence for the automated browser matrix, assistive-technology environments and per-journey results, and remaining validation gaps. The final actual-Safari gate decision records the accepted standalone-picker limitations and future rerun requirement. The focused automated matrix covers 43 Storybook tests in Chromium, Firefox, and Playwright WebKit; Playwright WebKit is not actual Safari. The completed real assistive-technology pass is limited to Safari 26.6.2 on macOS 26.6.2 with VoiceOver 10 and the seven required journeys. Chrome or Edge with NVDA on Windows was not run because no environment was available. JAWS, mobile screen readers, other browser and assistive-technology combinations, and WCAG conformance remain unvalidated.
Shared popover dialogs now derive an accessible name from their visible heading unless the consumer provides an explicit label. The reader sign-in and sign-out menu has an explicit accessible name, and the version picker places initial focus on its language selector.
-
(@youversion/platform-react-ui) 7c578f2: Preserve SDK spacing in Safari inside Shadow DOM and document roots by scoping the host CSS reset and inlining the fixed Tailwind spacing scale.
-
(@youversion/platform-react-ui) 7c578f2: Skip the Bible version picker's version list scroll area in keyboard Tab order, keep focus on the outside target when dismissing from a language screen, and focus the dialog consistently when opening or rapidly reopening the picker.
-
(@youversion/platform-react-ui) 7c578f2: Preserve the Bible chapter picker's natural keyboard order and keep its scrolling book list out of Firefox's sequential focus order.
-
(@youversion/platform-react-ui) 7c578f2: Keep Firefox keyboard focus on Bible version options when tabbing forward through the version picker.
-
(@youversion/platform-react-ui) 7c578f2: Keep verse actions open when touch selection moves to another verse, restore focus for initially anchored or conditionally mounted verse actions, and keep reader settings scrollable in constrained popovers. Clarify the automatic Shadow DOM boundary's document-owned font and root-sizing dependencies without expanding its rollout scope.
-
(@youversion/platform-react-ui) 7c578f2: Classify pending-highlight pointer targets with the reader document's element realm.
-
(@youversion/platform-react-ui) 7c578f2: Keep auth-button and Bible-picker Shadow DOM hosts valid in server-rendered phrasing content.
-
(@youversion/platform-react-ui) 7c578f2: Keep isolated UI content rendered with local styles when constructable stylesheet setup fails.
-
(@youversion/platform-react-ui) 7c578f2: Keep verse action popovers in their component's shadow-local portal and restore focus after dismissal.
-
(@youversion/platform-react-ui) 7c578f2: Keep text direction as the only intentionally inherited CSS property across an automatic Shadow DOM boundary. Ambient host custom properties cannot alter SDK spacing or radius values, while document-root font sizing still affects rem-based dimensions.
-
(@youversion/platform-react-ui) 7c578f2: Keep shadow-local top-layer dialogs focus-contained and their background inert while mounted. Restore focus to the original opener after dismissal, including close/reopen during exit, while ignoring disconnected targets and targets moved outside their captured root.
-
(@youversion/platform-core) 9741f24: Add paginated
searchImagesforGET /v1/search-images. Pass the same query, version id, andpageSizeon each page, then passnextPageTokenback aspageToken. An empty page can still include a token. Empty success bodies, including HTTP 204, reject withsearch-images returned no content; expected a JSON response.Verse-of-the-day reads move from
/v1/verse_of_the_daysto the canonical/v1/verse-of-the-daysroutes for both single days and the calendar. Passlanguage_rangesto sendlanguage_ranges[]. Core client methods returnVOTDResponserecords with a guaranteedimage_id: string | null, includingnullwhen the API omits the field. The existingVOTDtype and hook overrides still accept values withoutimage_id.VOTD reads now validate responses instead of returning unchecked bodies.
getAllVOTDsrequires a{ data: [...] }collection envelope. Both methods reject malformed responses with anUnexpected verse-of-the-day API responseerror, including invalid day, passage, or image field types. -
(@youversion/platform-react-ui) b0280a5: Open Bible languages from a row under version search, and search languages on their own screen. Keep tablet picker cards at 400 by 600 pixels, capped to fit the viewport. Show the selected language and the number of rows in its version section, excluding recent versions. Add a forward chevron to version rows. Keep language navigation in the SDK popover so standalone content retains host-owned controls. Expose the language count to screen readers.
-
(@youversion/platform-react-ui) 9741f24: Re-export
searchImagesfrom the UI package entry point.
-
(@youversion/platform-core) 669db59:
getAdjacentChapternow goes from the last chapter of a book to the next book's intro when it has one, instead of skipping to chapter 1. Next and previous are now inverses, andBibleReader's next-chapter button reaches book intros the way the Swift reader does. -
(@youversion/platform-core) f64b654: Fix
OrganizationsClient.getOrganizationrejecting live API responses. The API sendsaddress: nullfor organizations without an address anddescription: nullfor some, butOrganizationSchemaonly allowed those fields to be omitted, so every lookup threw a validation error. Both fields now acceptnull, andBibleVersionPickernow shows publisher names.The
Organizationdescriptionandaddresstypes now includenull; check for null when you read them. Code that passes these fields wherestring | undefinedorOrganizationAddress | undefinedis expected stops compiling under strict null checks. -
(@youversion/platform-react-ui) b0280a5: Re-apply the host revert-layer
-webkit-appearancefix when Tailwind watch rewrites CSS duringdevand Storybook. -
(@youversion/platform-react-ui) f1c55f1: Sync localization from platform-localization (70fd234): update 57 keys in af, ar, cy, de, es, fr, ig, no, pt, vi, zh.
-
(@youversion/platform-react-ui) 4eed87a: Sync localization from platform-localization (dc70b8b): update 6 keys in en.
-
(@youversion/platform-core, @youversion/platform-react-ui) da12b12: Export shared Bible version attribution selection and fall back to promotional content in BibleCard and BibleReader when copyright is blank.
-
(@youversion/platform-core) 23ed5bc: Add
ImagesClientfor verse-art image metadata.getImagescallsGET /v1/imagesand returns aCollection<VerseImage>.getImagecallsGET /v1/images/{image_id}.total_sizeis included only when the API sends a number. A null or missing total is omitted, and0is kept.page_tokenacceptsnull. A blank passage id is rejected before the request.passage_idtakes a single verse or a verse range. The SDK returns metadata only. Read image bytes fromimage_url. -
(@youversion/platform-core) 529192b: Add
searchUnifiedforGET /v1/search-unified, returning one unpaginated snapshot of top verse references and related topics. -
(@youversion/platform-core, @youversion/platform-react-hooks) 24cd0f2: Add image hits to unified search.
searchUnifiedanduseUnifiedSearchacceptfields: ['images']and returnimagesas{ id, passageId }entries. Malformed image rows are dropped. -
(@youversion/platform-core, @youversion/platform-react-hooks) 529192b: Add useUnifiedSearch for loading top verse references and related topics through the unified-search core client, without changing the existing paginated Bible search flow.
Validate unified-search request intents and required response fields against the API contract while preserving unknown response intent strings.
-
(@youversion/platform-react-ui) 529192b: Re-export unified search client helpers from the UI package entry point.
-
(@youversion/platform-core) 24cd0f2: Drop malformed unified-search image rows individually so missing or null identifiers do not discard valid verses, topics, or sibling images.
-
(@youversion/platform-react-ui) 3073603: Keep the verse action menu after cancelling a highlight sign-in or permission prompt. Confirming either prompt hides the menu until the redirect starts, and brings it back if the redirect fails to start.
-
(@youversion/platform-react-ui) 60d022e: Keep the reader font labels Inter and Untitled Serif in every language.
-
(@youversion/platform-react-ui) 8a82cb9: The verse action popover enters in 180ms with its easing curve. The exit stays on the library default.
-
(@youversion/platform-react-ui) f197bfa: Sync localization from platform-localization (13a6914): add Dutch (nl), Russian (ru), Ukrainian (uk); update 515 keys in af, ar, cy, de, fr, ig, no, pt, sr, tr, vi, zh.
-
(@youversion/platform-react-ui) 1699a0f: Sync localization from platform-localization (237cba4): add Igbo (ig); update 26 keys in en, es.
-
(@youversion/platform-core, @youversion/platform-react-ui) 053b460: Complete RTL support across Bible UI surfaces and pickers. SDK chrome now resolves Interface direction from an explicit provider override or the SDK UI locale, emits real
dirboundaries and portals, mirrors semantic geometry and directional controls, and isolates mixed-direction API strings. Scripture surfaces independently resolvescriptureDirectionfrom an explicit override, transformed YVDOM, orauto, including footnotes. RTL highlight swatch overflow fades use visible geometry instead of browser-specific scroll offsets. -
(all packages) 81690b5: Add Bible Reader search: one USFM grammar, an exclusive-lane
useBibleSearchsession, and a Toolbar-mountedBibleReaderSearchthat navigates with transient verse focus.Expose
BibleReaderNavigationfor host requests before reader mount, passage or full-chapter display, and optional in-place focus. Search supports grapheme-safe input, deduplicated results, verse previews, automatic pagination, and accessible dismissal and errors.Align search with the reader designs in a toolbar-anchored popover. Show three trending queries and the latest three browser-local recent searches, and preserve query entry and recents when suggestions fail. Load verse previews behind one spinner, keeping earlier results visible during pagination. Result selection moves keyboard focus to the verse; dismissing search with Close or Escape restores the trigger.
Add an async-compatible
BibleReader.Root.onSearchPressoverride for host-owned search. Match toolbar popover motion and native scrollbar themes. Correct verse mapping across poetry lines so focus dims the complete surrounding verses without adding a highlight, and retain focus until user interaction.Add Old Testament, New Testament, and Both search filters using the selected Bible's book metadata. Continue through nonmatching result pages before reporting no results. Display sentence-case references above three-line serif previews with inline verse numbers. Back clears the search and filters without closing the popover; show only one X control at a time.
Give search rows inset hover surfaces without shifting content, align initial search and preview spinners, and reveal loaded previews with a short reduced-motion-aware transition. Reuse existing localized empty-state copy and clear stale failures when changing testament filters.
Start testament controls collapsed behind an accessible Filters disclosure. Preserve and indicate active filtering while collapsed, and reset to Both and collapsed on Back or clear. Expand and collapse the controls with an interruptible accordion transition, immediate keyboard toggles, and fade-only reduced motion.
Keep core imports usable without Intl.Segmenter, falling back to Unicode code-point limits for search on those runtimes. Preserve the generic useDebounce delay for null values while suppressing suggestions in submitted searches. Allow Enter to resubmit failed or empty searches without replaying cached pages or duplicating an in-flight request.
Apply queued reader destinations before fetching passage content, and wait for controlled props to accept pending navigation. Clear activated navigation when the host leaves its destination so returning does not restore stale passage selection or focus. Omit chapter-only search hits while preserving verse ranges and continuation loading.
-
(@youversion/platform-core, @youversion/platform-react-ui) ad543bf: Align Bible typography, alternate verse labels, and composed footnotes with the Swift phase-two rendering contract.
-
(@youversion/platform-react-hooks) 90374fe: Hooks import
YouVersionContextfrom its module, not the context barrel, so auseChapterimport does not evaluate Auth. Hooks run tsup's Rollup tree-shake pass so unused exports drop from narrow graphs. Hooks wipediston build so stale tsup.d.ctsfiles cannot publish. -
(@youversion/platform-react-ui) be82d6d: Make
YouVersionAuthButtonhonor explicit and default sign-in modes for authenticated users. -
(@youversion/platform-react-ui) d8f2750: Sync localization from platform-localization (413e2e7): update 26 keys in es.
-
(@youversion/platform-react-ui) 1a79aeb: Sync localization from platform-localization (f96d5b4): update 2 keys in en.
-
(@youversion/platform-react-ui) b2c82ad: Split the UI JavaScript build so named package-root imports can drop unused UI. Keep core as a runtime dependency so UI and hooks share one copy, and re-export core values from UI by name instead of
export *.The package root remains the only public entry. Provider embeds only the chrome CSS needed for its missing-app-key panel. Components that need the utility or Bible reader sheets inject those styles from separate internal modules. The public stylesheet and CDN publisher both use the complete exported sheet. Consumer-shaped size, runtime-export, and tree-shaking checks guard the split for both ESM and CommonJS builds.
- (@youversion/platform-core) 1e6c8a2: Add a declarative passage display API that returns transformed Bible HTML, current attribution, required stylesheet descriptors, and container attributes without rendering or mutating the DOM.
-
(@youversion/platform-react-hooks, @youversion/platform-react-ui) 67223e4: Add an optional
timeoutprop toYouVersionProviderand configure the Vite demo to wait longer for slower Bible content requests. -
(@youversion/platform-react-ui) bb1f056: Sync localization from platform-localization (e4c7700): update 28 keys in en.
-
(@youversion/platform-core) b3833e4: Add Platform Search APIs to core:
SearchClientwith suggested/trending queries, verse search, and topic search against/v1/*endpoints.PRD-over-Swift notes: query responses use a
{ queries: SearchQuery[] }wrapper (not a bare array), anduser_intentis omitted on the wire unless the caller supplies it. Topic results exposetotalSizefromtotal_size. Language ranges accepten_USand normalize underscores to hyphens before validation.The UI package will consume these types via the core
"."export in a follow-up PR. Public API Extractor compatibility is not updated in this release (api-extractor is not wired in this repo).
-
(@youversion/platform-core) 42a7d88: Core clients are separate tsup entries so an
ApiClientimport can dropBibleClientandLanguagesClient. Import zod Mini as a namespace so unused classic locale files and unused Mini helpers stay out of named-import graphs. The version string is inlined frompackage.jsonwithout embedding the rest of the manifest. Published JS is whitespace-minified; syntax and identifier minify stay off so theX-YVP-Sdkstamp remains verifiable. Core does not run tsup's Rollup tree-shake pass, because that pass foldsisPublishBuildand trips the stamp guard. Core wipesdiston build so stale tsup.d.ctsfiles cannot publish. Bible version-filter allowlists live in a small state module so narrow imports do not pull auth storage or grants.YouVersionPlatformConfigurationstill exposes the same statics. Publictheme.csskeeps the--yv-*tokens SDK components read.Behavior note: input-validation failures throw zod Mini's
$ZodError(fromzod/mini) instead of classicZodError.instanceof ZodErrorchecks against classiczodno longer match. Callers that catch validation errors should match onerror instanceof $ZodErrorfromzod/mini(orz.core.$ZodError).page_size="*"without 1-3 fields still throws the priorError(page_size="*" requires 1-3 fields to be specified).
-
(all packages) 5ddc2e0: Add bundle size budgets, tree-shaking verification, and tighter npm publish metadata for core and hooks.
- core and hooks now declare
sideEffectsso bundlers can drop unused exports (corepreserves CSS via"**/*.css"). - core and hooks
filesallowlists exclude test files, test fixture directories (dist/__tests__, hooksdist/test), and config from published tarballs; both also shipCHANGELOG.md. - ui
filesallowlist addsCHANGELOG.mdto published tarballs. - ui
sideEffectsglob is now"**/*.css"(aligns with core; webpack already prepends**/). - Root
pnpm size,pnpm check:tree-shaking, and CIbundle-sizejob guard regressions.
- core and hooks now declare
-
(@youversion/platform-react-ui) 91c9df1: Restore SDK box and type styles when a host ships unlayered
button {}/ Tailwind preflight. One unlayeredrevert-layerrule on[data-yv-sdk]descendants rolls those properties back toyv-sdk-*. This is light-DOM isolation (A2), not Shadow DOM.
- (@youversion/platform-react-hooks, @youversion/platform-react-ui) c55f690: Data hooks now cache reads with TanStack Query: revisiting previously fetched content (chapters, verses, versions, highlights) renders instantly from an in-memory cache and revalidates in the background instead of blanking and refetching. Two components reading the same thing now share one request. Public hook APIs are unchanged and no new providers or peer installs are required —
@tanstack/react-queryships as a direct dependency of the hooks package with a privateQueryClientinsideYouVersionProvider. Cache entries are keyed by provider config, includingadditionalHeaders, so two header sets never share a response. Account-scoped queries (highlights) are keyed per user, so one account can never see another account's cached data — while the signed-in account is still resolving, or while a live access token disagrees with a signed-out session,useHighlightsholds off fetching rather than sharing a cache entry. Returning to the tab no longer refetches; mounting, changing what you are reading, andrefetch()still do. A read that failed while the network was down fetches again on its own once the connection returns.useOrganizationsshares that cache too, keyed per organization exactly asuseOrganizationkeys it, so a list of versions that share publishers costs one request per publisher and reopening a picker renders them from cache. The cache is memory-only and never persisted.
-
(@youversion/platform-core, @youversion/platform-react-hooks) 1f258fa: Sign-in no longer fails when the token endpoint returns
expires_inas a string. Callback failures are logged in development so a failed exchange is visible in the console. -
(@youversion/platform-react-ui) 22c36dd: Sync localization from platform-localization (032e300): add Serbian (sr); update 43 keys in af, zh.
-
(@youversion/platform-core, @youversion/platform-react-ui) 0ae2488: Highlights mix into the reader background so they stay readable in light and dark. If a host sets a different
--yv-backgroundor--yv-card, the fill follows that token.The apply palette is six new colors. The stored hex stays unmixed. Dark mode uses 20% of the stored color. Words of Christ keep their own color (
#94000c/#e4bfc2) so the red letters stay clear on the fill. Oldfffe00highlights still paint and clear.
- (@youversion/platform-react-ui) c24ce71:
BibleCardnow caps its painted shell at 700px by default, or at a pixelmaxWidth. Scripture fills that shell. PassmaxWidth="100%"for a full-bleed shell; that path keeps the 600px inner column, and scripture fills the column. Full-bleed hosts must pass"100%".VerseOfTheDayandBibleReaderare unchanged.
- (@youversion/platform-react-ui) aef57f3: Hosts can pass
localeonYouVersionProviderto set SDK UI language andAccept-Language(including Verse of the Day copy in Expo WebViews), anddefaultLanguageId/languageIdonBibleReader.Rootto seed the version picker. App locale and Bible language stay separate:localedoes not pick a default Bible translation.
- (all packages) 830d5d5: Add
permittedVersionIds,excludedVersionIds, andpermittedLanguageTagsso apps can limit which Bible versions the SDK uses (YPE-4657).
-
(all packages) e9840fc: Type-aware oxlint on TypeScript 7. Data hooks skip fetch when a hook override is set, without conditional hook calls.
-
(@youversion/platform-react-ui) 1b0c16c: Sync localization from platform-localization (0cca3f7): add Afrikaans (af), Arabic (ar), Czech (cs), Welsh (cy), German (de), Norwegian (no), Portuguese (pt), Vietnamese (vi); update 3 keys in en, ko, zh.
-
(@youversion/platform-core) 4f4ce4a: Align Bible reader typography with Swift phase-1 tag rules.
Rewritten USFM tag styles match Swift's adjusted size, weight, indent, alignment, and block spacing (logical properties). Unadjusted tags and reader chrome stay as they are. Verse labels raise 0.2em. Adjacent-sibling combinators that overrode phase-1 margins are removed.
- (@youversion/platform-react-ui) f751b5b:
BibleTextView,BibleCard, andVerseOfTheDaynow auto-paint the signed-in user's highlights from the API when thehighlightspermission is granted. Omit the prop for that self-contained path. Passinghighlights(including[]) stays controlled so React Native hosts can keep the token out of the WebView.
- (@youversion/platform-react-ui) 037de56: Replace the iOS-style box-arrow-up share glyph with a curved forward arrow in
VerseOfTheDayand the verse action popover, so the share affordance reads as "share" on non-Apple platforms too.
-
(all packages) dfa94a8: Fix storage access crashing in React Native and other environments without Web Storage.
Storage was guarded with
typeof window, which is the wrong capability check: React Native setsglobal.window === global, so the guard passed and the next line threw. Core now exportsgetLocalStorage()andgetSessionStorage(), which return a usable store ornull, and every storage call site in core, hooks, and UI goes through them. The helpers also cover the cases atypeof localStoragecheck misses:localStoragebeingnullon Android DOM WebViews, Node's experimental Web Storage global evaluating toundefined, and browsers that throw aSecurityErroron the property access itself.Reads now resolve to
nulland writes no-op instead of throwing, so@youversion/platform-coreworks in React Native without an in-memoryStorageshim.signInandhandleAuthCallback, which genuinely require persistence across the OAuth redirect, report the missing capability with a clear "requires localStorage" error instead of a bareTypeError.Mutations go through the new
setStorageItem(),removeStorageItem()andclearStorage()helpers, because a store that reads fine can still throw on write — Safari's private mode gives every origin a zero-byte quota, sogetItemworks whilesetItemthrowsQuotaExceededError. Storing a reader preference or a permission-cache entry now degrades silently there instead of crashing the caller, and post-exchange cleanup in the OAuth callback can no longer fail a sign-in whose tokens were already persisted.signInstill fails loudly when the verifier cannot be written, since the flow cannot complete without it — as it now does for the requested-permissions stash, which is the callback's only record of what the user consented to on the web flow.The session itself is held to the same standard:
saveAuthData()andsaveUserInfo()now report whether the write landed, andhandleAuthCallbackandrefreshTokensfail instead of reporting a sign-in whose tokens are already unreadable. Every read of the session goes back to storage, so a discarded write meant a "signed in" user whose next request would 401 and who would be signed out on reload.YouVersionPlatformConfiguration.installationIdkeeps its existing contract of returning''when there is nowhere to persist it, so theX-YVP-Installation-IDheader stays omitted rather than carrying a per-process value that no longer identifies an installation. -
(@youversion/platform-react-ui) f06e86a: Paint and clear non-palette highlight colors in the web Bible reader.
Apply stays limited to the five SDK palette colors. Valid non-palette API hex now paints on the reader and appears in the remove tray at its exact color with the checkmark. Invalid hex is dropped from paint and the tray. Clear keeps the existing ANY rule for mixed selections. Dark fills (e.g. black) flip verse text and the remove checkmark to white in light mode so they stay legible.
-
(@youversion/platform-react-ui) 4cae248: Fix the
BibleCarderror state announcing two alerts, and keep the version picker usable while an error is showing. The "Error" label stays in the header slot but drops itsrole="alert"andaria-live, leaving the message block in the card body as the only alert region. The picker no longer disappears on error, so a 404 has an in-card fix: switch to a version that carries the passage.The shared message block now hides its icon with
aria-hidden, soVerseOfTheDayand standaloneBibleTextViewpick up that fix too. Their announcement stays polite and their visible text is unchanged, and neither gains an "Error" label. The eight status-aware messages, their six locales, and how errors are derived are untouched.
- (all packages) 75b0899: Auto-transform Bible HTML in
getPassage— verse wrapping, footnote extraction, sanitization, and table fixes now happen automatically. Consumers no longer need to calltransformBibleHtmlmanually. Uses native DOMParser in browser, dynamicimport('jsdom')on server.jsdomis now declared as an optional peer dependency so install logs surface it for server consumers. Addeddata-yv-transformedidempotency marker so double-transforms are a no-op. Passtransform: falseto receive raw, untransformed HTML (useful for simple display or whenjsdomis unavailable);usePassageaccepts the sametransformoption and forwards it. Bible reader CSS now handles verse label spacing for untransformed HTML automatically.
-
(@youversion/platform-react-ui) 9a2b3e9: Fix secondary buttons rendering their label in the muted text color, which made active controls read as disabled. The
secondaryvariant now pairsbg-mutedwith the normal foreground color in both light and dark themes. This is most visible on the BibleCard version picker button, and also affects the secondary buttons in BibleReader, BibleChapterPicker, BibleVersionPicker, and the highlight permission dialog. -
(@youversion/platform-react-ui) 9c2e8e4: Remove the divider lines between book rows in
BibleChapterPickerto match the current design. Row padding and tap targets are unchanged. -
(@youversion/platform-react-ui) f6b98da: Sync localization from platform-localization (ac750ac): update 31 keys in es, tr.
-
(@youversion/platform-react-ui) b592e72: Fix the version count badge in the version picker's language trigger rendering with a monospace, slashed-zero font. The badge now inherits the picker's font and keeps
tabular-numsfor stable digit widths.
-
(all packages) 0a1c880: Swap the SDK's serif face from Source Serif 4 to Untitled Serif, YouVersion's brand serif, delivered from the YouVersion Fonts API (YPE-1350, YPE-1910).
- The serif stack is now
'Untitled Serif', 'Source Serif 4', serifin both token declarations (--yv-font-serifin core,--font-serifin the UI theme), so every serif surface follows: BibleReader body text, the Bible card,BibleText, the version-picker abbreviation tile, footnotes, chapter headings, and thelgVerse of the Day card. Untitled Serif is named first, so a host that loads its own copy takes priority regardless of who fetched it. YouVersionProvidernow loads the font for you. It renders a hoisted<link rel="stylesheet">tohttps://api.youversion.com/v1/fonts/1/stylesheet, using the app key you already supply — a new outbound request toapi.youversion.com, plus woff2 fetches fromcdn.youversion.com. No new prop and no setup; there is no opt-out. No font file ships in any package.- Strict CSP consumers: allowlist
https://api.youversion.cominstyle-srcandhttps://cdn.youversion.cominfont-src. If they are blocked, serif text falls back to Source Serif 4 (still loaded from Google Fonts) with no layout break. - The BibleReader's default font changes from Source Serif 4 to Untitled Serif, and the font picker button now reads "Untitled Serif" instead of "Source Serif". Readers whose saved preference is the old Source Serif stack are migrated on load, so the picker still shows serif as active. Any other
fontFamilyvalue you pass or persist is left untouched. - The internal
SOURCE_SERIF_FONTconstant is deprecated (retained for that migration). The picker now reads a newuntitledSerifFontNamelocale key; the oldsourceSerifFontNamekey is retired in a follow-up sync. Neither is part of the public API; nothing is removed or retyped.
See
docs/adr/0004-adopt-untitled-serif-via-fonts-api.mdfor the delivery rationale. - The serif stack is now
-
(@youversion/platform-react-ui) abc1877:
BibleReadercan now hand verse actions to the host (YPE-2894). Three additive changes; every default is unchanged, so existing consumers see identical behavior.- New
BibleReader.RootpropverseActions?: 'popover' | 'none'.'popover'is the default and renders the built-inVerseActionPopoverexactly as before.'none'renders no verse-action UI at all while keeping everything else intact — verses still select and paint,onVerseSelectstill fires withreferenceandshareDatapopulated, and the Copy / Share payload is still built. Highlight intents are the exception: the built-in popover is their only trigger, soonHighlightApply/onHighlightRemovedo not fire in this mode — a host owning the action UI drives highlights by updating thehighlightsprop directly. Use it when the host owns the action UI (a React Native host presenting a native bottom sheet, where a second in-WebView popover would stack on top of it). - New
BibleReader.RootpropclearSelectionSignal?: number. Any change to the value clears the current verse selection from outside the reader, emittingonVerseSelectwithverses: []. The value at mount is the baseline, so mounting never clears. It is a counter rather than an imperativerefhandle because Expo DOM components accept only serializable props. Needed withverseActions="none", where nothing inside the reader clears the selection any more. BibleReaderVerseSelection(theonVerseSelectpayload) gains two fields:reference, the localized display reference without the version abbreviation (Hebrews 11:4, falling back to the USFM book code untiluseBooksresolves,''on clear), andshareData, the sameBibleReaderShareDatathe popover's Copy / Share buttons produce (nullon clear).referenceandshareData.referencedeliberately differ — copied text keeps the version (Hebrews 11:4 BSB), a UI label does not. When the localized book title or version abbreviation resolves while a selection is live, the reader re-emitsonVerseSelectwith the sameversesand the refreshed fields, so a host never sticks on the fallback: treat the payload as the current state of the selection, not as one event per user action.
BibleReaderHighlightIntentis unchanged: it no longer spreads the full selection type, so intents still carry identity and color only. - New
-
(@youversion/platform-react-ui) 514a642: Register the Korean, Turkish, and Chinese locale bundles in the i18n resource map so browser-language detection can select them. Previously the synced bundles shipped unreferenced, and those browsers fell back to English.
pnpm check:i18nnow fails when a locale file is not registered.
-
(@youversion/platform-react-ui) 1da7184: Automate UI locale registration from locale JSON files via
generate:i18n, and run generation before build, typecheck, Storybook, and test commands so new languages stay in sync without hand-editing the resource map. -
(@youversion/platform-react-ui) 0253e33: Fix BibleChapterPicker requiring two taps to collapse an expanded book. The book accordion now stays controlled for its whole lifetime instead of flipping to uncontrolled when a book is collapsed.
-
(@youversion/platform-react-ui) 514a642: Sync localization from platform-localization (c9c01e1): add Korean (ko), Turkish (tr), Chinese (zh); update 1 keys in en.
-
(all packages) 71e4c1a: BibleReader highlights are now real, server-backed YouVersion highlights, with a built-in sign-in and permission flow so a reader's highlights persist to their YouVersion account.
Important: previous releases accidentally shipped a demo-only, localStorage-based highlights implementation in BibleReader. It stored highlights only in the local browser and never synced to the reader's YouVersion account. That implementation has been removed and replaced by the server-backed highlights described here. These highlights are live in this release and enabled by default.
- Server-backed highlights in BibleReader: tap verses, pick a color, and highlights persist to the reader's YouVersion account instead of the local browser.
- Built-in sign-in dialog and just-in-time
highlightspermission flow: a highlight tap while signed out opens a sign-in dialog; a missinghighlightspermission triggers the YouVersion data-exchange consent flow, and the pending highlight is applied automatically once consent is granted (surviving the redirect round-trip). - New
BibleReaderpropsappNameandsignInPromptMessagefor the sign-in dialog (Swift SDK parity):appNamenames your app in the dialog, andsignInPromptMessageshows an optional integrator pitch (hidden when unset). - Optimistic UI: color taps apply and remove instantly while writes settle in the background, with automatic revert on network/5xx failures and a re-prompt on auth failures (401/403).
- Behavior change in
useHighlights:createHighlightanddeleteHighlightno longer auto-refetch. Direct consumers must now callrefetch()themselves after their mutations settle; the BibleReader flow coordinates this for you (batching a set of verse writes into a single refetch). - New exports:
YouVersionAuthContextfrom@youversion/platform-react-hooks(the no-throw alternative touseYVAuthfor components that must tolerate a missing auth provider), and a re-export of theHighlighttype from@youversion/platform-react-ui. - The active color swatch now shows a checkmark (24px
icons/check) instead of an X, matching the Bible app; tapping it still removes the highlight. - Highlight-flow reliability fixes surfaced by staging: the previously invisible primary button in the permission dialog now uses the correct
bg-primary/text-primary-foregroundpairing (it resolved to white-on-white in light mode); the optimistic overlay is retired only once a refetch actually reflects the write, so highlights no longer flicker out and back under read-after-write lag; removes now send one DELETE per verse (range DELETE is unsupported by the API), while applies still collapse contiguous verses into range USFMs; and highlight fills now fade their background color (~250ms, disabled underprefers-reduced-motion) instead of popping in. - Fix: the core
ApiClientnow treats empty-body 2xx JSON responses as success with no data. Previously a successful highlight delete (a 200 with an empty body) was misread as a failure, briefly flashing the removed highlight back before it disappeared. - Fix: duplicate processing of the same OAuth callback (e.g. the double-invoked auth init effect under React StrictMode) can no longer clear a just-granted
highlightspermission. The code-for-token exchange is now deduped by authorization code, so a repeated callback shares the one exchange instead of firing a second request whose failure would wipe the freshly seeded grant and re-prompt for permission. - Fix: a one-shot
highlightssign-in no longer re-prompts for permission when the auth server omits the grant echo. On the web flow the server returns nogranted_permissionson the callback and no data-exchange scope on the token, so nothing seeded the permission cache and the flow immediately re-prompted after consent. The permissions requested at sign-in are now stashed (bound to the OAuthstate) and seeded optimistically on return; the seed is self-correcting because a 401/403 on the first write drops the permission and re-prompts. - Fix: concurrent token refreshes (e.g. the double-invoked auth init effect under React StrictMode) now share a single in-flight refresh, so a losing duplicate can no longer spend the single-use refresh token a second time and wipe the session on its failure.
- Fix: verse labels and footnote icons now inherit the surrounding text color over highlight fills instead of being painted with the fill color, keeping them legible on highlighted verses.
- Theme-aware highlight rendering: highlight fills render at full opacity in light mode and 30 percent opacity in dark mode, matching the Swift SDK; verse numbers over dark-mode highlights render white. Highlight fills now have subtly rounded corners, with each wrapped line fragment getting its own rounded ends so a multi-line highlight no longer cuts off square at the wrap. The verse-action popover color swatches preview the real fill: in dark mode they show the same dimmed color a highlight will apply. Opening the popover with a mouse or touch no longer flashes a focus ring on the first swatch; keyboard navigation still shows a clearly visible focus ring.
-
(@youversion/platform-react-ui) ebddf21: BibleReader gains a controlled highlights mode (YPE-3705) for hosts that own highlight data themselves (e.g. React Native / Expo DOM hosts keeping the user token out of the WebView).
- New
BibleReader.Rootprops:highlights?: Highlight[](core API shape; presence puts the highlight slice in controlled mode, latched at first mount),onVerseSelect(both modes, fires on every selection change —verses: []whenever a non-empty selection clears, including after highlight/copy/share actions, popover dismiss, and navigation), andonHighlightApply/onHighlightRemove(controlled mode only; ignored in self-contained mode). Payloads are serializable, bridge-safe objects (BibleReaderVerseSelection,BibleReaderHighlightIntent) with always-per-versepassageIds. - In controlled mode the reader is a pure projection: highlights render solely from the prop (filtered by displayed version + chapter, range USFMs like
JHN.3.16-18expanded per verse), color taps emit intents and paint nothing until the host round-trips an updated prop, and neither the highlights API nor any local store is touched. No auth surface can originate from the highlight path. - Self-contained behavior (no
highlightsprop) uses the server-backeduseBibleReaderHighlightspath (YPE-1034), dark-launched behindHIGHLIGHTS_LIVE. @youversion/platform-react-uinow re-exports theHighlighttype from@youversion/platform-core.
- New
-
(@youversion/platform-core) 71e4c1a: Fix one-shot sign-in dropping the
highlightsgrant when the auth server echoes it back with PHP/Rails bracket-array notation (granted_permissions[]=highlights).parseGrantedPermissionsread only the baregranted_permissionskey, butURLSearchParamstreatsgranted_permissions[](and indexedgranted_permissions[0]) as distinct keys. The server demonstrably uses this bracket notation for the analogous outboundrequested_permissions[]param it builds on the hosted consent redirect, so a return echo in the same shape was silently discarded — leaving the permission cache empty and re-prompting the just-in-time data-exchange consent after a completed sign-in. The parser now acceptsgranted_permissions,granted_permissions[], andgranted_permissions[<index>], keeping it symmetric with the server's encoding. Purely additive: baregranted_permissionsand all user/state-scoping and fail-closed protections are unchanged. -
(@youversion/platform-react-ui) 05beced: Localize BibleReader font-size/line-spacing and popover close accessibility labels via i18n.
- The YouVersion Platform logo component's accessible label is now a required prop with no hardcoded English default; the SDK's built-in usages pass localized labels.
-
(@youversion/platform-core, @youversion/platform-react-hooks) d6ab2d5: Fix
HighlightsClientto match the live highlights API contract. The client previously sent requests the API rejects on every call (401/400), so highlights could never be fetched, created, or deleted.- Auth token is now sent as an
Authorization: Bearer <token>header instead of alatquery parameter - Query/body fields now use the API's
bible_idnaming on the wire (the SDK keepsversion_idin its public types and maps at the boundary) createHighlightnow sends the required{ request_id, highlight: { ... } }envelope (request_idis a unique per-request id the API requires)getHighlightsnow requiresversion_idandpassage_id(verse or chapter USFM), anddeleteHighlightrequiresversion_id, matching the API's required parameters;useHighlightsoptions are updated accordinglygetHighlightsnow treats a204(no highlights for the passage) as an empty collection instead of throwingcreateHighlightnormalizescolorto lowercase before sending, since the API accepts lowercase hex only- API responses are validated with Zod and mapped from the wire shape
- Auth token is now sent as an
-
(all packages) 683c123: Allow requesting YouVersion data-exchange permissions (e.g.
highlights) at sign-in. These are intentionally not OIDC scopes: they ride alongside the standardscopeparam as repeatablerequested_permissions[]query params on the authorize URL and are authorized via a separate per-app ACL rather than the token's scope claim.YouVersionAPIUsers.signIn(redirectURL, scopes?, permissions?)and the underlying PKCE authorization request builder now accept apermissionsarray typed asSignInWithYouVersionPermissionValues[].useYVAuth().signIn({ permissions })forwards them from React.<YouVersionAuthButton permissions={['highlights']} />requests them from the sign-in button.
Scopes and permissions are separate arguments; existing calls that only pass scopes are unaffected.
-
(@youversion/platform-react-hooks, @youversion/platform-react-ui) ab38fb5: Surface a clear error when
YouVersionProvideris given a missing or emptyappKeyinstead of rendering a blank page. The UI provider now renders a styled "Missing app key" message, and the hooks provider throws a descriptive error for hooks-only consumers. -
(@youversion/platform-react-ui) fc054c6: Add
ProfileAvatarcomponent with initials fallback (YPE-3648). Signed-in users without a profile image now see their initials ("Cam Anderson" → "CA", "Cher" → "C") in a bordered circle instead of a broken avatar; loaded photos get a 3px gray ring per design.BibleReader's user menu now usesProfileAvatarfor all authenticated states, and the component is exported for direct use. -
(@youversion/platform-react-ui) af37b90: Add a verse action popover to
BibleReader. Tapping verses selects them (shown with an underline) and opens a popover anchored to the last-selected verse with five highlight colors, Copy, and Share. Highlights apply a translucent fill, persist tolocalStorageper Bible version (shaped like the future highlight API), and can be removed individually. Copy/Share output mirrors bible.com formatting: the verse text in curly quotes, gaps in a non-contiguous selection joined with..., followed by theBook Chapter:verses VERSIONreference. Share uses the Web Share API and falls back to copying where it isn't available.BibleReaderalso accepts optionalonCopy/onShareprops. When provided, they receive the structured selection payload and suppress the default Web Share / clipboard flow, so React Native / Expo hosts can forward it across the native bridge (mirrorsVerseOfTheDay'sonShare).Note:
BibleTextViewProps.highlightedVerseschanged fromRecord<number, boolean>toRecord<number, string>(verse number → highlight hex). This prop was never wired into shipped usage, so no released consumer is affected; the bump staysminor.
-
(all packages) fb7ac35: Tag the
X-YVP-Sdkheader with a-devsuffix for non-published builds so platform telemetry can separate internal YouVersion dev-time traffic from published partner traffic.Published builds report the real version (
ReactSDK=2.2.0); builds from source, dev, or tests reportReactSDK=2.2.0-dev. The version is stamped at build time viaYVP_PUBLISH_BUILD(set by each package'sprepublishOnly), and a publish guard aborts the release if an unstamped-devbuild would ship. Published header values are otherwise unchanged, and consumers can still overrideX-YVP-SdkviaadditionalHeaders.
-
(all packages) 0d184fc: Update the Bible Version picker to match the latest Reader SDK Figma design, adding publisher names and refreshing the abbreviation tile.
@youversion/platform-core: NewOrganizationsClientwithgetOrganization(organizationId)for fetching an organization by its UUID (GET /v1/organizations/{id}), validated against the existingOrganizationSchema. Design tokens use Inter (--yv-font-sans) and Source Serif 4 (--yv-font-serif); the YouVersion brand fonts (Aktiv Grotesk App / Untitled Serif) are reverted pending licensing — seedocs/adr/0001-revert-brand-fonts-pending-licensing.md.@youversion/platform-react-hooks: NewuseOrganization(organizationId)hook (plususeOrganizationsClient) following the standarduseApiDatapattern. Fetching is skipped when the id is empty. Also addsuseOrganizations(organizationIds), which resolves many organizations at once, deduplicated by id, so a list of versions sharing publishers only fetches each organization once.@youversion/platform-react-ui:BibleVersionPickernow renders the publisher name above the version title for versions that have anorganization_id(rows without an associated organization render the title only), and recently used versions persistorganization_idso they display the publisher too. Publisher names are resolved once at the list level viauseOrganizationsinstead of per row, avoiding N+1 requests when many versions share a publisher. TheVersionAbbreviationIcontile now renders as a 64px square with a 6px radius, warm-neutral (secondary) fill, themed border, and serif typography (Source Serif 4) using the foreground text color; recent-version and all-version rows share the same tile styling, and long or trailing-digit abbreviations (e.g.NASB1995→NASB/1995) stay readable without overflowing. Brand fonts (Aktiv Grotesk App / Untitled Serif) are reverted to Inter / Source Serif 4 pending licensing; the brand-font implementation is parked on branchfeat/youversion-brand-fonts.
-
(@youversion/platform-react-ui) 2ba9e6d: Match Book/Chapter picker typography to the Figma design.
BibleChapterPickernow uses the Aktiv Grotesk App brand font (served from the YouVersion CDN): book rows render at 16px regular and bold when expanded, chapter/intro number buttons at 16px bold, and the search input at 16px. Falls back to the default sans font if the webfont fails to load. -
(@youversion/platform-react-ui) ed9eb23: Add language search to
BibleVersionPicker. The language panel now includes a bottom search input that globally filters available languages, shows a no-results empty state, and clears when the panel or popover closes.
-
(@youversion/platform-react-ui) 5b40719: Add a cycling line spacing setting to BibleReader
The Bible theme settings panel now includes a line spacing control that cycles through three presets (small
1.45, default1.7, large2.0) on each press. The selection persists tolocalStoragewhen uncontrolled.BibleReader.RootgainslineSpacing,defaultLineSpacing, andonChangeLineSpacingprops for controlled/uncontrolled usage. The existinglineHeightprop is deprecated but still honored as the initial line spacing, so this change is backward compatible; it will be removed in the next major.
- (@youversion/platform-react-ui) f2c83cf: VerseOfTheDay now shows the Bible reference directly under the "Verse of the Day" label in foreground text instead of below the verse body. BibleCard and VerseOfTheDay no longer display inline verse numbers in passage text.
- (@youversion/platform-react-ui) dd83b33: BibleReader now keeps the previous chapter's text on screen while the next chapter loads, dimming it and floating a spinner over it (after a short delay) instead of pulsing stale text or flashing a blank spinner. Fast/cached chapter switches stay instant, the scroll position resets to the top on chapter change, and the
useDelayedLoadinghelper is shared with BibleCard. No changes to BibleTextView.
-
(all packages) b8309a4: Stop persisting the ID token and harden the auth flow against stale/exposed state.
The ID token is now decoded once at sign-in to derive the user profile and then discarded — only the decoded profile is persisted (validated with Zod on read), so it survives reloads without keeping the signed token in
localStorage. The stored profile is cleared on sign-out and when a session expires and cannot be refreshed.Additional hardening:
- The raw ID token is no longer attached to the sign-in result. It is decoded transiently at sign-in to derive the profile and then discarded, so callback consumers can no longer read it from memory.
YouVersionAPIUsers.getStoredUserInfo()now returnsnullwhen the persisted profile has noid, so a tampered or empty stored profile cannot present as a signed-in user with an empty profile.YouVersionAPIUsers.handleAuthCallback()now clears persisted tokens and the stored profile if an error is thrown after they were written, so a failed callback cannot leave the user looking authenticated.
Breaking changes:
AuthenticationState.idTokenhas been removed. Components that readauth.idTokenfromuseYVAuth()should no longer rely on it; useuserInfofor profile data.SignInWithYouVersionResult.idTokenhas been removed. The result returned byhandleAuthCallback()(andprocessCallback()inuseYVAuth) no longer exposes the ID token; useuserInfo/yvpUserIdfor profile data.YouVersionPlatformConfiguration.saveAuthData(accessToken, refreshToken, expiryDate)no longer accepts anidTokenargument.YouVersionPlatformConfiguration.idTokengetter has been removed. The decoded profile is available viaYouVersionPlatformConfiguration.storedUserInfo(orYouVersionAPIUsers.getStoredUserInfo()).YouVersionAPIUsers.refreshTokens()no longer requires a stored ID token.
-
(all packages) 52aa3b4: Remove deprecated APIs and tighten
BibleIndextypes (breaking changes).This major release removes APIs that were previously marked
@deprecated, plus one type-only tightening. Migration steps below.1.
YouVersionAuthButton— removed theredirectUrlpropSet the OAuth callback URL once on the provider instead. The per-call
signIn({ redirectUrl })escape hatch inuseYVAuthis unchanged.- <YouVersionProvider appKey="..."> - <YouVersionAuthButton redirectUrl="https://myapp.com/callback" /> + <YouVersionProvider appKey="..." authRedirectUrl="https://myapp.com/callback"> + <YouVersionAuthButton /> </YouVersionProvider>
2.
BibleWidgetView— removedThe deprecated alias is gone. Use
BibleCard/BibleCardProps(same component, renamed).- import { BibleWidgetView, type BibleWidgetViewProps } from '@youversion/platform-react-ui'; + import { BibleCard, type BibleCardProps } from '@youversion/platform-react-ui';
3. Unused hooks and contexts — removed
These had zero consumers. Removed from
@youversion/platform-react-hooks:useInitData— useuseVersion,useBook, anduseChapterdirectly.useChapterNavigation— usegetAdjacentChapterfrom@youversion/platform-core.useVerseSelection,VerseSelectionProvider,VerseSelectionContext— no replacement; handle verse selection via your own props/callbacks.ReaderProvider,ReaderContext,useReaderContext— no replacement.DEFAULT(the{ VERSION, BOOK, CHAPTER }constant exported alongsideuseInitData) was removed with it. If you relied on it, inline the values or useDEFAULT_LICENSE_FREE_BIBLE_VERSIONfrom@youversion/platform-corefor the version.
4.
BibleIndex—passage_idis now requiredpassage_idonBibleIndexChapterandBibleIndexVerseis no longer optional. The API has always returned it; the Zod schema now enforces this at runtime as well, so consumers who relied on the optional field in mock/fixture objects must addpassage_idto any such literals.BibleIndexBook.introremains optional.
- (@youversion/platform-react-hooks) 97b9b6b: Sort Bible versions alphabetically in BibleVersionPicker after language, search, and recent-version filters. Uses stable English locale collation for consistent ordering across environments.
- (@youversion/platform-core) ead1c34: Sync core schemas/types with the latest OpenAPI spec:
- Add
passage_id(optional) toBibleIndexChapterandBibleIndexVerse, and an optionalintrotoBibleIndexBook(newBibleIndexBookIntrotype).passage_idis typed optional to stay non-breaking for consumers who construct these objects; it will become required in the next major. - Relax
BibleVersion.publisher_urlto a plain string (the API may return an empty string). - Add new public resource types:
Organization/OrganizationAddress,Video/VideoPlaybackSource/VideoThumbnail,Font/FontVariant/FontSource,License, andAppSummary.
- Add
-
(@youversion/platform-react-ui) 789892f: Center card content within full-width BibleCard and VerseOfTheDay layouts.
-
(@youversion/platform-react-ui) b5f42ff: Add optional
onShareandVerseOfTheDayShareDatatoVerseOfTheDayfor native host share flows.
-
(all packages) 02c2330: Add
X-YVP-Sdkheader to every API call and let consumers override headers- New
X-YVP-Sdk: ReactSDK={version}header sent on every request alongsideX-YVP-App-Key. The version is imported directly frompackages/core/package.jsonand inlined by the bundler at build time. SDK_VERSION,SDK_NAME, andSDK_VERSION_HEADER_NAMEexported from@youversion/platform-core.ApiConfiggains an optionaladditionalHeadersmap that is merged into every request. Keys here override the SDK's built-in headers, so wrappers (e.g. the React Native Expo SDK) can replaceX-YVP-Sdkwith their own identifier.YouVersionProvidergains anadditionalHeadersprop that flows through context to every hook-builtApiClient.
- New
-
(@youversion/platform-react-ui) 3758009: Add optional
onFootnotePresscallback toBibleCardfor custom footnote handling (same pattern asBibleReader).
- (@youversion/platform-react-ui) 8b5bf45: Add
onVersionPickerPressescape-hatch prop toBibleReader.RootandBibleCard, and makeBibleCard.versionIdcontrollable.BibleReader.RootacceptsonVersionPickerPress?: (data: BibleVersionPickerPressData) => void, threaded through context to Toolbar and then to the internalBibleVersionPicker.Root— suppresses the default popover when providedBibleCardacceptsonVersionPickerPress,defaultVersionId, andonVersionChange;versionIdis now optional and usesuseControllableStatefor controlled/uncontrolled supportBibleVersionPicker.RootguardsisPopoverOpenstate when escape hatch is active, movesfilteredRecentVersionsto context to eliminate duplication betweenContentandBibleVersionPickerLanguageTriggerBibleChapterPicker.RootguardsisPopoverOpenstate whenonChapterPickerPressis activeBibleWidgetViewkept as a deprecated alias forBibleCardBibleVersionPickerPressDatatype exported:{ versionId: number; languageId: string }
- (@youversion/platform-react-ui) 0286f7f: Add
onSelectcallback toBibleChapterPicker.ContentandonChapterPickerPresstoBibleReader.RootBibleChapterPickerSelectDatatype exported foronSelectpayloadonSelectprop onContentfires after internal state updates, beforeonRequestCloseonChapterPickerPressprop onBibleReader.Rootthreaded through context toToolbar, suppressing default popover when provided
- (all packages) 8ba253e: Replace module-level injectStyles() side effect with React 19 style precedence hoisting via YouVersionProvider. Add static CSS export at @youversion/platform-react-ui/styles.css for non-React consumers.
- (@youversion/platform-react-ui) c1b9968: Fixed a UI bug on the
BibleVersionPickercomponent where switching to the language picker view would result in the scrollable contents overflowing off of the view container.
-
(@youversion/platform-react-ui) 7a0a468: Add advanced Bible version picker composition surfaces for Expo DOM integrations.
-
(@youversion/platform-react-ui) d77c19e: Expose
BibleThemeSettingsContentand add optionalonOpenBibleThemeSettingsonBibleReader.Toolbarwith a serializableBibleThemeSettingsSnapshotpayload for Expo DOM hosts. ExportBIBLE_READER_FONT,clampBibleReaderFontSize,nextBibleReaderFontSizeUp, andnextBibleReaderFontSizeDownso native can apply edits without closure payloads. Add optional controlled typography onBibleReader.RootviafontSize/fontFamilywithonFontSizeChange/onFontFamilyChange(anddefaultFontSize/defaultFontFamilyfor defaults).
- (@youversion/platform-react-ui) e5a8681: Export
BibleChapterPicker.Contentfor standalone rendering and addonChapterPickerPressto intercept trigger presses (e.g. to render picker content in a native bottom sheet instead of a popover).
- (@youversion/platform-react-ui) 2d26bf0: Add
onFootnotePresscallback prop toBibleTextView,Verse.Html, andBibleReader.Root. When provided, suppresses the Radix popover and calls the callback with a serializableFootnoteDatapayload. ExportFootnoteContentcomponent for rendering footnote data standalone (e.g. inside an Expo DOM component). Exports newFootnoteDataandFootnoteContentPropstypes.
- (@youversion/platform-core) da88c10: Tolerate runtimes without
crypto.randomUUIDby falling back to a non-secure timestamp+random installation id.
- (@youversion/platform-core) 48a86d2: fix(core): decode JWT payload claims as UTF-8 to prevent mojibake in non-ASCII user names.
-
(@youversion/platform-core) ad87585: Add i18next internationalization support with one extractable string ("Verse of The Day"). Adds i18next as a dependency. The SDK creates an isolated i18next instance (no global singleton mutation) and falls back to English by default.
-
(@youversion/platform-react-hooks, @youversion/platform-react-ui) ad87585: Add i18next internationalization support with one extractable string ("Verse of The Day"). Adds i18next and react-i18next as dependencies. The SDK creates an isolated i18next instance (no global singleton mutation) and falls back to English by default.
-
(all packages) fda3609: fix(ui): preserve API order for suggested languages in BibleVersionPicker
-
(all packages) c47ab70: chore(ui): upgrade Storybook to 10.3.5 and bump MSW deps
- (all packages) 7eaf380: Fixed some UI bugs that caused the Bible Reader toolbar and its popovers to overflow past the width of the screen on mobile.
- (all packages) 203a28b: fix(ui): show specific Bible passage error messages
-
(all packages) b8b5cf0: Fixed hooks package bundling to produce proper CJS and ESM outputs, resolving import failures in strict ESM runtimes like Deno.
-
(all packages) 2a64020: Updated the Bible App logo on the BibleCard and VerseOfTheDay React components to the latest designs.
- (all packages) ff14f28: We've moved our theme, fonts, and Bible CSS from the React package into our core JS package to make it more framework agnostic so that consumers using any web framework can include our CSS without the React peer dependency.
-
(@youversion/platform-core, @youversion/platform-react-ui) 87ad436:
@youversion/platform-core: AddtransformBibleHtml— a runtime-agnostic Bible HTML transformer with new/browserand/serversubpath exports.@youversion/platform-core— runtime-agnostic core; acceptsparseHtml/serializeHtmladapters so it works with any DOM implementation@youversion/platform-core/browser— zero-config convenience wrapper using the nativeDOMParser@youversion/platform-core/server— zero-config convenience wrapper usinglinkedom(optional peer dependency)
The transformer sanitizes API HTML (custom allowlist-based sanitizer, no DOMPurify dependency), wraps verse content for CSS targeting, and embeds footnote data as
data-verse-footnote/data-verse-footnote-contentattributes directly in the HTML.@youversion/platform-react-ui: Migrate Bible HTML transformation from the UI package to@youversion/platform-core/browser.- Removed
isomorphic-dompurifydependency (lighter bundle) - Footnote popover data is now read from DOM attributes at render time instead of a separate data structure
- Added SSR safety guard —
Verse.Htmlreturns raw HTML during server rendering and transforms on the client after hydration
- (all packages) dd52fbe: fix: use spinner icon instead of "Loading..." text in Bible version button
-
(all packages) e895fd0: Remove shadow from VerseOfTheDay card, add loading spinner with animated height transition, and match width approach to BibleCard for consistency.
Replaced Verse.HTML in the VerseOfTheDay component with BibleTextView in favor of the baked-in error state when a Bible Verse cannot load for any reason.
BibleTextView now is now a forwardRef component, enabling users to pass in a React ref.
-
(all packages) bcfb868: Fix SDK styles overriding consumer app CSS by wrapping all styles in custom @layer directives (yv-sdk-*). Declares Tailwind v4's standard layer names (theme, base, components, utilities) before SDK layers to establish cascade priority: consumer Tailwind layers < SDK layers < consumer unlayered CSS. This prevents SDK resets and utilities from bleeding into consumer apps while protecting SDK components from consumer Tailwind styles.
Fixed a styling bug in the BibleReader.Toolbar when the user is signed in, so that the avatar button is circular versus oblong.
Fixed the BibleReader.Toolbar's popover button for sign in and sign out to respect dark/light modes and to close the popover when clicked.
-
(all packages) 030e297: Deprecates hooks and providers that are not used by the UI package or any known consumers. These were inherited from a hackathon project and never adopted. These will be fully removed in the next major version bump.
Deprecated:
useInitData— convenience wrapper overuseVersion,useBook,useChapterthat loses error granularity, dropsrefetch, and has zero consumers. Use the three hooks directly.useChapterNavigation— coupled toReaderProviderwhich nobody uses. The UI package callsgetAdjacentChapterfrom core directly.ReaderProvider,ReaderContext,useReaderContext— the UI package built its ownBibleReaderContextinstead. Zero consumers.VerseSelectionProvider,VerseSelectionContext,useVerseSelection— the UI package handles verse selection via props/callbacks. Zero consumers.
- (all packages) 325dff9: BibleCard now animates content height transitions when loading new data instead of flashing and abruptly resizing
- (all packages) b8c6e1b: In our BibleCard component, we've added an error UI to make it more clear when an error has occurred fetching the Bible verse.
- (all packages) a7100fd: We've added support for footnotes in Bible book introduction chapters. This is a rare occurance, but an example can be found in Joshua's introduction chapter when using the TPT Bible Version
- (all packages) c3d673e: added error ui for faild verses
- (all packages) a5f91bf: Add cross-book chapter navigation to Bible Reader toolbar with prev/next buttons, intro chapter support, and accessible aria-labels
- (all packages) 1c9d542: We've added support for rendering Bible introduction chapters (e.g., JHN.INTRO) in the Bible Reader component
- (all packages) aa31bd7: Fixed a styling bug on the BibleReader.Toolbar component. When auth was disabled in the YouVersionProvider, then it caused a layout issue on the toolbar.
- (all packages) c030f6c: fix mixed font family in footnotes popover
- (all packages) 0fb1d86: Rename
BibleWidgetViewtoBibleCard. The oldBibleWidgetViewcomponent andBibleWidgetViewPropstype are still exported but marked as@deprecatedand will be removed in a future major version.
- (all packages) b8aedbb: Fix Bible Version Picker search input retaining stale text after selecting a version or closing the popover. Search state now resets on version selection and on popover close.
-
(all packages) 60cffb9: Fix PopoverTrigger components to use 'asChild' prop to avoid console warnings
-
(all packages) 3e1c3dc: Refactor verse footnote extraction and rendering for clarity and correctness
- Replace TreeWalker-based footnote extraction with clone-and-transform approach
- Move HTML transformation pipeline into
verse-html-utils.tsastransformBibleHtml - Fix space insertion between element siblings when footnotes are removed
- Fix footnote marker/label mismatch for verses with >26 footnotes
- Simplify
BibleTextHtmlhooks and use ReactonClickinstead of manual event listeners - Use
useMemofor synchronous HTML transformation instead ofuseEffect+useState
- (all packages) ee7a69b: Fix Tailwind preflight CSS leaking globally into consumer apps. The unscoped
@import 'tailwindcss/preflight.css'was resetting styles on all elements (h1–h6 font size/weight, margins, padding, list styles, etc.) across the entire page. Preflight resets are now scoped to[data-yv-sdk]so they only apply inside SDK components.
- (all packages) 0987b6c: This change fixes a bug where the serif font failed to render properly in the Bible reader.
- (all packages) 51d97e5: Standardized our default Bible Version to one that does not require opt-in license to use, so that our components work out of the box by default
- (all packages) 2d2c597: Added 'system' as an option to YouVersionProvider theme prop that resolves via
prefers-color-schemewith live OS change listener
- (all packages) d5579d5: Add suggested languages to Bible version picker
- Auto-detect user's preferred language from browser settings instead of defaulting to English
- Display suggested languages based on available Bible versions and user locale
- Fetch complete language data with display names for better internationalization
- Add integration tests and Storybook stories for suggested languages functionality
- (all packages) ad912db: Fix broken bible reader when auth is disabled.
- (all packages) 165feca: Fix user settings from localStorage not loading in the bible reader
- (all packages) 1bafe50: Add all_available and fields parameters to getVersions api call in core package and useVersions in hooks package.
- (all packages) a3efcc9: Add fields query param to the getLanguages api in core package
- (all packages) ce3e92e: This PR adds verse selection and highlighting to the Bible reader component, preparing the way for highlights. It also includes infrastructure fixes for Storybook test stability in CI.
- (all packages) d7fb66a: Replace lucide-react icons dependency with custom SVG icon components to reduce the size of our platform-react-ui bundle
- (all packages) b4da78d: YouVersionAuthButton redirectUrl prop is now optional.
- (all packages) d4b0071: feat(hooks): Add useLanguage hook to retrieve a language from api
- (all packages) 607be3c: Refactor verse HTML transformation to support verse-level highlighting. Extract HTML processing logic to
verse-html-utils.tswith newwrapVerseContent()function that wraps verse content in CSS-targetable<span class="yv-v">elements. Simplify footnote extraction using wrapped verse structure. Remove CSS rule preventing text wrapping. Add comprehensive test coverage for verse wrapping behavior.
- (all packages) 45516c2: Add recently used versions to the Bible Version Picker
- Display up to 3 recently selected Bible versions at the top of the picker
- Persist recent version selections in localStorage
- Recent versions are searchable and excluded from the main "All Versions" list
- (all packages) a3e357e: feat(ui, hook): add sign in/out to bible reader
- Add sign in/out functionality to the BibleReader component
- Refactor auth hooks so redirectUri is optional (can be inferred from provider)
- New icons: gear.tsx and person.tsx for settings/auth UI
- (all packages) 694325f: Removing CSS layers approach to prevent CSS conflicts when our components are added to existing apps with global styles.
- (all packages) 3f69494: Refactors footnotes implementation to use React portals, improves HTML sanitization, and fixes footnote popover behavior.
- (all packages) b0d9f87: feat(ui): add dark mode theme support to BibleTextView and BibleReader
- Add theme prop (light/dark) to BibleTextView for text theme control
- Implement theme inheritance from YouVersionProvider via useTheme hook
- Add data-yv-sdk and data-yv-theme attributes for CSS styling
- Pass theme prop from BibleReader to BibleTextView
- Add yv:bg-background wrapper to all BibleTextView Storybook stories
- Rename prop from 'background' to 'theme' for semantic clarity
- (all packages) d0d596c: feat(ui): update Bible version picker to fit container bounds
- (all packages) 6ff47de: feat(core): add pagination to the getVersions endpoint
- update tests to ensure that proper amount of responses are returned based on the page_size query param.
- add the ability to specify a page_size to fetch a specific number of items at a time.
- (all packages) 8275a27: feat(ui): add bible reader settings
- refactor popover component to have consistent styling across multiple components and reduce duplication in code.
- add bible reader settings and save the users settings to localStorage.
-
(all packages) b2b86c2: Add support for array query parameters in API client and improve language range handling
- API Client: Enhanced query string serialization to support array parameters, properly formatting them as repeated keys (e.g.,
?param=one¶m=two) - Bible Client: Updated
getVersions()method to accept either a single language range string or an array of language ranges, providing more flexibility for filtering Bible versions - Schema: Renamed language range schema to use plural naming convention for consistency
- Testing: Added comprehensive test coverage for query string building with both scalar and array parameters
This change maintains backward compatibility while providing more flexible API parameter handling.
- API Client: Enhanced query string serialization to support array parameters, properly formatting them as repeated keys (e.g.,
-
(all packages) e845974: fix: make country parameter optional for getLanguages
The country parameter is now optional when fetching languages, allowing developers to retrieve all available languages without filtering by country. This improves developer experience by providing a more flexible API while maintaining backward compatibility for existing code that provides a country filter.
- (all packages) a8a5dd7: feat: Add intro metadata to BibleBook
- Added optional
introfield to BibleBook schema for retrieving book introduction metadata - The intro field includes
id,passage_id, andtitleproperties when available - Simplified type definitions by removing duplicate type files and using Zod schemas as single source of truth
- Updated Bible mocks and tests to cover the new intro field
- Added optional
- (all packages) efb1030: feat(core): make data objects that should be immutable readonly
- changed data types that come from api responses and should not be mutated to be readonly.
- See the documentation on these types, https://developers.youversion.com/sdks/react#referenced-types
- (all packages) 0ae8237: fix: update version apis
- change copyright_short -> copyright in version apis
- change copyright_long -> promotional_content in version apis
- add stories that hit real apis for local testing api changes
- (all packages) 9e53543: Public Beta 1.0 Release
- (all packages) 3d37aee: feat(ui): add learn more link that takes user to bible publishers website on the bottom of the BibleReader
- (all packages) 273105e: fix(ui): BibleTextView now provides footnotes when renderNotes is true
- (all packages) 3a84e32: Add dark mode to the Verse of the Day component and use provider theme
- add dark mode css to the verse of the day component
- utilize the theme on the provider to infer the background color if one is not provided on components.
- (all packages) 6ea85da: fix(ui): fix styling on YouVersionAuthButton and Bible App logo
- (all packages) 8e3a672: fix(ui): fix the css build so that it removes our css from all layers
- this fixes the issue where our sdk css was getting overridden due to the consuming app having css that is unlayered and unlayered css will always take precedence over layered css.
-
(all packages) df2082d: Added version picker functionality to BibleWidgetView component with enhanced UI theming and user experience improvements.
New Features
- BibleWidgetView Version Picker: Added showVersionPicker prop enabling dynamic Bible version switching within the widget
- Enhanced Version Display: Improved version abbreviation presentation (e.g., "KJV1984" displays as "KJV" over "1984" in stacked format)
- Auto-Scroll Navigation: Bible chapter picker now automatically scrolls to and expands the current book when opened
- Added the ability to customize the text on the YouVersionAuthButton
- Add theme to the YouVersionProvider to specify light or dark mode to the SDK
UI/UX Improvements
- Consistent Button Styling: Updated all picker buttons to use secondary variant with bold typography
- Better Theme Support: Added comprehensive dark/light mode theming with data-yv-theme attributes
- Improved Accessibility: Enhanced search functionality with proper ARIA labels
- Cleaner DOM Structure: Simplified component hierarchy by removing unnecessary wrapper elements
- Improve component theming to apply theme to the ui components and improve isolating the sdk css.
-
(all packages) e4f93b6: Update authentication system with enhanced OAuth scopes and API schema alignment
Key Changes:
- Added profile and email scopes to OAuth authentication
- Updated book resource schema to match new API endpoints
- Removed deprecated URLBuilder functionality
Breaking Changes:
- Book Schema: Must use the new updated book schema in any APIs returning bible book data Please enter a summary for your changes.
- (all packages) 93be9ef: Update types, zod schemas, and test mocks for the following updated endpoints:
- get bible books
- get bible chapters
- get bible verses
- (all packages) 6a7b8ba: Upgrade to React 19.1.2 to fix a security vulnerability in React.
-
(all packages) 29b865d: Summary: Add sign-out functionality and refactor authentication system. This includes:
- New sign-out capability on the authentication button
- Rename the SignInButton to YouVersionAuthButton
Breaking changes:
- Button component now includes sign-out functionality
- Must replace old SignInButton with YouVersionAuthButton
-
(all packages) b7e337d: 🔄 Authentication System Overhaul
- Replaced old authentication strategy with new PKCE-based OAuth flow
- Removed AuthenticationStrategy.ts and WebAuthenticationStrategy.ts
- Added SignInWithYouVersionPKCE.ts for secure OAuth implementation
- Enhanced Users.ts with comprehensive auth token management (+469 lines)
🏗️ Context/Provider Architecture Refactor
- Renamed BibleSDKContext/Provider → YouVersionContext/Provider
- Removed UI-level YVPProvider, YVPErrorBoundary
- Added dedicated auth providers: YouVersionAuthProvider and YouVersionAuthContext
- Consolidated authentication logic into hooks package
🪝 New Hooks Implementation
- Added useYVAuth hook for authentication state management
- Updated existing hooks (useBibleClient, useHighlights, etc.) to use new context
- Enhanced configuration management in YouVersionPlatformConfiguration
🔧 Infrastructure Improvements
- Added token refresh capabilities
- Improved memory leak prevention in auth provider
- Enhanced type definitions and exports
Applications using this SDK will need to:
- Update all context/provider imports and names
- Migrate from old authentication patterns to new PKCE flow
- Update provider setup in application roots
- Adjust any direct usage of removed authentication classes
- Update package imports for auth-related functionality
- (all packages) 8518018: fix(ui)!: remove the need to export our css file
- (all packages) ae9c599: chore(build): move tsup to devDependency
- (all packages) 8b2be56: Improve sample code and readmes
- (all packages) 27b32f8: Publish with NPM Token
-
(all packages) 752e0d5: fix(ci): remove registry-url for NPM Trusted Publishing
-
(all packages) 752e0d5: Use npm during the release process to support OIDC.
-
(all packages) 1acb93a: fix(ci): remove registry-url for NPM Trusted Publishing
-
(all packages) 1acb93a: Use npm during the release process to support OIDC.
- (all packages) 7fd89a0: fix(ci): remove registry-url for NPM Trusted Publishing
- (all packages) 2d11ab6: Publishing workflow now uses NPM Trusted Publishing instead of token publishing.
- (all packages) caaf811: fix(ui): add export for BibleWidgetView
- (all packages) e07208d: feat(ui): add share button to verse of the day component
- (all packages) 8dee8f6: chore: allow setting apiHost from React code
- (all packages) 7b652f7: chore(docs): update documentation and readmes, and env var usage
- (all packages) 6764bfe: chore: permit range of React versions
- (all packages) 28b10ed: Configuring initial publish workflow.