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

ternary-search-trie

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ternary-search-trie - npm Package Versions

2.1.1

Diff

imax153
published 2.1.0 •

imax153
published 2.0.0 •

Changelog

Source

2.0.0

  • Fixes Trie.del(key) to have the correct behavior when deleting nodes.
  • Fixes Trie.keys() to return the list of keys that have been added to the Trie, not the list of keys for each individual Node.
  • Adds Trie.contains(key) to allow for checking if a key exists in the Trie.
  • Adds Trie.keysWithPrefix(prefix) to allow for obtaining the list of keys within the Trie that start with the specified prefix.
  • Renames Trie.traverse to Trie.dfs to better indicate the algorithm used for traversing the Trie.
  • Renames Trie.searchByPrefix to Trie.searchWithPrefix.
  • Refactors Trie.toString() to use util.inspect().
imax153
published 1.1.0 •

imax153
published 1.0.0 •

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