cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Replace `@cypress/request`

Open MikeMcC399 opened this issue 1 year ago • 5 comments

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

MikeMcC399 avatar Jun 29 '24 17:06 MikeMcC399

From previous investigations, the plan was to replace it with got.

jennifer-shehane avatar Jul 01 '24 16:07 jennifer-shehane

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

MikeMcC399 avatar Jul 01 '24 17:07 MikeMcC399

Yah, part of the work was evaluating which would be the most appropriate replacement.

jennifer-shehane avatar Jul 01 '24 19:07 jennifer-shehane

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.

cypress-app-bot avatar Feb 25 '25 01:02 cypress-app-bot

This issue will not resolve itself. I suggest to mark it with https://github.com/cypress-io/cypress/labels/prevent-stale.

MikeMcC399 avatar Feb 25 '25 06:02 MikeMcC399

Regarding potential replacements, would not the native fetch API be considered a stable replacement for request?

csvan avatar Apr 17 '25 12:04 csvan