Skip to content

Conversation

@AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Jan 15, 2026

BREAKING CHANGE: use Cypress.expose() instead of Cypress.env(), which requires a peer dependency on Cypress 15.10.0

NOTE: must be rebased merged into develop once 15.10.0 is released

  • Closes

Additional details

Adapts @cypress/grep to use Cypress.expose() instead of Cypress.env(), which is now deprecated in Cypress 15.10.0 (release TBD)


Note

Breaking: switch to public config via Cypress.expose()

  • Replace usage of Cypress.env() with Cypress.expose() across plugin (src/plugin.ts) and runtime registration (src/register.ts); all config reads/writes now use expose
  • CLI/config changes: --env--expose; config envexpose; allowCypressEnv set to false
  • Documentation/examples updated in README.md, including commands, config examples, troubleshooting, and a new v5→v6 migration section; limitations note updated
  • Package scripts switched to --expose; peer dependency raised to cypress@>=15.10.0
  • Tests updated to use expose in configs and tasks (e2e/unit)

Written by Cursor Bugbot for commit c6998a8. This will update automatically on new commits. Configure here.

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker self-assigned this Jan 15, 2026
@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from 76283c5 to 76117ac Compare January 15, 2026 21:26
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from 1fc76e3 to b730446 Compare January 15, 2026 21:26
@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from 76117ac to 1d7c6c3 Compare January 15, 2026 21:59
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from b730446 to e38e289 Compare January 15, 2026 21:59
@cypress
Copy link

cypress bot commented Jan 15, 2026

cypress    Run #68595

Run Properties:  status check passed Passed #68595  •  git commit c6998a85b1: breaking: release version 6.0.0 of @cypress/grep
Project cypress
Branch Review breaking/migrate_cypress_grep_to_expose
Run status status check passed Passed #68595
Run duration 18m 49s
Commit git commit c6998a85b1: breaking: release version 6.0.0 of @cypress/grep
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 9
Tests that did not run due to a developer annotating a test with .skip  Pending 1118
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 27094
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.3%
  Untested elements 193  
  Tested elements 164  
Accessibility  97.93%
  Failed rules  4 critical   8 serious   3 moderate   2 minor
  Failed elements 102  

@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from 1d7c6c3 to bec7a29 Compare January 16, 2026 15:26
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from e38e289 to 72e74b1 Compare January 16, 2026 15:39
@AtofStryker
Copy link
Contributor Author

blocked until Cypress 15.10.0 or the cypress.env()/cy.env()/Cypress.expose()/allowCypressEnv work releases

@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from bec7a29 to 20305fe Compare January 20, 2026 17:11
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from 72e74b1 to 38e551f Compare January 20, 2026 17:12
@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from 1c27069 to 8207444 Compare January 20, 2026 21:49
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from 38e551f to a2bd105 Compare January 20, 2026 21:50
@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from 8207444 to c301833 Compare January 20, 2026 21:52
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from a2bd105 to 0510bec Compare January 20, 2026 21:54
@AtofStryker AtofStryker force-pushed the feat/add_cypress_expose branch from c301833 to 78d2027 Compare January 21, 2026 16:07
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from 0510bec to 4fd644f Compare January 21, 2026 16:11
Base automatically changed from feat/add_cypress_expose to feat/deprecate_cypress_env_feature_branch January 21, 2026 20:47
@AtofStryker AtofStryker force-pushed the feat/deprecate_cypress_env_feature_branch branch 2 times, most recently from 2f38f4a to 22e2486 Compare January 21, 2026 21:58
Base automatically changed from feat/deprecate_cypress_env_feature_branch to develop January 22, 2026 00:13
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from 4fd644f to e118768 Compare January 22, 2026 00:14
BREAKING CHANGE: use Cypress.expose() instead of Cypress.env(), which requires a peer dependency on Cypress 15.10.0
@AtofStryker AtofStryker force-pushed the breaking/migrate_cypress_grep_to_expose branch from e118768 to c6998a8 Compare January 22, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants