Skip to content

v8.0.0-rc.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@Zyie Zyie released this 08 Feb 16:35
· 225 commits to dev since this release

ℹ️ INFO

If you have any questions or issues we are actively monitoring our discord and github issues!

💾 Download

Development Build:

Production Build:

Documentation:

Changed

v8.0.0-rc.8...v8.0.0-rc.9

🔥 Breaking

For users who have migrated to v8, this release includes two important breaking changes. While we aimed to avoid disruptions post the first RC, we feel these two changes are important enough to correct before the final release.

We appreciate your understanding.

  • Breaking: split Text back into Text, BitmapText, and HTMLText by @GoodBoyDigital in #10191

    In the pursuit of simplifying the API in v8, we initially attempted to create a unified Text class capable of handling all rendering modes supported by PixiJS. This approach aimed to streamline usage for developers. However, as we progressed with the release, we encountered scenarios where reconciling differences between render modes proved challenging. It became evident that some variables on the Text class needed to be specific to certain render modes.

    In light of these challenges, we made the decision to revert to the v7 approach, reintroducing separate classes for Text, BitmapText, and HTMLText.

    Old:

    const canvasText = new Text({
      text: 'hello',
      style: {},
      renderMode: 'canvas'
    })
    
    const bitmapText = new Text({
      text: 'hello',
      style: {},
      renderMode: 'bitmap'
    })
    
    const htmlText = new Text({
      text: 'hello',
      style: {},
      renderMode: 'html'
    })

    New:

    const canvasText = new Text({
      text: 'hello',
      style: {},
    })
    
    const bitmapText = new BitmapText({
      text: 'hello',
      style: {},
    })
    
    const htmlText = new HTMLText({
      text: 'hello',
      style: {},
    })
  • Breaking: remove BitmapFontManager.install for BitmapFont.install by @GoodBoyDigital in #10191

    In this release, we've reverted to the v7 method of installing bitmap fonts using BitmapFont.install. We've decided to keep BitmapFontManager as an internal component of PixiJS and will no longer expose it.

    As a result, BitmapFontManager.install is deprecated in this version and will be removed in the next release.

    Old:

    BitmapFontManager.install()
    BitmapFontManager.uninstall()

    New:

    BitmapFont.install()
    BitmapFont.uninstall()

🐛 Fixed