Skip to content

1.2.0 (2026.11.26)

Latest

Choose a tag to compare

@bramus bramus released this 26 Nov 17:43

Version 1.2.0 is a significant update that adds support for mocking Element-Scoped View Transitions. Try it out on the demo website over at https://chrome.dev/view-transitions-mock/

Full changelog:

  • NEW: Add support for mocking Element-Scoped View Transitions (Element.prototype.startViewTransition() and Element.prototype.activeViewTransition), including concurrent and enclosing transitions (#7)
  • NEW: Granular registration in register() with a new requireScoped option (default: true), keeping native document-scoped transitions intact when only Element-Scoped View Transitions are missing (#7)
  • BUGFIX: Fix callback-vs-promise timing mismatches by scheduling setup and update callback queue flushing via macrotasks with microtask checkpoints between queued callbacks (spec)
  • BUGFIX: Fix TypeScript declarations and Node ESM package resolution (#8)
  • HOUSEKEEPING: Reinstate testing against Safari 17.4

To use, as before, call register() and you’re good to go:

import { register } from "view-transitions-mock";
register();