unstale

npm / @flakiness/playwright

@flakiness/playwright

What changed in @flakiness/playwright 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

7 breaking12 new APIs and options6 behavior and defaults3 tooling12 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

@flakiness/playwright 212 changes

Breaking changes 4

  • The separate balanced-sharding executable is gone; configure shardBalancing and run plain playwright test --shard=N/M instead.

    2.0.0release notes

  • The supported Node.js engine range now starts at 22.9.0; Node 20 has been dropped.

    2.0.0release notes

  • open now defaults to 'never', so the reporter prints the flakiness show command instead of launching a browser; set it to 'on-failure' to restore the old behavior.

    2.0.0release notes

  • Balanced sharding now requires a timings file, produced with flakiness-playwright-timings build or fetch and committed, making shard splits stable across runs.

    2.0.0release notes

New APIs and options 2

  • GitLab CI/CD uploads can authenticate without an access token by declaring an id_tokens entry named FLAKINESS_ID_TOKEN with an aud matching flakinessProject.

    2.0.0release notes

  • Configure balanced sharding as a reporter option and use Playwright's native sharding command.

    2.0.0release notes

Behavior and default changes 1

  • Balanced sharding requires Playwright 1.62+; on older versions the reporter warns and Playwright's native sharding applies.

    2.0.0release notes

Tooling 1

  • Each shard prints timings coverage, predicted per-shard loads, and a balance percentage before the run, then the predicted-vs-actual delta after it.

    2.0.0release notes

Fixes and other changes 4

  • Improves support for serial suites.

    2.0.3release notes

  • Fixes a corner case in the sharding algorithm.

    2.0.2release notes

  • Improves the shard selection heuristic.

    2.0.2release notes

  • Node 20 support was brought back, allowing developers to use the package with Node 20 again.

    2.0.1release notes

@flakiness/playwright 128 changes

Breaking changes 3

  • Playwright project metadata is no longer used to define timelines.

    1.8.0release notes

  • Run titles are no longer auto-detected.

    1.6.0release notes

  • A Flakiness Report is no longer generated when no Playwright project is given.

    1.2.0release notes

New APIs and options 10

  • The flakiness-playwright-shard command supports the --list flag.

    1.18.0release notes

  • Adds a fetch subcommand to the timings binary.

    1.17.0release notes

  • Adds a flag to read test duration hints.

    1.17.0release notes

  • Runs balanced shards using --shard; Playwright test arguments pass through as usual.

    1.11.0release notes

  • Configure the reporter with a Flakiness project so balanced sharding can use its historical durations.

    1.11.0release notes

  • Introduces perfect sharding.

    1.10.0release notes

  • Embeds information about the runtime, test runner, and reporter.

    1.9.0release notes

  • Attachments are attributed to steps, making their association with individual steps available to developers.

    1.7.0release notes

  • Adds a title option to name reports.

    1.5.0release notes

  • Adds support for Github OIDC; see the uploading reports documentation for details.

    1.1.0release notes

Behavior and default changes 5

  • Sharded runs now generate a default title.

    1.15.0release notes

  • The Durations API supports anonymous access.

    1.15.0release notes

  • The sharding algorithm was improved.

    1.13.0release notes

  • Sharding now applies only to leaf projects and tests.

    1.11.0release notes

  • Stdio is represented as a unified array with real-time timestamps.

    1.7.0release notes

Tooling 2

  • Introduces a new binary for working with Playwright test timings.

    1.17.0release notes

  • Uses historical durations from Flakiness.io to generate a Playwright --test-list for each shard, aiming to make CI shards finish closer together.

    1.11.0release notes

Fixes and other changes 8

  • Anonymous Playwright projects are now properly named.

    1.17.0release notes

  • Sharding now respects --fully-parallel.

    1.16.0release notes

  • The telemetry timer no longer retains the host process.

    1.14.0release notes

  • Tests from serial suites are no longer sharded.

    1.12.0release notes

  • Only projects that were actually executed are reported.

    1.8.0release notes

  • PNPM is now properly detected for the show-report message.

    1.4.0release notes

  • Avoids the “dynamic require of tty is not supported” error.

    1.3.2release notes

  • Support initialized repositories that have no commits.

    1.3.0release notes