Skip to content

Release 9.10.1-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@thet thet released this 06 Apr 21:03
· 27 commits to master since this release

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

wrapper. But a is not a valid child node of a
. This caused visually destroyed tables.

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.