Socket
Socket
Sign inDemoInstall

dependency-graph

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1

0.5.2

Diff

Changelog

Source

0.5.2 (October 22, 2017)

  • Add missing parameter in TypeScript definition. (Fixes #19)
jriecken
published 0.5.1 •

Changelog

Source

0.5.1 (October 7, 2017)

  • Now exposes Typescript type definition - thanks vangorra!
jriecken
published 0.5.0 •

Changelog

Source

0.5.0 (April 26, 2016)

  • 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)
jriecken
published 0.4.1 •

Changelog

Source

0.4.1 (Sept 3, 2015)

  • Check all nodes for potential cycles when calculating overall order. (Fixes #8)
jriecken
published 0.4.0 •

Changelog

Source

0.4.0 (Aug 1, 2015)

  • 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.
jriecken
published 0.3.0 •

Changelog

Source

0.3.0 (July 24, 2015)

  • 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)
jriecken
published 0.2.1 •

Changelog

Source

0.2.1 (July 3, 2015)

  • Fixed removeNode leaving references in outgoingEdges and reference to non-existent var edges - thanks juhoha! (Fixes #2)
jriecken
published 0.2.0 •

Changelog

Source

0.2.0 (May 1, 2015)

  • Removed dependency on Underscore - thanks myndzi! (Fixes #1)
jriecken
published 0.1.0 •

Changelog

Source

0.1.0 (May 18, 2013)

  • Initial Release - extracted out of asset-smasher
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc