Skip to content

Commit a3d0711

Browse files
committed
Release Artifacts for v2.3.0
[skip ci]
1 parent 3838159 commit a3d0711

File tree

6 files changed

+35
-6
lines changed

6 files changed

+35
-6
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 -->8.96 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.00 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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11

2+
# Release v2.3.0
3+
4+
### Minor Changes
5+
6+
#### [feat: Make redraws when Promises returned by event handlers are completed (@kfule)](https://github.com/MithrilJS/mithril.js/pull/3020)
7+
8+
This PR allows redraw on completion of the async event handler. This PR makes redraws when Promises returned by event handlers are completed.
9+
10+
### Patch Changes
11+
12+
#### [Allow additional async redraw even if the first redraw is skipped (@kfule)](https://github.com/MithrilJS/mithril.js/pull/3021)
13+
14+
This PR allows asynchronous redraw processing even if the first redraw is skipped by setting `event.redraw=false` before await in the async function.
15+
#### [Bump glob from 11.0.1 to 11.0.2 in the normal group (@dependabot[bot])](https://github.com/MithrilJS/mithril.js/pull/3019)
16+
17+
Bumps the normal group with 1 update: [glob](https://github.com/isaacs/node-glob). Updates `glob` from 11.0.1 to 11.0.2. Commits. fd61f24 11.0.2.
18+
#### [Fix badge for build status (@kfule)](https://github.com/MithrilJS/mithril.js/pull/3015)
19+
20+
The URL for the Shields.io badge for build status has been corrected.
21+
222
# Release v2.2.15
323

424
### Patch Changes

mithril.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ var _11 = function() {
772772
if (typeof vnode3.tag !== "string") {
773773
if (vnode3.instance != null) onremove(vnode3.instance)
774774
} else {
775+
if (vnode3.events != null) vnode3.events._ = null
775776
var children2 = vnode3.children
776777
if (Array.isArray(children2)) {
777778
for (var i = 0; i < children2.length; i++) {
@@ -953,7 +954,15 @@ var _11 = function() {
953954
var result
954955
if (typeof handler === "function") result = handler.call(ev.currentTarget, ev)
955956
else if (typeof handler.handleEvent === "function") handler.handleEvent(ev)
956-
if (this._ && ev.redraw !== false) (0, this._)()
957+
var self = this
958+
if (self._ != null) {
959+
if (ev.redraw !== false) (0, self._)()
960+
if (result != null && typeof result.then === "function") {
961+
Promise.resolve(result).then(function () {
962+
if (self._ != null && ev.redraw !== false) (0, self._)()
963+
})
964+
}
965+
}
957966
if (result === false) {
958967
ev.preventDefault()
959968
ev.stopPropagation()

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

0 commit comments

Comments
 (0)