Skip to content

Commit

Permalink
Release Artifacts for v2.2.11
Browse files Browse the repository at this point in the history
 [skip ci]
  • Loading branch information
JAForbes committed Nov 25, 2024
1 parent 44eec1a commit 410dcf0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions docs/recent-changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@

# Release v2.2.11

### Patch Changes

#### [Use new pr-release prerelease hook (Fixes #2987) (@JAForbes)](https://github.com/MithrilJS/mithril.js/pull/2996)

Per @dead-claudia's suggestion, pr-release now allows you to invoke a custom command before creating the github release.
#### [updateStyle(): use setProperty() when css vars and dashed-properties, fixes #2989 (@kfule)](https://github.com/MithrilJS/mithril.js/pull/2991)

This PR changes updateStyle() to use setProperty() for dashed-properties. This PR maybe fixes #2989.
#### [Delete .github/ISSUE_TEMPLATE/0-docs.yml (@dead-claudia)](https://github.com/MithrilJS/mithril.js/pull/2993)

Do a much better job discouraging filing docs bugs here.

# Release v2.2.10

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions mithril.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ var _11 = function() {
for (var key in style) {
var value = style[key]
if (value != null) {
if (key[0] === "-" && key[1] === "-") element.style.setProperty(key, String(value))
if (key.includes("-")) element.style.setProperty(key, String(value))
else element.style[key] = String(value)
}
}
Expand All @@ -948,14 +948,14 @@ var _11 = function() {
for (var key in style) {
var value = style[key]
if (value != null && (value = String(value)) !== String(old[key])) {
if (key[0] === "-" && key[1] === "-") element.style.setProperty(key, value)
if (key.includes("-")) element.style.setProperty(key, value)
else element.style[key] = value
}
}
// Remove style properties that no longer exist
for (var key in old) {
if (old[key] != null && style[key] == null) {
if (key[0] === "-" && key[1] === "-") element.style.removeProperty(key)
if (key.includes("-")) element.style.removeProperty(key)
else element.style[key] = ""
}
}
Expand Down
2 changes: 1 addition & 1 deletion mithril.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mithril",
"version": "2.2.10",
"version": "2.2.11",
"description": "A framework for building brilliant applications",
"author": "Leo Horie",
"license": "MIT",
Expand Down

0 comments on commit 410dcf0

Please sign in to comment.