Replace `@cypress/request`
What would you like?
Replace the use of @cypress/request in Cypress.
Why is this needed?
-
@cypress/request is a fork of request/request. The original repo was deprecated more than ~~4~~ 5 years ago on Feb 11, 2020.
-
Issues arise which can no longer be fixed in @cypress/request. See https://github.com/cypress-io/request/pull/45#issuecomment-2197458781.
Other
Related issues
- https://github.com/cypress-io/cypress/issues/29774
- https://github.com/cypress-io/request/issues/48
- https://github.com/cypress-io/cypress/issues/28058
- https://github.com/cypress-io/request/issues/50
- https://github.com/cypress-io/request/issues/47
From previous investigations, the plan was to replace it with got.
@jennifer-shehane
There was a comment last year which mentioned using fetch. Also I notice that ky is mentioned as a replacement. I can't personally say what the best choice would be though.
Yah, part of the work was evaluating which would be the most appropriate replacement.
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
This issue will not resolve itself. I suggest to mark it with https://github.com/cypress-io/cypress/labels/prevent-stale.
Regarding potential replacements, would not the native fetch API be considered a stable replacement for request?