Releases: Patternslib/Patterns
Release 8.1.0
8.1.0 (2022-06-11)
Maintenance
- docs: Add history section to docs and move old history from the changelog to this new section. (7c0e2ff)
8.1.0-alpha.4 (2022-06-08)
Features
- pat push: Desktop notifications: Ask for permission. (ccbf731)
Ask for permission to send desktop notifications after any click on the document.
This bypasses the browser restrictions on request for permission dialoges that are not shown if there hasn't been a user interaction.
Maintenance
- pat push: Restructure code. (2dbe44f)
Restructure code and narrow down the error handling for fetching to only the fetch block.
8.1.0-alpha.3 (2022-06-03)
Maintenance
-
pat inject: Add developer documentation with inital version method call flow diagram. (de13186)
-
pat switch: When logging errors, add the failing element for better debugging. Also, do not log an error twice. (83f3df3)
8.1.0-alpha.2 (2022-06-02)
Bug Fixes
- pat close panel: Do not break if no parent .has-close-panel element was found. (894c05c)
Maintenance
-
Build: Module Federation - Remove the underscore version fixture. (87347b7)
Remove the underscore version fixture in webpack.mf.js.
Since unterscore 1.13.4 this fixture isn't necessary anymore. -
docs: Document that you only have to iport module_federation if you are creating a host bundle. (bccd803)
8.1.0-alpha.1 (2022-05-31)
Features
- pat push: If a notification url is given, open it when clicking on the desktop notification. (c36e51f)
Maintenance
-
pat push: Fetch desktop notification data only when desktop notifications are allowed. (05d443b)
-
push kit: Remove unused desktop notification code. Use pat-push instead. (c702833)
8.1.0-alpha.0 (2022-05-30)
Features
- pat modal: Allow to configure a injection source and target to support modals in modals. (1d27c08)
Add configuration parameter forsource
andtarget
.
This allows to reuse an existing #pat-modal instance and to open modals in modals.
Maintenance
Release 8.0.3
8.0.3 (2022-05-23)
Bug Fixes
- Build: Don't use index.js entry which should be used for module federation and would break chunk loading if used in a non-mf environment. (ad5381c)
Maintenance
-
Build: Support 2FA when releasing. (e8f02b4)
Remove non interactive ci-mode from Makefile to allow for OTP prompt and two-factor auth on npm.
Also remove dry-run as we now have to confirm each step anyways. -
Build: Upgrade dependencies. (f2ac7ad)
-
Build: Use Underscore version 1.13.3 for module federation config. (403b9c8)
-
Be less verbose and use more debug log messages. (b05c03f)
-
pat modal: Update demo, re-activate autoload modal. (09d0e2b)
Release 8.0.2
Release 8.0.1
8.0.1 (2022-05-18)
Maintenance
Release 8.0.0
8.0.0 (2022-05-17)
Features
- Build: Dynamic Module Federation. Add config files and helpers. (7e7a2af)
With module federation you can share dependencies over multiple bundles without
loading them multiple times.
The dynamic part here allows the host to not know anything about it's remotes.
This concept can be used for add-ons to a base bundle.
Thanks @manfredsteyer for the help getting this to work!
Use the webpack/webpack.mf.js to extend your own webpack configuration with
dynamic module federation support.
In your main bundle (the "host") use webpack/dynamic_mf.js to configure the
entry point.
For more information see: docs/developer/module-federation.md.
For the general concept see: https://webpack.js.org/concepts/module-federation/
Co-authored-by: Johannes Raggam [email protected]
Co-authored-by: Manfred Steyer [email protected]
- Build: Register jQuery globally without expose-loader. (dca0842)
Remove the dependency on expose-loader and register jQuery globally in the
globals.js module.
Import this module early to have jQuery registered for scripts which depend on
a global jQuery object.
This also fixes an additional request made by the expose-loader for
asynchronously loading jQuery.
- core dom: dom.template engine. (61ca46f)
Add a simple template engine incore.dom.template
based on JavaScript template literals.
Maintenance
-
Build: Compatibility with Jest 28. (1795087)
Don't transform preact. -
Build: Compatibility with Jest 28. (69b7934)
Remove jest-raw-loader dependency and add own loader based on keplersj/jest-raw-loader#239 for compatibility with Jest 28. -
Build: Compatibility with Jest 28. (5679db0)
Add jest-environment-jsdom as of jest 28 that isn't shipped anymore by default. -
Build: Upgrade dependencies. (3260038)
-
Build: Upgrade fullcalender. (0b08573)
-
Build: Upgrade luxon to version 2. (5d12b9e)
-
Bundle: Upgrade jest to version 28. (4ac079f)
Breaking Changes
- core registry: Use a global pattern registry. (737f3ed)
Previously it was possible to use multiple pattern registries when multiple
instances of the registry were used, e.g. in different bundles.
With this change we do use only one pattern registry storage which is
shared across instances of core.registry
in multiple bundles.
This is a transparent change - the Patternslib registry API has not
changed at all. Just keep using registry.scan
,
registry.register
, etc.
But if necessary, there is a PATTERN_REGISTRY
export in core.registry
which points to window.__patternslib_registry
, a singleton in the global
namespace which is shared across instances of the registry.
Release 7.12.0
7.12.0 (2022-05-13)
Features
-
core dom: Add get_data and set_data methods to get or set data directly on DOM nodes. (1c21f05)
-
pat close-panel: New technical/internal pattern to close panels. (0c9231d)
Add new pattern close-panel for internal use to close panels.
This allows to initialize the close buttons after content injections.
It also allows for nested panels where a later opened panel doesn't close a previous opened panel.
Bug Fixes
- pat notification demo: Place close-button in each notification seperately. (2c57e3c)
Maintenance
-
Build: Supress console log messages in tests where HTMLFormElement.prototype.submit is not implemented. (a3bdc78)
-
Build: Upgrade dependencies. (22129ea)
-
pat calendar: Change console.log statement to a debug statement. (92a5999)
-
pat modal: Add numbers to test case names for easier starting individual cases. (62a38c9)
-
pat modal: Use new close-panel pattern for closing modals. (4a6029d)
-
pat notification: Code simplification and modernization. (f9d1492)
-
pat notification: Use new close-panel pattern for closing notifications. (b186066)
-
pat tooltip: Fix demo to use the referenced tooltip content. (6013b4b)
-
pat tooltip: Use new close-panel pattern for closing tooltips. (ca9fc9c)
Release 7.11.0
7.11.0 (2022-05-06)
Features
-
core events: Add mousedown and mouseup event factories. (62e1978)
-
core parser: Allow values to span multiple lines. Can be useful to nicely format bigger JSON values. (54a10c5)
Bug Fixes
- pat auto suggest: Fix regression introduced in 7.0 where auto suggest wasn't able to handle pre-filled json items properly. (4c39332)
Maintenance
- docs: Add note to Makefile about GITHUB_TOKEN in .env file. (2d10732)
Release 7.10.0
Release 7.9.0
Release 7.8.0
7.8.0 (2022-04-15)
Features
- pat tooltip: Initialize the tooltip's content after each refresh via get_content. This re-initializes any patterns after an update to the tooltip's contents. (665bea5)
Maintenance
-
Build: Remove customized main changelog template as due to conventional-changelog 4.3.0 the previous header's line break is preserved. (9e8ecbd)
-
Build: Upgrade dependencies. (9ea9c21)
-
pat tooltip: Use add_event_listener from core.events which better handles double registrations and makes it easier to unregister event handlers. (fe0f0d7)