Skip to content

Releases: Patternslib/Patterns

Release 9.0.0-beta.1

08 Jul 16:08

Choose a tag to compare

Release 9.0.0-beta.1 Pre-release
Pre-release

9.0.0-beta.1 (2022-07-08)

Bug Fixes

  • pat depends: Allow input names with colons in the parser, as used in Plone. (48298c2)

Maintenance

  • Build: Upgrade Moment to 2.29.4. (a0bf6fd)

  • Build: Upgrade to @patternslib/dev 2.3.0. (a02619e)

  • pat checkbox: Do not include styles and make the demo better usable. (7cd1dc3)

  • pat depends: Change Makefile to generate the parser optimized for size and output it as ES module. (3bfd39f)

  • pat depends: Depend on latest pegjs for generating the depends parser. (5339822)

  • pat depends demo: Add demo with optional date fields. (bfd5dbe)

  • pat depends demo: Demo colons in input names. (e882f4f)

  • pat depends demo: Demo multiselection. (85a824a)

  • pat depends demo: Set to import styles in JavaScript so that auto-suggest is styled. (e8b2ea2)

  • Add .eslintignore and ignore generated depends_parse.js file. (f9bc55f)

  • Do not define __patternslib_import_styles, so that it can be defined by another script without being overwritten. (7101d23)

Release 9.0.0-beta.0

29 Jun 21:35

Choose a tag to compare

Release 9.0.0-beta.0 Pre-release
Pre-release

9.0.0-beta.0 (2022-06-29)

Bug Fixes

  • Configure module alias for @patternslib/patternslib so that extended jest config from dev does not fail. (ce89f24)

  • pat scroll box: Fix issue where elastic scrolling on Safari would remove the scroll-position-top class for a moment when overscrolling on top. (596fd06)

Maintenance

  • Build: Adapt to latest module federation changes in @patternslib/dev 2.2.0. (c2f4d37)

  • Build: Add a watch Makefile target and package.json script. (c48ff3e)

  • Build: Update @patternslib/dev to 2.2.0. (a1550ca)

  • Build: Upgrade all pat-* dependency packages to it's latest version. (4628120)

  • Build: Upgrade dependencies. (eaeed1a)

  • pat scroll box: Document that scroll-down and scroll-up classes are not cleared after scrolling has stopped. (52f4343)

  • pat scroll box: Improve demo styles. (61fa3d8)

Release 9.0.0-alpha.1

15 Jun 07:57

Choose a tag to compare

Release 9.0.0-alpha.1 Pre-release
Pre-release

9.0.0-alpha.1 (2022-06-15)

Features

  • Build: Allow Patternslib add-ons to be built within the Patternslib package as part of a Patternslib bundle distribution by defining an alias for @patternslib/patternslib. (d4ae08b)

  • Bundle: Create a universal bundle. (9215532)Add more external patterns in order to create a universal drop-in bundle for Patternslib.
    Patterns added:

    • pat-content-mirror
    • pat-doclock
    • pat-shopping-cart
    • pat-sortable-table
    • pat-tiptap
    • pat-upload

Breaking Changes

  • Depend on @patternslib/dev and extend config from there. (aea3681)

  • Extend babel config from @patternslib/dev. (83cef90)

  • Extend commitlint config from @patternslib/dev. (9216ed7)

  • Extend eslint config from @patternslib/dev. (2cfeadc)

  • Extend jest config from @patternslib/dev. (125a4f7)

  • Extend Makefile from @patternslib/dev. (923efe3)

  • Extend prettier config from @patternslib/dev. (0bbbdca)

  • Extend release-it config from @patternslib/dev. (b692ce0)

  • Extend webpack config from @patternslib/dev. (208726f)

Maintenance

  • Do not eslint the generated depends_parse file. (dbfd33f)

  • Move webpack.dist.js back to webpack.config.js. (20f1d68)

  • Remove unused variables from Makefile. (141ade4)

Release 8.1.0

11 Jun 04:51

Choose a tag to compare

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 for source and target.
    This allows to reuse an existing #pat-modal instance and to open modals in modals.

Maintenance

  • Build: Add prerelease-alpha and prerelease-beta as Makefile targets. (10b9e24)

  • Upgrade dependencies. (71e31cf)

  • pat modal: Document panel-header-content. (ac7000e)

Release 8.0.3

23 May 15:49

Choose a tag to compare

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

19 May 11:34

Choose a tag to compare

8.0.2 (2022-05-19)

Bug Fixes

  • core base: Don't initialize a already initialized pattern. (d943de6)
    Improve the previous check by setting the var earlier.

  • core registry: Do not reinitialize and already initialized patterns registry. (809c119)

Release 8.0.1

18 May 16:42

Choose a tag to compare

8.0.1 (2022-05-18)

Maintenance

  • Bundle: Add the keyword "patternslib" to the npm package registry. (54fe5ba)

  • Bundle: Module Federation: Allow to pass the shared dependencies explicitly. When passed package.json dependencies are not automatically added. (7eba043)

  • Bundle: Upgrade dependencies. (d0a546b)

Release 8.0.0

17 May 15:42

Choose a tag to compare

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 in core.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

13 May 11:47

Choose a tag to compare

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

06 May 11:12

Choose a tag to compare

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)