domino 0.9.0-dev.1
domino: ^0.9.0-dev.1 copied to clipboard
An incremental DOM library, with support for virtual DOM and components.
Changelog #
0.9.0-dev.1 #
- Updated SDK and lints.
- Migrated to use 'package:web`.
0.8.4 #
- Updated dev dependencies and lints.
0.8.3+1 #
- Testing automatic publishing workflow.
0.8.3 #
renderMarkuphasprefixContentparameter to supportDOCTYPEbefore the HTML content.
0.8.2 #
- For browser implementation of
DomBuilder, theclose()method now returns the createdElement.
0.8.1 #
onUpdatecallback similar toonCreate.
0.8.0 #
BREAKING CHANGES:
- Rewrite of the library to be incremental DOM first.
- More efficient API (no separate
attribute,classorstylemethods, everything is present at opening a tag).
0.7.0 #
- Null-safety migration
0.6.0 #
- Experimental incremental DOM API.
0.5.0 #
- More efficient virtual DOM building (
unfoldrevisited).
BREAKING CHANGES:
- Removed
addIf,clazzIfandConditional, use Dart's inlinedif (cond) valueinstead. BuildFnandNoContextBuildFnis removed from the public API.- Removed state handling (
StatefulComponent,PathState). Keep references for singleton components, that's more effective.
0.4.6 #
- Marking planned deprecation.
0.4.5 #
- Using (and re-using) a single DOM event registration for each kind of actions.
0.4.4 #
- Extra lints and Dart 2.2 code.
0.4.3 #
- Enabled
pedanticin analysis options.
0.4.2 #
- Enabled Dart2.
0.4.0 #
Breaking API changes:
- renamed
EventtoEventContext - renamed
getNodeBySymboltogetNode(inEvent/EventContext)
Updates:
- Support multiple event handler signature.
0.3.4 #
- Support
Element.innerHtmlsetter. - Putting every VDom type check inside a type-based
switchstatement (to improve static type checking if there is a new type there). - Support no-arg functions in generic content.
0.3.3 #
- Do not override attributes and styles when the value matches the previous one (and the DOM may be different).
- Relax DOM reuse restrictions on style properties.
- Relax DOM reuse restrictions on event listeners.
- Ability to use non-tracked event handlers (
on('click', fn, tracked: false)). - Access current
ViewwithEvent.view.
0.3.2+1 #
- Fix strong-mode cast issue with
unfoldinClassAdder.
0.3.2 #
- Fix
StatefulComponentpath handling bug. - Fix strong-mode cast issue.
- Switching to Timer-based view invalidation, because event bubbling would be triggered on a wrong state.
0.3.1 #
- Fix readme's example.
- New implementation for
StatefulComponent. - Conditional content structure with
addIf. - Breaking change: matching
clazzIfwithaddIfsignature.
0.3.0 #
Breaking changes: full API rewrite:
- Building
Elements become simpler. Setterbecome first-class build pattern.#symbolsbecome first-class patterns (replace previouskey).Event.getNodeBySymbolmay access referencedElements within the scope of the currentComponent.- Removed
StatefulComponent(still working on a better state handling). - Misc API simplification (e.g.
Event.domElement=>Event.element).
Updates:
- Fixed attribute update issues.
0.2.1 #
- Element
Setterfor shortcut certain build patterns. - Enable
Stringand embeddedLists to set forElement.classesandclazzsetters. View.trackto execute (async) actions that will trigger the invalidation of theView.View.escapeto escape the tracker zone forEventHandlers that are registered inside theView.- Expose
ViewinBuildContext. - Experimental
SubView. - Experimental
StatefulComponent(moved toexperimental.dart).
0.2.0+1 #
- Fix NPE.
0.2.0 #
Breaking changes:
- Removed
Element.textandElement.children, usingElement.contentinstead. - content items that are not
List,Component,String,NodeorBuildFnwill be converted toString(and toText).
Updates:
- Fix:
BuildContext.ancestorsdid not includeComponents. - Fix: classes were not updated when the new Element had no class.
- Fix: attributes were not updated when the new Element had no attributes.
- Fix: reduce the non-keyed reuse of DOM Elements that have non-matching style properties. (using
keyreuses them)
0.1.1 #
- Fix: root component was not added to ancestor list.
- Enable multiple (and non-component) children as root for a
View. - New node helper (
br).
0.1.0 #
- Initial version.