Skip to content

Commit aa3b7f4

Browse files
committed
Release new version.
1 parent d39d5ea commit aa3b7f4

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

CHANGES.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,68 @@
22

33
See the [history](./docs/history/index.md) for older changelog entries.
44

5+
6+
7+
## [9.10.4-alpha.1](https://github.com/Patternslib/patterns/compare/9.10.4-alpha.0...9.10.4-alpha.1) (2025-12-24)
8+
9+
10+
### Features
11+
12+
13+
* **core dom:** Introduce to_element_array. ([f08b83f](https://github.com/Patternslib/patterns/commit/f08b83fc6efde06c90e3b26848e911e2e0a04819))
14+
15+
This method can be passed a single object, a NodeList or an array and
16+
will return an array, filtered for DOM elements.
17+
18+
19+
20+
### Bug Fixes
21+
22+
23+
* **pat-inject:** Fix broken scrolling after injection. ([446cf06](https://github.com/Patternslib/patterns/commit/446cf06f6e9c8232834c25cd0b818d5c6ddd10c6))
24+
25+
This fixes a problem where scrolling wasn't working after injection
26+
anymore when the injection result is multiple nodes and not a single
27+
one.
28+
29+
30+
31+
### Technical Changes
32+
33+
34+
* **code dom:** Rename toNodeArray to to_node_array, keeping the old name for BBB. ([ab78058](https://github.com/Patternslib/patterns/commit/ab78058116ba15445fa47ea0829b9484820a1022))
35+
36+
This is done to align the names according the naming conventions in
37+
Patternslib. Also, this is not a breaking change, as toNodeArray is now
38+
nowhere used (we're using to_element_array instead) and we kept the old
39+
name as alias for backwards compatibility.
40+
41+
42+
* **core dom:** querySelectorAllAndMe - Define the order of results. ([5063f50](https://github.com/Patternslib/patterns/commit/5063f502b09e8de8715b49b5135697859fa41c9f))
43+
44+
Return the results in the order of the matching root elements, extended
45+
their matching containing elements.
46+
Note: not a breaking change, as the support for multiple root nodes was
47+
added in this release.
48+
49+
50+
* **core dom:** querySelectorAllAndMe - Support multiple root nodes. ([ba8ee80](https://github.com/Patternslib/patterns/commit/ba8ee801845fea0404e9b87f8c7292ace19016d3))
51+
52+
querySelectorAllAndMe supports now multiple root nodes. All of them are searched for a selector match.
53+
54+
55+
* **core dom:** toNodeArray - filter for instances of Node only. ([5de555b](https://github.com/Patternslib/patterns/commit/5de555b0e7eb0034265f9662e14ec9cf3b3890e0))
56+
57+
58+
59+
### Maintenance
60+
61+
62+
* **core utils:** hideOrShow - filter for dom elements. ([c20c58a](https://github.com/Patternslib/patterns/commit/c20c58a247a0533527f8a81900cc67505a8a5e68))
63+
64+
Use dom.to_element_array instead of dom.toNodeArray to filter for DOM
65+
elements instead of nodes.
66+
567
## [9.10.3](https://github.com/Patternslib/patterns/compare/9.10.2...9.10.3) (2025-07-04)
668

769
### Maintenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternslib/patternslib",
3-
"version": "9.10.4-alpha.0",
3+
"version": "9.10.4-alpha.1",
44
"title": "Markup patterns to drive behaviour.",
55
"description": "Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming language. Accessibility, SEO and well structured HTML are core values of Patterns.",
66
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)