devsite/node_modules/morphdom/CHANGELOG.md
2024-07-07 18:49:38 -07:00

8.0 KiB

Changelog

2.x

2.7.3

  • Allow returning a new fromEl tree from onBeforeElUpdated to be used morph for that branch

2.7.2

  • Fix morphing duplicate ids of incompatible tags

2.7.1

  • Pass toEl as second argument to skipFromChildren callback

2.7.0

  • Add new addChild and skipFromChildren 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

2.5.8

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

  • Minor: update deps PR #145
  • Minor: Minor comments and very very minor refactors PR #143

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

  • Enhancement: Rollup 1.0 PR #139
  • Enhancement: Add Typescript declaration file PR #138

2.3.x

2.3.1

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

  • Changes to ensure that selectedIndex is updated correctly in all browsers (PR #94 by @aknuds1)

2.2.1

  • IE-specific bug: fix <textarea> with placeholder 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

2.1.1

  • Fixed #84 - unexpected repaint of <select> tag

2.1.0

2.0.x

2.0.2

  • Fixed #78 - Elements under onBeforeElChildrenUpdated element removed if they have id 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 (use onBeforeElUpdated instead)
    • onBeforeMorphElChildren (use onBeforeElChildrenUpdated 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

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

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

1.0.2

  • Fixes #21 - Caret position should not change if value did not change

1.0.1

  • Fixes #19 - Textarea problems