# Cypress v5.2.0 — Release & Upgrade Intelligence
- **Product:** Cypress (https://www.cypress.io)
- **Version:** v5.2.0
- **Released:** Sep 15, 2020
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/cypress/updates/v5.2.0/

## Executive Summary (TL;DR)
Cypress v5.2.0. Source highlight: *Released 9/15/2020*

## New Features
- Added the configuration option `includeShadowDom` for enabling shadow DOM querying globally, per-suite, per-test, or programmatically. Addresses #8442.
- Added a `followRedirect` option to request interception with `cy.route2()`, allowing redirects to be followed before continuing to response interception. Addresses #7967.
- Added the capability to specify `delayMs` and `throttleKbps` when stubbing static responses with `cy.route2()`. Addresses #7661.
- Added examples of using a response function with `cy.route2()`. Addresses #8468.
- Added missing type declarations for the `cy.route2()` command.
- Updated the type declaration for `Cypress.Commands.add()`, adding `Promise` to the list of allowed return types.  Addresses #7807.

## Improvements
- Improved the error message when the subject provided to `cy.shadow()` is not a shadow host. Addresses #8530.
- Improved the error message when the Cypress binary is not executable. It now recommends trying to clear the cache and re-install. Addresses #8397.

## Bug Fixes
- Fixed a performance issue which led to CPU bottlenecking during Cypress runs. Addresses #8012 and #8297.
- Fixed an issue where using TypeScript path aliases in the plugins file would error. Addresses #8555.
- Fixed an issue where using `cy.contains()` within a shadow root would not yield the correct element. Addresses #8494.
- Fixed an issue where querying the shadow DOM in a `cy.within()` callback would throw the error `root.getRootNode is not a function`. Addresses #8478.
- Fixed an issue with `cy.type()` `{moveToStart}/{moveToEnd}` special characters moving the cursor to the current line instead of the entire text editable when typing in a `contenteditable` element. Addresses #8465.
- Fixed an issue where typing into a manually-focused number input would prepend the number instead of appending it. Addresses #7170.
