Skip to content

[C3] Bump create-vike from 0.0.599 to 0.0.616 in /packages/create-cloudflare/src/frameworks#13438

Merged
petebacondarwin merged 9 commits intomainfrom
dependabot/npm_and_yarn/packages/create-cloudflare/src/frameworks/create-vike-0.0.616
Apr 13, 2026
Merged

[C3] Bump create-vike from 0.0.599 to 0.0.616 in /packages/create-cloudflare/src/frameworks#13438
petebacondarwin merged 9 commits intomainfrom
dependabot/npm_and_yarn/packages/create-cloudflare/src/frameworks/create-vike-0.0.616

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 12, 2026

Bumps create-vike from 0.0.599 to 0.0.616.

Autoconfig fix for new Vike config format

The new create-vike (0.0.616) changed the generated pages/+config.ts format from:

export default {
  extends: [vikeReact],
} satisfies Config;

to:

const config: Config = {
  extends: [vikeReact],
};
export default config;

The Wrangler autoconfig AST transformation in packages/wrangler/src/autoconfig/frameworks/vike.ts only handled inline object exports (ObjectExpression, TSAsExpression, TSSatisfiesExpression). It did not handle Identifier references to variables, causing the "Could not determine Vike default object export" error in the C3 experimental e2e tests.

The fix adds Identifier resolution: when the default export is a variable reference, the code searches the program body for the matching variable declaration and uses its initializer. Both old and new formats continue to work.

Unit tests added in packages/wrangler/src/__tests__/autoconfig/frameworks/vike.test.ts covering all config file formats.

Dependabot info
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Internal autoconfig fix, no user-facing API change

Bumps [create-vike](https://github.com/vikejs/bati) from 0.0.599 to 0.0.616.
- [Commits](vikejs/bati@v0.0.599...v0.0.616)

---
updated-dependencies:
- dependency-name: create-vike
  dependency-version: 0.0.616
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added c3 Relating to C3 (create-cloudflare) package dependencies Used by dependabot to mark PRs as updates to dependencies. skip-pr-description-validation Skip validation of the required PR description format labels Apr 12, 2026
@dependabot dependabot bot requested a review from workers-devprod as a code owner April 12, 2026 06:04
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 12, 2026

🦋 Changeset detected

Latest commit: 5e2d7a0

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

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Apr 12, 2026
@workers-devprod workers-devprod requested review from a team and petebacondarwin and removed request for a team April 12, 2026 06:05
@workers-devprod
Copy link
Copy Markdown
Contributor

workers-devprod commented Apr 12, 2026

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

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 bugs or issues to report.

Open in Devin Review

The following dependency versions have been updated:

| Dependency  | From    | To      |
| ----------- | ------- | ------- |
| create-vike | 0.0.599 | 0.0.616 |
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 12, 2026

✅ All changesets look good

Summary:

  1. .changeset/c3-frameworks-update-13438.md - Exempt from validation per rule 5 (dependency update changesets for create-cloudflare)

  2. .changeset/fix-vike-variable-export.md - Valid patch changeset for wrangler

    • Appropriate patch version for a bug fix
    • Clear description explaining the issue (Vike config file format change) and the fix (AST transformation now handles variable-referenced exports)
    • No prohibited h1/h2/h3 headers
    • No analytics changes

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 12, 2026

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: 5e2d7a0

…port

The new create-vike (0.0.616) generates config files using
`const config: Config = { ... }; export default config;` instead of
`export default { ... } satisfies Config;`. The autoconfig AST
transformation now resolves Identifier exports to their variable
declarations, supporting both old and new formats.
devin-ai-integration[bot]

This comment was marked as resolved.

The dedup guard was checking for a CallExpression named "extends"
but vikePhoton is added as an Identifier node. This meant vikePhoton
would be added to the extends array on every configure() call.
Also strengthened the test to verify extends array non-duplication.
The image snapshot comparison was using the default 0% threshold,
causing flaky failures on CI macOS runners due to minor font
rendering differences (~0.9% pixel diff). Added a 2% threshold
to tolerate these platform rendering variations.
Comment thread packages/wrangler/src/__tests__/autoconfig/frameworks/vike.test.ts Outdated
Comment thread packages/wrangler/src/__tests__/autoconfig/frameworks/vike.test.ts Outdated
Comment thread fixtures/workers-with-assets-spa/tests/index.test.ts
Copy link
Copy Markdown
Contributor

@workers-devprod workers-devprod left a comment

Choose a reason for hiding this comment

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

Codeowners reviews satisfied

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Apr 13, 2026
Comment thread packages/wrangler/src/autoconfig/frameworks/vike.ts Outdated
Instead of hardcoding "vikePhoton" in the extends array dedup check,
resolve the actual local name from the existing import declaration for
"vike-photon/config". This handles cases where the user imported it
under a different name (e.g. `import photon from "vike-photon/config"`).
@petebacondarwin petebacondarwin merged commit dd4e888 into main Apr 13, 2026
49 of 50 checks passed
@petebacondarwin petebacondarwin deleted the dependabot/npm_and_yarn/packages/create-cloudflare/src/frameworks/create-vike-0.0.616 branch April 13, 2026 12:52
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Apr 13, 2026
NuroDev pushed a commit that referenced this pull request Apr 13, 2026
…udflare/src/frameworks (#13438)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
petebacondarwin added a commit that referenced this pull request Apr 14, 2026
…udflare/src/frameworks (#13438)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Co-authored-by: Pete Bacon Darwin <pbacondarwin@cloudflare.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c3 Relating to C3 (create-cloudflare) package dependencies Used by dependabot to mark PRs as updates to dependencies. skip-pr-description-validation Skip validation of the required PR description format

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants