UNPKG

dom-layer

Version:
213 lines (135 loc) 6.76 kB
# Change Log ## HEAD ## 0.7.9 (2018-01-17) * **Bugfix:** Fix a patching issue. ## 0.7.8 (2017-04-09) * **Bugfix:** Fix nested transclusions. ## 0.7.7 (2017-04-09) * **Bugfix:** Fix a nested transclusion issue. ## 0.7.6 (2017-03-30) * **Bugfix:** Fix for real empty string value overriding. ## 0.7.5 (2017-03-30) * **Bugfix:** Fix empty string value overriding. ## 0.7.4 (2017-03-30) * **Bugfix:** Fix introduced bug related to input type attribute change. ## 0.7.3 (2017-03-28) * **Bugfix:** leave empty value to be empty when the input type is changed. ## 0.7.2 (2017-03-09) * **Add:** add a params entry for tag nodes. ## 0.7.1 (2017-03-04) * **Bugfix:** when the value attribute of an input is unsetted, set the corresponding property to an empty string. ## 0.7.0 (2017-02-12) * **BC break:** refactor the hooks behavior. ## 0.6.0 (2017-02-07) * **BC break:** the `'update'` hook is now runned on the new node and take the new node, the old node and the element as parameter. ## 0.5.0 (2017-01-26) * **BC break:** rename container by element in mounts. ## 0.4.1 (2017-01-15) * **Add:** expose `stringifyClass()` && `stringifyStyle()` as utiliy functions. ## 0.4.0 (2016-08-11) * **Bugfix:** fix an issue when children contain null values. ## 0.3.9 (2016-08-10) * **BC break:** allow transclusion through the `'created'` hook. ## 0.3.8 (2016-07-08) * **Bugfix:** fix specs dependencies. ## 0.3.7 (2016-07-08) * **BC break:** let the value extraction be the responsibility of the end user. ## 0.3.6 (2016-07-07) * **BC break:** the `click` handler is now called on left clicks only, use the fake `mouseclick` event otherwise. ## 0.3.5 (2016-07-07) * **BC break:** attributes are now removed when falsy. ## 0.3.4 (2016-07-06) * **Bugfix:** fixes an issue related to virtual patching with `null` or `undefined` entries in children arrays. ## 0.3.3 (2016-07-06) * **Add:** allows `null` or `undefined` entries in children arrays. ## 0.3.2 (2016-05-11) * **Add:** attaches event attributes which are function to the DOMElement properties directly. ## 0.3.1 (2016-05-11) * **Add:** allows transclusion for mounts. ## 0.3.0 (2016-05-08) * **Bugfix:** ignores null children for HTML rendering. ## 0.2.9 (2016-05-06) * **Revert:** casts strings in `children` as Text node by default. ## 0.2.8 (2016-05-05) * **Add:** casts strings in `children` as Text node by default. * **Bugfix:** maintains tag node's parent on patch. ## 0.2.7 (2016-02-06) * **Add:** maintains a `domLayerNode` attribute on DOM node which have some events or data defined. ## 0.2.6 (2015-08-22) * **Optimization:** refactors node insertion logic because for reaching better performance on IE. * **BC break:** makes `Text` node API more close to DOM text element API. * **BC break:** renames `callbacks` into `hooks`. * **BC break:** executes remove hooks on children first. ## 0.2.5 (2015-07-29) * **Add:** exposes the EventManager library. ## 0.2.4 (2015-07-18) * **Bugfix:** fixes an IE related issue when the type attribute/property of input was modified and cleared up the value. ## 0.2.2 (2015-07-06) * **Bugfix:** fixes the patching algorithm when an element has been moved between two nodes to remove. ## 0.2.1 (2015-06-13) * **Add:** renders the `innerHTML` property if present and no children has been defined through `toHtml()`. ## 0.2.0 (2015-06-03) * **Bugfix:** fixes minor bug related to dataset update. * **BC break:** repository refactoring some internal path may have changed. ## 0.1.9 (2015-05-30) * **Add:** adds an `"updated"` callback to `Tag`. ## 0.1.8 (2015-05-30) * **Add:** the mount identifier can be now choosed on mounting using any kind of UUID. * **Add:** allows to define the class name(s) property/attribute using an object. * **Bugfix:** sets namespace & type extension of `Tag` to `null` instead fo `""` by default. * **Bugfix:** fixes html rendering of namespaced attributes. ## 0.1.7 (2015-05-27) * **Bugfix:** fixes the new patching algorithm. ## 0.1.6 (2015-05-27) * **Add:** supports type extension (for custom elements). * **Add:** refactors the patching algorithm for better performances on updates. * **Add:** auto unmounts already mounted virtual trees on `mount()`. * **Bugfix:** filters out the value attribute of textarea, select & contenteditable element from rendering. * **Bugfix:** fixes inline style rendering when using `toHtml()`. * **BC break:** extracts namespace right from the xmlns attribute. ## 0.1.5 (2015-05-25) * **Update:** updates dependencies. ## 0.1.4 (2015-05-25) * **Add:** starts considering server side rendering using `attach()`. * **BC break:** repo refactoring some internal paths may have changed. ## 0.1.3 (2015-05-23) * **Bugfix:** fixes focus lost issue on input. ## 0.1.2 (2015-05-23) * **Add:** adds the input example. * **Bugfix:** fixes an issue with checkbox & radio input. * **Bugfix:** fixes the `getManager()` exposed method. * **BC break:** reformat custom set/unset handlers, they must now be populated under the `handlers` namespace. * **BC break:** `unmount()` takes now a mount id as first parameter. ## 0.1.1 (2015-05-22) * **Add:** adds the event delegation system. * **Bugfix:** `domLayerNode` is now correcly updated when some event handlers are set through `events`. ## 0.1.0 (2015-05-20) * **BC break:** refactor properties/attributes API to allow custom handlers. * **BC break:** `mount()` && `unmount()` can now only be done on a single DOM element. ## 0.0.10 (2015-05-18) * **Add:** force rerendering when the type of nodes are different. * **Bugfix:** dataset properties wasn't setted correctly. ## 0.0.9 (2015-05-16) * **Bugfix:** rendering properties and attributes were applied before children rendering. ## 0.0.8 (2015-05-15) * **Bugfix:** fixes the release according to the source. ## 0.0.7 (2015-05-15) * **Bugfix:** parent namespace need to be propagated to children in SVG. ## 0.0.6 (2015-05-14) * **Bugfix:** fixes a couple of bugs and remove some deprecated parameters. ## 0.0.5 (2015-05-11) * **Add:** updates the README & fixes CHANGELOG. ## 0.0.4 (2015-05-10) * **Add:** adds the examples/speedtest example. * **BC break:** some repo refactoring. * **BC break:** the Layer has been renamed to Tree. ## 0.0.3 (2015-05-09) * **Add:** makes the SVG support more generic. ## 0.0.2 (2015-05-08) * **Bugfix:** ignores updates with invalid id. * **BC break:** removes the forwared feature. ## 0.0.1 (2015-05-08) * **Add:** adds some specs for mount/unmount operations. * **Bugfix:** fixes package.json dependencies ## 0.0.0 (2015-05-07) * Initial release.