Skip to content

[develop] Michijs Dependabot changes#412

Open
michijs[bot] wants to merge 1 commit into
developfrom
michijs-dependabot
Open

[develop] Michijs Dependabot changes#412
michijs[bot] wants to merge 1 commit into
developfrom
michijs-dependabot

Conversation

@michijs

@michijs michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@michijs

michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Bump esbuild from 0.27.4 to 0.28.1

Changelog:
Sourced from releases.
        ### v0.28.1* Disallow ``\`` in local development server HTTP requests ([GHSA-g7r4-m6w7-qqqr](https://redirect.github.com/evanw/esbuild/security/advisories/GHSA-g7r4-m6w7-qqqr))

This release fixes a security issue where HTTP requests to esbuild's local development server could traverse outside of the serve directory on Windows using a ``\`` backslash character. It happened due to the use of Go's `path.Clean()` function, which only handles Unix-style `/` characters. HTTP requests with paths containing ``\`` are no longer allowed.

Thanks to [@​dellalibera](https://redirect.github.com/dellalibera) for reporting this issue.
  • Add integrity checks to the Deno API (GHSA-gv7w-rqvm-qjhr)

    The previous release of esbuild added integrity checks to esbuild's npm install script. This release also adds integrity checks to esbuild's Deno install script. Now esbuild's Deno API will also fail with an error if the downloaded esbuild binary contains something other than the expected content.

    Note that esbuild's Deno API installs from registry.npmjs.org by default, but allows the NPM_CONFIG_REGISTRY environment variable to override this with a custom package registry. This change means that the esbuild executable served by NPM_CONFIG_REGISTRY must now match the expected content.

    Thanks to @​sondt99 for reporting this issue.

  • Avoid inlining using and await using declarations (#4482)

    Previously esbuild's minifier sometimes incorrectly inlined using and await using declarations into subsequent uses of that declaration, which then fails to dispose of the resource correctly. This bug happened because inlining was done for let and const declarations by avoiding doing it for var declarations, which no longer worked when more declaration types were added. Here's an example:

    // Original code
    {
      using x = new Resource()
      x.activate()
    }
    
    // Old output (with --minify)
    new Resource().activate();
    
    // New output (with --minify)
    {using e=new Resource;e.activate()}
  • Fix module evaluation when an error is thrown (#4461, #4467)

    If an error is thrown during module evaluation, esbuild previously didn't preserve the state of the module for subsequent module references. This was observable if import() or require() is used to import a module multiple times. The thrown error is supposed to be thrown by every call to import() or require(), not just the first. With this release, esbuild will now throw the same error every time you call import() or require() on a module that throws during its evaluation.

  • Fix some edge cases around the new operator (#4477)

    Previously esbuild incorrectly printed certain edge cases involving complex expressions inside the target of a new expression (specifically an optional chain and/or a tagged template literal). The generated code for the new target was not correctly wrapped with parentheses, and either contained a syntax error or had different semantics. These edge cases have been fixed so that they now correctly wrap the new target in parentheses. Here is an example of some affected code:

    // Original code
    new (foo()`bar`)()
    new (foo()?.bar)()
    
    // Old output
    new foo()`bar`();
    new (foo())?.bar();
    
    // New output
    new (foo())`bar`();
    new (foo()?.bar)();
  • Fix renaming of nested var declarations (#4471)

    This release fixes a bug where var declarations in nested scopes that are hoisted up to module scope were not correctly being renamed during bundling. That could previously lead to name collisions when minification was disabled, which could potentially cause a behavior change. The bug has been fixed so that these hoisted declarations are now considered to be module-level symbols during the name collision avoidance pass.

  • Emit var instead of const for certain TypeScript-only constructs for ES5 (#4448)

    While esbuild doesn't generally support converting const to var for ES5 due to nested scoping rules (which is currently a build-time error), esbuild previously incorrectly converted TypeScript-only import assignment constructs into a const declaration even when targeting ES5. With this release, esbuild will now use var for this case instead:

    // Original code
    import x = require('y')
    
    // Old output (with --target=es5)
    const x = require("y");
    
    // New output (with --target=es5)
    var x = require("y");
          ### v0.28.0* Add support for `with { type: 'text' }` imports ([#4435](https://redirect.github.com/evanw/esbuild/issues/4435))
    

    The import text proposal has reached stage 3 in the TC39 process, which means that it's recommended for implementation. It has also already been implemented by Deno and Bun. So with this release, esbuild also adds support for it. This behaves exactly the same as esbuild's existing text loader. Here's an example:

    import string from './example.txt' with { type: 'text' }
    console.log(string)
  • Add integrity checks to fallback download path (#4343)

    Installing esbuild via npm is somewhat complicated with several different edge cases (see esbuild's documentation for details). If the regular installation of esbuild's platform-specific package fails, esbuild's install script attempts to download the platform-specific package itself (first with the npm command, and then with a HTTP request to registry.npmjs.org as a last resort).

    This last resort path previously didn't have any integrity checks. With this release, esbuild will now verify that the hash of the downloaded binary matches the expected hash for the current release. This means the hashes for all of esbuild's platform-specific binary packages will now be embedded in the top-level esbuild package. Hopefully this should work without any problems. But just in case, this change is being done as a breaking change release.

  • Update the Go compiler from 1.25.7 to 1.26.1

    This upgrade should not affect anything. However, there have been some significant internal changes to the Go compiler, so esbuild could potentially behave differently in certain edge cases:

    • It now uses the new garbage collector that comes with Go 1.26.
    • The Go compiler is now more aggressive with allocating memory on the stack.
    • The executable format that the Go linker uses has undergone several changes.
    • The WebAssembly build now unconditionally makes use of the sign extension and non-trapping floating-point to integer conversion instructions.

    You can read the Go 1.26 release notes for more information.

          ### v0.27.7* Fix lowering of define semantics for TypeScript parameter properties ([#4421](https://redirect.github.com/evanw/esbuild/issues/4421))
    

    The previous release incorrectly generated class fields for TypeScript parameter properties even when the configured target environment does not support class fields. With this release, the generated class fields will now be correctly lowered in this case:

    // Original code
    class Foo {
      constructor(public x = 1) {}
      y = 2
    }
    
    // Old output (with --loader=ts --target=es2021)
    class Foo {
      constructor(x = 1) {
        this.x = x;
        __publicField(this, "y", 2);
      }
      x;
    }
    
    // New output (with --loader=ts --target=es2021)
    class Foo {
      constructor(x = 1) {
        __publicField(this, "x", x);
        __publicField(this, "y", 2);
      }
    }
          ### v0.27.5* Fix for an async generator edge case ([#4401](https://redirect.github.com/evanw/esbuild/issues/4401), [#4417](https://redirect.github.com/evanw/esbuild/pull/4417))
    

    Support for transforming async generators into the equivalent state machine was added in version 0.19.0. However, the generated state machine didn't work correctly when polling async generators concurrently, such as in the following code:

    async function* inner() { yield 1; yield 2 }
    async function* outer() { yield* inner() }
    let gen = outer()
    for await (let x of [gen.next(), gen.next()]) console.log(x)

    Previously esbuild's output of the above code behaved incorrectly when async generators were transformed (such as with --supported:async-generator=false). The transformation should be fixed starting with this release.

    This fix was contributed by @​2767mr.

  • Fix a regression when metafile is enabled (#4420, #4418)

    This release fixes a regression introduced by the previous release. When metafile: true was enabled in esbuild's JavaScript API, builds with build errors were incorrectly throwing an error about an empty JSON string instead of an object containing the build errors.

  • Use define semantics for TypeScript parameter properties (#4421)

    Parameter properties are a TypeScript-specific code generation feature that converts constructor parameters into class fields when they are prefixed by certain keywords. When "useDefineForClassFields": true is present in tsconfig.json, the TypeScript compiler automatically generates class field declarations for parameter properties. Previously esbuild didn't do this, but esbuild will now do this starting with this release:

    // Original code
    class Foo {
      constructor(public x: number) {}
    }
    
    // Old output (with --loader=ts)
    class Foo {
      constructor(x) {
        this.x = x;
      }
    }
    
    // New output (with --loader=ts)
    class Foo {
      constructor(x) {
        this.x = x;
      }
      x;
    }
  • Allow es2025 as a target in tsconfig.json (#4432)

    TypeScript recently added es2025 as a compilation target, so esbuild now supports this in the target field of tsconfig.json files, such as in the following configuration file:

    {
      "compilerOptions": {
        "target": "ES2025"
      }
    }

    As a reminder, the only thing that esbuild uses this field for is determining whether or not to use legacy TypeScript behavior for class fields. You can read more in the documentation.

          ### v0.27.4* Fix a regression with CSS media queries ([#4395](https://redirect.github.com/evanw/esbuild/issues/4395), [#4405](https://redirect.github.com/evanw/esbuild/issues/4405), [#4406](https://redirect.github.com/evanw/esbuild/issues/4406))
    

    Version 0.25.11 of esbuild introduced support for parsing media queries. This unintentionally introduced a regression with printing media queries that use the <media-type> and <media-condition-without-or> grammar. Specifically, esbuild was failing to wrap an or clause with parentheses when inside <media-condition-without-or>. This release fixes the regression.

    Here is an example:

    /* Original code */
    @&ZeroWidthSpace;media only screen and ((min-width: 10px) or (min-height: 10px)) {
      a { color: red }
    }
    
    /* Old output (incorrect) */
    @&ZeroWidthSpace;media only screen and (min-width: 10px) or (min-height: 10px) {
      a {
        color: red;
      }
    }
    
    /* New output (correct) */
    @&ZeroWidthSpace;media only screen and ((min-width: 10px) or (min-height: 10px)) {
      a {
        color: red;
      }
    }
  • Fix an edge case with the inject feature (#4407)

    This release fixes an edge case where esbuild's inject feature could not be used with arbitrary module namespace names exported using an export {} from statement with bundling disabled and a target environment where arbitrary module namespace names is unsupported.

    With the fix, the following inject file:

    import jquery from 'jquery';
    export { jquery as 'window.jQuery' };

    Can now always be rewritten as this without esbuild sometimes incorrectly generating an error:

    export { default as 'window.jQuery' } from 'jquery';
  • Attempt to improve API handling of huge metafiles (#4329, #4415)

    This release contains a few changes that attempt to improve the behavior of esbuild's JavaScript API with huge metafiles (esbuild's name for the build metadata, formatted as a JSON object). The JavaScript API is designed to return the metafile JSON as a JavaScript object in memory, which makes it easy to access from within a JavaScript-based plugin. Multiple people have encountered issues where this API breaks down with a pathologically-large metafile.

    The primary issue is that V8 has an implementation-specific maximum string length, so using the JSON.parse API with large enough strings is impossible. This release will now attempt to use a fallback JavaScript-based JSON parser that operates directly on the UTF8-encoded JSON bytes instead of using JSON.parse when the JSON metafile is too big to fit in a JavaScript string. The new fallback path has not yet been heavily-tested. The metafile will also now be generated with whitespace removed if the bundle is significantly large, which will reduce the size of the metafile JSON slightly.

    However, hitting this case is potentially a sign that something else is wrong. Ideally you wouldn't be building something so enormous that the build metadata can't even fit inside a JavaScript string. You may want to consider optimizing your project, or breaking up your project into multiple parts that are built independently. Another option could potentially be to use esbuild's command-line API instead of its JavaScript API, which is more efficient (although of course then you can't use JavaScript plugins, so it may not be an option).

Commit history:
  • 6ff1d8 fix `\` in markdown release notes
  • bb9db8 publish 0.28.1 to npm
  • 9ff053 security: add integrity checks to the Deno API
  • 0a9bf2 enforce non-negative size in gzip parser
  • e2a1a7 security: forbid `\\` in local dev server requests
  • 83a2cb fix #4482: don't inline `using` declarations
  • 308ad7 fix #4471: renaming of nested `var` declarations
  • f013f5 fix some typos
  • aafd6e chore: fix some minor issues in comments (#4462)
  • 15300c follow up: cjs evaluation fixes
  • 1bda0c fix #4461, fix #4467: esm evaluation fixes
  • 90d7ab update go 1.26.1 => 1.26.4 (closes #4464)
  • 2b6452 fix #4448: `import =` uses `var` with `es5` target
  • e0755b fix #4477: parens edge cases for `new` expressions
  • 2faedf js printer: `forbidCall` => `isNewTarget`
  • 6a794d publish 0.28.0 to npm
  • 64ee0e fix #4435: support `with { type: text }` imports
  • ef65ae fix sort order in `snapshots_packagejson.txt`
  • 1a26a8 try to fix `test-old-ts`, also shuffle CI tasks
  • 556ce6 use `''` instead of `null` to omit build hashes
  • 8e675a ci: allow missing binary hashes for tests
  • 706776 Reapply "update go 1.25.7 => 1.26.1"

    This reverts commit b169d8cc46e0ca484a18c20fc30a8e5e3f64aac2.

  • 39473a fix #4343: integrity check for binary download
  • 2025c9 publish 0.27.7 to npm
  • c6b586 fix typo in Makefile for @&ZeroWidthSpace;esbuild/win32-x64
  • 9785e1 publish 0.27.6 to npm
  • b169d8 Revert "update go 1.25.7 => 1.26.1"

    This reverts commit 7b5433d0abdf650b3c9a30453849ffb47dffa2a3.

  • 7ac876 run make update-compat-table
  • 8b5ff5 remove an incorrect else
  • e95526 fix #4421: lower generated class fields if needed

@michijs

michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Bump sharp from 0.34.5 to 0.35.2

Changelog:
Sourced from releases.
        ### v0.35.3-rc.1* Tighten verification of `text` dimensions, TIFF tile dimensions and `extend` values.
  • Improve code bundler support by resolving path to libvips binary.

  • Increase default concurrency when use of MALLOC_ARENA_MAX is detected.

  • Emit warning about binaries provided by Electron for use on Linux.

  • Add hasAlpha property to output info.
    #4500

  • Bound clahe width and height to avoid signed overflow.
    #4551
    @​metsw24-max

  • Bound trim margin to avoid signed overflow.
    #4552
    @​metsw24-max

  • Reject infinite values when validating numbers.
    #4553
    @​metsw24-max

  • Bound extract region to libvips coordinate limit.
    #4555
    @​metsw24-max

  • Verify background colour values are numbers.
    #4556
    @​metsw24-max

  • Bound create and raw input dimensions to coordinate limit.
    #4558
    @​metsw24-max

  • Tighten recomb and affine matrix verification.
    #4560
    @​chatman-media

  • Verify cache memory limit to avoid overflow.
    #4561
    @​metsw24-max

          ### v0.35.2* TypeScript: Add `mediaType` to metadata response.
    

    #4492

  • Improve WebAssembly fallback detection.
    #4513

  • Improve code bundler support with stub binaries.
    #4543

  • Verify GIF effort option is an integer.
    #4544
    @​metsw24-max

  • Verify recomb matrix entries are numbers.
    #4545
    @​metsw24-max

  • TypeScript: Replace namespace with named exports for ESM.
    #4546

  • Bound dilate and erode width to avoid mask-size overflow.
    #4548
    @​metsw24-max

  • Verify convolve kernel values are numbers.
    #4549
    @​metsw24-max

          ### v0.35.2-rc.2* TypeScript: Add `mediaType` to metadata response.
    

    #4492

  • Improve WebAssembly fallback detection.
    #4513

  • Improve code bundler support with stub binaries.
    #4543

  • Verify GIF effort option is an integer.
    #4544
    @​metsw24-max

  • Verify recomb matrix entries are numbers.
    #4545
    @​metsw24-max

  • TypeScript: Replace namespace with named exports for ESM.
    #4546

  • Bound dilate and erode width to avoid mask-size overflow.
    #4548
    @​metsw24-max

          ### v0.35.2-rc.1* TypeScript: Add `mediaType` to metadata response.
    

    #4492

  • Improve WebAssembly fallback detection.
    #4513

  • Improve code bundler support with stub binaries.
    #4543

  • Verify GIF effort option is an integer.
    #4544
    @​metsw24-max

  • Verify recomb matrix entries are numbers.
    #4545
    @​metsw24-max

  • TypeScript: Replace namespace with named exports for ESM.
    #4546

  • Bound dilate and erode width to avoid mask-size overflow.
    #4548
    @​metsw24-max

          ### v0.35.2-rc.0* TypeScript: Add `mediaType` to metadata response.
    

    #4492

  • Improve WebAssembly fallback detection.
    #4513

  • Verify GIF effort option is an integer.
    #4544
    @​metsw24-max

  • Verify recomb matrix entries are numbers.
    #4545
    @​metsw24-max

  • TypeScript: Replace namespace with named exports for ESM.
    #4546

          ### v0.35.1* TypeScript: Ensure type definitions are published for both ESM and CJS.
    

    #4537

  • WebAssembly: Ensure wrapper file is published.
    #4538

          ### v0.35.1-rc.1* TypeScript: Ensure type definitions are published for both ESM and CJS.
    

    #4537

  • WebAssembly: Ensure wrapper file is published.
    #4538

          ### v0.35.1-rc.0* TypeScript: Ensure type definitions are published
    

    #4537

  • WebAssembly: Ensure wrapper file is published.
    #4538

          ### v0.35.0* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

  • Breaking: Add limitInputChannels with a default value of 5.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.3 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ECMAScript Modules (ESM).
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.8* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

  • Breaking: Add limitInputChannels with a default value of 5.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.3 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ECMAScript Modules (ESM).
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.7* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

  • Breaking: Add limitInputChannels with a default value of 5.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.3 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ECMAScript Modules (ESM).
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.6* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

  • Breaking: Add limitInputChannels with a default value of 5.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.3 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ECMAScript Modules (ESM).
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.5* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.2 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ESM
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.4* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.2 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ESM
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.3* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.2 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ESM
    #4509
    @​florian-lefebvre

          ### v0.35.0-rc.2* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.2 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

          ### v0.35.0-rc.1* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.2 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #4487

  • Add image Media Type (MIME Type) to metadata response.
    #4492

  • Add withDensity to set output density in EXIF metadata.
    #4496

  • Improve pkg-config path discovery.
    #4504

  • Add WebP exact option for control over transparent pixel colour values.

          ### v0.35.0-rc.0* Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
    
  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: AVIF output is now tuned using SSIMULACRA2-based iq quality metrics rather than ssim.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.0 for upstream bug fixes.

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #4227

  • Add withGainMap to process HDR JPEG images with embedded gain maps.
    #4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #4355

  • TypeScript: Ensure FormatEnum keys match reality.
    #4475

  • Add margin option to trim operation.
    #4480
    @​eddienubes

  • Add WebP exact option for control over transparent pixel colour values.

          ### v0.34.5* Upgrade to libvips v8.17.3 for upstream bug fixes.
    
  • Add experimental support for prebuilt Linux RISC-V 64-bit binaries.

  • Support building from source with npm v12+, deprecate --build-from-source flag.
    #4458

  • Add support for BigTIFF output.
    #4459
    @​throwbi

  • Improve error messaging when only warnings issued.
    #4465

  • Simplify ICC processing when retaining input profiles.
    #4468

          ### v0.34.5-rc.1* Upgrade to libvips v8.17.3 for upstream bug fixes.
    
  • Add experimental support for prebuilt Linux RISC-V 64-bit binaries.

  • Support building from source with npm v12+, deprecate --build-from-source flag.
    #4458

  • Add support for BigTIFF output.
    #4459
    @​throwbi

  • Improve error messaging when only warnings issued.
    #4465

  • Simplify ICC processing when retaining input profiles.
    #4468

          ### v0.34.5-rc.0* Upgrade to libvips v8.17.3 for upstream bug fixes.
    
  • Add experimental support for prebuilt Linux RISC-V 64-bit binaries.

  • Support building from source with npm v12+, deprecate --build-from-source flag.
    #4458

  • Add support for BigTIFF output.
    #4459
    @​throwbi

  • Improve error messaging when only warnings issued.
    #4465

  • Simplify ICC processing when retaining input profiles.
    #4468

Commit history:
  • e000d0 Prerelease v0.35.3-rc.1
  • 9554ca Prerelease v0.35.3-rc.0
  • 6a29fd Emit warning about native binaries on Linux Electron
  • 540d2e Increase default concurrency when use of MALLOC_ARENA_MAX detected
  • 8c55ee Add hasAlpha property to output info #4500
  • bd0c2c Verify cache memory limit to avoid overflow (#4561)
  • d67fac Upgrade to sharp-libvips v1.3.2-rc.0
  • 086cc8 Bound create and raw input dimensions to coordinate limit (#4558)
  • 978312 Tighten recomb and affine matrix verification (#4560)
  • ead32b Bump actions/setup-python from 6.2.0 to 6.3.0 (#4559)
  • ee06d2 Ensure tests can be run on big endian systems
  • c75496 Docs: Upgrade to Astro 7
  • fad3e7 Verify background colour values are numbers (#4556)
  • 1f4f74 Bound extract region to libvips coordinate limit (#4555)
  • e667cf Reject infinite values when validating numbers (#4553)
  • 024e61 Update changelog, bump deps
  • 4829f7 Simply pipeline embed, ensure non-background extend stays sequential
  • 026902 CI: Harden GitHub Actions
    • Use commit SHAs instead of floating versions
    • Manage upgrades via dependabot
    • Reduce dependence on third-party actions
    • 12aab9 Bound trim margin to avoid signed overflow (#4552)
    • 2bc2f3 Tighten verification of text/tile dimensions and extend values
    • 3236a6 Bound clahe width and height to avoid signed overflow (#4551)
    • c9622a Release v0.35.2
    • cd4568 Upgrade to sharp-libvips v1.3.1
    • 78390c Tests: Add font file to prevent font discovery flakiness (#4550)

    Also adds missing IO-related test coverage
    discovered during ESM-only migration

  • 61210b Verify convolve kernel values are numbers (#4549)
  • 1cb27d Prerelease v0.35.2-rc.2
  • c7606c Upgrade to sharp-libvips v1.3.1-rc.0
  • 29d1e9 Prerelease v0.35.2-rc.1
  • bbba0a Improve code bundler support with stub binaries
  • ab5286 Bound dilate and erode width to avoid mask-size overflow (#4548)

@michijs

michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Bump @​types/node from ^25.8.0 to ^26.0.1

Commit history:
  • f0fe08 [office-js-preview] Add Sensitivity Label APIs (#75168)
  • 072111 🤖 Merge PR #75163 [three] r185 by @​Methuselah96
  • d41b1f 🤖 Merge PR #75149 node: swap diagnostics_channel ContextType/StoreType by @​Renegade334
  • ec361f 🤖 Merge PR #75154 Add object-treeify by @​patrik-csak
  • 4e5e0b Bump the github-actions group across 2 directories with 2 updates (#75155)

    Signed-off-by: dependabot[bot] <support@​redirect.github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@​users.noreply.redirect.github.com>
    Co-authored-by: typescript-automation[bot] <290192711+typescript-automation[bot]@​users.noreply.redirect.github.com>

  • 3f2674 Sync Japanese README with current docs (#75151)
  • 55bf18 chore: migrate husky to v9 (#75150)
  • 240443 🤖 Merge PR #75112 Add types for @​npmcli/config/lib/definitions by @​MattIPv4
  • ef7841 [office-js][office-js-preview] (Outlook) Document Mailbox requirement set 1.16 (#75144)
  • 403abb 🤖 Update support window
  • 824554 🤖 Update CODEOWNERS
  • 22e18f 🤖 Merge PR #75109 [polylabel] Update to 2.0 by @​micmcg
  • c51adb 🤖 Merge PR #75152 [hotwired__turbo] Fix missing stream types by @​myabc
  • 7d1dd8 🤖 Merge PR #74965 [chrome] remove type deprecations, remove NoInferX and unexpose _debugger namespace by @​erwanjugand
  • 4f9140 🤖 Merge PR #75061 [@​types/node] v22.20.0 by @​kshitijanurag
  • d7687b 🤖 Merge PR #75118 Better type inference for numeric.uncmin by @​ackvanity
  • f609ca 🤖 Merge PR #75131 [googlepay] fix docs for the description property in the PaymentMethodData interface by @​dmengelt
  • 739ffc 🤖 Merge PR #75137 chore: sync updates to google.maps by @​googlemaps-bot

    Co-authored-by: copybara-service[bot] <copybara-service[bot]@​users.noreply.redirect.github.com>

  • c67ecb 🤖 Merge PR #75133 Remove wordpress__server-side-render by @​manzoorwanijk

    Co-authored-by: Claude Opus 4.8 (1M context) <noreply@​anthropic.com>

  • f0b11c Remove contributors with deleted accounts (#75119)

    Co-authored-by: typescript-automation[bot] <290192711+typescript-automation[bot]@​users.noreply.redirect.github.com>

  • a3d8a4 🤖 Merge PR #75148 feat: add lzwcompress types by @​mgreystone
  • bbfecd 🤖 dprint fmt
  • 48b8c6 🤖 Merge PR #75132 [@​types/luxon] Fix DateTime#isValid typing to support type guards and narrowing by @​CBx0-dev
  • 71e2e1 🤖 Merge PR #75139 [ramda] bump types-ramda to 0.32.0 by @​Harris-Miller
  • 8803a4 🤖 Merge PR #75108 feat(kakao.postcode): Add type definitions by @​doinki
  • b341ee 🤖 Merge PR #75025 node: v26 by @​Renegade334

    Co-authored-by: Adam Ahmed <adam@​released.so>

  • cd21ba 🤖 Merge PR #75143 [ex-abstract] fix ToPrimitive expected type by @​jakebailey
  • 3707ad 🤖 Merge PR #75142 frida-gum: Add typings for Process.findThreadById by @​oleavr
  • 1948da [Office-Runtime] Mark OfficeRuntime.ApiInformation as deprecated (#75107)
  • 79b25d 🤖 Merge PR #75141 [webvis] Update type definitions for the non-npm package webvis 3.13.x by @​TimLamThreedy

    Co-authored-by: Timo Sturm <sturm.timo@​gmail.com>

@michijs

michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Bump playwright-core from 1.58.2 to 1.61.1

Changelog:
Sourced from releases.
        ### v1.61.1### Bug Fixes
  • #41365 [Bug]: Expect.Extend matcher with same name as default matcher in same expect instance overrides default matchers implementation to custom matcher

  • #41351 [Bug]: Playwright UI mode: apiRequestContext._wrapApiCall reports unexpected number of bytes (same test passes in headed mode)

  • #41360 [Bug]: Trace viewer: message times in websockets are downscaled by 1000

  • #41311 [Bug]: [Regression]: Sync loader throws "context.conditions?.includes is not a function" on Node 22.15

  • #41371 [Regression]: Sync ESM loader (registerHooks) fails to resolve extensionless .ts subpath imports across pnpm workspace symlinks

          ### v1.61.0## 🔑 WebAuthn passkeys
    

New Credentials virtual authenticator, available via browserContext.credentials, lets tests register passkeys and answer navigator.credentials.create() / navigator.credentials.get() ceremonies in the page — no real hardware key required, works in all browsers:

const context = await browser.newContext();

// Seed a passkey your backend provisioned for a test user.
await context.credentials.create('example.com', {
  id: credentialId,
  userHandle,
  privateKey,
  publicKey,
});
await context.credentials.install();

const page = await context.newPage();
await page.goto('https://example.com/login');
// The page's navigator.credentials.get() is answered with the seeded passkey.

You can also let the app register a passkey once in a setup test, read it back with credentials.get(), and seed it into later tests — see Credentials for details.

🗃️ Web Storage

New WebStorage API, available via page.localStorage and page.sessionStorage, reads and writes the page's storage for the current origin:

await page.localStorage.setItem('token', 'abc');
const token = await page.localStorage.getItem('token');
const items = await page.sessionStorage.items();

New APIs

Network

Browser and Screencast

  • New option artifactsDir in browserType.connectOverCDP() controls where artifacts such as traces and downloads are stored when attached to an existing browser.
  • New option cursor in screencast.showActions() controls the cursor decoration rendered for pointer actions.
  • The onFrame callback in screencast.start() now receives a timestamp of when the frame was presented by the browser.

Test runner

  • The testOptions.video option now supports the same set of modes as trace: new 'on-all-retries', 'retain-on-first-failure' and 'retain-on-failure-and-retries' values. See the video modes table for which runs are recorded and kept in each mode.
  • Supported expect.soft.poll(...).
  • New fullConfig.argv — a snapshot of process.argv from the runner process, handy for reading custom arguments passed after the -- separator.
  • New fullConfig.failOnFlakyTests mirrors the config option, so reporters can explain why a flaky run failed.
  • testInfo.errors now lists each sub-error of an AggregateError as a separate entry.
  • New -G command line shorthand for --grep-invert.

🛠️ Other improvements

  • Playwright now supports Ubuntu 26.04.
  • HAR and trace recordings now include WebSocket requests.

Browser Versions

  • Chromium 149.0.7827.55
  • Mozilla Firefox 151.0
  • WebKit 26.5

This version was also tested against the following stable channels:

  • Google Chrome 149

  • Microsoft Edge 149

          ### v1.60.0## 🌐 HAR recording on Tracing
    

tracing.startHar() / tracing.stopHar() expose HAR recording as a first-class tracing API, with the same content, mode and urlFilter options as recordHar. The returned Disposable makes it easy to scope a recording with await using:

await using har = await context.tracing.startHar('trace.har');
const page = await context.newPage();
await page.goto('https://playwright.dev');
// HAR is finalized when `har` goes out of scope.

🪝 Drop API

New locator.drop() simulates an external drag-and-drop of files or clipboard-like data onto an element. Playwright dispatches dragenter, dragover, and drop with a synthetic [DataTransfer] in the page context — works cross-browser and is great for testing upload zones:

await page.locator('#dropzone').drop({
  files: { name: 'note.txt', mimeType: 'text/plain', buffer: Buffer.from('hello') },
});

await page.locator('#dropzone').drop({
  data: {
    'text/plain': 'hello world',
    'text/uri-list': 'https://example.com',
  },
});

🎯 Aria snapshots

🛑 test.abort()

New test.abort() aborts the currently running test from a fixture, hook, or route handler with an optional message. Use it when you have detected an unrecoverable misuse and want to fail the test right away:

test('does not publish to the shared page', async ({ page }) => {
  await page.route('**/publish', route => {
    test.abort('Tests must not publish to the shared page. Use the `clone` option.');
    return route.abort();
  });
  // ...
});

New APIs

Browser, Context and Page

Locators and Assertions

Network

  • webSocketRoute.protocols() returns the WebSocket subprotocols requested by the page.
  • New option noDefaults in browserType.connectOverCDP() disables Playwright's default overrides on the default context (download behavior, focus emulation, media emulation), so attaching to a user's daily-driver browser doesn't disturb its state.

Errors and Reporting

Test runner

  • New {testFileBaseName} token in testProject.snapshotPathTemplate — file name without extension.
  • Test runner now errors when a config tries to override a non-option fixture, and rejects workers: 0 or negative values.

🛠️ Other improvements

  • HTML reporter:
    • npx playwright show-report accepts .zip files directly — no need to unzip first.
    • Steps that contain attachments inside nested children show an indicator on the parent step.
    • The repeatEachIndex is shown in the test header when non-zero.
  • Trace Viewer adds a pretty-print toggle for JSON / form request and response bodies in the network details panel.

Breaking Changes ⚠️

  • Removed long-deprecated APIs:
    • Locator.ariaRef() — use the standard locator.ariaSnapshot() pipeline.
    • handle option on BrowserContext.exposeBinding and Page.exposeBinding.
    • logger option on BrowserType.connect and BrowserType.connectOverCDP — use tracing instead.
    • Context options videosPath / videoSize — use recordVideo instead.

Browser Versions

  • Chromium 148.0.7778.96
  • Mozilla Firefox 150.0.2
  • WebKit 26.4

This version was also tested against the following stable channels:

  • Google Chrome 147

  • Microsoft Edge 147

          ### v1.59.1### Bug Fixes
    
  • [Windows] Reverted hiding console window when spawning browser processes, which caused regressions including broken codegen, --ui and show commands (#39990)

          ### v1.59.0## 🎬 Screencast
    

New page.screencast API provides a unified interface for capturing page content with:

  • Screencast recordings
  • Action annotations
  • Visual overlays
  • Real-time frame capture
  • Agentic video receipts
Demo

Screencast recording — record video with precise start/stop control, as an alternative to the recordVideo option:

await page.screencast.start({ path: 'video.webm' });
// ... perform actions ...
await page.screencast.stop();

Action annotations — enable built-in visual annotations that highlight interacted elements and display action titles during recording:

await page.screencast.showActions({ position: 'top-right' });

screencast.showActions() accepts position ('top-left', 'top', 'top-right', 'bottom-left', 'bottom', 'bottom-right'), duration (ms per annotation), and fontSize (px). Returns a disposable to stop showing actions.

Action annotations can also be enabled in test fixtures via the video option:

// playwright.config.ts
export default defineConfig({
  use: {
    video: {
      mode: 'on',
      show: {
        actions: { position: 'top-left' },
        test: { position: 'top-right' },
      },
    },
  },
});

Visual overlays — add chapter titles and custom HTML overlays on top of the page for richer narration:

await page.screencast.showChapter('Adding TODOs', {
  description: 'Type and press enter for each TODO',
  duration: 1000,
});

await page.screencast.showOverlay('<div style="color: red">Recording</div>');

Real-time frame capture — stream JPEG-encoded frames for custom processing like thumbnails, live previews, AI vision, and more:

await page.screencast.start({
  onFrame: ({ data }) => sendToVisionModel(data),
  size: { width: 800, height: 600 },
});

Agentic video receipts — coding agents can produce video evidence of their work. After completing a task, an agent can record a walkthrough video with rich annotations for human review:

await page.screencast.start({ path: 'receipt.webm' });
await page.screencast.showActions({ position: 'top-right' });

await page.screencast.showChapter('Verifying checkout flow', {
  description: 'Added coupon code support per ticket #1234',
});

// Agent performs the verification steps...
await page.locator('#coupon').fill('SAVE20');
await page.locator('#apply-coupon').click();
await expect(page.locator('.discount')).toContainText('20%');

await page.screencast.showChapter('Done', {
  description: 'Coupon applied, discount reflected in total',
});

await page.screencast.stop();

The resulting video serves as a receipt: chapter titles provide context, action annotations highlight each interaction, and the visual walkthrough is faster to review than text logs.

🔗 Interoperability

New browser.bind() API makes a launched browser available for playwright-cli, @&ZeroWidthSpace;playwright/mcp, and other clients to connect to.

Bind a browser — start a browser and bind it so others can connect:

const { endpoint } = await browser.bind('my-session', {
  workspaceDir: '/my/project',
});

Connect from playwright-cli — connect to the running browser from your favorite coding agent.

playwright-cli attach my-session
playwright-cli -s my-session snapshot

Connect from @​playwright/mcp — or point your MCP server to the running browser.

@&ZeroWidthSpace;playwright/mcp --endpoint=my-session

Connect from a Playwright client — use API to connect to the browser. Multiple clients at a time are supported!

const browser = await chromium.connect(endpoint);

Pass host and port options to bind over WebSocket instead of a named pipe:

const { endpoint } = await browser.bind('my-session', {
  host: 'localhost',
  port: 0,
});
// endpoint is a ws:// URL

Call browser.unbind() to stop accepting new connections.

📊 Observability

Run playwright-cli show to open the Dashboard that lists all the bound browsers, their statuses, and allows interacting with them:

  • See what your agent is doing on the background browsers
  • Click into the sessions for manual interventions
  • Open DevTools to inspect pages from the background browsers.
Demo - `playwright-cli` binds all of its browsers automatically, so you can see what your agents are doing. - Pass `PLAYWRIGHT_DASHBOARD=1` env variable to see all `@​playwright/test` browsers in the dashboard.

🐛 CLI debugger for agents

Coding agents can now run npx playwright test --debug=cli to attach and debug tests over playwright-cli — perfect for automatically fixing tests in agentic workflows:

$ npx playwright test --debug=cli
### Debugging Instructions
- Run "playwright-cli attach tw-87b59e" to attach to this test

$ playwright-cli attach tw-87b59e
### Session `tw-87b59e` created, attached to `tw-87b59e`.
Run commands with: playwright-cli --session=tw-87b59e <command>
### Paused
- Navigate to "/" at output/tests/example.spec.ts:4

$ playwright-cli --session tw-87b59e step-over
### Page
- Page URL: https://playwright.dev/
- Page Title: Fast and reliable end-to-end testing for modern web apps | Playwright
### Paused
- Expect "toHaveTitle" at output/tests/example.spec.ts:7

📋 CLI trace analysis for agents

Coding agents can run npx playwright trace to explore Playwright Trace and understand failing or flaky tests from the command line:

$ npx playwright trace open test-results/example-has-title-chromium/trace.zip
  Title:        example.spec.ts:3 › has title

$ npx playwright trace actions --grep="expect"
     # Time       Action                                                  Duration
  ──── ─────────  ─────────────────────────────────────────────────────── ────────
    9. 0:00.859  Expect "toHaveTitle"                                        5.1s  ✗

$ npx playwright trace action 9
  Expect "toHaveTitle"
  Error: expect(page).toHaveTitle(expected) failed
    Expected pattern: /Wrong Title/
    Received string:  "Fast and reliable end-to-end testing for modern web apps | Playwright"
    Timeout: 5000ms
  Snapshots
    available: before, after
    usage:     npx playwright trace snapshot 9 --name <before|after>

$ npx playwright trace snapshot 9 --name after
### Page
- Page Title: Fast and reliable end-to-end testing for modern web apps | Playwright

$ npx playwright trace close

♻️ await using

Many APIs now return async disposables, enabling the await using syntax for automatic cleanup:

await using page = await context.newPage();
{
  await using route = await page.route('**/*', route => route.continue());
  await using script = await page.addInitScript('console.log("init script here")');
  await page.goto('https://playwright.dev');
  // do something
}
// route and init script have been removed at this point

🔍 Snapshots and Locators

New APIs

Screencast

Storage, Console and Errors

Miscellaneous

🛠️ Other improvements

  • UI Mode has an option to only show tests affected by source changes.
  • UI Mode and Trace Viewer have improved action filtering.
  • HTML Reporter shows the list of runs from the same worker.
  • HTML Reporter allows filtering test steps for quick search.
  • New trace mode 'retain-on-failure-and-retries' records a trace for each test run and retains all traces when an attempt fails — great for comparing a passing trace with a failing one from a flaky test.

Known Issues ⚠️⚠️

Breaking Changes ⚠️

  • Removed macOS 14 support for WebKit. We recommend upgrading your macOS version, or keeping an older Playwright version.
  • Removed @&ZeroWidthSpace;playwright/experimental-ct-svelte package.
  • junit test reporter now differentiates between types of errors, so some of the previous <failure>s are now reported as <error>s.

Browser Versions

  • Chromium 147.0.7727.15
  • Mozilla Firefox 148.0.2
  • WebKit 26.4

This version was also tested against the following stable channels:

  • Google Chrome 146

  • Microsoft Edge 146

          ### v1.58.2## Highlights
    

#39121 fix(trace viewer): make paths via stdin work
#39129 fix: do not force swiftshader on chromium mac

Browser Versions

  • Chromium 145.0.7632.6
  • Mozilla Firefox 146.0.1
  • WebKit 26.0
Commit history:
  • 287ad4 fix(routing): `urlMatches` should reset `lastIndex` if given `/.../g` or `/.../y` (#41470)

    global /.../g and sticky /.../y regular expressions silently adjust lastIndex

    this means that subsequent uses will miss any matches before the new lastIndex (until it wraps around)

    as such, we should reset the lastIndex before trying to use it

  • ee02af fix(har): APIRequestContext cookie expires should be in ms (#41482)
  • d7acba test: unflake a few tests (#41488)
  • da747e fix(aria): use placeholder for the accessible name of <input type="number"> (#41485)

    see https://w3c.github.io/html-aam/#accname-computation

  • fd9b11 fix(selectors): don't drop the engine name when a non-xpath source starts with ".." (#41475)
  • 9cef3e fix(expect): clone pollIntervals so they are not consumed across calls (#41480)

    pollAgainstDeadline mutates the provided pollIntervals

    both expect.poll and expect.toPass pass it by reference

    the former uses a per-test config, whereas the latter uses a per-project config that's shared by every test (in that worker)

  • 8b25df fix(mcp): list a failed network request only once (#41481)

    _handleRequest already records every request (and _handleResponse does not re-add it)

  • 85b273 fix: read HTTP header values case-insensitively in HAR and fetch (#41483)

    some servers send lowercase headers, so allow for them (and any other casing) by always lowercasing before lookup

  • 5c65ff fix(connect): wrong parameter used when passed as an object (#41484)

    the TS overloads make it so that options is only set when optionsOrEndpoint is a string

    otherwise, optionsOrEndpoint is the options object

  • 109c47 fix(dashboard): route the --port dashboard through the singleton (#41466)
  • 4b6f03 devops(docker): split browser layers and use zstd compression for faster pulls (#41232)
  • ae114c fix(trace-viewer): keep snapshot frame centered with margin (#41479)
  • b7a90d chore(github): add issue templates for Playwright CLI and MCP (#41469)
  • 166a44 fix(fetch): include empty-string multipart fields in the request body (#41478)
  • a14935 fix(screenshot): reject negative clip width/height (#41476)
  • e2a3f4 fix(expect): do not attach -expected snapshot when updateShapshots: "none" (#41474)
  • aeee3a fix(selectors): match input[type="reset"] button label as text (#41473)

    elementText exposed the value of <input type="submit"> and <input type="button"

    <input type="reset"> also renders its value as a visible button label just like the others

  • 6b7c40 fix(routing): match URL globs containing '$$' and other replacement patterns (#41471)

    '$$', '$&', '$' and "$'" are special in String.prototype.replace` with a string argument

    instead, use the function argument form that treats the string argument literally

  • 2a7feb feat(mcp): add scale option to screenshot, --hires to playwright-cli (#41465)
  • 3ec4a4 fix(chromium): handle empty url for initial empty page (#41464)
  • 224ed0 chore(html-reporter): use button elements for tabs (#41440)
  • cc0113 fix(reporters): do not truncate piped output on exit (#41454)
  • bb2dae fix(selectors): accept regexp v flag in locator options (#41458)
  • 74e517 Revert "devops: publish stable release on tag push instead of release event (#41425)" (#41460)
  • 966ed4 chore(chromium): reenable RenderDocument again (#41303)
  • 0217f0 fix(aria): re-number main frame refs on cross-document navigation (#41453)

    Signed-off-by: Pavel Feldman <pavel.feldman@​gmail.com>
    Co-authored-by: Dmitry Gozman <dgozman@​gmail.com>

  • 23985e test: add test for allHeaders() on the worker script (#41459)
  • 9dc3af chore: roll driver/Dockerfile to recent Node.js LTS version (#41461)

    Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@​users.noreply.redirect.github.com>

  • 112012 test: cover MCP CDP header env config (#41452)
  • 592e94 fix(mcp): never include data: URL payloads in snapshot or network output (#41450)

@michijs

michijs Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Bump @​types/chrome from ^0.1.42 to ^0.2.0

Changelog:
Sourced from releases.
        ### 0.1.450
Commit history:
  • f0fe08 [office-js-preview] Add Sensitivity Label APIs (#75168)
  • 072111 🤖 Merge PR #75163 [three] r185 by @​Methuselah96
  • d41b1f 🤖 Merge PR #75149 node: swap diagnostics_channel ContextType/StoreType by @​Renegade334
  • ec361f 🤖 Merge PR #75154 Add object-treeify by @​patrik-csak
  • 4e5e0b Bump the github-actions group across 2 directories with 2 updates (#75155)

    Signed-off-by: dependabot[bot] <support@​redirect.github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@​users.noreply.redirect.github.com>
    Co-authored-by: typescript-automation[bot] <290192711+typescript-automation[bot]@​users.noreply.redirect.github.com>

  • 3f2674 Sync Japanese README with current docs (#75151)
  • 55bf18 chore: migrate husky to v9 (#75150)
  • 240443 🤖 Merge PR #75112 Add types for @​npmcli/config/lib/definitions by @​MattIPv4
  • ef7841 [office-js][office-js-preview] (Outlook) Document Mailbox requirement set 1.16 (#75144)
  • 403abb 🤖 Update support window
  • 824554 🤖 Update CODEOWNERS
  • 22e18f 🤖 Merge PR #75109 [polylabel] Update to 2.0 by @​micmcg
  • c51adb 🤖 Merge PR #75152 [hotwired__turbo] Fix missing stream types by @​myabc
  • 7d1dd8 🤖 Merge PR #74965 [chrome] remove type deprecations, remove NoInferX and unexpose _debugger namespace by @​erwanjugand
  • 4f9140 🤖 Merge PR #75061 [@​types/node] v22.20.0 by @​kshitijanurag
  • d7687b 🤖 Merge PR #75118 Better type inference for numeric.uncmin by @​ackvanity
  • f609ca 🤖 Merge PR #75131 [googlepay] fix docs for the description property in the PaymentMethodData interface by @​dmengelt
  • 739ffc 🤖 Merge PR #75137 chore: sync updates to google.maps by @​googlemaps-bot

    Co-authored-by: copybara-service[bot] <copybara-service[bot]@​users.noreply.redirect.github.com>

  • c67ecb 🤖 Merge PR #75133 Remove wordpress__server-side-render by @​manzoorwanijk

    Co-authored-by: Claude Opus 4.8 (1M context) <noreply@​anthropic.com>

  • f0b11c Remove contributors with deleted accounts (#75119)

    Co-authored-by: typescript-automation[bot] <290192711+typescript-automation[bot]@​users.noreply.redirect.github.com>

  • a3d8a4 🤖 Merge PR #75148 feat: add lzwcompress types by @​mgreystone
  • bbfecd 🤖 dprint fmt
  • 48b8c6 🤖 Merge PR #75132 [@​types/luxon] Fix DateTime#isValid typing to support type guards and narrowing by @​CBx0-dev
  • 71e2e1 🤖 Merge PR #75139 [ramda] bump types-ramda to 0.32.0 by @​Harris-Miller
  • 8803a4 🤖 Merge PR #75108 feat(kakao.postcode): Add type definitions by @​doinki
  • b341ee 🤖 Merge PR #75025 node: v26 by @​Renegade334

    Co-authored-by: Adam Ahmed <adam@​released.so>

  • cd21ba 🤖 Merge PR #75143 [ex-abstract] fix ToPrimitive expected type by @​jakebailey
  • 3707ad 🤖 Merge PR #75142 frida-gum: Add typings for Process.findThreadById by @​oleavr
  • 1948da [Office-Runtime] Mark OfficeRuntime.ApiInformation as deprecated (#75107)
  • 79b25d 🤖 Merge PR #75141 [webvis] Update type definitions for the non-npm package webvis 3.13.x by @​TimLamThreedy

    Co-authored-by: Timo Sturm <sturm.timo@​gmail.com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants