feat(core): wrap platform-core SearchClient (YPE-5746) - #180
Open
Dustin-Kelley wants to merge 5 commits into
Open
Dustin-Kelley wants to merge 5 commits into
Dustin-Kelley wants to merge 5 commits into
Conversation
This was referenced Sep 10, 2026
Dustin-Kelley
added this pull request to stack #185
September 10, 2026 19:05
Dustin-Kelley
force-pushed
the
ype-5706-search-core-v2
branch
from
September 10, 2026 19:12
e8e5fc0 to
c6436b5
Compare
Dustin-Kelley
marked this pull request as ready for review
September 15, 2026 14:14
Dustin-Kelley
force-pushed
the
ype-5706-search-core-v2
branch
2 times, most recently
from
September 15, 2026 22:07
07c133b to
aa5d572
Compare
YPE-5706: temporary Search HTTP in expo-core until platform-core ships SearchClient. Public hook and types only; wrapper stays internal. Co-authored-by: Cursor <cursoragent@cursor.com>
YPE-5706: hook must throw when used without YouVersionProvider. Co-authored-by: Cursor <cursoragent@cursor.com>
Delete the local Search HTTP client and wrap SearchClient from
@youversion/platform-core 2.13.0. Thrown errors map to the existing
RN Result kinds. Verse hits use id. Query lists are { queries }.
Co-authored-by: Dustin Kelley <Dustin-Kelley@users.noreply.github.com>
The USFM tests already pin verse-only three-segment parsing. The exports tests already pin the public surface. Co-authored-by: Dustin Kelley <Dustin-Kelley@users.noreply.github.com>
Digit-only USFM chapter and verse segments can parse past Number.MAX_SAFE_INTEGER. Require a positive safe integer. Co-authored-by: Dustin Kelley <Dustin-Kelley@users.noreply.github.com>
cursor
Bot
force-pushed
the
ype-5706-search-core-v2
branch
from
September 15, 2026 22:27
aa5d572 to
38e2c40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@youversion/platform-coreSearchClient(YPE-5746), same pattern ascreateHighlightsApi/HighlightsClient.@youversion/platform-coreto2.13.0(core + ui).useSearch+ USFM helper;createSearchApistays internal.id(USFM); query lists are{ queries }.auth/transient/invalid-parameterfor Zod).Contract notes for stacked PRs 182/184
reference→id.SearchQueries({ queries }), not a bare array.nextPageToken/searchInsteadFormay benullfrom platform-core; treat null like “absent” (especially pagination inuseBibleReaderSearch).Test plan
useSearchpublic,createSearchApinot on the package root.id+{ queries }+ null tokens.Greptile Summary
The PR replaces the placeholder Search implementation with a wrapper around platform-core’s SearchClient and exposes the resulting hook, shared DTO types, and USFM conversion helper.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Sequence Diagram
Reviews (5): Last reviewed commit: "fix(core): reject unsafe integers in bib..." | Re-trigger Greptile