Skip to content

Releases: jriecken/dependency-graph

0.5.2

23 Oct 02:04
Compare
Choose a tag to compare
  • Add missing parameter in TypeScript definition. (Fixes #19)

0.5.1

07 Oct 21:41
Compare
Choose a tag to compare
  • Now exposes Typescript type definition - thanks vangorra!

0.5.0

27 Apr 00:10
Compare
Choose a tag to compare
  • Add optional data parameter for the addNode method. (Fixes #12)
  • Add methods getNodeData and setNodeData to manipulate the data associated with a node name. (Fixes #12)
  • Change the hasNode method to be able to cope with falsy node data. (Fixes #12)

0.4.1

04 Sep 03:25
Compare
Choose a tag to compare
  • Check all nodes for potential cycles when calculating overall order. (Fixes #8)

0.4.0

01 Aug 23:15
Compare
Choose a tag to compare
  • Better error messages
    • When a cycle is detected, the error message will now include the cycle in it. E.g Dependency Cycle Found: a -> b -> c -> a (Fixes #7)
    • When calling addDependency if one of the nodes does not exist, the error will say which one it was (instead of saying that "one" of the two nodes did not exist and making you manually determine which one)
  • Calling overallOrder on an empty graph will no longer throw an error about a dependency cycle. It will return an empty array.

0.3.0

24 Jul 14:52
Compare
Choose a tag to compare
  • Fix issue where if you call addNode twice with the same name, it would clear all edges for that node. Now it will do nothing if a node with the specified name already exists. (Fixes #3)

0.2.1

03 Jul 17:31
Compare
Choose a tag to compare
  • Fixed removeNode leaving references in outgoingEdges and reference to non-existent var edges - thanks juhoha! (Fixes #2)

0.2.0

02 May 05:11
Compare
Choose a tag to compare
  • Removed dependency on Underscore - thanks myndzi! (Fixes #1)

0.1.0

02 May 05:10
Compare
Choose a tag to compare

Initial Release - extracted out of asset-smasher