Skip to content

chore(deps): update Cloudflare toolchain catalog (workers-types v5) - #2001

Merged
ascorbic merged 2 commits into
feat/plugin-registry-labelling-servicefrom
chore/bump-cloudflare-catalog
Jul 13, 2026
Merged

ascorbic merged 2 commits into
feat/plugin-registry-labelling-servicefrom
chore/bump-cloudflare-catalog

Conversation

@ascorbic

@ascorbic ascorbic commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Updates the Cloudflare toolchain entries in the pnpm catalog:

package from to
@cloudflare/workers-types ^4.20260305.1 ^5.20260712.1
@cloudflare/vitest-pool-workers ^0.16.3 ^0.18.4
@cloudflare/vite-plugin ^1.36.3 ^1.44.0
wrangler ^4.99.0 ^4.110.0

workers-types crosses a major (v4 → v5); the whole monorepo typechecks clean against it (all 29 packages, including packages/cloudflare, apps/labeler, packages/workerd), so there are no type-surface breaks to migrate. wrangler 4.110 pulls [email protected] transitively; the labeler test suite (which runs on the workerd pool) passes on the new binary.

@cloudflare/kumo is pinned deliberately (build/runtime must match — see the catalog comment) and is left untouched. @astrojs/cloudflare is left as-is (Astro-published adapter, not a Cloudflare type package).

workers-types is pinned to 5.20260712.1 rather than the newest daily snapshot because the repo's minimumReleaseAge guard holds back builds published within the last day.

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion

Tests/i18n/Discussion n/a — this is a dev-toolchain catalog bump only. Changeset n/a — the bumped packages are all dev tooling (workers-types, wrangler, vite-plugin, vitest-pool-workers); no published package's runtime dependencies change.

AI-generated code disclosure

  • This PR includes AI-generated changes — model/tool: Claude Code with Claude Opus 4.8

Screenshots / test output

  • pnpm typecheck (monorepo): clean on workers-types v5
  • pnpm --filter @emdash-cms/labeler test: 211 pass (exercises the workerd pool on [email protected])
  • pnpm lint:json: 0 diagnostics

Try this PR

Open a fresh playground →

A full working EmDash site, deployed from this branch. Each visit gets its own session-scoped sandbox: no login needed and no shared state. Try the admin, edit content, hit the public site.

Tracks chore/bump-cloudflare-catalog. Updated automatically when the playground redeploys.

Bump the Cloudflare catalog entries: workers-types 4.x -> 5.20260712.1,
wrangler 4.99 -> 4.110, @cloudflare/vite-plugin 1.36 -> 1.44,
@cloudflare/vitest-pool-workers 0.16 -> 0.18 (pulling workerd 1.20260708).
Kumo is pinned and left untouched. Monorepo typechecks clean on
workers-types v5.
@changeset-bot

changeset-bot Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b891c58

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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-actions github-actions Bot added review/needs-review No maintainer or bot review yet size/L cla: signed labels Jul 13, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 13, 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
emdash-demo-cache b891c58 Jul 13 2026, 05:51 AM

@emdashbot emdashbot 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.

This is a focused, appropriate maintenance change: bumping the Cloudflare toolchain through the pnpm catalog is exactly the right way to keep the monorepo on a single toolchain version, and leaving @cloudflare/kumo pinned and @astrojs/cloudflare untouched is consistent with the existing comments and PR description.

I checked the catalog entries in pnpm-workspace.yaml, the lockfile churn, the published-package peer-dependency range in packages/cloudflare (>=4.0.0, which v5 satisfies), and all non-catalog references to the four bumped packages.

Headline conclusion: the catalog is updated correctly, but the PR is incomplete because two workspace packages still pull the old versions of the bumped tools from outside the catalog. As a result, pnpm-lock.yaml retains [email protected] and @cloudflare/[email protected], so the monorepo is running a mixed Cloudflare toolchain despite the catalog bump. The fixes are one-line catalog substitutions.

No source-code, API, localization, or SQL concerns. No changeset is needed because no published package's runtime/peer dependency surface changes.


