Releases: MithrilJS/mithril.js
v2.2.14
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
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
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
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
v2.2.9
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
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
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.
v2.2.4
Release v2.2.4
Changelog
Patch Changes
Remove dependance on global window and document (@KoryNunn)
Use window and document from render target instead of using globals. This makes unit and intergration testing much easier.
hyperscript: handles shared empty attrs, fixes #2821 (@kfule)
Whenever there are selector-derived attrs, the attrs object will be regenerated and not shared.