# phaser v4.2.1 — Phaser v4.2.1 - Product: phaser (https://whatsnew.fyi/product/phaser) - Vendor: phaserjs - Date: 2026-07-09 - Version: v4.2.1 - Original notes: https://github.com/phaserjs/phaser/releases/tag/v4.2.1 - Permalink: https://whatsnew.fyi/product/phaser/releases/v4.2.1 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Stencil option stencilInvert now works correctly - **fixed** — Framebuffers now correctly clear stencil on use by enabling write mask by default - **fixed** — Remove inline access of Phaser namespace from CombineColorMatrix, ImageLight, and Texture to prevent breaking in ESM build - **fixed** — Fix ScaleManager not resizing to parent container - **fixed** — Correct AnimationManager get() return type in documentation - **fixed** — Tweens with a startDelay set now have their state updated from START_DELAY to ACTIVE ##### Version 4.2.1 - Giedi - 9th July 2026 ##### Fixes - `Stencil` option `stencilInvert` works correctly (an alpha bug prevented it from having the intended effect) - Framebuffers now correctly clear stencil on use - The global stencil settings defaulted to deactivating the stencil write mask, so it couldn't actually run the `clear` process correctly. Write mask is now enabled by default, but is never triggered because default stencil operations keep existing values. - Remove inline access of Phaser namespace from `CombineColorMatrix`, `ImageLight`, and `Texture`. These would break in the ESM build. Thanks @scobo! - Fix ScaleManager not resizing to parent container. Fix #7213 (thanks @VijayVPatil13) - Docs: correct AnimationManager get() return type (thanks @samme) - Tweens with a startDelay set weren't having their state updated from START_DELAY to ACTIVE. This left them stuck in their initial state, even once the startDelay had elapsed. Fix #7093 (thanks @Bambosh)