Skip to content

Releases: Patternslib/Patterns

Release 7.5.0

01 Apr 12:16
Compare
Choose a tag to compare

7.5.0 (2022-04-01)

Features

  • pat tooltip: Expose get_content API method and allow to reload the tooltip's content. (16ba9c1)

Bug Fixes

  • pat inject tests: Fix one failing test in GH actions, where document is null. (0f8d4aa)

Maintenance

  • Build: Upgrade dependencies. (21b911f)

  • pat inject: Minor code improvements. (8f507ab)

  • pat inject tests: Restore all mocks. (82cc049)

  • pat tooltip: Remove ajax_state. With async/await based loading we do not need to set the ajax_state to avoid multiple ajax calls. (b5deb4b)

  • pat tooltip tests: Add numbers to test cases so that they can be esier run selectively by filtering. (72611af)

  • pat tooltip tests: Restore all mocks completly after each test run. (8edba74)

Release 7.4.0

24 Mar 16:53
Compare
Choose a tag to compare

7.4.0 (2022-03-24)

Features

  • core parser: Also convert on/off values to boolean for boolean arguments. (985f4e2)

  • pat ajax: Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. (49dbecf)

  • pat inject: Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. (8376c56)

Bug Fixes

  • pat inject: Fix logic for adding executing-class to the pat-inject element. (e8531de)

Breaking Changes

  • core pluggable: Remove unused pluggable module. (c5c2e1b)

Maintenance

  • Build: Upgrade dependencies. (e5b8fe4)

  • Build: Use node version 16 and upgrade setup-node and checkout actions. (3c98bfa)

  • core base: Un-underscore core.base tests. (4a0ad4b)

  • core logging: Cleanup - remove IE8 compatibility code for console.log. (da0d9d9)

  • core parser: Un-underscore core.parser tests. (5faec93)

  • core utils: Un-underscore core.utils. (cd9c00d)

  • Dependencies: Remove now unused dependency Underscore.js. (874c6c1)

  • pat inject: Remove console.log statements from tests. (3db47fe)

  • pat inject: Un-underscore pat-inject. (584420c)

  • pat navigation: Remove console.log statement from tests. (a20fbd4)

Release 7.3.0

17 Mar 11:22
Compare
Choose a tag to compare

7.3.0 (2022-03-17)

Features

  • core base: Add one event listener to listen for Pattern events only once. (1028a6d)

  • core dom: Add a fallback option to find_scroll_container to return something else than document.body if no other scroll container can be found. (ac220fd)

  • core events: Add await_event for using await statements to wait for an event to happen. (1e264c1)

  • core events: Add await_pattern_init helper which can be used to await the event when a pattern instance is initialized. (ac371e0)

Bug Fixes

  • pat bumper: Fallback to null if no scroll container can be found. Fixes a problem with initalization of the IntersectionObserver introduced in 7.2.0. (c04ea75)

Maintenance

  • pat bumper: Minor code cleanup. (edfec61)

Release 7.2.0

16 Mar 08:20
Compare
Choose a tag to compare

7.2.0 (2022-03-16)

Features

  • core dom: Add find_scroll_container to find a scrollable element up in the DOM tree. (d9eef9e)

  • pat inject: Rework autoload-visible to use an IntersectionObserver. (4f26006)
    The autoload-visible trigger of pat-inject now uses an IntersectionObserver.
    This simplifies the code and improves performance because there are no more complex position calculations involved.

Fixes: #955

  • pat inject: Support delay time for trigger: autoload-visible. (d951817)

Maintenance

  • Upgrade dependencies. (2590bcf)

  • core dom: Move utils.getCSSValue to dom.get_css_value and keep a BBB import. (25e1846)
    Move utils.getCSSValue to dom.get_css_value and keep a BBB import in utils.
    This change is made for these reasons:

  • Avoid circular imports (even if supported).
  • Code cleanup - move DOM related methods to dom module.
  • pat bumper: Update import for get_css_value. (ccff688)

  • pat bumper: Use new core.dom.find_scroll_container instead own implementation. (ab98985)

  • pat gallery: Update import for get_css_value. (3268b1e)

  • pat inject: Update import for get_css_value. (e378e51)

  • pat scroll: Use new core.dom.find_scroll_container instead own implementation. (3872aaf)

  • pat tabs: Update import for get_css_value. (ce50044)

  • tests: Add an IntersectionObserver mock for testing. (8e84d0f)

Release 7.1.3

14 Mar 09:21
Compare
Choose a tag to compare

7.1.3 (2022-03-14)

