Skip to content

Commit 42ccfc1

Browse files
deprecation: Deprecate resource type of intercept's request object (#30512)
* deprecation: deprecate resourceType of intercept's request object * Add changelog entry
1 parent a3fd273 commit 42ccfc1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cli/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ _Released 12/3/2024 (PENDING)_
2020
- Cypress Component Testing no longer supports `Nuxt.js` version 2. Addresses [#30468](https://github.com/cypress-io/cypress/issues/30468).
2121
- Cypress Component Testing no longer supports `Vue` version 2. Addresses [#30295](https://github.com/cypress-io/cypress/issues/30295).
2222

23+
**Deprecations:**
24+
25+
- The `resourceType` option on `cy.intercept` has been deprecated. We anticipate the resource types to change or be completely removed in the future. Our intention is to replace essential functionality dependent on the `resourceType` within Cypress in a future version (like hiding network logs that are not fetch/xhr). Please leave feedback on any essential uses of `resourceType`
26+
in this [GitHub issue](https://github.com/cypress-io/cypress/issues/30447). Addresses [#30433](https://github.com/cypress-io/cypress/issues/30433).
27+
2328
**Bugfixes:**
2429

2530
- The CSS pseudo-class `:dir()` is now supported when testing in Electron. Addresses [#29766](https://github.com/cypress-io/cypress/issues/29766).

packages/net-stubbing/lib/external-types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export namespace CyHttpMessages {
144144
httpVersion: string
145145
/**
146146
* The resource type that is being requested, according to the browser.
147+
* @deprecated the resource types may change or be completely removed in a future version of Cypress
147148
*/
148149
resourceType: ResourceType
149150
/**

0 commit comments

Comments
 (0)