cypress-io/cypress
### [`v9.4.1`](https://togithub.com/cypress-io/cypress/releases/v9.4.1)
[Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.4.0...v9.4.1)
*Released 1/31/2022*
**Bugfixes:**
- Fixed a regression in [9.4.0](https://docs.cypress.io/guides/references/changelog#9-4-0) where the
line endings in the public NPM package prevented some users from running
Cypress. Fixes [#19986](https://togithub.com/cypress-io/cypress/issues/19986).
### [`v9.4.0`](https://togithub.com/cypress-io/cypress/releases/v9.4.0)
[Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.3.1...v9.4.0)
*Released 1/31/2022*
**Features**
- Enhancements were made to `.selectFile()` after receiving feedback after its
initial release in [9.3.0](https://docs.cypress.io/guides/references/changelog#9-3-0).
- The default behavior was updated to automatically infer the mime type of
files based on their extension to correctly encode file uploads. Addressed
in [#19751](https://togithub.com/cypress-io/cypress/issues/19751).
- Added the `mimeType` property so you can explicitly set the mime type on
files using the `mimeType` property. Addressed in
[#19751](https://togithub.com/cypress-io/cypress/issues/19751).
- Updated file contents types to allow either a
[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray)
instance or a `Cypress.Buffer` instance, where previously file contents were
expected to only be an instance of `Cypress.Buffer`. Addressed in
[#19751](https://togithub.com/cypress-io/cypress/issues/19751).
- Updated `.selectFile()` to retain the fileName of files read from disk to
work with aliases. Addressed in
[#19803](https://togithub.com/cypress-io/cypress/issues/19803).
**Bugfixes:**
- Fixed a regression in [9.3.0](https://docs.cypress.io/guides/references/changelog#9-3-0) to correctly
parse the `--spec` CLI parameter for glob patterns containing a range. Fixes
[#19783](https://togithub.com/cypress-io/cypress/issues/19783).
- Fixed regression in [9.2.1](https://docs.cypress.io/guides/references/changelog#9-1-1) where the
`--openssl-legacy-provider` flag was not being passed to the plugins' child
process when the user's system Node version was Node 17+ built with OpenSSL
v3+ which resulted in Cypress crashing when trying to run tests. Fixes
[#19712](https://togithub.com/cypress-io/cypress/issues/19712).
- Update `cy.type('{enter}')` to align with the W3C standards where a click
event should be dispatched when the Enter key is pressed and the current focus
is on astate-changing element with type `button`, `image`, `submit` or
`reset`. Fixes [#19541](https://togithub.com/cypress-io/cypress/issues/19541).
### [`v9.3.1`](https://togithub.com/cypress-io/cypress/releases/v9.3.1)
[Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.3.0...v9.3.1)
*Released 1/19/2022*
**Bugfixes:**
- Fixed an issue where the bin file was released with windows line breaks. Fixes
[#19747](https://togithub.com/cypress-io/cypress/issues/19747).
### [`v9.3.0`](https://togithub.com/cypress-io/cypress/releases/v9.3.0)
[Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.2.1...v9.3.0)
*Released 1/18/2022*
**Features:**
- Added a new Cypress command, called
[`.selectFile()`](https://docs.cypress.io/api/commands/selectfile), to select a file or files in an
HTML5 input element or simulate dragging a file or files into the browser. The
API is similar to `cypress-file-upload` and we have provided a
[migration guide](https://docs.cypress.io/guides/references/migration-guide#Migrating-from-cypress-file-upload-to-selectFile)
for previous users of that plugin. For more details, see
[our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/).
Fixes [#19524](https://togithub.com/cypress-io/cypress/issues/19524) and
[#170](https://togithub.com/cypress-io/cypress/issues/170).
- Exposed the `Buffer` polyfill, as [`Cypress.Buffer`](https://docs.cypress.io/api/utilities/buffer),
to enable working with binary data. Addressed in
[#19524](https://togithub.com/cypress-io/cypress/issues/19524).
- Added the `CYPRESS_DOWNLOAD_PATH_TEMPLATE` environment variable which can be
set to a string template for building the download URL for the Cypress binary.
This environment variable is useful for users who are downloading the Cypress
binary from a proxy that is not one-to-one with the Cypress's default download
url. More information can be found in the
[Install Binary](https://docs.cypress.io/guides/getting-started/installing-cypress#Install-binary)
documentation. Fixes
[#15697](https://togithub.com/cypress-io/cypress/issues/15697).
**Bugfixes:**
- Fixed an issue where the `--spec` CLI parameter was not working properly when
passing multiple glob patterns that are separated by commas. Fixes
[#16102](https://togithub.com/cypress-io/cypress/issues/16102).
- Fixed an issue with how the `CYPRESS_VERIFY_TIMEOUT` environment variable was
read so it can set in a project's `package.json` or it's `.npmrc`. Fixes
[#19559](https://togithub.com/cypress-io/cypress/issues/19559).
**Dependency Updates:**
- Upgraded `graceful-fs` from `4.2.0` to `4.2.9`. This upgrade resolves issues
observed with using graceful-fs v4.2.0 with resolve v1.21+. Addressed in
[#19676](https://togithub.com/cypress-io/cypress/issues/19676) and resolves
[#19610](https://togithub.com/cypress-io/cypress/pull/19610).
- **NOTE:** This upgrade to `graceful-fs` breaks Cypress's compatibility with
Yarn 2. We have observed errors with Yarn 2.4.2 with `graceful-fs` 4.2.9.
Before this change, Cypress had minimal Yarn 2 support (see
[#6377](https://togithub.com/cypress-io/cypress/issues/6377)). Between Yarn 3
fixing multiple bugs and the migration path from Yarn 2 to Yarn 3 being
minimal, we felt the best step forward was to support and recommend Yarn 3
over Yarn 2.
- Upgraded `electron` from `15.2.0` to `15.3.4`. Addressed in
[#19351](https://togithub.com/cypress-io/cypress/issues/19351).
Configuration
📅 Schedule: "after 9pm every weekday,before 5pm every weekday" in timezone Europe/Madrid.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
9.2.1
->9.4.1
Release Notes
cypress-io/cypress
### [`v9.4.1`](https://togithub.com/cypress-io/cypress/releases/v9.4.1) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.4.0...v9.4.1) *Released 1/31/2022* **Bugfixes:** - Fixed a regression in [9.4.0](https://docs.cypress.io/guides/references/changelog#9-4-0) where the line endings in the public NPM package prevented some users from running Cypress. Fixes [#19986](https://togithub.com/cypress-io/cypress/issues/19986). ### [`v9.4.0`](https://togithub.com/cypress-io/cypress/releases/v9.4.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.3.1...v9.4.0) *Released 1/31/2022* **Features** - Enhancements were made to `.selectFile()` after receiving feedback after its initial release in [9.3.0](https://docs.cypress.io/guides/references/changelog#9-3-0). - The default behavior was updated to automatically infer the mime type of files based on their extension to correctly encode file uploads. Addressed in [#19751](https://togithub.com/cypress-io/cypress/issues/19751). - Added the `mimeType` property so you can explicitly set the mime type on files using the `mimeType` property. Addressed in [#19751](https://togithub.com/cypress-io/cypress/issues/19751). - Updated file contents types to allow either a [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance or a `Cypress.Buffer` instance, where previously file contents were expected to only be an instance of `Cypress.Buffer`. Addressed in [#19751](https://togithub.com/cypress-io/cypress/issues/19751). - Updated `.selectFile()` to retain the fileName of files read from disk to work with aliases. Addressed in [#19803](https://togithub.com/cypress-io/cypress/issues/19803). **Bugfixes:** - Fixed a regression in [9.3.0](https://docs.cypress.io/guides/references/changelog#9-3-0) to correctly parse the `--spec` CLI parameter for glob patterns containing a range. Fixes [#19783](https://togithub.com/cypress-io/cypress/issues/19783). - Fixed regression in [9.2.1](https://docs.cypress.io/guides/references/changelog#9-1-1) where the `--openssl-legacy-provider` flag was not being passed to the plugins' child process when the user's system Node version was Node 17+ built with OpenSSL v3+ which resulted in Cypress crashing when trying to run tests. Fixes [#19712](https://togithub.com/cypress-io/cypress/issues/19712). - Update `cy.type('{enter}')` to align with the W3C standards where a click event should be dispatched when the Enter key is pressed and the current focus is on astate-changing element with type `button`, `image`, `submit` or `reset`. Fixes [#19541](https://togithub.com/cypress-io/cypress/issues/19541). ### [`v9.3.1`](https://togithub.com/cypress-io/cypress/releases/v9.3.1) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.3.0...v9.3.1) *Released 1/19/2022* **Bugfixes:** - Fixed an issue where the bin file was released with windows line breaks. Fixes [#19747](https://togithub.com/cypress-io/cypress/issues/19747). ### [`v9.3.0`](https://togithub.com/cypress-io/cypress/releases/v9.3.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v9.2.1...v9.3.0) *Released 1/18/2022* **Features:** - Added a new Cypress command, called [`.selectFile()`](https://docs.cypress.io/api/commands/selectfile), to select a file or files in an HTML5 input element or simulate dragging a file or files into the browser. The API is similar to `cypress-file-upload` and we have provided a [migration guide](https://docs.cypress.io/guides/references/migration-guide#Migrating-from-cypress-file-upload-to-selectFile) for previous users of that plugin. For more details, see [our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/). Fixes [#19524](https://togithub.com/cypress-io/cypress/issues/19524) and [#170](https://togithub.com/cypress-io/cypress/issues/170). - Exposed the `Buffer` polyfill, as [`Cypress.Buffer`](https://docs.cypress.io/api/utilities/buffer), to enable working with binary data. Addressed in [#19524](https://togithub.com/cypress-io/cypress/issues/19524). - Added the `CYPRESS_DOWNLOAD_PATH_TEMPLATE` environment variable which can be set to a string template for building the download URL for the Cypress binary. This environment variable is useful for users who are downloading the Cypress binary from a proxy that is not one-to-one with the Cypress's default download url. More information can be found in the [Install Binary](https://docs.cypress.io/guides/getting-started/installing-cypress#Install-binary) documentation. Fixes [#15697](https://togithub.com/cypress-io/cypress/issues/15697). **Bugfixes:** - Fixed an issue where the `--spec` CLI parameter was not working properly when passing multiple glob patterns that are separated by commas. Fixes [#16102](https://togithub.com/cypress-io/cypress/issues/16102). - Fixed an issue with how the `CYPRESS_VERIFY_TIMEOUT` environment variable was read so it can set in a project's `package.json` or it's `.npmrc`. Fixes [#19559](https://togithub.com/cypress-io/cypress/issues/19559). **Dependency Updates:** - Upgraded `graceful-fs` from `4.2.0` to `4.2.9`. This upgrade resolves issues observed with using graceful-fs v4.2.0 with resolve v1.21+. Addressed in [#19676](https://togithub.com/cypress-io/cypress/issues/19676) and resolves [#19610](https://togithub.com/cypress-io/cypress/pull/19610). - **NOTE:** This upgrade to `graceful-fs` breaks Cypress's compatibility with Yarn 2. We have observed errors with Yarn 2.4.2 with `graceful-fs` 4.2.9. Before this change, Cypress had minimal Yarn 2 support (see [#6377](https://togithub.com/cypress-io/cypress/issues/6377)). Between Yarn 3 fixing multiple bugs and the migration path from Yarn 2 to Yarn 3 being minimal, we felt the best step forward was to support and recommend Yarn 3 over Yarn 2. - Upgraded `electron` from `15.2.0` to `15.3.4`. Addressed in [#19351](https://togithub.com/cypress-io/cypress/issues/19351).Configuration
📅 Schedule: "after 9pm every weekday,before 5pm every weekday" in timezone Europe/Madrid.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.