# Changelog of version 6


## [6.4.0](https://github.com/Patternslib/patterns/compare/6.3.2...6.4.0) (2022-01-24)


### Features

* **webpack:** Add source maps for production and development builds. ([5c720a4](https://github.com/Patternslib/patterns/commit/5c720a4dc54719acf04bca856962cea8d4e9c12f))
We are using a faster source map generation option with good results for
development builds.

* **webpack:** Only minimize in production mode. ([a6cf125](https://github.com/Patternslib/patterns/commit/a6cf1251985e9f5a01a642d4ececd4cd1b834679))
Compile development and production bundles with the name bundle.min.js.
This allows to get rid to adapt the script name in production and development - both modes use the same name.
However, it's only minified in production mode.
We think the name .min.js also fits the development bundle as it is still babel-transpiled and webpack compiled.


### Maintenance

* **docs:** Improve documentation on how to use the polyfills loader. ([11339af](https://github.com/Patternslib/patterns/commit/11339af25d91045a28ec8130344b78c936b39af9))

* **webpack:** Use automatic publicPath determination instead of manually setting it. ([1b61431](https://github.com/Patternslib/patterns/commit/1b6143127f61e5e1c41b088e70ec636c629cd5bb))


## [6.3.2](https://github.com/Patternslib/patterns/compare/6.3.1...6.3.2) (2021-12-22)


### Bug Fixes

* **pat inject:** autoload-visible only when in viewport. ([49863b7](https://github.com/Patternslib/patterns/commit/49863b7999f77e6f8c7b152e4505ca389073d982))
Fix autload-visible trigger to only load the injection if the element is in the viewport.
As before, this check is done after 100ms.
This prevents loading items when we quickly scoll across them, like with href-section-jumps.


### Maintenance

* **dependencies:** Upgrade dependencies. ([bd1ba37](https://github.com/Patternslib/patterns/commit/bd1ba370faedc1eaaaa9e665461e612d25a46d35))


## [6.3.1](https://github.com/Patternslib/patterns/compare/6.3.0...6.3.1) (2021-12-21)


### Bug Fixes

* **pat gallery:** Correctly re-use existing default templates. ([5191041](https://github.com/Patternslib/patterns/commit/51910416235ac5873e1c8480b76574ad5b2cd1c5))

* **pat gallery:** Do not reinitialize gallery image sizes too often. ([1f1e4d4](https://github.com/Patternslib/patterns/commit/1f1e4d4c244a8235a088fd9bf3a1da980eb9cabb))


### Maintenance

* **dependencies:** Upgrade up to minor versions. ([b0d2177](https://github.com/Patternslib/patterns/commit/b0d2177a67fa083c91b751ac664b7414a0e7acdb))

* **pat gallery:** Add demo/test case for extending the pat-gallery page with itself. ([433a95a](https://github.com/Patternslib/patterns/commit/433a95a365269093bbc9b230ab2f78bd4e7037e1))

* **pat gallery:** Factor out get_template so that it can be overwritten in subclasses. ([5341141](https://github.com/Patternslib/patterns/commit/53411414d86947b337c3e8db394bbb12ec2165a9))

* **pat gallery:** Remove redundant preventDefault. ([8a341aa](https://github.com/Patternslib/patterns/commit/8a341aaf3bb92afd513d8bc18537dbc2ecbeadef))

* **pat inject:** Minor documentation fix. ([3b091b8](https://github.com/Patternslib/patterns/commit/3b091b84ccea8fd0ee26dfcc90b39a5961dae3bf))


## [6.3.0](https://github.com/Patternslib/patterns/compare/6.2.0...6.3.0) (2021-12-16)


### Features

* **core utils:** removeWildcardClass: Add support for pure DOM nodes instead of needing jQuery objects. ([6be62e8](https://github.com/Patternslib/patterns/commit/6be62e85c4b8148057e2010e7894495227c840a4))

* **core utils:** Support NodeList in ensureArray and add option enforce_array if an array-like object should converted to a real array. ([23336b9](https://github.com/Patternslib/patterns/commit/23336b9708a4c2e8bc99e0cd322f54785dbce56c))

* **pat calendar:** Change time-format option to configure 24h or 12h time format. ([03437e9](https://github.com/Patternslib/patterns/commit/03437e980cb50eca986e7bc9fdf6f35229725608))

* **pat gallery:** Reinitialize the triggers when new elements are loadded into the gallery area. ([276f3f2](https://github.com/Patternslib/patterns/commit/276f3f29453e1e03d36e7c581d783b7596cd3358))


### Bug Fixes

* **pat gallery:** Unhide/hide the gallery template when opening/closing it. Fixes some layout issues when gallery isn't closed properly. ([5abca91](https://github.com/Patternslib/patterns/commit/5abca915d1a2e72959cbb6edd7e8ac0d852aaca6))


### Maintenance

* **dependencies:** Upgrade dependencies. ([9a35e71](https://github.com/Patternslib/patterns/commit/9a35e71d19f6457ab1de2da99fbcc323298dc1b0))

* **pat gallery:** Modernize and improve code. ([30227e6](https://github.com/Patternslib/patterns/commit/30227e6de86de4e6d08dac1a0f0806bde9f63184))

* **pat gallery:** Narrow the search path for the Photoswipe template element. It is just within the template. ([6dd5893](https://github.com/Patternslib/patterns/commit/6dd5893601d9575620a75666b89df686d2817fb6))

* **pat navigation:** Reduce timeout from 300ms to 1ms to wait for MutationObserver. Also partly simplify test code. ([edf4f14](https://github.com/Patternslib/patterns/commit/edf4f14d6fb37705cd615502585b86b975850188))

* **pat switch:** Modernize code. ([78e4756](https://github.com/Patternslib/patterns/commit/78e475675d359461b1a475a0a8e0e6b556437832))

* **pat validation:** Modernize code. ([77d3410](https://github.com/Patternslib/patterns/commit/77d3410f7cb7b8eae9f77b60553ccf352e53d06c))

* **tests:** Add jest-raw-loader to be able to load templates in tests. ([c36fb49](https://github.com/Patternslib/patterns/commit/c36fb494a26d9dbea7a3a99040d8f8f6d0525052))


## [6.2.0](https://github.com/Patternslib/patterns/compare/6.1.0...6.2.0) (2021-12-03)


### Features

* **core utils:** Add escape_html and unescape_html function to replace/unreplace html entity characters. ([dead69c](https://github.com/Patternslib/patterns/commit/dead69c6d51bcfccfb8adaed21999a78bcc1bcfa))


### Maintenance

* **pat calendar:** Document preference of setting the language as lang attribute. ([bbf7a6c](https://github.com/Patternslib/patterns/commit/bbf7a6c172a78cdb286c3481b2fbef76881778b7))

* **pat display time:** Document preference of setting the language as lang attribute. ([71391db](https://github.com/Patternslib/patterns/commit/71391db5926b01d2fe444c8fc8ae74ca2b879f22))


## [6.1.0](https://github.com/Patternslib/patterns/compare/6.0.2...6.1.0) (2021-11-30)


### Features

* **core dom:** Add acquire_attribute to get the value of the first occurence of a defined attribute up the DOM tree. ([d3a2db3](https://github.com/Patternslib/patterns/commit/d3a2db346be549146a6c135cda218c6ac7e59a8a))

* **core dom:** Add parameter to acquire_attribute to return a list of all found attributes up the DOM tree. ([732ef34](https://github.com/Patternslib/patterns/commit/732ef34a8d90230661b71a37caa1c25735b4e655))

* **pat calendar:** Acquire language from the DOM tree instead only the HTML node if the language is not configured. ([d659e09](https://github.com/Patternslib/patterns/commit/d659e09b1edc11868e6679dbd383953069713626))

* **pat display time:** Acquire language from the DOM tree instead only the HTML node if the language is not configured. ([7c65d5c](https://github.com/Patternslib/patterns/commit/7c65d5c18cb0cb6a28cb318750e7421abbba9577))


### Bug Fixes

* **pat autofocus:** Scoped autofocus. ([f820445](https://github.com/Patternslib/patterns/commit/f8204451aaf70dabc4671771a5a5c831b610ec31))
Do not operate on whole DOM tree but only on the scoped element while still working with multiple pat-autofocus instances.

This fixes a problem where autofocus was set on the wrong element after injection.


### Maintenance

* **Cleanup:** Remove unused icon.svg. Icons are in /style/pattern-icons.svg. ([8ca2acf](https://github.com/Patternslib/patterns/commit/8ca2acf8630c1b639146aa36c2f5a8b51c153e14))

* **dependencies:** Upgrade dev dependencies up to minor versions. ([405674d](https://github.com/Patternslib/patterns/commit/405674da28cf95486d631732ccfe9a38a5f27397))


## [6.0.2](https://github.com/Patternslib/patterns/compare/6.0.1...6.0.2) (2021-11-25)


### Bug Fixes

* **pat modal:** Fix close-panel with multiple inject forms. ([251675b](https://github.com/Patternslib/patterns/commit/251675ba786ccb3506d6277280a0c8821b12f413))
Support close-panel with multiple forms.pat-inject in a modal, for example together with pat-stacks.
Previously only the first form used to attach the event handler which listens for the injection success event for closing the modal.
In these cases the modal wasn't closed properly.


### Maintenance

* **build:** Run the GitHub release task unattendet and checkout the modified CHANGES.md afterwards. ([5945e60](https://github.com/Patternslib/patterns/commit/5945e6015edddf7f6aed355f5c63a1dc5236368b))

* **dependencies:** Upgrade dev dependencies up to minor versions. ([3f4d0c0](https://github.com/Patternslib/patterns/commit/3f4d0c0a346c031f78e6cbc499ffc870af610034))


## [6.0.1](https://github.com/Patternslib/patterns/compare/6.0.0...6.0.1) (2021-11-17)


### Maintenance

* **build:** Cleanup package.json a bit. ([81f3bde](https://github.com/Patternslib/patterns/commit/81f3bde733202593ec4c9787550fd7fc21a70ab2))

* **build:** Read release-it changelog template from absolute path. This allows for extending this config in external packages. ([6fb6854](https://github.com/Patternslib/patterns/commit/6fb6854a18c015c988629b8c78b6ff85e2c9dace))

* **dependencies:** Upgrade copy-webpack-plugin and specify minimum Node.js version to 12.20.0. ([4804e84](https://github.com/Patternslib/patterns/commit/4804e84ef93ec77776d3c1d52fb75718ac9ce445))

* **dependencies:** Upgrade dev dependencies up to minor versions. ([5138216](https://github.com/Patternslib/patterns/commit/51382167b86988f68eb67626e1564fca04c2ba88))

* **docs:** Release notes about GitHub access tokens for GitHub releases. ([4167497](https://github.com/Patternslib/patterns/commit/4167497acdbee8d959f60db824b823f27c70040c))


## [6.0.0](https://github.com/Patternslib/patterns/compare/5.5.0...6.0.0) (2021-11-17)


### Bug Fixes

* **build:** Do not recommend the next version bump. ([b875a08](https://github.com/Patternslib/patterns/commit/b875a0874f5a13dcd3d63f13b0c3755fc7f6fe83))
Add option to not automatically detect the next recommended version bump.
Ref: https://github.com/release-it/release-it/issues/833
Ref: https://github.com/release-it/conventional-changelog/issues/37


### Breaking Changes

* **build:** Upgrade Webpack to v5. ([39762db](https://github.com/Patternslib/patterns/commit/39762dba37230473b8e27d50ee18dc1a5060a1bf))
If you extend this webpack configuration and run into problems see the
Webpack upgrade guide: https://webpack.js.org/migrate/5/


### Maintenance

* **build:** Add `babel_include` option to Webpack config factory. ([d97ded0](https://github.com/Patternslib/patterns/commit/d97ded044c2d60606c50245b4fcba7867058e954))
Allow to configure exclusions from babel-loader exclude string via the
`babel_include` config option.
The default is to not exclude anything in `node_modules/@patternslib`
and all `pat-*` packaes.
Anything else in `node_modules` is excluded from babel processing.
* **build:** Add CORS header 'Access-Control-Allow-Origin' to allow including the JS from a different URL in test sites. ([3c51dd2](https://github.com/Patternslib/patterns/commit/3c51dd22a974dd56ff947759a597e07cb6ac27d2))

* **build:** Add release to Github. ([4636a9d](https://github.com/Patternslib/patterns/commit/4636a9d397e433a437b135b77c7081a31f1e9f49))

* **build:** Allow multiple bundles expose jQuery. Needed for module federation where multiple Webpack entry points are loaded. ([59a9991](https://github.com/Patternslib/patterns/commit/59a99915a79d4142eba50c51ba959ccf89e888e1))

* **build:** Deactivate duplicates plugin due to non-resolvable error. ([867e08f](https://github.com/Patternslib/patterns/commit/867e08ff50cb5b3dacf0332c14c38e85b564c749))

* **build:** Ignore node_modules and docs folder when watching for better performance. ([7b8a1e0](https://github.com/Patternslib/patterns/commit/7b8a1e0c81548f0f686dd5be8f46dba4739a07a3))

* **build:** Let screenful be processed by babel-loader. This is necessary since screenful 6.0.0. ([ff95ec6](https://github.com/Patternslib/patterns/commit/ff95ec65ffc58a976486786b77de1ca6b1743467))

* **build:** Load svg as resource and not inline. ([298be11](https://github.com/Patternslib/patterns/commit/298be113cf743c422a7ae43bbd36168848cbc7ff))

* **build:** Remove clean-webpack-plugin. Use built-in option to clean the output directory before compiling instead. ([604a8ed](https://github.com/Patternslib/patterns/commit/604a8ed58dbe7eaabbf5cdaa6ab76ea6885f4f88))

* **build:** Remove ProvidePlugin. Modules depending on jQuery need to explicitly import it. ([f43c8af](https://github.com/Patternslib/patterns/commit/f43c8afd056b1e95959e4ad84e2d4fb37da4d2ae))

* **build:** Use new inspectpack instead duplicate-package-checker-webpack-plugin. ([cf57b67](https://github.com/Patternslib/patterns/commit/cf57b678c4ffe45157f0b424a44d0fcb4773b83f))

* **dependencies:** Upgrade fullcalendar to 5.10.1. ([9cefa48](https://github.com/Patternslib/patterns/commit/9cefa48921930eb2bcd38050e459f1b656908b7d))

* **dependencies:** Upgrade moment-timezone to 0.5.34. ([a7d8d3c](https://github.com/Patternslib/patterns/commit/a7d8d3c38af1651934bfc771f4d25443bb97aa04))

* **dependencies:** Upgrade screenfull to 6.0.0. ([491d92e](https://github.com/Patternslib/patterns/commit/491d92e87e08aab5f4ecf0a1500fbf868c89ed27))

* **dependencies:** Upgrade tippy.js to 6.3.7. ([0dd51e0](https://github.com/Patternslib/patterns/commit/0dd51e0910f92094701794d3c958b1c984aa1986))

