Packages

cypress

16.3.0 · 10 Nov 2026MIT7.6M / weekRepositoryHomepagenpmAtom feed

Upgrading cypress From 16.1.1 to 16.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 16.1.1Newest 16.x, Latest16.3.0
  1. 16.1.1yours
  2. 16.2.0target
0
changes to make
0
advisories fixed
1
new
7
fixes

Security

  • Upgraded shell-quote from 1.10.0 to 1.11.0 to address a Command Injection vulnerability reported in security scans. shell-quote is a transitive dependency of launch-editor. Addressed in #34960.

    16.2.0

Release by release

  1. 16.2.0

    Security fix14 Oct 20261 new · 7 fixes
    • Security

      Upgraded shell-quote from 1.10.0 to 1.11.0 to address a Command Injection vulnerability reported in security scans. shell-quote is a transitive dependency of launch-editor. Addressed in #34960.

    • New

      Added the cy.getByRole() query, which finds elements by their ARIA role and, optionally, their accessible name, for example cy.getByRole('tab', { name: 'Billing' }). Elements hidden from the accessibility tree are skipped unless you pass { hidden: true }. For a role that HTML has an element for, only that element matches by default, so cy.getByRole('button') finds a <button> but not a <div role="button">. Pass { native: false } to also match elements with a role attribute. Like cy.get(), it yields every match and retries until its assertions pass. When nothing matches, the error lists the roles and accessible names on the page. Addressed in #34937.

    • Fixed

      Fixed a regression in 16.0.0 where a configured clientCertificates entry was not presented for requests the browser issued in Chrome, Chromium, and Edge, so an origin requiring mutual TLS showed a certificate prompt in cypress open and hung in cypress run. Fixes #34807.

    • Fixed

      Fixed a regression in 15.20.0 where a cookie changed by cy.request() or cy.setCookie() was sent to the server with its earlier value on the next navigation of the application under test, even though cy.getCookie() reported the new one. Fixes #34891.

4 other lines we could not sort, mostly version bumps
  • cy.get() now fails right away when you ask for index 0 of a cy.intercept() alias, such as cy.get('@getUsers.0'). Previously, Cypress retried until the command timed out before it showed the error, even though retrying could never succeed. Fixed in #34936.

    16.2.0
  • Calling a query that needs a subject, such as .eq(), .first(), .find(), or .shadow(), directly off cy instead of chaining it off a command that yields a subject now fails right away with an error that names the command and explains that it must be chained. Previously, Cypress retried until the command timed out and then reported that the subject was not a DOM element, or, when the query was the first command in a test, failed with Cannot read properties of undefined (reading 'get'). Child commands called directly off cy, such as cy.click(), show the same reworded error. Fixed in #35024.

    16.2.0
  • TypeScript now types the object yielded by cy.location() as the plain object Cypress actually yields, instead of the browser's window.location. searchParams is now typed, so cy.location('searchParams') and loc.searchParams.get('q') no longer report a type error. Addressed in #34956.

    16.2.0
  • Masked the environment variable values on the Project settings page. Addressed in #35004.

    16.2.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.