Skip to content

Commit 410dcf0

Browse files
committed
Release Artifacts for v2.2.11
[skip ci]
1 parent 44eec1a commit 410dcf0

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

docs/recent-changes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
# Release v2.2.11
3+
4+
### Patch Changes
5+
6+
#### [Use new pr-release prerelease hook (Fixes #2987) (@JAForbes)](https://github.com/MithrilJS/mithril.js/pull/2996)
7+
8+
Per @dead-claudia's suggestion, pr-release now allows you to invoke a custom command before creating the github release.
9+
#### [updateStyle(): use setProperty() when css vars and dashed-properties, fixes #2989 (@kfule)](https://github.com/MithrilJS/mithril.js/pull/2991)
10+
11+
This PR changes updateStyle() to use setProperty() for dashed-properties. This PR maybe fixes #2989.
12+
#### [Delete .github/ISSUE_TEMPLATE/0-docs.yml (@dead-claudia)](https://github.com/MithrilJS/mithril.js/pull/2993)
13+
14+
Do a much better job discouraging filing docs bugs here.
15+
216
# Release v2.2.10
317

418
### Patch Changes

mithril.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ var _11 = function() {
938938
for (var key in style) {
939939
var value = style[key]
940940
if (value != null) {
941-
if (key[0] === "-" && key[1] === "-") element.style.setProperty(key, String(value))
941+
if (key.includes("-")) element.style.setProperty(key, String(value))
942942
else element.style[key] = String(value)
943943
}
944944
}
@@ -948,14 +948,14 @@ var _11 = function() {
948948
for (var key in style) {
949949
var value = style[key]
950950
if (value != null && (value = String(value)) !== String(old[key])) {
951-
if (key[0] === "-" && key[1] === "-") element.style.setProperty(key, value)
951+
if (key.includes("-")) element.style.setProperty(key, value)
952952
else element.style[key] = value
953953
}
954954
}
955955
// Remove style properties that no longer exist
956956
for (var key in old) {
957957
if (old[key] != null && style[key] == null) {
958-
if (key[0] === "-" && key[1] === "-") element.style.removeProperty(key)
958+
if (key.includes("-")) element.style.removeProperty(key)
959959
else element.style[key] = ""
960960
}
961961
}

mithril.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mithril",
3-
"version": "2.2.10",
3+
"version": "2.2.11",
44
"description": "A framework for building brilliant applications",
55
"author": "Leo Horie",
66
"license": "MIT",

0 commit comments

Comments
 (0)