novident_nodes 1.1.9
novident_nodes: ^1.1.9 copied to clipboard
An internal Novident package for export common Nodes
1.1.9 #
- Fix:
elementAtOrNullis always returning null even if theindexis a valid num. - Fix:
unlinkmethod, cannot notify to the listeners when required. - Feat: added
atPathmethod. - Chore: general improvements in the API.
1.1.8 #
- Fix:
removeAtandremoveFirstare throwing exceptions when no required.
1.1.7 #
- Fix:
verticalMoveis not working as expected whendownis true. - Feat: added
nextSibling,previousSibling,hasNextSibling,hasPreviousSiblingmethods. - Feat: added
unlinkmethod to removed aNodedirectly without calling theowner. - Feat: added
createNodeIdstatic method forNodeDetailsclass to create ids that are ready to be used for any newNode - Chore: added
toStringmethod definition forNodeChangeand subclasses. - Chore: general improvements in the
NodeContainerAPI andchildrenmanagement.
1.1.6 #
- Fix: some changes are not being notifier to the attached listeners.
- Feat: added
removeFirstmethod forNodeContainer, - Feat: added
hasNotifiersAttachedto know if there's any listener attached. - Feat: added
findNodePathto Node class to get the exact index path (the list start with index of the hightest owner)
1.1.5 #
- Fix:
attachNotifierdoes not check if the notifier is already added. - Fix: infinite equality method when we use something like:
node.details == other.details; - Fix:
removeAtis giving a wrongoriginalPositionvalue for notifiers. - Fix: bad implementation of equality for
NodeChangeclass implementations. - Feat:
detachNotifiersnow can exclude some callbacks from the deletion usingexcludeFromRemove. - Chore(test): added tests for
NodeChangenotifiers. - Chore(doc): added documentation about attaching and detaching notifiers.
1.1.4 #
- Feat(breaking changes): added
indexproperty toNodeMoveChangeandNodeInsertionchanges.
1.1.3 #
- Fix: cannot attach more than one
NodeNotifierChangeCallback. - Fix:
removeWheredoes not notify withNodeChangetype. - Chore: improved some
NodeChangecalls. - Feat: added
NodeClearchange for when thechildrenare cleaned usingclear(). - Feat(breaking changes): added optional property called
deepforcloneandcloneWithNewLevelmethods.
1.1.2 #
- Fix: moving node operations has not implemented
NodeChangeevents. - Feat: added
childrenLevelgetter, that allow us know what should be the children level. - Chore(breaking changes): removed non used properties in
canMoveTo.
1.1.1 #
- Fix: cannot use
canMoveTocorrectly because it's returningfalsealways. - Fix: insertion methods and related won't work by unconfigurable
canMoveTo. - Chore(test): added tests to avoid error with ancestor checking in a swap operation.
1.1.0 #
- Feat: added
verticalMove()method, to allow moving Nodes between the Tree. - Feat: added
NodeCollectormixin to allow collectingNodes. - Feat: added static methods
canMoveToandverticalMoveintoNodeclass. - Fix:
jumpToParentisn't passingstopAtproperty to its owners. - Chore: removed unnecessary
mustCallSuperannotation forowner,id,level,jumpToParent, andindexgetters. - Chore: added
mustCallSupertonotify()method. - Chore: deprecated
atRootgetter and replaced byisAtRootLevel. - Chore: implemented default functions for
NodeVisitorandNodeCollectorintoNodeto avoid unnecessary implementation in leaf nodes. OnlyNodeContaineroverrides the implementation to include itschildren.
1.0.5 #
- Fix:
moveNode()never move node since is comparing parent index instead Node child index. - Chore(BREAKING CHANGES): changed return Node type in
jumpToParent()method to beNodeContainertype.
1.0.4 #
- Fix:
propagateproperty innotifymethod istrueby default.
1.0.2 #
- Chore: added tests for nodes.
- Fix: recursive
toJson()calls inNodeDetails. - Fix: bad type comparations in
ownersetter intoNodeclass.
1.0.0 #
- First release