Skip to content

feat(consent): add gated script bindings for remaining frameworks - #172

Merged
jamiedavenport merged 1 commit into
mainfrom
issue-159
Aug 2, 2026
Merged

feat(consent): add gated script bindings for remaining frameworks#172
jamiedavenport merged 1 commit into
mainfrom
issue-159

Conversation

@jamiedavenport

Copy link
Copy Markdown
Owner

Summary

  • add GatedScript to the Vue, Solid, and Svelte consent bindings
  • add useConsentStore to Vue and Solid for core free functions such as gateScripts
  • preserve pending queues across same-ID inline definition updates and dispose gates with each framework lifecycle
  • keep every wrapper renderless and inert during SSR
  • document the cross-framework API and add a minor changeset for the three packages

Closes #159

Verification

  • vp run -r build
  • vp check across all repository-tracked and newly added files
  • vp run -r check-types
  • vp run -r test — 1,013 tests passed
  • vp run knip

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
op-demo Building Building Preview Aug 2, 2026 11:40am
openpolicy-sh Ready Ready Preview Aug 2, 2026 11:40am
policystack Ready Ready Preview Aug 2, 2026 11:40am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@jamiedavenport, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 46 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 80022495-c104-4890-9720-4c80704ce713

📥 Commits

Reviewing files that changed from the base of the PR and between 02a36ed and a261eed.

📒 Files selected for processing (20)
  • .changeset/framework-gated-scripts.md
  • apps/web/content/docs/consent/core.md
  • apps/web/content/docs/consent/scripts.md
  • apps/web/content/docs/consent/solid.md
  • apps/web/content/docs/consent/svelte.md
  • apps/web/content/docs/consent/vue.md
  • packages/solid/src/gated-script.test.tsx
  • packages/solid/src/index.test.tsx
  • packages/solid/src/index.ts
  • packages/solid/src/solid-server.d.ts
  • packages/solid/vite.config.ts
  • packages/svelte/src/__tests__/GatedScriptHarness.svelte
  • packages/svelte/src/gated-script.test.ts
  • packages/svelte/src/lib/consent/GatedScript.svelte
  • packages/svelte/src/lib/consent/context.svelte.ts
  • packages/svelte/src/lib/consent/index.ts
  • packages/svelte/src/raw.d.ts
  • packages/vue/src/consent.test.ts
  • packages/vue/src/consent.ts
  • packages/vue/src/gated-script.test.ts

Comment @coderabbitai help to get the list of available commands.

@jamiedavenport
jamiedavenport merged commit 0d15fae into main Aug 2, 2026
6 checks passed
@jamiedavenport
jamiedavenport deleted the issue-159 branch August 2, 2026 11: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.

No way to reach the provider's ConsentStore — gateScript unusable with framework bindings

1 participant