Skip to content

v2.4.1

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Oct 17:03
· 3 commits to main since this release

A patch release with three fixes found while checking the published 2.4.0 package. None of them is new in 2.4.0.

Fixes

  • The UMD bundle loads from script tags again. It expected tweedle.js as the global Tweedle, but tweedle.js's own UMD build registers tweedle_js, so loading the scripts in order failed with Tweedle is not defined and PIXI.ui stayed undefined. It now uses tweedle_js:
    <script src="https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/tweedle.js@2/dist/tweedle.umd.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@pixi/ui@2.4.1/dist/pixi-ui.js"></script>
    If you added the window.Tweedle = window.tweedle_js workaround from the 2.4.0 notes, it keeps working and can be removed.
  • Type declarations no longer need @types/node. ScrollBox exposed a NodeJS.Timeout field, so browser projects without @types/node and with skipLibCheck off failed to type-check on @pixi/ui's own declarations.
  • API docs: Input's internal layers are no longer listed as separate classes; their members are documented on Input.

What's Changed

  • fix: UMD bundle loads tweedle.js by its real global, ScrollBox types need no Node, docs hide Input's internal layers by @CyberDex in #285

Full Changelog: v2.4.0...v2.4.1