Release 9.8.0-beta.2
Pre-release9.8.0-beta.2 (2022-12-20)
Bug Fixes
-
Build: Also include necessary _sass directory in the npm package. (70da6b1)
-
Build: Also include the webpack configs in the npm package. (f6bf2bf)Previous packages depending on @patternslib/patternslib also extended
Patternslib' webpack configs. Include these configs for backwards
compatibility. -
pat-bumper: Remove style import from the patterns SCSS file. (094010b)
Breaking Changes
- Build: Separate modernizr into a own bundle. (875b041)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
theno-js
to thejs
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.
This change now fixes the problem by separating the Modernizr build from
the Patternslib bundle.
If you depend on Modernzir, please include the new modernizr.min.js
bundle in
a script tag, preferably before the Patternslib bundle bundle.min.js
.
The global switch "window.__patternslib_disable_modernizr" is also removed, as
it got useless.
Maintenance
-
Add modernizr.min.js bundle to main index.js demo file for demonstration. (96a7ed2)
-
Build: Directly build the modernizr bundle. (ee2acdc)Do not use an webpack entry to build the modernizr bundle with an
webpack runtime overhead. Instead, build it directly but abusing the
webpack CopyPlugin transform mechanism. We could also build the
modernizr bundle from the Makefile but that wouldn't provide the file
when watching or when running webpack-dev-server. -
Build: Optimize modernizr configuration. (e1fd8de)Remove unnecessary tests in .modernizrrc.js and slim down the build size.
-
Upgrade dependencies. Also Upgrade to jQuery 3.6.2. (071e084)