-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.7.0 Release #4489
Merged
Merged
9.7.0 Release #4489
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
63723fd
deprecate Cypress.Cookies.preserveOnce and defaults (#4475)
mschile 76a3419
changelog
emilyrohrbough d062385
Merge branch 'master' into 9.6.2-release
emilyrohrbough afd2c37
add missing entry
emilyrohrbough 7025c27
change to 9.7.0 & add electron updates
emilyrohrbough 3f91a3f
correct link
emilyrohrbough File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## 9.6.2 | ||
|
||
_Released 5/23/2022_ | ||
|
||
**Deprecations:** | ||
|
||
- The `Cypress.Cookies.preserveOnce()` and `Cypress.Cookies.defaults()` Cypress | ||
APIs have been deprecated. In a future release, support for | ||
`Cypress.Cookies.preserveOnce()` and `Cypress.Cookies.defaults()` will be | ||
removed. Consider using the [`cy.session()`](/api/commands/session) command | ||
instead to cache and restore cookies and other sessions details between tests. | ||
Fixed [#21333](https://github.com/cypress-io/cypress/issues/21333). | ||
|
||
**Bugfixes:** | ||
|
||
- Updated the `cy.contains()` command to correctly error and retry if the | ||
provided regex pattern begins with an equal sign and a match was not initially | ||
found. Previously the command would incorrectly fail with a syntax error. | ||
Fixed [#21108](https://github.com/cypress-io/cypress/issues/21108). | ||
- Removed `eventemitter2` third-party type definitions from `cy` and `Cypress` | ||
that were unintentionally exposed. Fixed | ||
[#20556](https://github.com/cypress-io/cypress/issues/20556). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,15 @@ | |
title: Cypress.Cookies | ||
--- | ||
|
||
<Alert type="warning"> | ||
|
||
⚠️ **`Cypress.Cookies.preserveOnce()` and `Cypress.Cookies.defaults()` are | ||
deprecated in Cypress 9.6.2**. In a future release, support for | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update release version. |
||
`Cypress.Cookies.preserveOnce()` and `Cypress.Cookies.defaults()` will be | ||
removed. Consider using [`cy.session()`](/api/commands/session) instead. | ||
|
||
</Alert> | ||
|
||
`Cookies.preserveOnce()` and `Cookies.defaults()` enable you to control Cypress' | ||
cookie behavior. | ||
|
||
|
@@ -212,6 +221,7 @@ Cypress.Cookies.defaults({ | |
|
||
| Version | Changes | | ||
| --------------------------------------------- | --------------------------------------------------------------------------------------------- | | ||
| [9.6.2](/guides/references/changelog#9-6-2) | Deprecated `preserveOnce` and `defaults` | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure to update this release version if we are going with 9.7.0. |
||
| [5.0.0](/guides/references/changelog#5-0-0) | Renamed `whitelist` option to `preserve` | | ||
| [0.16.1](/guides/references/changelog#0-16-1) | `{verbose: false}` option added | | ||
| [0.16.0](/guides/references/changelog#0-16-0) | Removed support for `Cypress.Cookies.get`, `Cypress.Cookies.set` and `Cypress.Cookies.remove` | | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention this is experimental.