From 87b8a360e99de52e1613c7d7c3e5cc1899aa11c7 Mon Sep 17 00:00:00 2001 From: Matthew Schile Date: Thu, 7 Nov 2024 13:32:10 -0700 Subject: [PATCH] update to svelte 4 --- npm/svelte/package.json | 2 +- packages/scaffold-config/src/dependencies.ts | 2 +- packages/scaffold-config/test/unit/detect.spec.ts | 4 ++-- .../projects/svelte-webpack-unconfigured/package.json | 2 +- system-tests/projects/svelte-webpack/package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/npm/svelte/package.json b/npm/svelte/package.json index 93e60a8618f1..bc3174a9b02f 100644 --- a/npm/svelte/package.json +++ b/npm/svelte/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@cypress/mount-utils": "0.0.0-development", - "svelte": "^5.1.12", + "svelte": "^4.2.19", "typescript": "~5.4.5" }, "peerDependencies": { diff --git a/packages/scaffold-config/src/dependencies.ts b/packages/scaffold-config/src/dependencies.ts index 6568e33e1156..f32ff5cc1543 100644 --- a/packages/scaffold-config/src/dependencies.ts +++ b/packages/scaffold-config/src/dependencies.ts @@ -130,7 +130,7 @@ export const WIZARD_DEPENDENCY_SVELTE: Cypress.CypressComponentDependency = { package: 'svelte', installer: 'svelte', description: 'Cybernetically enhanced web apps', - minVersion: '^4.0.0 || ^5.0.0', + minVersion: '^4.0.0', } as const export const WIZARD_DEPENDENCIES = [ diff --git a/packages/scaffold-config/test/unit/detect.spec.ts b/packages/scaffold-config/test/unit/detect.spec.ts index c41b36d345b1..a354c754db6c 100644 --- a/packages/scaffold-config/test/unit/detect.spec.ts +++ b/packages/scaffold-config/test/unit/detect.spec.ts @@ -191,7 +191,7 @@ describe('detectFramework', () => { const projectPath = await scaffoldMigrationProject('svelte-vite-unconfigured') fakeDepsInNodeModules(projectPath, [ - { dependency: 'svelte', version: '5.0.0' }, + { dependency: 'svelte', version: '4.0.0' }, { dependency: 'vite', version: v }, ]) @@ -206,7 +206,7 @@ describe('detectFramework', () => { const projectPath = await scaffoldMigrationProject('svelte-webpack-unconfigured') fakeDepsInNodeModules(projectPath, [ - { dependency: 'svelte', version: '5.0.0' }, + { dependency: 'svelte', version: '4.0.0' }, { dependency: 'webpack', version: '5.0.0' }, ]) diff --git a/system-tests/projects/svelte-webpack-unconfigured/package.json b/system-tests/projects/svelte-webpack-unconfigured/package.json index fab1595980d0..0560885d5608 100644 --- a/system-tests/projects/svelte-webpack-unconfigured/package.json +++ b/system-tests/projects/svelte-webpack-unconfigured/package.json @@ -9,7 +9,7 @@ "cross-env": "^7.0.3", "css-loader": "^5.0.1", "mini-css-extract-plugin": "^2.9.1", - "svelte": "^5.1.11", + "svelte": "^4.2.19", "svelte-loader": "^3.0.0", "webpack": "^5.16.0", "webpack-cli": "^4.10.0", diff --git a/system-tests/projects/svelte-webpack/package.json b/system-tests/projects/svelte-webpack/package.json index 0a200254cea9..9747c48b4032 100644 --- a/system-tests/projects/svelte-webpack/package.json +++ b/system-tests/projects/svelte-webpack/package.json @@ -6,7 +6,7 @@ "css-loader": "^6.7.1", "html-webpack-plugin": "^5.5.0", "mini-css-extract-plugin": "^2.9.1", - "svelte": "^5.1.11", + "svelte": "^4.2.19", "svelte-loader": "^3.1.3", "webpack": "^5.74.0", "webpack-dev-server": "^4.10.0"