Releases: Patternslib/Patterns
Release 9.10.1-beta.3
9.10.1-beta.3 (2025-04-06)
Features
-
core polyfills: Add polyfill for navigation API. (b9c328f)
This polyfill adds support for the "navigate" event on the navigation
object. We path "history.pushState" and "history.replaceState" to send
the "navigate" event on the "window.navigation" object when the URL
changes.
This polyfill is for current Firefox and Safari. Chrome based browsers
already support this.
More information on:
https://developer.mozilla.org/en-US/docs/Web/API/Navigation/navigate_event
-
core registry: Allow to disable individual patterns via a global window.__patternslib_patterns_blacklist array. (2d04c6c)
-
pat-ajax: Pass the URL to the pat-ajax-success event payload. (faa0209)
This allows to use the URL in an event handler for certain actions.
Bug Fixes
-
pat-inject: Fix problem with inserting table rows. (2e70a13)
There was a problem with injecting table rows introduced in: b0f94fb
The problem occured when setting a table row as content of a temporary
Using a tag as wrapper instead of a div solved the problem.
-
Remove also the previously removed polyfills-loader from the webpack config. (f532648)
-
styles: Fix relative import path of SASS files. (6a28f02)
The SASS docs suggest to use real relative imports - we don't have a load-path definition here.
sass-migrator also wouldn't migrate with this kind of imports. -
styles: Fix SASS nesting warnings. (75701d7)
-
styles: Migrate using sass-migrator module. (1bab49d)
Maintenance
-
@patternslib/dev upgrade - Adapt Makefile. (1d2877d)
-
@patternslib/dev upgrade - create eslint.config.js. (e31f9d6)
-
@patternslib/dev upgrade - remove .husky directory in favor of git hooks. (61094b8)
-
@patternslib/dev upgrade - remove old .eslintrc.js. (3eceed2)
-
Document patternslib global variables. (25dab59)
-
Early exit the SubmitEvent.submitter polyfill, if it is already available. (93841ba)
-
Fix eslint errors. (1d13a7d)
-
Remove the polyfills-loader script. (6fee709)
The few necessary polyfills are now loaded by Patternslib itself.
This script was empty and is now removed. -
Remove the public path helper script. (20dd150)
The public path helper script did set the webpack public path to find
the path where the bundle was located and to correctly find the chunk
directory. The logic was based on finding the URL of the last loaded
script. This was not even always correct.
It was also possible to override it via window.__patternslib_public_path__
.
Since quite some thime, this is not necessary anymore as webpack handles
these path issues on it's own.
This dead code is now removed.
Release 9.10.1-beta.2
9.10.1-beta.2 (2025-02-04)
Bug Fixes
-
pat-checklist: Dispatch input event along change event. (3c298f5)
pat-depends was not reacting on pat-checklist toggles.
This is fixed by dispatching an input event just after the change event. -
pat-inject: Fix error when no title is found. (3718361)
Maintenance
- pat-inject: Minor code optimization. (6c9ad2d)
Release 9.10.1-beta.1
9.10.1-beta.1 (2025-01-31)
Bug Fixes
- pat-navigation: Fix case where no click anchor could be found. (fcb349f)
Release 9.10.1-beta.0
9.10.1-beta.0 (2025-01-31)
Features
-
core dom: Add method is_button. (132e42b)
dom.is_button tests, if an element is a button like element.
Button like elements are the following:button,
button[type=button],
button[type=submit],
input[type=image],
input[type=button],
input[type=reset],
input[type=submit]
Bug Fixes
-
pat-depends: Fix infinite loop situations. (af5ecc5)
Fix some situations where infinite loops were created of unnecessary
function calls were done:
- Do not en/disable already en/disabled inputs.
- Do not trigger and pat-depends element if the input is the element
itself and not a contained sub-input. - Do not trigger input events on button-like elements.
Maintenance
-
Add deprecation notice for Modernizr. (cd84cc7)
Modernizr will be removed in an upcoming minor version. It is not really
necessary anymore. Most browser support almost latest web technology and IE is
dead.
A no-js class on the body will still be replaced with a js class.
Release 9.10.1-alpha.5
9.10.1-alpha.5 (2025-01-28)
Bug Fixes
-
core feature-detection: Fix loading of modernizr script. (c110df8)
In some situations loading of the modernizr.min.js script failed because
the base url could be incorrect. That is fixed with a non-IE compatible
method of getting the current's script URL, which is safe to use.
The problem surfaced in Plone while loading the Patternslib library and
in between the protect.js script was loaded. The base url was calculated
for the protect.js script and the modernizr script could not be loaded. -
core registry: Do nothing with Patterns without a trigger. (0e49193)
Patterns without a trigger broke the registry scan method. Now they don't.
Maintenance
- core log: Console.debug is not deprecated. Just use it. (514e7ff)
Release 9.10.1-alpha.4
9.10.1-alpha.4 (2025-01-22)
Bug Fixes
-
pat-depends: Listen and dispatch input instead of change events. (307a336)
This is a better and more standard compliant combination than listening on
input and keyup events. This fixes a problem where a pat-autosuggest selection
field didn't provoke a change in a pat-depends dependent element.
Release 9.10.1-alpha.3
9.10.1-alpha.3 (2025-01-20)
Bug Fixes
-
pat-inject: Fix a problem with injections without a target which was introduced in 9.10.1-alpha.0. (9030ba5)
-
pat-inject: Re-enable support for multiple source matches. (07a244f)
Maintenance
- pat-inject: Test automatic title insertion in history record mode. (fcd87d4)
Release 9.10.1-alpha.2
9.10.1-alpha.2 (2025-01-15)
Maintenance
- Dependencies: Upgrade pat-content-mirror to 4.0.1. (eab2eb9)
Release 9.10.1-alpha.1
9.10.1-alpha.1 (2025-01-15)
Maintenance
- Dependencies: Upgrade pat-content-mirror to 4.0.0. (04e4816)
Release 9.10.1-alpha.0
9.10.1-alpha.0 (2025-01-14)
Features
- pat-auto-suggest: Enable caching. (154890b)
Bug Fixes
-
core dom: Do not break querySelectorAllAndMe, if passed element is not a real element but something like a text node. (1b19844)
-
pat-autosuggest: For ajax queries, include the index parameter only if it is set. (85da6a5)
Maintenance
-
core registry: Simplify pattern scanning filter. (43c7255)
Reduce the number of DOM search tests while not changing the behavior.
Less rules means more speed. -
pat inject: Modernize some parts of pat inject. (b0f94fb)
-
pat-inject: Use create_uuid for generating the temporary autoload uuid and remove it again afterwards. (8a3af53)