7.9 KiB
7.9 KiB
Changelog
2.x
2.7.1
- Pass toEl as second argument to
skipFromChildren
callback
2.7.0
- Add new
addChild
andskipFromChildren
callbacks to allow customization of how new children are added to a parent as well as preserving the from tree when indexing changes for diffing.
2.5.12
- Fix merge attrs with multiple properties PR #175
2.5.11
- Multiple forms duplication PR #174
2.5.10
- Pr/167 - Allow document fragment patching PR #168
2.5.9
- Faster attrs merge PR #165
2.5.8
- Minor improvements PR #164
2.5.7
- Chore: Alternate refactor to #155 - Move isSameNode check PR #156
- Use attribute name with the prefix in XMLNS namespace PR #133
2.5.6
- fixed the string with space trouble PR #161
2.5.5
- Template support for creating element from string PR #159
2.5.4
- Enhancement: Fix id key removal from tree when the element with key is inside a document fragment node (ex: shadow dom) PR #119
- Minor: small refactor to morphEl to own function [PR #149](small refactor to morphEl to own function)
- selectNode for range b/c documentElement not avail in Safari commit
- clarify getNodeKey docs PR #151
2.5.3
2.5.2
- New dist for 2.5.1. My bad!
2.5.1
- Bugfix: Fix bug where wrong select option would get selected. PR #117
2.5.0
- Enhancement: Publish es6 format as morphdom-esm.js PR #141
- Enhancement: Start removing old browser support code paths PR #140
2.4.0
2.3.x
2.3.1
- Bug: Fixed losing cursor position in Edge (PR #100 by @zastavnitskiy)
2.3.0
- Changes to improve code maintainability. Single file is now split out into multiple modules and rollup is used to build the distribution files.
2.2.x
2.2.2
2.2.1
- IE-specific bug: fix
<textarea>
withplaceholder
attribute on IE (PR #87 by @ahdinosaur) - Fixed #92 -
morphdom
fails to discard all removed child nodes when first child element is keyed - Docs: fixed docs for
onBeforeNodeAdded
(function should return a node) (PR #91 by @MelleB)
2.2.0
- Allow
toNode.assignAttributes
full control
2.1.x
2.1.3
2.1.2
- Fixed #85 - Siblings not diffed/patched after
isSameNode()
returnstrue
(PR #86 by @AutoSponge)
2.1.1
- Fixed #84 - unexpected repaint of
<select>
tag
2.1.0
- Added simple mechanism to support using cached nodes (Pull Request #81 by @AutoSponge)
- Added support for diffing a real DOM tree with a virtual DOM tree. See: ./docs/virtual-dom.md
2.0.x
2.0.2
- Fixed #78 - Elements under
onBeforeElChildrenUpdated
element removed if they haveid
set
2.0.1
- Small optimization and more tests
2.0.0
- Fixed #47 - Detect and handle reorder of siblings
onNodeAdded
is now called for all on child nodes and not just the root node (closes PR #57)- Simplified code and reduced overall code size
- NOTE: Performance is about the same or slightly better than the previous version of
morphdom
based on benchmarks - Added examples:./examples/
Breaking changes
onNodeAdded
is now called for all on child nodes (not just the root node)- Removed options:
onBeforeMorphEl
(useonBeforeElUpdated
instead)onBeforeMorphElChildren
(useonBeforeElChildrenUpdated
instead)
1.x
1.4.x
1.4.6
- Fixes #71 - form elements lose class when removing name attribute in MSIE 8-11 and MS Edge (PR #73 by @karfcz)
1.4.5
onNodeDiscarded
is now correctly called when tag name mismatch for keyed el
1.4.4
- Fixes #72 - Compare tag name when matching els by ID
1.4.3
- Fixes #66 by treating comment nodes identically to text nodes (PR #67 by @cfinucane)
1.4.2
- Fixes #63 - Do attr lookup on localName if available
1.4.1
- Use hard coded constants for node types for improved browser compatibility
1.4.0
- Make attributes and elements namespace-aware (@shawnbot)
1.3.x
1.3.1
- Upgraded to
lasso@^2
- Fixed tests
1.3.0
- Support full page html diff (@DylanPiercey)
1.2.x
1.2.0
- Improve node lifecycle options (@callum)
1.1.x
1.1.4
- Checking in
dist/
files into the git repo - Deleted
.cache/
from npm package
1.1.3
- Added a minified UMD distribution file
1.1.2
- Minor internal changes
1.1.1
- Updated
package.json
1.1.0
- Fixes #32 - Support for IE7+
1.0.x
1.0.4
- Fixes #30 - Not all keyed elements are matched up correctly in some cases. Walk target DOM els that are moved over to match all keyed els.
1.0.3
- Added
getNodeKey
option - Pull Request by Riim
1.0.2
- Fixes #21 - Caret position should not change if value did not change
1.0.1
- Fixes #19 - Textarea problems