# What changed in @currents/playwright

> 53 changes in @currents/playwright 1 to 2 from its official release notes, upgrade guides and advisories: 7 breaking, 3 deprecations, 1 security, 8 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/@currents/playwright/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @currents/playwright 2

### Breaking changes

- When a command-line option and its environment variable differ, the option now wins; remove whichever value you do not want used. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Running `currents` without a command now prints help and exits with 1 instead of running upload. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Use `currents run get` instead of `currents api get-run` to get a run. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- @currents/cmd 2.0.0 requires Node.js 20 or later, so update the runtime used to run it. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- `currents run upload --input-format` and `currents convert` now fail if the output directory contains other files. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Adds the run subcommand; update uses of pwc-p to use pwc-p run, and pass filename flags for discovery or filtering to pwc-p discover instead. (2.0.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#200-2026-05-19)
- `currents run upload --input-format` and `currents convert` now fail if the report directory contains other files. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)

### Security

- The repository URL is stored without any user name and password it may contain in CI. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)

### Deprecations

- `currents api get-run` still works in 2.0 but is not listed in help; use `currents run get` instead. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- `currents cancel` still works but prints a deprecation warning and will be removed in the next major version; use `currents run cancel`. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- `currents convert` still works in 2.0 but is not listed in help; use `currents run upload --input-format junit` to upload converted reports. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)

### New APIs and options

- The orchestration session create timeout is now configurable. (2.5.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#250-2026-07-16)
- Adds Azure CI data support. (2.1.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#210-2026-05-22)
- Adds an environment field to discovery. (2.1.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#210-2026-05-22)
- Adds the --pwc-environment option. (2.1.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#210-2026-05-22)
- Use `currents run cancel` instead of `currents cancel` to cancel a run. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Adds the discover subcommand for test discovery; filename flags used for discovery or filtering must be passed to this subcommand. (2.0.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#200-2026-05-19)

### Performance

- Coverage uploads are compressed. (2.3.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#230-2026-06-05)
- Instance stdout artifact uploads are gzip-compressed. (2.3.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#230-2026-06-05)

### Behavior and default changes

- `currents cache set` and `cache get` without `--id` now derive the cache ID from detected CI jobs across CI providers; without a detected job, they warn that the ID is random. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Debug output now replaces keys with `*****`. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)

### Tooling

- Use `currents run upload` instead of `currents upload` or invoking `currents` without a command to upload results. (2.0.0) — [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)

### Fixes and other changes

- Stuck orchestrated Playwright children are recovered at shutdown. (2.4.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#240-2026-07-10)
- Prevents silent truncation of the discovery list. (2.3.3) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#240-2026-07-10), [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#233-2026-06-24)
- Reporter output emitted before onBegin is buffered. (2.3.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#240-2026-07-10), [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#232-2026-06-22)
- Fixes compatibility with Playwright 1.61.0. (2.3.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#240-2026-07-10), [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#231-2026-06-16)
- Ensures the command rejects the -G flag. (2.3.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#240-2026-07-10), [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#231-2026-06-16)
- Cleans CI branch names. (2.1.4) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#214-2026-05-29)
- Restores git-preferred commit merging. (2.1.4) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#214-2026-05-29)
- Adopts CURRENTS_CI_URL as the ciUrl config option. (2.1.3) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#213-2026-05-29)
- Accepts the fully parallel flag, allowing it to be used with pwc-p run. (2.1.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#211-2026-05-22)
- The commit and its CI fallback are now taken from commit-info 2.0. (2.0.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#252-2026-10-05), [upgrade guide](https://docs.currents.dev/resources/reporters/currents-cmd/upgrade-to-v2)
- Playwright errors are surfaced in the discovery reporter. (2.0.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#200-2026-05-19)
- Restores compatibility with Playwright 1.60.0. (2.0.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#200-2026-05-19)

## @currents/playwright 1

### New APIs and options

- Adds the consoleOutput flag to control reporter output. (1.22.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1220-2026-03-03)
- Adds regex pattern actions. (1.18.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1180-2025-11-04)

### Behavior and default changes

- Tests stopped by maxFailures or SIGINT are reported as interrupted instead of failed; they are not considered passed, and a spec file or run containing an interrupted test is considered failed. (1.21.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1210-2026-01-19)

### Fixes and other changes

- Traces are retained for quarantined tests when using retain-on-failures trace mode. (1.23.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1232-2026-04-17)
- Project dependencies are no longer missing from discovery when filtering by last-failed. (1.23.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1231-2026-04-16)
- The discovery scanner now runs only id-only preOnlyTestFilters. (1.23.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1231-2026-04-16)
- CI provider detection was enhanced, which may affect how the reporter identifies the CI environment. (1.23.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1230-2026-04-09)
- Pull request environment capture was enhanced, which may affect the environment data available to the reporter. (1.23.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1230-2026-04-09)
- --project is stripped from task creation. (1.22.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1222-2026-03-25)
- The reporter supports commander v13 and excess argv, improving compatibility when running with those arguments. (1.22.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1221-2026-03-20)
- An interrupted test case is added if any element is interrupted. (1.22.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1220-2026-03-03)
- Support for the deprecated --browser flag. (1.21.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1212-2026-02-17)
- The orchestration exit code when cancelled (fail-fast) should always be 1. (1.21.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1211-2026-02-05)
- Additional debug logs help identify orchestration discovery timeouts. (1.20.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1202-2026-01-13)
- Handles orchestration cancellation without hanging. (1.20.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1201-2025-12-29)
- The dotenv import is set to quiet to remove its log output. (1.19.2) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1192-2025-12-03)
- When error.message is undefined, error.value is used as the message sent to the backend. (1.19.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1191-2025-11-26)
- Project dependencies are included in error copy for fake test results. (1.19.1) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1191-2025-11-26)
- Fixed compatibility with the VSCode PW extension. (1.19.0) — [release notes](https://github.com/currents-dev/currents-playwright-changelog/blob/803375941e662dee1261a80d72ceb90a30a3391e/CHANGELOG.md#1190-2025-11-10)
