Release Artifacts for v2.2.5
[skip ci]
This commit is contained in:
parent
f2cd99027b
commit
cfa890f685
6 changed files with 17 additions and 15 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
## What is Mithril.js?
|
## What is Mithril.js?
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
|
Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
|
|
||||||
|
# Release v2.2.5
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
#### [Bump the normal group across 1 directory with 2 updates (@dependabot[bot])](https://github.com/MithrilJS/mithril.js/pull/2976)
|
||||||
|
|
||||||
|
Bumps the normal group with 2 updates in the / directory: [chokidar](https://github.com/paulmillr/chokidar) and [eslint](https://github.com/eslint/eslint).
|
||||||
|
#### [Cleaning up code by making vnode.attrs always non-null (@kfule)](https://github.com/MithrilJS/mithril.js/pull/2977)
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
# Release v2.2.4
|
# Release v2.2.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
||||||
11
mithril.js
11
mithril.js
|
|
@ -107,7 +107,6 @@ function execSelector(state, vnode) {
|
||||||
var hasClass = hasOwn.call(attrs, "class")
|
var hasClass = hasOwn.call(attrs, "class")
|
||||||
var className = hasClass ? attrs.class : attrs.className
|
var className = hasClass ? attrs.class : attrs.className
|
||||||
vnode.tag = state.tag
|
vnode.tag = state.tag
|
||||||
vnode.attrs = {}
|
|
||||||
if (!isEmpty(state.attrs)) {
|
if (!isEmpty(state.attrs)) {
|
||||||
var newAttrs = {}
|
var newAttrs = {}
|
||||||
for (var key in attrs) {
|
for (var key in attrs) {
|
||||||
|
|
@ -129,12 +128,7 @@ function execSelector(state, vnode) {
|
||||||
? state.attrs.className
|
? state.attrs.className
|
||||||
: null
|
: null
|
||||||
if (hasClass) attrs.class = null
|
if (hasClass) attrs.class = null
|
||||||
for (var key in attrs) {
|
vnode.attrs = attrs
|
||||||
if (hasOwn.call(attrs, key) && key !== "key") {
|
|
||||||
vnode.attrs = attrs
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return vnode
|
return vnode
|
||||||
}
|
}
|
||||||
function hyperscript(selector) {
|
function hyperscript(selector) {
|
||||||
|
|
@ -606,9 +600,6 @@ var _11 = function() {
|
||||||
function updateElement(old, vnode3, hooks, ns) {
|
function updateElement(old, vnode3, hooks, ns) {
|
||||||
var element = vnode3.dom = old.dom
|
var element = vnode3.dom = old.dom
|
||||||
ns = getNameSpace(vnode3) || ns
|
ns = getNameSpace(vnode3) || ns
|
||||||
if (vnode3.tag === "textarea") {
|
|
||||||
if (vnode3.attrs == null) vnode3.attrs = {}
|
|
||||||
}
|
|
||||||
updateAttrs(vnode3, old.attrs, vnode3.attrs, ns)
|
updateAttrs(vnode3, old.attrs, vnode3.attrs, ns)
|
||||||
if (!maybeSetContentEditable(vnode3)) {
|
if (!maybeSetContentEditable(vnode3)) {
|
||||||
updateNodes(element, old.children, vnode3.children, hooks, null, ns)
|
updateNodes(element, old.children, vnode3.children, hooks, null, ns)
|
||||||
|
|
|
||||||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "mithril",
|
"name": "mithril",
|
||||||
"version": "2.2.4",
|
"version": "2.2.5",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mithril",
|
"name": "mithril",
|
||||||
"version": "2.2.4",
|
"version": "2.2.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"benchmark": "^2.1.4",
|
"benchmark": "^2.1.4",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mithril",
|
"name": "mithril",
|
||||||
"version": "2.2.4",
|
"version": "2.2.5",
|
||||||
"description": "A framework for building brilliant applications",
|
"description": "A framework for building brilliant applications",
|
||||||
"author": "Leo Horie",
|
"author": "Leo Horie",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue