Releases: Patternslib/Patterns
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)
Release 7.7.0
7.7.0 (2022-04-12)
Features
- Introduce
disable-patterns
class to prevent from initializing. (5f137f0)
To disable patterns when scanning markup for patterns, use thedisable-patterns
CSS class.
Previously we did use the dont-touch-this
class.
This is deprecated due to a ambiguous name and will be removed in the next major version.
Bug Fixes
- Build: Fix changelog template. (96f7bac)
Since conventional-changelog 4.2.0 the previous header is merged to the
end of the new changelog entry block.
This is documented here: release-it/conventional-changelog#46
As long as this issue is not resolved, we're adding a#
at the end
of the changelog block, intending the previous entry in the heading
hierarchy, but that's better than a even more messed up changelog file.
Release 7.6.0
7.6.0 (2022-04-08)
Features
-
pat tooltip: For ajax requests, define the accept header. (a65642e)
We're expecting HTML or XML as the response.
This solves a problem with*/*
or json requests being handled by plone.restapi only. -
pat tooltip: Support query strings in remote tooltip content URLs. (252ee17)
Bug Fixes
- Build: Fix changelog template as per @release-it/conventional-changelog v4.2.0 the header was improperly appended at the end of the new changelog entry. (276b2d5)
Maintenance
- Build: Upgrade dependencies. (900eedb)
Release 7.5.0
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
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
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
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)