Commit Graph

1872 Commits

Author SHA1 Message Date
Adam Stone-Lord
4671317eb1 feat: (studio) support @cypress/grep package in Cypress Studio (#32311)
Co-authored-by: Matt Schile <mschile@cypress.io>
2025-09-08 09:55:06 -04:00
Ryan Manuel
4c68732ea4 dependency: upgrade better-sqlite3 from 11.9.1 to 11.10.0 (#32404)
* dep: upgrade better-sqlite3 from 11.9.1 to 11.10.0

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

* update electron guide
2025-09-02 19:27:59 -05:00
Bill Glesias
3481d1acaf chore: refactor cypress/cli to TypeScript (#32063)
* migrate cli scripts to TypeScript

* convert all javascript source files in the CLI to TypeScript

rebase into first

* chore: refactor all tests to TypeScript

rebase into second

* add npmignore for cli for typescript files

* update build process

* fix publically available exports

* Fix cy-in-cy tests

* add ts-expect-error to failing files

* fix projectConfigIpc failures as there are now multiple installs of tsx

* fix after-pack hook

* fix binary script

* chore: update publish binary to account for CLI being an ESModule compiled down to CommonJS

* does this work?

* fix the verify spec by making the listr2 renderer silent as it behaves differently since the refactor and is printing non deterministic outputs into our tests that do not have a large impact on the area we are testing and mostly served to actually test the renders of the listr2 framework itself

* empty commit

* additional refactor to code to remove strange any typing and exporting

* bump cache and build binaries

* fix CLI exports to keep backwards compatibility

* fix unit-tests

* turn on mac jobs

* fix group name rename in CLI

* remove babel deps from cli and explicitly install typescript

* address feedback from code review

* dont just falsy check results and instead explicitly check for null or undefined

* add ts-expect-error

* additional pass on cleaning up dynamic require / import from global lib references

* annotate ts-expect-errors with reason for why error is expected

* add rest of ts-expect-error comments

* removing hardcoded branch to publish binary chore/migrate_cli_to_typescript
2025-09-02 17:52:45 -04:00
Bill Glesias
591de461fd chore: release 15.1.0 (#32401) 2025-09-02 14:31:16 -04:00
Bill Glesias
8d0aee00b1 fix: wrap the tsx loader path in quotes (#32400)
* fix: allow for spaces to be present in the tsx loader path so node can discover the loader. We do this by wrapping the path in quotes

* chore: add rimraf to fix contributors on windows when cleaning the stderr-filtering package
2025-09-02 14:00:02 -04:00
Bill Glesias
58bee2839c fix: force gtk version 3 to avoid Electron 36 from crashing (#32372)
* Fix: force gtk version 3 to avoid https://www.electronjs.org/blog/electron-36-0\#behavior-changed-gtk-4-is-the-default-when-running-on-gnome

* Update cli/CHANGELOG.md

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

* add suggestions from code review

* empty

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
2025-08-28 20:32:28 -04:00
Bill Glesias
d39eee3776 chore: patch dtslint to work until we can find a replacement (#32383) 2025-08-28 17:18:34 -04:00
Jennifer Shehane
90310ae7f9 feat: extend Cypress.Keyboard.Keys and cy.press to support (almost) all keyboard keys (#31496)
* feat: extend Cypress.Keyboard.Keys and cy.press to support all keyboard keys

* Update cli/types/cypress.d.ts

* reference urls for codepoints

* type defs for expanded keys; tests

* changelog

* rm modifier keys temporarily - see WIP @ feat/key-press-modifier-keys

* Add pr link to changelog

* reduce repetition with key codes; remove unsupported capslock keycode

* only "key" special function keys in Cypress.Keyboard.Keys - otherwise, support any single character even if multiple codepoints

* do not refocus on f6 - f6 behavior keyup is indeterminate, so do not assert in that special case

* clean up keyboard key types, clean up duplicate def from merge

* various cleanup - wip - need multi-codepoint fix

* support multi-codepoint characters

* properly dispatch each part of a multipart utf-8 character

* fix import

* fix dtslint

* tscheck

* fix spacing

* Apply suggestions from code review

* changelog

* changelog

* ensure input actions are released in bidi; add test for keypress and input events for firefox

* fix keypress & input events in chrome

* consistent debug

* rm debug logging from input fixture

* some typos, changelog version

* fix toSupportedKey guard fn to properly reject non-strings

* add Space as named key, remove warnings re legacy firefox

* fix space

* support single-digit number keys

* remove support for F-keys

* add test cmd to types pkg

* rm failing vitest project config

* fix changelog

* clean up types a bit for single digit numbers

* more updates

---------

Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
2025-08-28 10:31:49 -04:00
Jennifer Shehane
ab2004bbde fix: move from getos to systeminformation to fix OS distro/release info (#32283)
* fix: move from getos to systeminformation

* add changelog entry

* remove extraneous package that isn't used

* update changelog
2025-08-27 09:52:48 -04:00
Bill Glesias
05c1828b2e fix: correctly discover TypeScript compiler in @cypress/webpack-batteries-included-preprocessor (#32339)
* fix: correctly discover TypeScript compiler in WBIP

* address comments from cursor
2025-08-26 14:28:55 -04:00
Mike McCready
f49f1c1236 dependency: update axios to 1.11.0 (#32348)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-26 14:25:47 -04:00
renovate[bot]
a51d27842a dependency: update dependency esbuild to ^0.25.2 [security] (#32231)
* fix(deps): update dependency esbuild to ^0.25.0 [security]

* empty commit

* bumping esbuild in system-tests

* bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* index on renovate/npm-esbuild-vulnerability: bd192afbf9 bump to higher version

* bump to 0.25.2

* update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* index on renovate/npm-esbuild-vulnerability: 20b9d374d7 update due to esbuild metadata output additions

* fix binary-cleanup

* Fix tslib module paths in binary-cleanup.js

* Update tslib import paths in binary-cleanup.js

* Remove tslib ES6 module references

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-08-22 14:58:42 -05:00
Matt Schile
4c39b0d79f misc: (studio) updated panel-4 background color (#32333) 2025-08-22 08:52:07 -06:00
Matt Schile
a8e7fa1b87 fix: (studio) hide Studio button in CT (#32315) 2025-08-21 12:47:32 -06:00
renovate[bot]
a7acb24efa dependency: update dependency image-size to v1.2.1 [security] (#32232)
* fix(deps): update dependency image-size to v1.2.1 [security]

* fix(deps): update dependency image-size to v1.2.1 [security]

* changelog entry

* move changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-21 10:41:42 -04:00
renovate[bot]
e4e3f84bc7 dependency: update dependency tar to v6.2.1 [security] (#32229)
* chore(deps): update dependency tar to v6.2.1 [security]

* bump other version of tar

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2025-08-20 14:30:32 -04:00
Cacie Prins
2ac46ece89 docs: add entry to breaking changes in v15 re: glibc <2.31 (#32303) 2025-08-20 14:11:57 -04:00
Bill Glesias
ecd1256347 chore: Release 15.0.0 (#32285)
* chore: update changelog and splash page for release 15

* run arm64 on branch and bump ubuntu executor

* ensure-node before running lerna commands

---------

Co-authored-by: Cacie Prins <cacie@cypress.io>
2025-08-19 19:41:07 -04:00
Adam Alston
f437cad4b6 fix(fixtures): cache null and undefined encodings separately (#32277)
* fix(fixtures): cache null and undefined encodings separately

* docs: add changelog entry
2025-08-19 17:09:46 -04:00
Cacie Prins
e463fdbc61 fix: Redirect spammy electron stderr to a debug sink (#32188)
* wip: system test to reproduce

* system test for alsa stderr

* split cypress from 3rd party stderr at parent process to electron child

* rm garbage warning regexes

* fix newline behavior when parsing internal stderr

* migrate left over console errors

* clean up system test name

* fix typed import

* extract stderr splitting to separate pkg so runner can use @packages/error

* rm new err log from packherd-quire

* handle backpressure

* docs

* some unit tests & coverage for stderr-filtering

* unit tests

* no longer test regexp specific output in spawn unit tests

* filter enabled debug namespaces rather than just cypress namespacesc

* revise stream splitting et al

* try to fix v8 snapshot build??

* fix console.log assertion

* add missing eslint config

* rm unused spies

* fix regexp for optional leading wsp and ansi on debug entries

* update unit tests because sinon

* lint

* colon..

* build stderr-filtering before checking if binary exists

* adds TagStream transform stream, fixes stderr from child proc config

* add build-prod script for stderr-filtering

* changelog

* properly handle backpressure in prefixed content transform stream

* use standard tsconfig?

* better tsconfig

* Add pkgStderrFiltering to monorepoPaths

* add \"files\" manifest

* pipe all stderr to stderr when CYPRESS_INTERNAL_DEBUG_ELECTRON is enabled

* rm explicit build of stderr-filtering in check-if-binary-exists step

* ensure all dependencies of scripts/ are built before scripts are executed in the check-if-binary-exists command

* fix dev version ref

* swap logic

* add stdin piping

* fix exec name on the run-on-dependencies command to be more useful

* use correct env

* rm obsolete type refs

* simplify stderr-filtering public iface, pipe cy-in-cy stderr through filtering tx

* bust cache

* fix mocks

* fix v8-snapshot

* move stderrfiltering to dev pkg in cli

* skip integrity check in ci, if they are out of date things should fail anyway

* copypasta over a portion of stderr-filtering to cli, since cli cannot import @packages

* Delete issues.md

* rm special filtering for cy in cy

* rm too narrow rules file

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-19 17:05:53 -04:00
Jennifer Shehane
7acb7e0b71 chore: move dep update into dep area of changelog (#32281) 2025-08-19 09:37:16 -04:00
Bruno Lemos
f7c98473f5 fix: ts-loader detection (false positive) (#32266)
* fix: ts-loader detection (false positive)

* add test for ts-loader incorrectly resolcing and removing typescript 4 tests as support is removed in Cypress 15

* fix regex where ts-loader may be an absolute path

* chore: fix regex typo

* re-add typescript 4 tests and remove in a separate PR

* add changelog entry

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-18 20:11:44 -04:00
renovate[bot]
4afff00deb fix(deps): update dependency systeminformation to v5.23.8 [security] (#32234)
* fix(deps): update dependency systeminformation to v5.23.8 [security]

* fix(deps): update dependency systeminformation to v5.23.8 [security]

* empty commit

* bump systeminformation to latest

* yarnlock

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-08-18 16:08:05 -04:00
Adam Alston
ad4bf37ad8 fix: invalidate cache when fixture is updated via writeFile (#32161)
* fix: invalidate cache when fixture is updated via writeFile

* refactor: delete space

* fix: improve fixture path resolution

* fix: improve fixture path resolution

* fix: update cache key generation

* fix: fetch config at execution time

* fix: invalidate fixture cache entries across encodings and paths

* fix optimized dependencies failures

* fix: relative pathing on windows as path polyfill only works with unix style paths

* Update packages/driver/src/cy/commands/fixtures.ts

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-18 14:38:43 -04:00
Bill Glesias
f6e0744e38 breaking: update execa from 1.0.0 to 4.1.0 (#32238)
* breaking: update execa from 1.0.0 to 4.1.0 which breaks the yielded cy.exec() object from yielding property code and instead yields exitCode

* fix launchpad tests on linux

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-08-18 11:52:24 -04:00
Bill Glesias
c8606c21ae fix: extranous angular warnings (#32251) 2025-08-15 16:10:54 -04:00
Jennifer Shehane
90c3340cf6 breaking: Signal removal of official support for direct download of Cypress (#32249)
* breaking: Signal removal of official support for direct download of Cypress

BREAKING: Signal removal of official support for direct download of Cypress

* add PR link

* Update cli/CHANGELOG.md

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
2025-08-15 13:53:10 -04:00
renovate[bot]
bebfa46bc9 fix(deps): update dependency body-parser to v1.20.3 [security] (#32225)
* fix(deps): update dependency body-parser to v1.20.3 [security]

* empty commit

* fix(deps): update dependency body-parser to v1.20.3 [security]

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-08-14 12:50:37 -04:00
Jennifer Shehane
4e4cfb2fc1 chore: add more closed issues to tsx changelog entry (#32246) 2025-08-14 10:08:50 -04:00
Bill Glesias
c96115df0f feat: support Angular 20 (#32198)
* feat: support angular 20

* chore: update cypress/schematic dev deps
2025-08-13 18:23:48 -04:00
Bill Glesias
19df26c279 chore: update babel to latest (#32203) 2025-08-12 15:07:23 -04:00
Adam Alston
b2992fe233 docs: update cspell config and fix spelling issues (#32190)
* fix: update cspell config and fix spelling issues in changelog

* revert: undo extensions config change
2025-08-11 10:57:52 -04:00
Bill Glesias
ed8987dea7 chore: clean up develop after release/15.0.0 merge (#32189) 2025-08-08 17:03:17 -04:00
Jennifer Shehane
f2a381ca55 Merge branch 'develop' into release/15.0.0 2025-08-08 12:58:43 -04:00
Adam Alston
39c175976f fix: return raw fixture when encoding is specified (#32155)
* fix: return raw fixture when encoding is specified

* revert: revert test change

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-08 12:28:37 -04:00
Adam Alston
317953b096 fix: update fixture cache to prevent encoding conflicts (#32151)
* fix: update fixture cache to prevent encoding conflicts

* feat: add changelog entry

* empty commmit

* refactor: update separator

* Update packages/driver/src/cy/commands/fixtures.ts

---------

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2025-08-08 11:52:35 -04:00
Bill Glesias
b6f3eead33 Merge branch 'develop' into merge_develop_15 2025-08-07 15:45:04 -04:00
Bill Glesias
99055ec6ac fix: make sure legacy output spies work as intended (#32158) 2025-08-07 15:29:32 -04:00
Mike McCready
ed89b8dba6 dependency: update tmp to ~0.2.4 (#32177) 2025-08-07 14:39:56 -04:00
Bill Glesias
3cbfbe76b0 chore: release app 14.5.4 (#32179) 2025-08-07 11:32:22 -04:00
Bill Glesias
83467ad5ae Merge branch 'develop' into merge_develop_15 2025-08-06 19:29:26 -04:00
Ryan Manuel
7d9d3e2be1 dependency: upgrade tar-fs to 2.1.3 and 3.1.0 (#32160)
* chore (dep): upgrade tar-fs to 2.1.3 and 3.1.0

* yarn.lock

* Update cli/CHANGELOG.md

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
2025-08-06 11:13:56 -04:00
Bill Glesias
a3924071c1 Merge branch 'develop' into merge_develop_15 2025-08-05 16:23:25 -04:00
Jennifer Shehane
788dfd1c0b chore: bump firefox version we test against to 141 (#32078)
* chore: bump firefox version we test against to 141

* account for unspecified sameSite which is now available in firefox 140

* fix expected error string for invalid cookie

* override FORCE_FIREFOX_CDP firefox 141

* fix cdp override in ff 141+

* maybe fix cookeie system tests? seem to time out locally

* set family as well as name

* fix system tests fore ff 141

* fix ff deprecation

* rm erroneous err param

* assume firefox is modern in cookies driver e2e test

* Update system-tests/lib/system-tests.ts

* we do still run tests against firefox 134

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
2025-08-05 13:00:30 -04:00
Jennifer Shehane
4215983252 breaking: Move getSelector and reset to private methods on ElementSelector API (#32098)
* breaking: Move getSelector, getSelectorPriority, and reset to private methods on ElementSelector API

BREAKING: Move getSelector, getSelectorPriority, and reset to private methods on ElementSelector API

* Update getSelectorPriority back to public method

* Update error message + changelog for removed method

* mention this PR in changelog
2025-07-29 16:21:54 -04:00
Jennifer Shehane
5cad25c7ab Merge branch 'develop' into release/15.0.0 2025-07-25 09:44:01 -04:00
Cacie Prins
d1478d8961 chore: release 14.5.3 (#32099) 2025-07-24 15:13:32 -04:00
Cacie Prins
7825936902 chore(dep): upgrade cypress/request to 3.0.9 to address form-data vulnerabilities (#32096)
* chore(deps): upgrade @cypress/request

* changelog
2025-07-24 15:10:57 -04:00
Cacie Prins
5b0a7e2f88 chore: revert release 14.5.3
This reverts commit 72dd9de670.
2025-07-24 11:15:35 -04:00
Cacie Prins
72dd9de670 chore: release 14.5.3 (#32093) 2025-07-24 09:55:10 -04:00