Skip to content

Releases: albertorestifo/node-dijkstra

2.5.0

03 May 20:54
2de3f87
Compare
Choose a tag to compare

Added

  • avoid option in Graph#path

You can now pass an array of nodes to avoid when computing the path.

Example:

route.path('A', 'D', { avoid: ['C', 'F'] });

Thanks @doesntgolf for the contribution!

2.4.1

17 Mar 20:42
6561a0a
Compare
Choose a tag to compare
  • Add browserify.transform option to package.json to allow usage with browserify - Thanks to @kronick

2.4.0 - Map as keys

15 Mar 08:06
448628e
Compare
Choose a tag to compare

Added

  • Pass a deep Map to Graph constructor and a Map to Graph#addNode, thus allowing using numbers as keys for the graph.

2.3.0 – Remove a node

15 Aug 16:49
Compare
Choose a tag to compare

Added

  • Graph#removeNode Ability to remove a previously set node from the graph, including all it's references

2.2.1 – Mainly docs

27 Dec 09:30
Compare
Choose a tag to compare

Fixed

  • Fixed naming error in README.md documentation
  • Improved inline documentation

Added

  • Transpiled distribution for usage in the browser

2.2.0 – Back to NodeJS, with v4.0.0

11 Sep 15:40
Compare
Choose a tag to compare

IMPORTANT: The releases from v2.1.1 to v2.1.2 are failing the builds due to code styling issues. They can be considered safe to use.

Changed

  • Using NodeJS v4.0.0
  • Updated documentation to mention NodeJS v4.0.0

2.1.0 – Perfomances

27 Aug 08:40
Compare
Choose a tag to compare

The focus of this release is performance.

The algorithm implementation has been rewritten to use more efficient mechanics.

Added

  • Graph#path can now accept a cost option and return an object containing the cost of the found path

Deprecated

  • Graph#addVertex, use Graph#addNode instead
  • Graph#shortestPath, use Graph#path instead

2.0.0

26 Aug 07:02
Compare
Choose a tag to compare

🎉 Now using ES6

Breaking Changes:

  • Not compatible with NodeJS
  • Use ES6 Classes
  • Use const and let
  • Use ES6 Map
  • Graph#shortestPath is now Graph#path

Improvements

  • Validation on the provided objects

1.1.3

05 Jun 08:53
Compare
Choose a tag to compare

Changed

  • Updated dependencies to the latest version

1.1.2

09 May 09:27
Compare
Choose a tag to compare

Changed

  • Updated 101 to latest version