Skip to content

IMAGES-2139: update images binding to chainable handle pattern#13128

Closed
mglewis wants to merge 1 commit intocloudflare:mainfrom
mglewis:mattl/IMAGES-2139-chainable-handle
Closed

IMAGES-2139: update images binding to chainable handle pattern#13128
mglewis wants to merge 1 commit intocloudflare:mainfrom
mglewis:mattl/IMAGES-2139-chainable-handle

Conversation

@mglewis
Copy link
Copy Markdown
Member

@mglewis mglewis commented Mar 30, 2026

As per cloudflare/workerd#6288 we are updating the interface of the images binding to use a chainable handle. This change is the counterpart for workers-sdk that uses the new types and implementation.

This change will be taken out of draft after 6288 has been merged, before then we expect CI failures.

Summary of changes

Fixes https://jira.cfdata.org/browse/IMAGES-2139


  • Tests
    • Tests included/updated
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: No docs until general release of the feature

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

- images.worker.ts: replace flat methods with ImageHandleImpl (RpcTarget)
  and synchronous image(imageId) factory on the service entrypoint
- index.spec.ts: update tests to use new handle API
- ts-expect-error annotations pending workerd PR cloudflare#6288 types landing
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 30, 2026

🦋 Changeset detected

Latest commit: ad26e7c

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

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 30, 2026

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: ad26e7c

@ascorbic
Copy link
Copy Markdown
Contributor

ascorbic commented Apr 2, 2026

Hey @mglewis The types update is in #13241, which depends on this. Can this be makde ready to review? You might need to bring those types in in the same PR.

@petebacondarwin
Copy link
Copy Markdown
Contributor

Bundling these changes into #13241

@github-project-automation github-project-automation bot moved this from Untriaged to Done in workers-sdk Apr 5, 2026
@mglewis
Copy link
Copy Markdown
Member Author

mglewis commented Apr 7, 2026

Hi folks, sorry for missing this one. Thanks for cleaning up my mess for me 🙇

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.

4 participants