Skip to content

Releases: MithrilJS/mithril.js

v2.3.0

10 May 21:45
Compare
Choose a tag to compare

Release v2.3.0

Changelog

Minor Changes

feat: Make redraws when Promises returned by event handlers are completed (@kfule)

This PR allows redraw on completion of the async event handler. This PR makes redraws when Promises returned by event handlers are completed.

Patch Changes

Allow additional async redraw even if the first redraw is skipped (@kfule)

This PR allows asynchronous redraw processing even if the first redraw is skipped by setting event.redraw=false before await in the async function.

Bump glob from 11.0.1 to 11.0.2 in the normal group (@dependabot[bot])

Bumps the normal group with 1 update: glob. Updates glob from 11.0.1 to 11.0.2. Commits. fd61f24 11.0.2.

Fix badge for build status (@kfule)

The URL for the Shields.io badge for build status has been corrected.

v2.2.15

23 Mar 03:10
Compare
Choose a tag to compare

Release v2.2.15

Changelog

Patch Changes

[refactor] Limit the condition of the option tag to selected attribute in isFormAttribute() (@kfule)

This PR limits the evaluation of whether a tag is option to only when setting the selected attribute.

test-perf: Load Benckmark.js first in Node.js (@kfule)

Since Node21, global.navigator has been implemented, and together with browserMock, Benchmark.js incorrectly identifies the execution environment as a browser.

v2.2.14

08 Feb 23:37
Compare
Choose a tag to compare

Release v2.2.14

Changelog

Patch Changes

Improve handling of is-elements and Fix tiny bugs of setAttr()/updateStyle() (@kfule)

Fixes a few tiny bugs in attributes and style properties updates, and improves handling of is-elements in updateNode().

domFor: always get generation from delayedRemoval instead of parameter (@kfule)

The generation of domFor is no longer passed as a parameter. This allows domFor to work well in onbeforeremove and onremove and reduces the amount of code.

render: wrap stateResult and attrsResult in Promise.resolve(), fix #2592 (@kfule)

This PR wraps the return value of onbeforeremove in Promise.resolve(). This ensures that thenable objects are also always processed asynchronously. fix #2592.

v2.2.13

26 Jan 01:16
Compare
Choose a tag to compare

Release v2.2.13

Changelog

Patch Changes

Fix form checkValidity(), remove vnode.dom === .activeElement from setAttr() (Continued from #2257) (@kfule)

Remove vnode.dom === activeElement(vnode.dom) from setAttribute() to fix validityCheck(), to fix #2256.

Bump glob from 11.0.0 to 11.0.1 in the normal group (@dependabot[bot])

Bumps the normal group with 1 update: glob. Updates glob from 11.0.0 to 11.0.1. Commits. 148ef61 11.0.1.

v2.2.12

28 Dec 18:43
Compare
Choose a tag to compare

Release v2.2.12

Changelog

Patch Changes

disable Terser's "reduce_funcs" option for performance (@kfule)

Terser's “reduce_funcs” option seems to degrade performance. So, disable it.

Bump chokidar from 4.0.1 to 4.0.3 in the normal group across 1 directory (@dependabot[bot])

Bumps the normal group with 1 update in the / directory: chokidar. Updates chokidar from 4.0.1 to 4.0.3. Release notes.

v2.2.11

25 Nov 04:22
Compare
Choose a tag to compare

Release v2.2.11

Changelog

Patch Changes

Use new pr-release prerelease hook (Fixes #2987) (@JAForbes)

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)

This PR changes updateStyle() to use setProperty() for dashed-properties. This PR maybe fixes #2989.

Delete .github/ISSUE_TEMPLATE/0-docs.yml (@dead-claudia)

Do a much better job discouraging filing docs bugs here.

v2.2.10

07 Nov 10:37
Compare
Choose a tag to compare

Release v2.2.10

Changelog

Patch Changes

[refactor] Performance improvement of updateStyle() (@kfule)

This is a refactoring to improve the performance of updateStyle().

v2.2.9

31 Oct 09:58
Compare
Choose a tag to compare

Release v2.2.9

Changelog

Patch Changes

[refactor] Refactoring of hyperscript.js and render.js, including performance improvements (@kfule)

Refactor hyperscript.js and render.js. In particular, the replacement of fix #2622 appears to have significantly improved the performance regression.

v2.2.8

05 Oct 01:51
Compare
Choose a tag to compare

Release v2.2.8

Changelog

Patch Changes

m.domFor(): workaround for unintentional mangling. Fix #2842 (@kfule)

Refactoring of domFor() for the internal bundler. https://github.com/MithrilJS/mithril.js/blob/cfa890f68571df1ab8543097f7fa61c34ee93683/mithril.js#L157.

Drop Istanbul to kill install warnings (@dead-claudia)

Title's pretty self-explanatory. Also, this isn't really used much in practice. From a local run: ```. $ npm ci.

v2.2.5

26 Sep 03:51
Compare
Choose a tag to compare

Release v2.2.5

Changelog

Patch Changes

Bump the normal group across 1 directory with 2 updates (@dependabot[bot])

Bumps the normal group with 2 updates in the / directory: chokidar and eslint.

Cleaning up code by making vnode.attrs always non-null (@kfule)

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.