Bug Fixes

  • core logging: Fix invalid use of typeof. (e2e992d)

Maintenance

Release 7.1.2

14 Mar 07:52
Compare
Choose a tag to compare

7.1.2 (2022-03-14)

Bug Fixes

  • pat validation: With depending date validation also validate the dependend date. (5060fa4), closes #970
    Fixes: #970

Maintenance

  • Build: Makefile - Resolve package version for ZIP bundle at target runtime. (2d799f8)

  • pat tabs: Fix test for error not thrown. (c4e00aa)
    Fix an UnhandledPromiseRejection error with an asynchronous test.
    The problem popped up in node version 16 and was passing in node version 14.

Release 7.1.1

16 Feb 22:02
Compare
Choose a tag to compare

7.1.1 (2022-02-16)

Features

  • core polyfills: Add polyfills module for modern browsers. (69402f6)
    Currently this holds a polyfill for SubmitEvent.submitter, which isn't available in Safari < 15.4 and jsDOM.

Bug Fixes

  • pat validation: Fix release 7.1.0. (3afb42b)
    The event-submitter-polyfill package isn't universally built.
    Let's use our new core/polyfills.js module instead and fix the previous release.

Release 7.1.0

16 Feb 20:07
Compare
Choose a tag to compare

7.1.0 (2022-02-16)

Features

  • core events: Standard JavaScript event factories - add "click" event. (8c7ce5f)

  • pat validation: Do not submit when a formnovalidate buttons was used. (35f4227)

  • pat validation: Set novalidation to pat-validation forms to prevent the browser's validation bubbles to appear. (a6a8188)

Bug Fixes

  • pat toggle: Don't let pat-toggle steal the click event and prevent double clicks. (8b75b8e)
    Do not let pat-toggle prevent the click event after it was catched.
    This makes pat-toggle work together with other Patterns, like pat-checklist.
    Also, when clicking on a label wrapping a checkbox, the checkbox also emits a click event which results in a unmodified toggle-state.
    Prevent double-clicks by debouncing and canceling events.

Maintenance

  • core events: Show behvavior of two click events emitted when clicking on a lable wrapping a checkbox. (259173f)

  • Dependencies: Upgrade dependencies. (6a7ea33)

  • pat toggle: Modernize code. (5a478a4)

  • pat validation: Demo - remove pat-validation type options. (d60e39b)

Release 7.0.2

15 Feb 10:14
Compare
Choose a tag to compare

7.0.2 (2022-02-15)

Bug Fixes

  • pat auto suggest: Fix issue with pat-auto-submit. (bbf5735)
    Also dispatch a input event after a value has changed to let auto-submit do a form submit.
    This fixes an issue introduced in Patternslib 7.0.0.
    Note: this will be revisited when reworking auto-submit and input-change-events for standard JavaScript event compatibility.

Maintenance

  • core events tests: Add jQuery vs native JavaScript events tests. (bb3a8e8)
    Add test showing that jQuery catches native events, but native listeners do not catch jQuery events.
    In the mid-term we want to switch to native-only to get rid of this difference.

  • Dependencies: Upgrade dependencies. (d5fd1ad)

  • pat auto submit: Cleanup code, improve tests. (8d289eb)

  • pat auto suggest: Improve and extend tests. (d4d2e99)

Release 7.0.1

08 Feb 16:53
Compare
Choose a tag to compare

7.0.1 (2022-02-08)

Bug Fixes

  • Build: Use public_path script while also having publicPath set to auto. (b8dfdbd)
    We still need to use the src/public_path.js script as first import in our bundles to correctly resolve the loading path for chunks.
    publicPath set to auto does not work in certain environments (e.g. the Plone resource registry).

Partially reverts 1b61431, "Use automatic publicPath determination instead of manually setting it."

Maintenance

  • build: Add and expose a "install" target alias to the Makefile as an alias to stamp-yarn. (e204037)

  • build: Remove unnecessary double-colon from targets. (070e4d9)

  • Cleanup: Remove reference to moment-timezone-with-data in .eslintrc - a file which was removed some time ago. (5de91cc)

  • Cleanup: Restructure package.json entries to move less relevant info down. (a25043b)

  • Docs: Update developer styleguide with simpler commit message scope naming guidelines. (1b391cb)

  • Change the bundle name whichis uploaded to the GitHub release page from patternslib-VERSION.zip to patternslib-bundle-VERSION.zip to better distinguish it from the automatically created Patterns-VERSION.zip source distribution. (c489a8c)

  • pat validation: Test and demo validation of datetime-local. (dc58887)