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

fast-equals

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-equals - npm Package Versions

1345

4.0.2

Diff

Changelog

Source

4.0.2

  • #85 - createCustomCircularEqual typing is incorrect
planttheidea
published 4.0.1 •

Changelog

Source

4.0.1

  • #81 - Fix typing issues related to importing in index.d.ts file
planttheidea
published 4.0.1-beta.3 •

planttheidea
published 4.0.1-beta.2 •

planttheidea
published 4.0.1-beta.1 •

planttheidea
published 4.0.1-beta.0 •

planttheidea
published 4.0.0 •

Changelog

Source

4.0.0

Breaking Changes

Certain ES2015 features are now required

In previous versions, there were automatic fallbacks for certain ES2015 features if they did not exist:

Due to the omnipresence of support in both browser and NodeJS, these have been deprecated. There is still an option if you require support for these legacy environments, however; see createCustomEqual and createCustomCircularEqual for more details.

createCustomEqual contract has changed

To allow more flexibility and customizability for a variety of edge cases, createCustomEqual now allows override of specific type value comparisons in addition to the general comparator it did prior. See the documentation for more details.

Enhancements

createCustomCircularEqual added

Like createCustomEqual, it will create a custom equality comparator, with the exception that it will handle circular references. See the documentation for more details.

Cross-realm comparisons are now supported

Prior to 4.x.x., instanceof was used internally for checking of object classes, which only worked when comparing objects from the same Realm. This has changed to instead use an object's StringTag, which is not realm-specific.

TypeScript typings improved

For better typing in edge-case scenarios like custom comparators with meta values, typings have been refactored for accuracy and better narrow flow-through.

planttheidea
published 4.0.0-beta.0 •

planttheidea
published 3.0.3 •

Changelog

Source

3.0.3

  • Fix #77 - better circular object validation
planttheidea
published 3.0.2 •

Changelog

Source

3.0.2

  • Fix #73 - support comparison of primitive wrappers
  • #76 - improve speed and accuracy of RegExp comparison in modern environments
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