Skip to content

[create-cloudflare] Use Wrangler 4 in Hello World templates - #15126

Merged
edmundhung merged 1 commit into
mainfrom
edmundhung/hello-world-wrangler-v4
Aug 13, 2026
Merged

[create-cloudflare] Use Wrangler 4 in Hello World templates#15126
edmundhung merged 1 commit into
mainfrom
edmundhung/hello-world-wrangler-v4

Conversation

@edmundhung

Copy link
Copy Markdown
Member

Update the Wrangler devDependency range in the JavaScript and TypeScript Hello World templates, including the assets variants, from ^3.101.0 to ^4.

This is not the final Wrangler version installed in a generated project. During C3 configuration, installWrangler() explicitly installs wrangler@latest and updates the generated package.json. This change only aligns the template's initial bootstrap dependency with the current major, avoiding a confusing stale range and a redundant Wrangler 3 install before C3 replaces it.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: this only updates dependency ranges, existing C3 E2E coverage exercises generated project installation, and pnpm check passes locally.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this updates template bootstrap dependency metadata without changing C3's documented behavior.

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Aug 11, 2026
@workers-devprod
workers-devprod requested review from a team and dario-piotrowicz and removed request for a team August 11, 2026 11:03
@workers-devprod

workers-devprod commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@github-actions

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@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 1 additional finding.

Open in Devin Review

@ask-bonk

ask-bonk Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Wrangler 4 is the current major, so ^4 is valid and resolves to the same major that installWrangler() will later pin to latest. The change is correct, safe, well-scoped, and its stated premise (npmInstall in Step 1 installs the template range before installWrangler upgrades in Step 2) is verified in code.

No logic bugs, security issues, compatibility violations, or incorrect behavior. The pre-existing dependency ordering and the untouched Python/other templates are out of scope and not defects introduced by this PR.

LGTM

github run

@pkg-pr-new

pkg-pr-new Bot commented Aug 11, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15126

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15126

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15126

create-cloudflare

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

@cloudflare/deploy-helpers

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15126

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15126

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: f6c1d97

@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

@edmundhung
edmundhung merged commit 24ac4fd into main Aug 13, 2026
62 checks passed
@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Aug 13, 2026
@edmundhung
edmundhung deleted the edmundhung/hello-world-wrangler-v4 branch August 13, 2026 10:30
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Aug 13, 2026

@joe345-str joe345-str left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signed off: joe345-str/joeydonner1979@gmail.com

},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.12.4",
"wrangler": "^3.101.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed off: joe345-str/joeydonner1979@gmail.com

"@cloudflare/vitest-pool-workers": "^0.12.4",
"typescript": "^5.5.2",
"vitest": "~3.2.0",
"wrangler": "^3.101.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed off: joe345-str/joeydonner1979@gmail.com

"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.12.4",
"vitest": "~3.2.0",
"wrangler": "^3.101.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed off: joe345-str/joeydonner1979@gmail.com

"@cloudflare/vitest-pool-workers": "^0.12.4",
"typescript": "^5.5.2",
"vitest": "~3.2.0",
"wrangler": "^3.101.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signed off: joe345-str/joeydonner1979@gmail.com

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