Repository navigation
feat(realtimekit): add bindings for realtimekit - #17161
petebacondarwin merged 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 7c3a81d The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hi @thisisamank. Thanks for taking the time to contribute to Workers SDK. This PR has been automatically closed because you are not currently a registered (vouched) collaborator for this repository. AI tools now let our team generate proposed code changes quickly. Reviewing changes, checking that they solve the right problem, and maintaining code quality over time still take substantial care and effort. We therefore limit PRs to registered collaborators so we can focus that effort where it is most useful. For the majority of external contributors, the most effective way to help is through issues: describing a problem or use case, providing a minimal reproduction, investigating its cause, or helping us verify a fix. Those contributions help us understand what needs to change and are very welcome. We will take an initial look at this PR and decide whether it is something we want to invest time in reviewing and maintaining. We may reopen it if we decide to proceed, but we cannot guarantee that it will be reopened or receive a full review. |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
This pull request's reviews are posted as pull request reviews: see the review of |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
clanker review |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
There was a problem hiding this comment.
✅ Approved — The new binding is wired consistently through config, dev, deploy and type generation, with tests at each layer, and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The changeset bumps every affected package by a minor version, which suits a new, additive binding. No migration is needed.
🔒 Security: ✅ LGTM
No security concerns.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md updates needed.
📋 Code Quality: ✅ LGTM
I followed realtimekit through every place an existing remote-only binding is handled: config, deploy and preview, dev and Miniflare, remote bindings, codemods, wrangler types and @cloudflare/config. It is wired in at every one, and each layer has tests.
⚡ Performance: ✅ LGTM
No performance concerns.
📝 Documentation: ✅ LGTM
The changeset describes the new binding, the remote: true requirement for local development, codemod support and type generation.
Reviewed commit: 7c3a81dd
## pnpm-workspace.yaml (default) ## Dependency Updates | Package | From | To | Type | | --- | --- | --- | --- | | `@cloudflare/vitest-plugin` | 1.9.2 | 1.10.0 | minor | | `@cloudflare/workers-types` | 5.20261125.1 | 5.20261127.1 | minor | | `miniflare` | 5.20261123.1-beta | 5.20261127.0-beta | minor | | `wrangler` | 4.168.0 | 4.169.0 | minor | ## Release Notes <details> <summary><b>@<!---->cloudflare/vitest-plugin</b> (1.9.2 → 1.10.0)</summary> ### Minor Changes - [#17161](cloudflare/workers-sdk#17161) [`e46c7c6`](cloudflare/workers-sdk@e46c7c6) Thanks [@<!---->thisisamank](https://github.com/thisisamank)! - Add RealtimeKit bindings Bind an existing RealtimeKit app to a Worker in your Wrangler configuration file: ```jsonc { "realtimekit": [ { "binding": "RTK", "app_id": "<APP_ID>", "remote": true } ] } ``` RealtimeKit has no local simulator, so set `remote: true` to use the real app during local development. Calls during development, including calls on returned meetings, go through the existing remote bindings proxy. The experimental configuration API supports `bindings.realtimeKit({ id: "<APP_ID>", dev: { remote: true } })`, and the `wrangler-to-cf` codemod converts `realtimekit` entries. Deployments upload only the binding name and `app_id`. `wrangler types` generates `RealtimeKitBinding` for these bindings. ### Patch Changes - [#17203](cloudflare/workers-sdk#17203) [`41bacf7`](cloudflare/workers-sdk@41bacf7) Thanks [@<!---->jamesopstad](https://github.com/jamesopstad)! - Accept `fedramp-high` in `CLOUDFLARE_COMPLIANCE_REGION` `cloudflare.config.ts` writes the FedRAMP High region as `fedramp-high`, but `CLOUDFLARE_COMPLIANCE_REGION` only accepted `fedramp_high` and rejected the other spelling with `Expected "fedramp-high" to be one of ["public","fedramp_high"]`. Both spellings are now accepted and mean the same region, so a value copied from `cloudflare.config.ts` into `CLOUDFLARE_COMPLIANCE_REGION` works. - [#17140](cloudflare/workers-sdk#17140) [`b645124`](cloudflare/workers-sdk@b645124) Thanks [@<!---->dependabot](https://github.com/apps/dependabot)! - Update `DEFAULT_COMPAT_DATE` to 2026-11-24 Use the bundled …[full notes](https://github.com/cloudflare/workers-sdk/releases/tag/%40cloudflare/vitest-plugin%401.10.0) </details> <details> <summary><b>miniflare</b> (5.20261123.1-beta → 5.20261127.0-beta)</summary> ### Minor Changes - [#17161](cloudflare/workers-sdk#17161) [`e46c7c6`](cloudflare/workers-sdk@e46c7c6) Thanks [@<!---->thisisamank](https://github.com/thisisamank)! - Add RealtimeKit bindings Bind an existing RealtimeKit app to a Worker in your Wrangler configuration file: ```jsonc { "realtimekit": [ { "binding": "RTK", "app_id": "<APP_ID>", "remote": true } ] } ``` RealtimeKit has no local simulator, so set `remote: true` to use the real app during local development. Calls during development, including calls on returned meetings, go through the existing remote bindings proxy. The experimental configuration API supports `bindings.realtimeKit({ id: "<APP_ID>", dev: { remote: true } })`, and the `wrangler-to-cf` codemod converts `realtimekit` entries. Deployments upload only the binding name and `app_id`. `wrangler types` generates `RealtimeKitBinding` for these bindings. ### Patch Changes - [#17182](cloudflare/workers-sdk#17182) [`07d2051`](cloudflare/workers-sdk@07d2051) Thanks [@<!---->danlapid](https://github.com/danlapid)! - Fix local Artifacts sometimes failing to start with `ERR_ADDRESS_IN_USE` Miniflare chose a free port for an Artifacts namespace's Git remote, released it, and had workerd bind it later, so another process could take the port in between. Miniflare now keeps listening on the Git port itself and forwards connections to workerd. Existing clones keep working: a namespace's Git remote still uses the port it had last time while that port is free, and now also keeps it across configuration reloads. - [#17140](cloudflare/workers-sdk#17140) [`b645124`](cloudflare/workers-sdk@b645124) Thanks [@<!---->dependabot](https://github.com/apps/dependabot)! - Update `DEFAUL …[full notes](https://github.com/cloudflare/workers-sdk/releases/tag/miniflare%405.20261127.0-beta) </details> <details> <summary><b>wrangler</b> (4.168.0 → 4.169.0)</summary> ### Minor Changes - [#17183](cloudflare/workers-sdk#17183) [`ebc7b50`](cloudflare/workers-sdk@ebc7b50) Thanks [@<!---->gpanders](https://github.com/gpanders)! - Accept `linux/arm64` images in `wrangler containers push` and `wrangler containers build` `wrangler containers push` now accepts local images built for `linux/amd64` or `linux/arm64`. `wrangler containers build --platform` accepts the same two platforms. The default platform is still `linux/amd64`. - [#17088](cloudflare/workers-sdk#17088) [`43da328`](cloudflare/workers-sdk@43da328) Thanks [@<!---->efalcao](https://github.com/efalcao)! - Add the `oidc_tokens` binding An OIDC token binding issues short-lived OpenID Connect tokens for the Worker's own identity, for one audience. Exchange them for cloud credentials, or send them to an API as a bearer token, instead of storing long-lived credentials as secrets: ```jsonc "oidc_tokens": [{ "binding": "API_TOKEN", "audience": "https://api.example.com" }] ``` `env.API_TOKEN.getToken()` returns a newly signed JWT. Set `"alg": "RS256"` for verifiers that don't accept the default, ES256. Wrangler validates the audience (1 to 2048 printable ASCII characters, no whitespace), uploads the binding, generates its `OidcTokenBinding` type, and prints it in the bindings table. After a deploy, `wrangler deploy` prints the issuer and subject to put in the verifier's trust policy. The subject contains the Worker's immutable ID, which the deploy output doesn't otherwise show. The binding isn't available in local development yet. Accounts must be enabled for the binding before they can deploy it. - [#17161](cloudflare/workers-sdk#17161) [`e46c7c6`](cloudflare/workers-sdk@e46c7c6) Thanks [@<!---->thisisamank](https://github.com/thisisamank)! …[full notes](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.169.0) </details> --- *This PR was auto-generated by [catalog-update-action](https://github.com/brandhaug/catalog-update-action).* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Fixes JIRA issue: RTK-8753
Related PR: #16745
This PR introduces a
realtimekitbinding, so a Worker can bind to an existing RealtimeKit app:{ "realtimekit": [{ "binding": "RTK", "app_id": "<APP_ID>", "remote": true }], }A picture of a cute animal (not mandatory, but encouraged)