Skip to content

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

Open
ascorbic wants to merge 1 commit into
mainfrom
fix/create-pds-space-do-exports
Open

fix(create-pds): export Space Durable Objects from template worker#248
ascorbic wants to merge 1 commit 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

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 5ce359c Sep 12 2026, 05:11 PM

@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: 5ce359c

@cloudflare-workers-and-pages

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 5ce359c Commit Preview URL

Branch Preview URL
Sep 12 2026, 05:12 PM

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