diff --git a/.changeset/c3-frameworks-update-11859.md b/.changeset/c3-frameworks-update-11859.md new file mode 100644 index 000000000000..fc6303608bae --- /dev/null +++ b/.changeset/c3-frameworks-update-11859.md @@ -0,0 +1,11 @@ +--- +"create-cloudflare": patch +--- + +Update dependencies of "create-cloudflare" + +The following dependency versions have been updated: + +| Dependency | From | To | +| ----------- | ----- | ----- | +| create-vite | 7.1.1 | 8.3.0 | diff --git a/packages/create-cloudflare/e2e/tests/frameworks/test-config.ts b/packages/create-cloudflare/e2e/tests/frameworks/test-config.ts index a8c7fe7addba..62c91442133a 100644 --- a/packages/create-cloudflare/e2e/tests/frameworks/test-config.ts +++ b/packages/create-cloudflare/e2e/tests/frameworks/test-config.ts @@ -410,12 +410,17 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] { timeout: LONG_TIMEOUT, verifyDeploy: { route: "/", - expectedText: "Vite + React", + // Note that this is the text in the static HTML that is returned + // This React SPA will change this at runtime but we are only making a fetch request + // not actually running the client side JS. + // create-vite 8+ changed the from "Vite + React + TS" to the project name, + // so we match on the React root element instead. + expectedText: '<div id="root">', }, verifyPreview: { previewArgs: ["--inspector-port=0"], route: "/", - expectedText: "Vite + React", + expectedText: '<div id="root">', }, nodeCompat: false, }, @@ -435,7 +440,9 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] { // Note that this is the text in the static HTML that is returned // This React SPA will change this at runtime but we are only making a fetch request // not actually running the client side JS. - expectedText: "Vite + React + TS", + // create-vite 8+ changed the <title> from "Vite + React + TS" to the project name, + // so we match on the React root element instead. + expectedText: '<div id="root">', }, verifyPreview: { route: "/", @@ -445,7 +452,7 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] { // Note that this is the text in the static HTML that is returned // This React SPA will change this at runtime but we are only making a fetch request // not actually running the client side JS. - expectedText: "Vite + React + TS", + expectedText: '<div id="root">', }, nodeCompat: false, }, @@ -892,7 +899,9 @@ function getExperimentalFrameworkTestConfig( // Note that this is the text in the static HTML that is returned // This React SPA will change this at runtime but we are only making a fetch request // not actually running the client side JS. - expectedText: "Vite + React + TS", + // create-vite 8+ changed the <title> from "Vite + React + TS" to the project name, + // so we match on the React root element instead. + expectedText: '<div id="root">', }, verifyPreview: { route: "/", @@ -902,7 +911,7 @@ function getExperimentalFrameworkTestConfig( // Note that this is the text in the static HTML that is returned // This React SPA will change this at runtime but we are only making a fetch request // not actually running the client side JS. - expectedText: "Vite + React + TS", + expectedText: '<div id="root">', }, nodeCompat: false, verifyTypes: false, diff --git a/packages/create-cloudflare/src/frameworks/package.json b/packages/create-cloudflare/src/frameworks/package.json index 2577cc8ad462..ddc130fe5dc4 100644 --- a/packages/create-cloudflare/src/frameworks/package.json +++ b/packages/create-cloudflare/src/frameworks/package.json @@ -12,7 +12,7 @@ "create-hono": "0.19.4", "create-next-app": "15.5.6", "create-qwik": "1.19.0", - "create-vite": "7.1.1", + "create-vite": "8.3.0", "create-rwsdk": "3.1.3", "create-react-router": "7.13.0", "create-solid": "0.6.11",