Findings

  • [needs fixing] packages/blocks/playground/package.json:26

    This package still depends on wrangler outside the catalog (^4.63.0), so it resolves to [email protected] while the rest of the workspace is on the catalog's ^4.110.0. This leaves an old wrangler/workerd binary in the lockfile and defeats the goal of a unified Cloudflare toolchain bump.

        "wrangler": "catalog:"
    
  • [needs fixing] packages/plugins/ai-moderation/package.json:33

    This plugin hard-codes @cloudflare/workers-types@^4.20250224.0 instead of using the catalog, so it stays on the v4 type snapshot (4.20260305.1) while the rest of the monorepo moves to v5. Since the PR is specifically updating workers-types across the catalog, this package should participate via catalog: as well (the plugin already uses catalog: for @cloudflare/kumo).

    		"@cloudflare/workers-types": "catalog:",
    

@github-actions github-actions Bot added review/awaiting-author Reviewed; waiting on the author to respond and removed review/needs-review No maintainer or bot review yet labels Jul 13, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 13, 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
emdash-playground b891c58 Jul 13 2026, 05:50 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 13, 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
emdash-demo-do b891c58 Jul 13 2026, 05:50 AM

…s through the catalog

Both pinned Cloudflare tools outside the catalog, leaving [email protected]
and workers-types v4 in the lockfile — a mixed toolchain. Point them at
catalog: so the whole workspace shares one Cloudflare toolchain version.
@ascorbic

Copy link
Copy Markdown
Member Author

Good catch — both fixed. packages/blocks/playground (wrangler) and packages/plugins/ai-moderation (workers-types) now use catalog:, so [email protected] and the v4 workers-types snapshot are gone from the lockfile — the whole workspace is on one Cloudflare toolchain. Left packages/cloudflare's >=4.0.0 peer range as-is (permissive by design, already satisfies v5), which matches your read. Rebuilt + full monorepo typecheck clean on v5. Re-triggering.

@ascorbic ascorbic added the bot:review Trigger an emdashbot code review on this PR label Jul 13, 2026
@github-actions github-actions Bot added area/plugins size/XL review/needs-rereview New commits since the last review and removed size/L review/awaiting-author Reviewed; waiting on the author to respond labels Jul 13, 2026

@emdashbot emdashbot 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.

This is a re-review. Both prior findings have been resolved:

  • packages/blocks/playground/package.json now uses "wrangler": "catalog:" instead of the hard-coded ^4.63.0.
  • packages/plugins/ai-moderation/package.json now uses "@cloudflare/workers-types": "catalog:" instead of the hard-coded v4 snapshot.

The pnpm-workspace.yaml catalog entries are updated to the intended versions (@cloudflare/workers-types ^5.20260712.1, wrangler ^4.110.0, @cloudflare/vitest-pool-workers ^0.18.4, @cloudflare/vite-plugin ^1.44.0), and the lockfile no longer retains the old [email protected], [email protected], @cloudflare/[email protected], or @cloudflare/[email protected] snapshots. packages/cloudflare's peer dependency range of @cloudflare/workers-types: ">=4.0.0" continues to permit v5, so no published-package surface changes and no changeset is needed.

No source-code, API, localization, SQL, or authorization changes are present in this diff, so none of the AGENTS.md code conventions are implicated.

One non-blocking observation: infra/perf-monitor/package.json still pins @cloudflare/vite-plugin: "^1.0.0" and resolves to 1.26.1 in the lockfile, while the rest of the workspace is on the catalog's 1.44.0. Since 1.44.0 supports vite@^6.1.0, the perf-monitor package could likely move to catalog: as well. It's unchanged in this PR and doesn't block the toolchain bump, so it's a follow-up candidate rather than a blocker.

Approving.

@github-actions github-actions Bot added review/approved Approved; no new commits since and removed review/needs-rereview New commits since the last review labels Jul 13, 2026
@ascorbic
ascorbic merged commit 84ec20c into feat/plugin-registry-labelling-service Jul 13, 2026
10 checks passed
@ascorbic
ascorbic deleted the chore/bump-cloudflare-catalog branch July 13, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugins bot:review Trigger an emdashbot code review on this PR cla: signed review/approved Approved; no new commits since size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant