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

@datastructures-js/linked-list

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datastructures-js/linked-list - npm Package Versions

13

5.2.0

Diff

Changelog

Source

[5.2.0] - 2022-02-14

Added

  • .find now accepts a second param as the starting node in both types.
  • .findReverse added to DoublyLinkedList.
  • .fromArray static method added to both types.
eyas-ranjous
published 5.1.1 •

Changelog

Source

[5.1.1] - 2021-06-20

Fixed

  • index.d.ts
eyas-ranjous
published 5.1.0 •

Changelog

Source

[5.1.0] - 2021-06-14

Added

  • typescript.
eyas-ranjous
published 5.0.1 •

Changelog

Source

[5.0.1] - 2021-04-12

Fixed

  • README
eyas-ranjous
published 5.0.0 •

Changelog

Source

[5.0.0] - 2021-04-12

Changed

  • insert/remove methods now all returns the inserted/removed nodes.
  • insertLast in LinkedList now accepts a starting node as a second param, useful to insert a node at the end in O(1) runtime.
  • removeEach now returns the number of removed nodes.

Added

  • remove(node) to DoublyLinkedList to remove any node in O(1) runtime.
  • hasNext/hasPrev cleaner checks of connected nodes to Node classes.

Fixed

  • bug in removeEach method.
  • improved README, splitted LinkedList/DoublyLinkedList readmes.
eyas-ranjous
published 4.0.0 •

Changelog

Source

[4.0.0] - 2021-02-16

Changed

  • .removeFirst(), .removeLast(), .removeAt, .removeEach now return the removed nodes.
eyas-ranjous
published 3.0.3 •

Changelog

Source

[3.0.3] - 2021-01-30

Fixed

  • .removeFirst() when removing first from a single-node linked list.
eyas-ranjous
published 3.0.2 •

Changelog

Source

[3.0.2] - 2021-01-02

Fixed

  • readme
eyas-ranjous
published 3.0.1 •

Changelog

Source

[3.0.1] - 2021-01-02

Fixed

  • readme
eyas-ranjous
published 3.0.0 •

Changelog

Source

[3.0.0] - 2020-12-30

Changed

  • .insertAt(position, value) position now comes first then value.
  • .insert* methods now returns a this reference so it can be chained.
  • .forEach(cb) callback now gets called with node and position (starting from 0);
  • .forEachReverse(cb) callback now gets called with node and position (starting from size -1);
  • LinkedListNode & DoublyLinkedListNode classes are now exported in index.

Fixed

  • jsdoc
  • readme
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