Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade cypress from 4.0.0 to 4.1.0 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

@snyk-bot snyk-bot commented Apr 7, 2020

Snyk has created this PR to upgrade cypress from 4.0.0 to 4.1.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
  • The recommended version is 3 versions ahead of your current version.
  • The recommended version was released a month ago, on 2020-02-28.
Release notes
Package name: cypress
  • 4.1.0 - 2020-02-28

    Released 2/28/2020

    Features:

    • There is a new cypress info command to see the locally detected browsers and other information related to Cypress. Addresses #4540.
    • You can now click a 'Try Again' button to recheck if the server at the designated baseUrl is running within the warning message during cypress open. Addresses #3284.
    • There are "collapse all" and "expand all" links in the Test Runner's "Tests" tab to collapse or expand all folders within the "Integration Tests". Addresses #6282.
    • The plugins file function's config argument now includes projectRoot (absolute path to the root of the project) and configFile (absolute path to the configuration file). Addresses #5941.

    Bugfixes:

    • Fixed a regression where Cypress could throw a "Maximum call stack size exceeded" error when transmitting a circular object over the internal WebSocket. Fixes #6582.
    • We fixed an issue where using Chromium-family browsers could cause Cypress to throw a "WebSocket is not open: readyState 3" error under certain conditions. Fixes #5685.
    • We now more thoroughly ensure the parent of an element exists when recursively calling visibility and existence checks in order to prevent some maximum call stack errors. Fixes #4373.
    • We fixed an issue where a maximum call stack error would throw in some circumstances when xhr.onreadystatechange is accessed. Fixes #5864.
    • We fixed a regression in 3.5.0 where typing into an iframe with a body element with the contenteditable attribute would throw an error. Fixes #5930.
    • We now set the default window size when running Chrome headlessly to 1280x720. Fixes #6210.
    • We fixed an issue where cypress install would not complete on Node.js 8.0.0. Fixes #6512 and #6568.
    • {% url "cy.clearLocalStorage()" clearlocalstorage now properly accepts the log option to disable logging. Fixes #6342.

    Misc:

    • The error messages displayed when rerouting to a non same-origin domain has been updated to more accurately reflect the rules around same-origin policy. Addresses #6048.
    • We fixed an error message that would display the wrong available browser families during validation. Addressed in #6517.
    • We fixed some typos in some of our error messages. Addressed in #6508.
    • We're collecting more environment variables when running Cypress with GitLab CI. Addresses #6231.
    • The typing of cy.$$ has been updated to distinguish differences between it and Cypress.$. "More info here" $#Cypress-vs-cy Addresses #2027.
    • We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #6552, #6523, and #6545.

    Dependency Updates

    • Upgraded electron from 7.1.10 to 7.1.13. Addressed in #6566.
  • 4.0.2 - 2020-02-14

    Released 2/14/2020

    Bugfixes:

    • Fixed a bug where Firefox tests could fail to run on macOS if another instance of Firefox was open. Addresses #6380.
    • Updated @cypress/browserify-preprocessor to 2.1.4, fixing a regression involving non-top-level require()s in tests. Addresses #6403.
    • Fixed a bug where re-running a failed workflow in GitHub Actions would not generate a new Dashboard run. Addresses #6450.
    • Fixed incorrect type definitions for Cypress.isBrowser. Addresses #6447.
    • Fixed a regression introduced in 4.0.0 where using .should('contain', ...) on a cy.contains() would produce unexpected results. Addresses #6384.

    Misc:

    • Improved the error experience GUI when launching a browser fails. Addresses #6432.
    • Improved the error experience when visiting the Cypress server outside of a Cypress-launched browser. Addresses #6435.
  • 4.0.1 - 2020-02-07

    Released 2/7/2020

    Bugfixes:

    • Fixed a bug where Chromium could not be detected on macOS. Addresses #6358.
    • Fixed bugs where Edge and Firefox Nightly could not be detected on macOS. Addresses #6354 and #6345.
    • Fixed a bug where 64-bit editions of Firefox could not be detected on Windows. Addresses #6355.
    • Fixed a bug where video recordings of Firefox would omit all frames from before the last cross-domain navigation of the test. Addresses #6369.
    • Fixed a bug where Cypress could crash with the message "cannot read property 'on' of undefined" while running Firefox. Addresses #6356.
    • Corrected a link to the screenshot API documentation in the type definitions. Addresses #6359.

    Misc:

    • Updated the default preferences set on Firefox to hide update notifications and otherwise improve the Firefox experience. Addresses #6346.
  • 4.0.0 - 2020-02-06

    Released 2/6/2020

    Summary:

    Cypress 4.0.0 includes support for Mozilla Firefox browsers (beta support) and Microsoft Edge (Chromium based) browsers which is a big step forward for Cross Browser Testing in Cypress. We've also updated many of the underlying tools behind Cypress that bring new powerful features.

    Breaking Changes:

    ⚠️ Please read our Migration Guide which explains the changes in more detail and how to change your code to migrate to Cypress 4.0.

    • Mocha, Chai, and Sinon.JS has been upgraded which includes a number of breaking changes and new features. Addresses #2528, #2529, #2866.
    • During before:browser:launch, we no longer yield the second argument as an array of browser arguments and instead yield an options object with an args property in order to support more advanced browser launch options. Addresses #6306.
    • We updated the Cypress browser objects of all Chromium-based browsers, including Electron, to have chromium set as their family field. Addresses #6243.
    • The --browser flag no longer accepts canary as its sole argument to run Chrome Canary. You now have to specify chrome:canary to use the Chrome Canary browser. Addresses #6243.
    • cy.writeFile() now yields null instead of the contents written to the file in order to more align with the behavior of fs. Addresses #2466.
    • Installing Cypress on your system now requires Node.js 8+. Addresses #5632.
    • Cypress no longer support CJSX. Addresses #3469.

    Features:

    • Mozilla Firefox browsers now have beta support. Addresses #1096.
    • Microsoft Edge (Chromium based) browsers are now supported. Addresses #5433.
    • There is a new Cypress.isBrowser() utility function. Addresses #2023.
    • We updated the Cypress.browser object with a new channel property which contains the release channel of the detected browser. Addresses #6243.
    • Appending .only to multiple tests or suites will now run all tests with the .only property. Addresses #2828.
    • The isFinite assertion is now supported. Addresses #5669.
    • The empty assertion is now supported when used against Map objects. Addresses #6072.
    • The nested assertion chainer property is now supported. Addresses #3080 and #5004.

    Bugfixes:

    • A test or suite appended with an .only when multiple tests or suites contained the same title now run correctly. Fixes #5345.
    • The .its() command now properly supports 0 as a value for indexes or object keys. Fixes #6216.

    Documentation Changes:

    Misc:

    • We now pass through errors caused when attempting to read arguments passed through config. Addresses #6279.
    • We fixed a broken 'Learn more' link within the Node.js Version panel of the Test Runner Settings. Addresses #6237.
    • The browser icons in the Test Runner now display as images with the proper branding. Addresses #6188.
    • We updated the styling of browser dropdown in the Test Runner to look more like a button. Addresses #6298.
    • The timer in the Test Runner now always displays at a consistent length. Addresses #6168.
    • You can print debug information about the memory & CPU usage of Cypress, which can be accessed by enabling the cypress:server:util:process_profiler debug stream. Addresses #6169.
    • We added types for plugin events. Addresses #6322.

    Dependency Updates

    • Added @benmalka/foxdriver. Addressed in #1359.
    • Upgraded @cypress/browserify-preprocessor from 1.1.2 to 2.1.1. Addressed in #4308 and #4226.
    • Upgraded bluebird from 3.5.0 to 3.7.2. Addressed in #4226.
    • Upgraded cachedir from 1.3.0 to 2.3.0. Addressed in #4208 and #4226.
    • Upgraded chai from 3.5.0 to 4.2.0. Addressed in #2862 and #4226.
    • Upgraded chai-as-promised from 6.0.0 to 7.1.1. Addressed in #4226.
    • Upgraded chalk from 2.4.0 to 3.0.0. Addressed in #4226.
    • Upgraded commander from 2.15.1 to 4.0.1. Addressed in #4208 and #4226.
    • Upgraded debug from 2.15.1 to 4.0.1. Addressed in #4226.
    • Upgraded execa from 0.10.0 to 3.3.0. Addressed in #4226.
    • Added firefox-profiler. Addressed in #1359.
    • Added foxdriver. Addressed in #1359.
    • Upgraded fs-extra from 5.0.0 to 8.1.0. Addressed in #4226.
    • Upgraded getos from 3.1.1 to 3.1.4. Addressed in #4226.
    • Upgraded is-ci from 1.2.1 to 2.0.0. Addressed in #4226.
    • Upgraded mocha from 2.5.3 to 7.0.1. Addressed in #2703 and #4226.
    • Upgraded listr from 0.12.0 to 0.14.3. Addressed in #4226.
    • Upgraded log-symbols from 2.2.0 to 3.0.0. Addressed in #4226.
    • Added marionette-client. Addressed in #1359.
    • Upgraded ramda from 0.24.1 to 0.26.1. Addressed in #4226.
    • Upgraded sinon from 3.2.0 to 8.1.1. Addressed in #2881 and #4226.
    • Upgraded strip-ansi from 3.0.1 to 6.0.0. Addressed in #1359.
    • Added systeminformation. Addressed in #1359.
    • Upgraded support-colors from 5.5.0 to 7.1.0. Addressed in #4208 and #4226.
    • Upgraded untildify from 3.0.3 to 4.0.0. Addressed in #4226.
from cypress GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment