Skip to content

08 Add provider-neutral data and state binding contracts - #44

Merged
artiphishle merged 7 commits into
mainfrom
feat/data-state-value-sources
May 16, 2026
Merged

08 Add provider-neutral data and state binding contracts#44
artiphishle merged 7 commits into
mainfrom
feat/data-state-value-sources

Conversation

@artiphishle

Copy link
Copy Markdown
Contributor

Summary

  • adds provider-neutral binding contracts for manifest node props
  • adds BindingValueSource for literal, state, context, event, and db.collection sources
  • adds DbCollectionQueryBinding reusing DbFilter, DbSort, and DbPage
  • supports refresh intent through static, focus, poll, and live
  • adds UiNode.bindings?: readonly NodePropBinding[]
  • exports the contracts from root and the @ankhorage/contracts/bindings subpath
  • adds tests for:
    • a node prop bound to state
    • a node prop bound to a DB collection query
    • literal/context/event value sources
    • refresh intent modes
  • adds a changeset

Closes #35.

Notes

This remains provider-neutral and state-engine-neutral. It does not import runtime, ZORA, Supabase, Legend State, React Query, Zustand, SWR, or React.

Verification

Please run locally:

bun run build
bun run lint:fix
bun run test
bun run knip

I could not run local verification from this environment.

@artiphishle artiphishle self-assigned this May 16, 2026
@artiphishle
artiphishle merged commit e70556e into main May 16, 2026
1 check passed
@artiphishle
artiphishle deleted the feat/data-state-value-sources branch May 16, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

08 Add provider-neutral data and state binding contracts

1 participant