Skip to content

Commit cfa890f

Browse files
committed
Release Artifacts for v2.2.5
[skip ci]
1 parent f2cd990 commit cfa890f

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
## What is Mithril.js?
1717

18-
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.15 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
18+
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.12 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
1919

2020
Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
2121

docs/recent-changes.md

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

2+
# Release v2.2.5
3+
4+
### Patch Changes
5+
6+
#### [Bump the normal group across 1 directory with 2 updates (@dependabot[bot])](https://github.com/MithrilJS/mithril.js/pull/2976)
7+
8+
Bumps the normal group with 2 updates in the / directory: [chokidar](https://github.com/paulmillr/chokidar) and [eslint](https://github.com/eslint/eslint).
9+
#### [Cleaning up code by making vnode.attrs always non-null (@kfule)](https://github.com/MithrilJS/mithril.js/pull/2977)
10+
11+
Commit f9e5163 made vnode.attrs always non-null, so there is no need for code to make vnode.attrs null or assume vnode.attrs is null.
12+
213
# Release v2.2.4
314

415
### Patch Changes

mithril.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ function execSelector(state, vnode) {
107107
var hasClass = hasOwn.call(attrs, "class")
108108
var className = hasClass ? attrs.class : attrs.className
109109
vnode.tag = state.tag
110-
vnode.attrs = {}
111110
if (!isEmpty(state.attrs)) {
112111
var newAttrs = {}
113112
for (var key in attrs) {
@@ -129,12 +128,7 @@ function execSelector(state, vnode) {
129128
? state.attrs.className
130129
: null
131130
if (hasClass) attrs.class = null
132-
for (var key in attrs) {
133-
if (hasOwn.call(attrs, key) && key !== "key") {
134-
vnode.attrs = attrs
135-
break
136-
}
137-
}
131+
vnode.attrs = attrs
138132
return vnode
139133
}
140134
function hyperscript(selector) {
@@ -606,9 +600,6 @@ var _11 = function() {
606600
function updateElement(old, vnode3, hooks, ns) {
607601
var element = vnode3.dom = old.dom
608602
ns = getNameSpace(vnode3) || ns
609-
if (vnode3.tag === "textarea") {
610-
if (vnode3.attrs == null) vnode3.attrs = {}
611-
}
612603
updateAttrs(vnode3, old.attrs, vnode3.attrs, ns)
613604
if (!maybeSetContentEditable(vnode3)) {
614605
updateNodes(element, old.children, vnode3.children, hooks, null, ns)

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.4",
3+
"version": "2.2.5",
44
"description": "A framework for building brilliant applications",
55
"author": "Leo Horie",
66
"license": "MIT",

0 commit comments

Comments
 (0)