Skip to content

Commit c87a48e

Browse files
committed
Release new version.
1 parent cad9de6 commit c87a48e

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

CHANGES.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,44 @@ See the [history](./docs/history/index.md) for older changelog entries.
44

55

66

7+
## [9.8.0-alpha.3](https://github.com/Patternslib/patterns/compare/9.8.0-alpha.2...9.8.0-alpha.3) (2022-12-07)
8+
9+
10+
### Bug Fixes
11+
12+
13+
* **pat-clone-code:** Fix a Content-Security-Policy problem. ([e38f987](https://github.com/Patternslib/patterns/commit/e38f987d968a641552079f4ffe9afbcf02663eeb))Do not use dom.template for the wrapper template to not get caught by
14+
the browser's Content-Security-Policy. If set, a unsafe-eval error would
15+
be thrown and the pattern refuse to run.
16+
17+
18+
### Breaking Changes
19+
20+
21+
* **pat-validation:** Remove error-template option. ([78c544b](https://github.com/Patternslib/patterns/commit/78c544b47267720b358246e717091789fe079d14))This is a breaking change.
22+
23+
Due to a Content-Security-Policy problem with dom.template when
24+
unsafe-eval is not set - which you wouldn't set if possible - we had to
25+
remove the error-template parameter. Instead the template is now defined
26+
in a error_template method on the Patten class and can be customized by
27+
subclassing and extending the pat-validation pattern or by patching it
28+
via Pattern.prototype.
29+
30+
31+
### Maintenance
32+
33+
34+
* **Build:** Upgrade dependencies. ([fed2716](https://github.com/Patternslib/patterns/commit/fed27168ba605372de807c4af13fdb28e7e53437))
35+
36+
* **core dom template:** Warn about using dom.template due to a CSR probmel. ([989fa9f](https://github.com/Patternslib/patterns/commit/989fa9fd9d1eb3c3b24df28a9fe529b8875689a9))Warn about a problem of dom.template with a Content-Security-Policy set.
37+
If a CSR rule is set then dom.template would break the code unless
38+
'unsafe-eval' is allowed (which you wouldn't normally allow when using a CSR).
39+
Therefore it is not recommended to use this template function.
40+
41+
* **pat-clone-code:** Better example, correct documentation. ([028ba07](https://github.com/Patternslib/patterns/commit/028ba07ef89f118bc317ed7bcb11c58835e22568))
42+
43+
* Remove IE related code paths. ([9de0d95](https://github.com/Patternslib/patterns/commit/9de0d9521511b2c037d9c290f153ae9745585693))
44+
745
## [9.8.0-alpha.2](https://github.com/Patternslib/patterns/compare/9.8.0-alpha.1...9.8.0-alpha.2) (2022-12-07)
846

947

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.8.0-alpha.2",
3+
"version": "9.8.0-alpha.3",
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)