Skip to content
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 6 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions content/_changelogs/9.6.2.md
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
Copy link
Member

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.

Suggested change
removed. Consider using the [`cy.session()`](/api/commands/session) command
removed. Consider using the experimental [`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).
10 changes: 10 additions & 0 deletions content/api/cypress-api/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The 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.

Expand Down Expand Up @@ -212,6 +221,7 @@ Cypress.Cookies.defaults({

| Version | Changes |
| --------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [9.6.2](/guides/references/changelog#9-6-2) | Deprecated `preserveOnce` and `defaults` |
Copy link
Member

Choose a reason for hiding this comment

The 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` |
Expand Down