From e8e2d92ac269a506f58ef82eec3e2c1bec5b53e8 Mon Sep 17 00:00:00 2001 From: Tarun Maini Date: Wed, 5 Feb 2025 01:22:50 +0530 Subject: [PATCH] misc: Updated mismatched dependencies warning message to be neutral (#31011) * refactor: Updated mismatched dependencies warning message to be neutral * update changelog --- cli/CHANGELOG.md | 4 ++++ .../COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html | 2 +- packages/errors/src/errors.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 36d9b29e75..a256b4acf1 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -10,6 +10,10 @@ _Released 2/11/2025 (PENDING)_ - Fixed an issue in Cypress [`14.0.0`](https://docs.cypress.io/guides/references/changelog#14-0-0) where privileged commands did not run correctly when a spec file or support file contained characters that required encoding. Fixes [#30933](https://github.com/cypress-io/cypress/issues/30933). - Re-enabled retrying Cloud instance creation for runs that are parallel or recorded. Fixes [#31002](https://github.com/cypress-io/cypress/issues/31002). +**Misc:** + +- Updated the mismatched dependencies warning message to be neutral, avoiding assumptions about upgrading or downgrading. Fixes [#30990](https://github.com/cypress-io/cypress/issues/30990). + **Dependency Updates:** - Upgraded `mime` from `2.6.0` to `3.0.0`. Addressed in [#30966](https://github.com/cypress-io/cypress/pull/30966). diff --git a/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html b/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html index 57d9a92813..324726a465 100644 --- a/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html +++ b/packages/errors/__snapshot-html__/COMPONENT_TESTING_MISMATCHED_DEPENDENCIES.html @@ -38,6 +38,6 @@ - `vite`. Expected ^=2.0.0 || ^=3.0.0 || ^=4.0.0 || ^=5.0.0, found 1.0.0. -If you're experiencing problems, downgrade dependencies and restart Cypress. +If you're experiencing problems, ensure your dependencies are on a supported version and restart Cypress. \ No newline at end of file diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts index a77081041e..bafd08216d 100644 --- a/packages/errors/src/errors.ts +++ b/packages/errors/src/errors.ts @@ -1854,7 +1854,7 @@ export const AllCypressErrors = { ${fmt.listItems(deps, { prefix: ' - ' })} - If you're experiencing problems, downgrade dependencies and restart Cypress. + If you're experiencing problems, ensure your dependencies are on a supported version and restart Cypress. ` },