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

hash-it

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-it - npm Package Versions

12

2.1.0

Diff

Changelog

Source

2.1.0

  • Overall speed improvement by an average of 18.74% (35.27% improvement on complex objects)
planttheidea
published 2.0.1 •

Changelog

Source

2.0.1

  • More speed improvements
planttheidea
published 2.0.0 •

Changelog

Source

2.0.0

  • Use JSON.stringify with replacer as default, without try/catch
  • Move use of try/catch with fallback to prune to new hashIt.withRecursion method (only necessary for deeply-recursive objects like window)
  • Reorder switch statement for commonality of use cases
  • Leverage typeof in switch statements when possible for performance
planttheidea
published 1.3.1 •

Changelog

Source

1.3.1

  • Add optimize-js plugin for performance in script version
planttheidea
published 1.3.0 •

Changelog

Source

1.3.0

  • Add hashIt.isUndefined, hashIt.isNull, and hashIt.isEmpty methods
  • Reorder switch statements in replacer and getValueForStringification to reflect most likely to least likely (improves performance a touch)
  • Remove "Number" from number stringification
  • Leverage prependTypeToString whereever possible
  • Include Arguments object class
planttheidea
published 1.2.1 •

Changelog

Source

1.2.1

  • Calculation of Math hashCode now uses properties
  • Fix README
planttheidea
published 1.2.0 •

Changelog

Source

1.2.0

  • Add hashIt.isEqual method to test for equality
  • Prepend all values not string or number with object class name to help avoid collision with equivalent string values
planttheidea
published 1.1.0 •

Changelog

Source

1.1.0

  • Add support for a variety of more object types
  • Fix replacer not using same stringifier for int arrays
planttheidea
published 1.0.0 •

Changelog

Source

1.0.0

  • Initial release
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