Skip to content

Fix casing for RealtimeKit bindings in config - #17168

Merged
jamesopstad merged 1 commit into
mainfrom
james/config-realtime-kit-naming
Nov 25, 2026
Merged

jamesopstad merged 1 commit into
mainfrom
james/config-realtime-kit-naming

Conversation

@jamesopstad

@jamesopstad jamesopstad commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fix casing for RealtimeKit bindings in config.

{ type: "realtimekit" } -> { type: "realtime-kit" }
bindings.realtimekit() -> bindings.realtimeKit()

#17161 is merged but not yet released.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: current undocumented

A picture of a cute animal (not mandatory, but encouraged)


Devin Review

@changeset-bot

changeset-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5f6113a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 17 packages
Name Type
wrangler Minor
miniflare Minor
@cloudflare/config Minor
@cloudflare/workers-utils Minor
@cloudflare/deploy-helpers Minor
@cloudflare/codemods Minor
@cloudflare/vite-plugin Minor
@cloudflare/vitest-plugin Minor
@cloudflare/dev-helpers Patch
@cloudflare/pages-shared Patch
@cloudflare/remote-bindings Patch
@cloudflare/runtime-types Patch
@cloudflare/autoconfig Patch
@cloudflare/build-output-utils Patch
@cloudflare/containers-shared Patch
@cloudflare/cli-shared-helpers Patch
@cloudflare/workers-auth Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Nov 25, 2026
@ask-bonk

ask-bonk Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Blocking issue

The config discriminator rename is not propagated to Miniflare, so config-backed local development either fails validation or never creates the RealtimeKit remote proxy.

packages/miniflare/src/config/v4-convert.ts:817

			type: "realtime-kit",

packages/miniflare/src/plugins/realtimekit/index.ts:16

		return getEnvBindingsOfType(options.config, "realtime-kit").map(

packages/miniflare/src/plugins/realtimekit/index.ts:31

			getEnvBindingsOfType(options.config, "realtime-kit").map(([name]) => [

packages/miniflare/src/plugins/realtimekit/index.ts:38

		if (getEnvBindingsOfType(options.config, "realtime-kit").length === 0) {

@ask-bonk

ask-bonk Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

I'm Bonk, and I've done a quick review of your PR. (PR #17168)

Renames RealtimeKit config bindings to kebab-case/camel-case naming.

  1. High Miniflare still uses the old discriminator, breaking RealtimeKit local proxy setup. Suggestions posted: Fix casing for RealtimeKit bindings in config #17168 (comment)

github run

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 potential issues.

Devin Review

Comment thread packages/config/src/schema.ts Resolved
Comment thread packages/config/src/bindings.ts Resolved
Comment thread packages/config/src/bindings.ts Resolved
Comment thread .changeset/realtimekit-bindings.md Resolved
@jamesopstad
jamesopstad force-pushed the james/config-realtime-kit-naming branch from 3c8e3dd to 5f6113a Compare November 25, 2026 13:20
@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@17168

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@17168

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@17168

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@17168

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@17168

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@17168

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@17168

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@17168

miniflare

npm i https://pkg.pr.new/miniflare@17168

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@17168

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@17168

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@17168

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@17168

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@17168

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@17168

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@17168

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@17168

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@17168

wrangler

npm i https://pkg.pr.new/wrangler@17168

commit: 5f6113a

@jamesopstad
jamesopstad marked this pull request as ready for review November 25, 2026 13:31

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — A consistent rename of the experimental config binding type and builder, with tests at every layer it touches. No issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🔒 Security: ✅ LGTM

This only renames a string. It adds no new input handling or entry point and changes no permissions.


📋 Code Quality: ✅ LGTM

The rename to realtime-kit / realtimeKit() is applied the same way in the schema, types, inference, convert functions, the Miniflare plugin and converter, remote-bindings and the codemod. The realtimekit strings that remain belong to the legacy Wrangler config key and the API binding type, and they are correctly left unchanged.


📝 Documentation: ✅ LGTM

The changeset is updated to use the new name. A migration note isn't needed because the previous name was never released.


Reviewed commit: 5f6113a5

@workers-devprod
workers-devprod requested review from a team and petebacondarwin and removed request for a team November 25, 2026 14:40
@workers-devprod

workers-devprod commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Nov 25, 2026
@jamesopstad
jamesopstad merged commit 6416042 into main Nov 25, 2026
103 of 104 checks passed
@jamesopstad
jamesopstad deleted the james/config-realtime-kit-naming branch November 25, 2026 17:42
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants