New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ezez/utils

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ezez/utils - npm Package Versions

2

4.1.0

Diff

Changelog

Source

[4.1.0] - 2024-05-31

Fixed

  • sample adds undefined to the result type unless the input is a tuple
  • merge return type was a basic intersection, which is not a correct way to represent merging
  • waitFor will reject but call the callback indefinitely if timeout is set without maxRetries

Added

  • memoize method

Changed

  • every regexp now uses u flag, which could positively affect these functions: escapeRegExp, formatDate and isNumericString
  • small docs improvements
dzek69
published 4.0.0 •

Changelog

Source

[4.0.0] - 2024-05-16

Breaking

  • replaceDeep will not mutate anything by default anymore — previously it was wrongly documented as always mutating, but it was not mutating objects. Mutating behavior can now be enabled and additionally controlled by defining if instances properties are allowed to be mutated.
  • [serialize] to avoid excessive calls to serializer functions - they are now only called with non-plain objects or unknown data types, this breaks some rare use cases

Changed

  • serialize custom serializers now allow things like Date (that defines .toJSON) to be supported as the user would expect

Added

  • replaceDeepByFn method for more granular control over replacing values. replaceDeep is a simplified wrapper over the new function
  • trim, trimStart, and trimEnd methods

Dev

  • upgraded some jsdocs
dzek69
published 3.0.0 •

Changelog

Source

[3.0.0] - 2024-03-25

Breaking

  • waitFor method was upgraded:
    • now it supports Promises
    • the check fails only if undefined, null or false is given
    • function signature is changed (object options)
    • maxTries option is added to have a limit of tries unrelated to time
    • no wait before the initial check

Added

  • toggle method
  • sample method
  • samples method
  • shuffle method

Dev

  • added waitFor unit tests
  • added missing build files to repo (missing since 2.0.0)
dzek69
published 2.1.0 •

Changelog

Source

[2.1.0] - 2023-10-29

Added

  • round method
dzek69
published 2.0.0 •

Changelog

Source

[2.0.0] - 2023-10-09

Breaking

  • code is compiled to es2020 due to bigint usage, if you are not using serialize or deserialize you can still transpile this lib yourself

Added

  • serialize method
  • deserialize method
  • replaceDeep method
dzek69
published 1.9.0 •

Changelog

Source

[1.9.0] - 2023-07-07

Added

  • removeCommonProperties method
dzek69
published 1.8.1 •

Changelog

Source

[1.8.1] - 2023-06-24

Fixed

  • replace method replacing everything with bunch of undefined when empty map is given
dzek69
published 1.8.0 •

Changelog

Source

[1.8.0] - 2023-06-03

Added

  • formatDate method

Dev

  • deps update
dzek69
published 1.7.0 •

Changelog

Source

[1.7.0] - 2023-05-22

Added

  • later method
dzek69
published 1.6.0 •

Changelog

Source

[1.6.0] - 2023-05-12

Added

  • compareProps method
2
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