Comparing version 0.5.0 to 0.5.1
@@ -111,2 +111,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.deku = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof _require=="function"&&_require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof _require=="function"&&_require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_require,module,exports){ | ||
onInput: 'input', | ||
onInvalid: 'invalid', | ||
onKeyDown: 'keydown', | ||
@@ -123,2 +124,3 @@ onKeyPress: 'keypress', | ||
onPaste: 'paste', | ||
onReset: 'reset', | ||
onScroll: 'scroll', | ||
@@ -469,3 +471,3 @@ onSubmit: 'submit', | ||
trigger('afterRender', entity, [entity.context, entity.nativeElement]) | ||
triggerUpdate('afterMount', entity, [entity.context, entity.nativeElement, setState(entity)]) | ||
trigger('afterMount', entity, [entity.context, entity.nativeElement, setState(entity)]) | ||
} | ||
@@ -531,3 +533,3 @@ } | ||
// trigger afterUpdate after all children have updated. | ||
triggerUpdate('afterUpdate', entity, [entity.context, previousProps, previousState]) | ||
trigger('afterUpdate', entity, [entity.context, previousProps, previousState, setState(entity)]) | ||
} | ||
@@ -1032,4 +1034,6 @@ | ||
case 'innerHTML': | ||
el.innerHTML = value | ||
break | ||
case 'value': | ||
el[name] = value | ||
setElementValue(el, value) | ||
break | ||
@@ -1065,4 +1069,5 @@ case svg.isAttribute(name): | ||
case 'innerHTML': | ||
el.innerHTML = '' | ||
case 'value': | ||
el[name] = '' | ||
setElementValue(el, null) | ||
break | ||
@@ -1128,19 +1133,2 @@ default: | ||
/** | ||
* Trigger a hook on the component and allow state to be | ||
* updated too. | ||
* | ||
* @param {String} name | ||
* @param {Object} entity | ||
* @param {Array} args | ||
* | ||
* @return {void} | ||
*/ | ||
function triggerUpdate (name, entity, args) { | ||
var update = setState(entity) | ||
args.push(update) | ||
trigger(name, entity, args) | ||
} | ||
/** | ||
* Update an entity to match the latest rendered vode. We always | ||
@@ -1469,2 +1457,20 @@ * replace the props on the component when composing them. This | ||
/** | ||
* Set the value property of an element and keep the text selection | ||
* for input fields. | ||
* | ||
* @param {HTMLElement} el | ||
* @param {String} value | ||
*/ | ||
function setElementValue (el, value) { | ||
if (el.tagName !== 'INPUT') { | ||
el.value = value | ||
return | ||
} | ||
var start = el.selectionStart | ||
var end = el.selectionEnd | ||
el.value = value | ||
el.setSelectionRange(start, end) | ||
} | ||
},{"./events":2,"./node-type":4,"./svg":7,"component-raf":9,"fast.js/forEach":13,"fast.js/object/assign":16,"fast.js/reduce":19,"get-uid":20,"is-dom":21,"object-defaults":24,"object-path":25}],6:[function(_require,module,exports){ | ||
@@ -1471,0 +1477,0 @@ var defaults = _require('object-defaults') |
0.5.1 / 2015-08-11 | ||
================== | ||
* Merge pull request #228 from dekujs/form-events | ||
* adding some helpful form-related events | ||
* Merge pull request #227 from dekujs/revert-223-move-internal-component-data-off-of-component-definitions | ||
* Revert "Move internal component data off of components" | ||
* Merge pull request #223 from stevenhauser/move-internal-component-data-off-of-component-definitions | ||
* Corrected afterMount arity. Fixes #225. | ||
* Use textContent instead of innerText in test | ||
* Test that multiple apps can be run simultaneously | ||
* Move internal component data off of components | ||
* Merge pull request #220 from dekujs/fix/input-cursor-position | ||
* Keep cursor position when changing input value | ||
* Merge pull request #219 from stevenhauser/update-element-import-in-docs | ||
* Update element import in docs | ||
* Updated history | ||
0.5.0 / 2015-08-03 | ||
================== | ||
* Merge pull request #217 from dekujs/0.5.0pre | ||
* Added missing dep | ||
* Updated Readme | ||
* Removing dom | ||
* Fixing test for IE10 | ||
* Reducing the concurrent tests. Seems to break Sauce. | ||
* Fixed broken test | ||
* Removed old test file | ||
* Merge branch 'master' into 0.5.0pre | ||
* Merge branch 'Yomguithereal-shadow-dom-events' | ||
* Merge branch 'shadow-dom-events' of https://github.com/Yomguithereal/deku into Yomguithereal-shadow-dom-events | ||
* Merge branch 'master' of ssh://github.com/dekujs/deku into 0.5.0pre | ||
* Updated virtual-element to 1.1.0 | ||
* Revert "Remove Sources" | ||
* Adding a heuristic to determine the best HTMLElement on which to attach events listener. The intention here is to enable deku to render into document fragments such as Shadow DOM. | ||
* Test cleanup | ||
* Fixed bug with default props | ||
* Components can be functions instead of objects | ||
* Updated repo in package.json | ||
* Cleaned up some junk | ||
* Derp | ||
* Updated zuul location | ||
* Update dependencies | ||
* Updated zuul to work with tape | ||
* Fixed bug with replacing text nodes with undefined | ||
* Refactored the tests | ||
* Decoupled string renderer from DOM renderer dep | ||
* Added snazzy for better linting errors | ||
* Using object-defaults | ||
* Cleaned up the Makefile | ||
* Fixed lint issues | ||
* Removed sources | ||
* Removed DOM pooling | ||
* Using dependency for svg checking | ||
* Switch to use virtual-element | ||
@@ -40,0 +30,0 @@ |
@@ -23,2 +23,3 @@ /** | ||
onInput: 'input', | ||
onInvalid: 'invalid', | ||
onKeyDown: 'keydown', | ||
@@ -35,2 +36,3 @@ onKeyPress: 'keypress', | ||
onPaste: 'paste', | ||
onReset: 'reset', | ||
onScroll: 'scroll', | ||
@@ -37,0 +39,0 @@ onSubmit: 'submit', |
@@ -296,3 +296,3 @@ /** | ||
trigger('afterRender', entity, [entity.context, entity.nativeElement]) | ||
triggerUpdate('afterMount', entity, [entity.context, entity.nativeElement, setState(entity)]) | ||
trigger('afterMount', entity, [entity.context, entity.nativeElement, setState(entity)]) | ||
} | ||
@@ -358,3 +358,3 @@ } | ||
// trigger afterUpdate after all children have updated. | ||
triggerUpdate('afterUpdate', entity, [entity.context, previousProps, previousState]) | ||
trigger('afterUpdate', entity, [entity.context, previousProps, previousState, setState(entity)]) | ||
} | ||
@@ -859,4 +859,6 @@ | ||
case 'innerHTML': | ||
el.innerHTML = value | ||
break | ||
case 'value': | ||
el[name] = value | ||
setElementValue(el, value) | ||
break | ||
@@ -892,4 +894,5 @@ case svg.isAttribute(name): | ||
case 'innerHTML': | ||
el.innerHTML = '' | ||
case 'value': | ||
el[name] = '' | ||
setElementValue(el, null) | ||
break | ||
@@ -955,19 +958,2 @@ default: | ||
/** | ||
* Trigger a hook on the component and allow state to be | ||
* updated too. | ||
* | ||
* @param {String} name | ||
* @param {Object} entity | ||
* @param {Array} args | ||
* | ||
* @return {void} | ||
*/ | ||
function triggerUpdate (name, entity, args) { | ||
var update = setState(entity) | ||
args.push(update) | ||
trigger(name, entity, args) | ||
} | ||
/** | ||
* Update an entity to match the latest rendered vode. We always | ||
@@ -1295,1 +1281,20 @@ * replace the props on the component when composing them. This | ||
} | ||
/** | ||
* Set the value property of an element and keep the text selection | ||
* for input fields. | ||
* | ||
* @param {HTMLElement} el | ||
* @param {String} value | ||
*/ | ||
function setElementValue (el, value) { | ||
if (el.tagName !== 'INPUT') { | ||
el.value = value | ||
return | ||
} | ||
var start = el.selectionStart | ||
var end = el.selectionEnd | ||
el.value = value | ||
el.setSelectionRange(start, end) | ||
} |
{ | ||
"name": "deku", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "dekujs/deku", |
@@ -144,3 +144,3 @@ # Deku | ||
// button.js | ||
import {element} from 'virtual-element' | ||
import element from 'virtual-element' | ||
@@ -147,0 +147,0 @@ let MyButton = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
122726
14
3477