Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cleargraph

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleargraph - npm Package Versions

234

7.0.0

Diff

Changelog

Source

[7.0.0] - 2020-12-21

New

  • All methods that used to return a map or nodes or edges now return arrays.
  • There are corresponding methods that still return maps where the method name is suffixed with 'map', as in nodeMap or succesorMap()
  • Added source and target getters for Edge
  • Added return types to toposort() and findCycles()
lalybar
published 6.0.0 •

Changelog

Source

[6.0.0] - 2020-12-03

New

  • All methods that used to return N now return Node<N>
  • All methods that used to return E now return Edge<E>
  • All filter predicates that used to get E as param now get Edge<E>
lalybar
published 5.8.0 •

Changelog

Source

[5.8.0] - 2020-11-19

New

  • Returning types as this instead of Graph<N, E> to improve support for inheritence.
  • Added graphNodes and graphEdges getters that return full nodes/edges objects.
lalybar
published 5.7.0 •

Changelog

Source

[5.7.0] - 2020-05-05

New

  • Added successorsLayers and predecessorsLayers.
lalybar
published 5.6.0 •

Changelog

Source

[5.6.0] - 2020-04-01

New

  • successors and predecessors subgraph methods refactored and support multiple entry points.
lalybar
published 5.5.0 •

Changelog

Source

[5.5.0] - 2020-03-31

New

  • added overrideExisting flag (default true) to setNode(), setNodes(), setEdge(), setEdges()
lalybar
published 5.4.0 •

Changelog

Source

[5.4.0] - 2020-03-24

New

  • g.parse() can now accept json param as string or object.
lalybar
published 5.3.0 •

Changelog

Source

[5.3.0] - 2020-03-23

New

  • Added g.toJson() that returns the graph as a JSON object. User can define on N and E a specific toJson() method. If not defined, the N and E objects will be used as they are.
  • Added optional parameters to g.parse(): parseNode() and parseEdge() which allows users to define their own parse functions to the generic Node and Edge
lalybar
published 5.2.0 •

Changelog

Source

[5.2.0] - 2020-03-12

New

  • Added edgeNodesById(edgeId:string) that allows sending an edgeId of the format "a->b" and returns { sourceId: string | undefined, targetId: string | undefined}
lalybar
published 5.1.0 •

Changelog

Source

[5.1.0] - 2020-03-10

New

  • Added allPaths(source, target) which finds all possible paths between two nodes
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc