Skip to content

Release 9.8.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@thet thet released this 22 Dec 14:18
· 343 commits to master since this release

9.8.0-beta.3 (2022-12-22)

Features

  • core events: Add dragstart and dragend event factories. (73d7fc7)

Bug Fixes

  • Build: Load modernizr early and non-asynchronously. (8bc9b66)Include the modernizr bundle by injecting a script tag. This ensures
    modernizr is loaded synchronously and executing early and sets it's
    feature detection classes before the layout is done by the browser.

This reverts the breaking change from the previous Patternslib 9.8.0-beta.2
release. The separate modernizr.min.js build file is still kept, but
modernizr is included by the main Patternslib bundle. There is no need
to add another script tag to include modernizr.

You can disable loading of modernizr by setting the following before the
Patternslib bundle.min.js is included:

<script>window.__patternslib_disable_modernizr = true;</script>

Also, the "js" class is set on the HTML root tag when a "no-js" class
was present regardless of the "__patternslib_disable_modernizr" setting.

Since Patternslib 9.0.0-alpha.0 where we introduced webpack module
federation for our bundles, Modernizr is loaded asynchronously and
applying it's CSS classes a tick too late. For example, the change from
the "no-js" to the "js" class was done while the tiles have already been
drawn and visible on the screen, resulting in screen flickering. There
are a number of projects which depend on Modernizr being applied early.

  • pat-sortable: Initialize sorting on cloned elements. (d7abbc0)Fix sorting behavior on cloned elements, which broke on Patternslib 9.8.0-alpha.0.

Maintenance

  • Build: Do not include the example minimalpattern in the build. (9712019)

  • Build: Remove now unused globals module. (8e05515)jQuery is now imported and set earlier.

  • Docs: Update some documentation. (4ccf1bd)

  • pat-sortable: Modernize tests. (bf25dc4)