jriecken / dependency-graph

A simple dependency graph for Node.js
http://jriecken.github.io/dependency-graph/
MIT License
333 stars 49 forks source link

Add support for optional node data #13

Closed nponiros closed 8 years ago

nponiros commented 8 years ago

Add optional data parameter for the addNode method. If data is not given the node name is used as data.

Add methods setNodeData and getNodeData to manipulate the data associated with a node.

Update the hasNode method to be able to cope with falsy node data.

Add tests for new functionality.

Update README to document the new functionality.

Fixes #12

jriecken commented 8 years ago

Just one minor comment - I'll merge it after it's fixed 😄

jriecken commented 8 years ago

Published new version to npm - 0.5.0

nponiros commented 8 years ago

Thanks for the merge and the new release.