chore: version packages#277
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
ec16ac9 to
0e10cf3
Compare
0e10cf3 to
12859bb
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@youversion/platform-core@2.3.0
Minor Changes
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.Authorization: Bearer <token>header instead of alatquery parameterbible_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 onlygetRecentColors()(GET /v1/highlights/recent-colors) toHighlightsClientand exposed it fromuseHighlightsfor building color pickers683c123: 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@2.3.0
Minor Changes
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.Authorization: Bearer <token>header instead of alatquery parameterbible_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 onlygetRecentColors()(GET /v1/highlights/recent-colors) toHighlightsClientand exposed it fromuseHighlightsfor building color pickersab38fb5: 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.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.
Patch Changes
@youversion/platform-react-ui@2.3.0
Minor Changes
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.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.
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.Patch Changes
Greptile Summary
Automated Changesets release PR bumping all three packages (
platform-core,platform-react-hooks,platform-react-ui) from2.2.0to2.3.0in lockstep, satisfying the unified versioning requirement. Changeset source files are deleted as part of the release consumption.platform-core&platform-react-hooks2.3.0: FixesHighlightsClientto match the live API contract (Bearer auth header, correct field names,request_idenvelope, 204 handling, lowercase color normalization), addsgetRecentColors(), and introduces apermissionsparameter to the sign-in flow for data-exchange scopes.platform-react-hooks2.3.0(additional): Surfaces a clear error whenYouVersionProviderreceives a missing or emptyappKey.platform-react-ui2.3.0: Adds the verse action popover toBibleReader(highlight colors, Copy, Share via Web Share API), the missingappKeyUI error state, and the permissions sign-in button prop.Confidence Score: 5/5
Safe to merge — purely automated version management with no code changes.
All three packages are bumped uniformly to 2.3.0, satisfying the unified versioning rule. The diff contains only changelog additions and version field updates in package.json files; the actual feature code was already reviewed and merged into main via the individual changeset PRs. No logic, configuration, or dependency wiring is changed here.
No files require special attention — all changes are generated by the Changesets action.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD CS1[".changeset/fix-highlights-api-contract.md"] -->|consumed| REL CS2[".changeset/missing-app-key-message.md"] -->|consumed| REL CS3[".changeset/request-highlights-permission.md"] -->|consumed| REL CS4[".changeset/verse-action-popover.md"] -->|consumed| REL REL["Changesets Release Action"] --> CORE["@youversion/platform-core\n2.2.0 → 2.3.0"] REL --> HOOKS["@youversion/platform-react-hooks\n2.2.0 → 2.3.0"] REL --> UI["@youversion/platform-react-ui\n2.2.0 → 2.3.0"] CORE -->|workspace:*| HOOKS CORE -->|workspace:*| UI HOOKS -->|workspace:*| UI UI -->|merge triggers| NPM["npm publish (all 3 packages)"]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD CS1[".changeset/fix-highlights-api-contract.md"] -->|consumed| REL CS2[".changeset/missing-app-key-message.md"] -->|consumed| REL CS3[".changeset/request-highlights-permission.md"] -->|consumed| REL CS4[".changeset/verse-action-popover.md"] -->|consumed| REL REL["Changesets Release Action"] --> CORE["@youversion/platform-core\n2.2.0 → 2.3.0"] REL --> HOOKS["@youversion/platform-react-hooks\n2.2.0 → 2.3.0"] REL --> UI["@youversion/platform-react-ui\n2.2.0 → 2.3.0"] CORE -->|workspace:*| HOOKS CORE -->|workspace:*| UI HOOKS -->|workspace:*| UI UI -->|merge triggers| NPM["npm publish (all 3 packages)"]Reviews (5): Last reviewed commit: "chore: version packages" | Re-trigger Greptile
Context used: