Skip to content

Rename web_search binding kind to websearch#14164

Merged
NuroDev merged 1 commit into
cloudflare:mainfrom
G4brym:gmassadas/RAG-1300-rename-web-search-to-websearch
Jun 2, 2026
Merged

Rename web_search binding kind to websearch#14164
NuroDev merged 1 commit into
cloudflare:mainfrom
G4brym:gmassadas/RAG-1300-rename-web-search-to-websearch

Conversation

@G4brym

@G4brym G4brym commented Jun 2, 2026

Copy link
Copy Markdown
Member

What this PR does

Pre-launch rename of the public binding type from web_search to websearch so the on-the-wire shape matches the product name (Web Search). The wrangler config key, the binding-type string sent to the Cloudflare API (in the multipart-upload metadata), and the miniflare option key all move from web_search / webSearch to websearch.

The runtime WebSearch type exposed on env.WEBSEARCH is unchanged — this is purely a config-surface rename.

Update for users

- "web_search": { "binding": "WEBSEARCH" }
+ "websearch": { "binding": "WEBSEARCH" }

  • 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: we will add docs when we release this to the public

Open in Devin Review

Pre-launch rename of the public binding type from 'web_search' to
'websearch' so the on-the-wire shape matches the product name. The
wrangler config key, the binding-type string sent to the Cloudflare
API (in the multipart-upload metadata), and the miniflare option
key all move from web_search / webSearch to websearch.

* workers-utils: rename the 'web_search' binding-kind tag in the
  config schema, validation, type generation, and metadata mapping.
* miniflare: rename the plugin directory web-search/ -> websearch/
  and the WEB_SEARCH_PLUGIN / WebSearchOptionsSchema / option key
  to WEBSEARCH_PLUGIN / WebsearchOptionsSchema / websearch.
* wrangler: update upload-form, type-generation, print-bindings,
  config-diffs, startDevWorker, dev/miniflare, and the websearch
  CLI command module to emit and consume 'websearch' end-to-end.

The runtime WebSearch type exposed on env.WEBSEARCH is unchanged.
@G4brym G4brym requested a review from workers-devprod as a code owner June 2, 2026 18:26
@changeset-bot

changeset-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5c8dd7b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@cloudflare/workers-utils Minor
miniflare Minor
wrangler Minor
@cloudflare/cli-shared-helpers Patch
@cloudflare/deploy-helpers Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch
@cloudflare/pages-shared Patch
@cloudflare/wrangler-bundler Patch

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Jun 2, 2026
@workers-devprod workers-devprod requested review from a team and NuroDev and removed request for a team June 2, 2026 18:27
@workers-devprod

workers-devprod commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@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: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jun 2, 2026

Copy link
Copy Markdown
create-cloudflare

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

@cloudflare/deploy-helpers

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14164

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

@cloudflare/wrangler-bundler

npm i https://pkg.pr.new/@cloudflare/wrangler-bundler@14164

commit: 5c8dd7b

@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 Jun 2, 2026
@NuroDev NuroDev enabled auto-merge (squash) June 2, 2026 19:02
@NuroDev NuroDev merged commit b502d54 into cloudflare:main Jun 2, 2026
66 of 69 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jun 2, 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