You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***core basepattern:** Add a destroy method. ([f9ca65a](https://github.com/Patternslib/patterns/commit/f9ca65a1b56c8908dec7114d66dca963f5808357))The destroy method removes the pattern instance from the element.
14
+
This is necessary to re-initialize the same pattern on the same element.
15
+
16
+
***core events:** Support await_pattern_init with pattern double registration attempt. ([e8640a9](https://github.com/Patternslib/patterns/commit/e8640a95d11f5e9c910860c5408fd47a898931d1))When a pattern is tried to be initialized on the same element twice,
17
+
throw an event and use that event in await_pattern_init to reject
18
+
the promise. When using await_pattern_init you might want to
19
+
try/catch the block to handle any possible double-registration
20
+
errors.
21
+
22
+
***core events:** Support once-events in add_event_listener. ([fc0e333](https://github.com/Patternslib/patterns/commit/fc0e3334bbbec9be6d539f1e17d18d07cbe79704))Add support for once-events in add_event_listener and unregister them
23
+
when called from the event_listener_map.
24
+
25
+
26
+
### Bug Fixes
27
+
28
+
29
+
***pat-tooltip:** Cleanup tooltip after it's destroyed. ([ac27e20](https://github.com/Patternslib/patterns/commit/ac27e20614cadc4715ecc1219d5c4cd1541d362d))When the tooltip is destroyed, also call the tooltip's BasePattern destroy
30
+
method to clean up and release the tooltip from the element. After that
31
+
it can be instantiated on the same element again.
32
+
This change was necessary after the recent BasePattern change.
33
+
34
+
***pat-validation:** Make sure to cancel submit events on invalid forms. ([e218af2](https://github.com/Patternslib/patterns/commit/e218af2290af35c6d4dbea3ab3d3d843aeeb787b))Make sure that submit events are canceled on invalid forms by using a
35
+
capturing event handler which is invoked before non-capturing events.
36
+
37
+
The previous commit exposed a problem with the submit event handling,
38
+
where the then non-capturing submit event handler was registered
39
+
later than the one from pat-inject because pat-validation's async
40
+
init method where pat-inject's init method is yet non-async. That
41
+
happened even the pat-validation's pattern initialization is
42
+
enforced to run first due to registration reordering in the Pattern
43
+
registry. Now with the capturing event handler this problem is
44
+
fixed.
45
+
46
+
47
+
### Maintenance
48
+
49
+
50
+
***core basepattern:** Use identity instead equality comaprison instead in tests for stricter testing. ([ce962d2](https://github.com/Patternslib/patterns/commit/ce962d2d09b41ab39b746d0f9f432df81cc96e61))
51
+
52
+
* Exclude more files from npm packages. ([c312b96](https://github.com/Patternslib/patterns/commit/c312b961520bbe8edd2b425157ded450e2d2144d))
53
+
54
+
* Only include dist/ and src/ directories in the npm package. ([babc4b6](https://github.com/Patternslib/patterns/commit/babc4b6cf368fc3c6f863f16c5b2f6c620e3b672))
55
+
56
+
***pat-validation:** Change to class based pattern. ([11543ea](https://github.com/Patternslib/patterns/commit/11543ea97d944f13e53f2758fa0fd5267ea513af))This is needed for better customization in deriving projects.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@patternslib/patternslib",
3
-
"version": "9.8.0-beta.0",
3
+
"version": "9.8.0-beta.1",
4
4
"title": "Markup patterns to drive behaviour.",
5
5
"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.",
0 commit comments