npm / @currents/playwright
@currents/playwright
What changed in @currents/playwright 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
7 breaking1 security3 deprecations8 new APIs and options2 performance3 behavior and defaults1 tooling28 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@currents/playwright 234 changes
Breaking changes 7
When a command-line option and its environment variable differ, the option now wins; remove whichever value you do not want used.
Running
currentswithout a command now prints help and exits with 1 instead of running upload.Use
currents run getinstead ofcurrents api get-runto get a run.@currents/cmd 2.0.0 requires Node.js 20 or later, so update the runtime used to run it.
currents run upload --input-formatandcurrents convertnow fail if the output directory contains other files.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.
currents run upload --input-formatandcurrents convertnow fail if the report directory contains other files.
Security 1
The repository URL is stored without any user name and password it may contain in CI.
Deprecations 3
currents api get-runstill works in 2.0 but is not listed in help; usecurrents run getinstead.currents cancelstill works but prints a deprecation warning and will be removed in the next major version; usecurrents run cancel.currents convertstill works in 2.0 but is not listed in help; usecurrents run upload --input-format junitto upload converted reports.
New APIs and options 6
The orchestration session create timeout is now configurable.
Adds Azure CI data support.
Adds an environment field to discovery.
Adds the --pwc-environment option.
Use
currents run cancelinstead ofcurrents cancelto cancel a run.Adds the discover subcommand for test discovery; filename flags used for discovery or filtering must be passed to this subcommand.
Performance 2
Coverage uploads are compressed.
Instance stdout artifact uploads are gzip-compressed.
Behavior and default changes 2
currents cache setandcache getwithout--idnow derive the cache ID from detected CI jobs across CI providers; without a detected job, they warn that the ID is random.Debug output now replaces keys with
*****.
Tooling 1
Use
currents run uploadinstead ofcurrents uploador invokingcurrentswithout a command to upload results.
Fixes and other changes 12
Stuck orchestrated Playwright children are recovered at shutdown.
Prevents silent truncation of the discovery list.
Reporter output emitted before onBegin is buffered.
Fixes compatibility with Playwright 1.61.0.
Ensures the command rejects the -G flag.
Cleans CI branch names.
Restores git-preferred commit merging.
Adopts CURRENTS_CI_URL as the ciUrl config option.
Accepts the fully parallel flag, allowing it to be used with pwc-p run.
The commit and its CI fallback are now taken from commit-info 2.0.
Playwright errors are surfaced in the discovery reporter.
Restores compatibility with Playwright 1.60.0.
@currents/playwright 119 changes
New APIs and options 2
Adds the consoleOutput flag to control reporter output.
Adds regex pattern actions.
Behavior and default changes 1
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.
Fixes and other changes 16
Traces are retained for quarantined tests when using retain-on-failures trace mode.
Project dependencies are no longer missing from discovery when filtering by last-failed.
The discovery scanner now runs only id-only preOnlyTestFilters.
CI provider detection was enhanced, which may affect how the reporter identifies the CI environment.
Pull request environment capture was enhanced, which may affect the environment data available to the reporter.
--project is stripped from task creation.
The reporter supports commander v13 and excess argv, improving compatibility when running with those arguments.
An interrupted test case is added if any element is interrupted.
Support for the deprecated --browser flag.
The orchestration exit code when cancelled (fail-fast) should always be 1.
Additional debug logs help identify orchestration discovery timeouts.
Handles orchestration cancellation without hanging.
The dotenv import is set to quiet to remove its log output.
When error.message is undefined, error.value is used as the message sent to the backend.
Project dependencies are included in error copy for fake test results.
Fixed compatibility with the VSCode PW extension.