Skip to content

fix(create-pds): export Space Durable Objects from template worker - #248

Merged
ascorbic merged 2 commits into
mainfrom
fix/create-pds-space-do-exports
Sep 14, 2026
Merged

ascorbic merged 2 commits into
mainfrom
fix/create-pds-space-do-exports

Conversation

@ascorbic

Copy link
Copy Markdown
Owner

Summary

  • The scaffolded wrangler.jsonc has declared SpaceDurableObject and SpaceIndexDurableObject bindings and migrations since feat(pds): mount atproto spaces behind SPACES_ENABLED #212, but the template worker entry only re-exported AccountDurableObject. Wrangler rejects every fresh deploy with error 10070 (Cannot apply new-class migration to class 'SpaceDurableObject' that is not exported by script).
  • The template src/index.ts now re-exports all three Durable Object classes, matching demos/pds/src/index.ts.
  • Adds a create-pds patch changeset.

Closes #246

Test plan

  • pnpm test in packages/create-pds passes (scaffold e2e).
  • Scaffold a fresh project with create-pds and run wrangler deploy (or --dry-run); the 10070 migration error no longer occurs.

The reporter's follow-ups (making Spaces opt-in while alpha, and a deploy dry run in CI so this drift is caught automatically) are out of scope here and will be handled separately.

The scaffolded wrangler.jsonc declares SpaceDurableObject and
SpaceIndexDurableObject bindings and migrations, but the worker entry
only re-exported AccountDurableObject. Wrangler rejects the deploy with
error 10070 because the migration names a class the script does not
export. The template entry now matches demos/pds.

Closes #246
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
pdscheck ba9b920 Sep 14 2026, 06:23 AM

@pkg-pr-new

pkg-pr-new Bot commented Sep 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-pds@248
npm i https://pkg.pr.new/@getcirrus/oauth-provider@248
npm i https://pkg.pr.new/@getcirrus/pds@248

commit: ba9b920

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cirrusdocs ba9b920 Commit Preview URL

Branch Preview URL
Sep 14 2026, 06:24 AM

@ascorbic
ascorbic enabled auto-merge (squash) September 14, 2026 06:23
@ascorbic
ascorbic merged commit e6703d5 into main Sep 14, 2026
6 checks passed
@ascorbic
ascorbic deleted the fix/create-pds-space-do-exports branch September 14, 2026 06:25
@mixie-bot mixie-bot Bot mentioned this pull request Sep 14, 2026
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.

Space DO bindings in wrangler but not exported

1 participant