Skip to content

Releases: Patternslib/Patterns

Release 9.10.1-beta.0

31 Jan 00:31

Choose a tag to compare

Release 9.10.1-beta.0 Pre-release
Pre-release

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

28 Jan 19:39

Choose a tag to compare

Pre-release

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

22 Jan 15:32

Choose a tag to compare

Pre-release

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

20 Jan 22:58

Choose a tag to compare

Pre-release

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

15 Jan 17:11

Choose a tag to compare

Pre-release

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

15 Jan 16:11

Choose a tag to compare

Pre-release

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

14 Jan 18:57

Choose a tag to compare

Pre-release

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)

Release 9.10.0-alpha.1

09 Jan 10:35

Choose a tag to compare

Pre-release

9.10.0-alpha.1 (2025-01-09)

Features

  • core dom: Add document_ready function which ensures callbacks to be run when or after the DOM has been loaded. (1bbb837)

Bug Fixes

  • pat-inject: Fix pat-inject to not break complex JSON pattern options. (c3e4a68)

    Rework the html rebasing to fix up relative URLs in pat-inject for a
    simpler and slightly more efficient method to walk over all attributes
    which need rebasing.
    The old method could destroy complex JSON based pattern options, like
    those from pat-structure in Mockup.

Note: Only one rebase attribute per tag is currently possible. 1) This
is the same as before. 2) We don't need more.

Maintenance

  • Build: Explicitly set the dev server port to 3001 and fix the documentation which was wrong about it. (3882272)

  • Build: Restrict development server watcher only for files in the src directory. (758f7aa)

    This reduces the number of necessary file watchers and saves important system resources.

  • core registry: Use dom.document_ready instead of jQuery aequivalent. (c73b0e1)

  • core uuid: Extend with documentation and test from thet-own-needs with similar changes. (69ea565)

  • Docs: Minor typo in module federation document. (fadd5d4)

  • pat-markdown: Use dom.document_ready instead of jQuery aequivalent. (e8c8b4b)

  • Upgrade dependencies. (be61ac5)

Release 9.10.0-alpha.0

06 Jan 23:16

Choose a tag to compare

Pre-release

9.10.0-alpha.0 (2025-01-06)

Features

  • core basepattern: Assign each pattern a UUID. (c142214)

  • core dom: Add find_inputs to find all inputs in a node tree, including the node itself. (db271ce)

  • core uuid: Add utility function to generate a uuid. (8b70876)

  • pat-autosuggest: Add batching support for AJAX requests. (1323eaa)

    This PR introduces three new options for that:
    max-initial-size: Defines the batch size for the initial request (default: 10).
    ajax-batch-size: Defines the batch size for subsequent requests (default: 10).
    ajax-timeout: Defines the timeout in milliseconds before a AJAX request is submitted. (default: 400).

Ref: scrum-1638

  • pat-date-picker: Cache the ajax call to retrieve i18n picker translations. (9050ddc)

Bug Fixes

  • lib dependshandler: Do not return the value from an disabled input. Return null instead. (430167b)

  • pat-depends: Enable/Disable all inputs of a subtree, if a parent is a dependend. (0bbe3f4)

  • pat-depends: Support updating for sub-pat-depends when the parent state is changed. (9abf534)

  • pat-inject: Allow to submit invalid forms when form/novalidate. (993d27d)

    Respect the form[novalidate] and button[formnovalidate] attributes and
    allow the submission of invalid forms.
    This is necessary if a cancel button is a submit button and needs to be
    allowed to submit even if the form input is invalid.

Maintenance

  • lib dependshandler: Modernize code. (4c1650f)

  • pat-datepicker: Fix ESLint warning. (4a10d4b)

  • pat-depends: Rework to class based pattern. (c83bb0a)

  • Remove obsolete src/lib/README.txt. (70ee738)

Release 9.9.16

21 Aug 11:39

Choose a tag to compare

9.9.16 (2024-08-21)

Maintenance

  • Update dependencies with newer patch-level versions. (118f031)