Repository navigation
Releases: ressurectit/js-common
Releases · ressurectit/js-common
Release list
v7.4.1
v7.4.0
Bug Fixes
- fixed
cycleSafeReplacerfunction, now correctly detects only real circular references (same object repeated on its own path), shared references are no longer marked as[Circular] - fixed
cycleSafeReplacerfunction, now limits depth of serialization and skips DOM nodes (replaced with[NODE_NAME]marker), which preventsMaximum call stack size exceeded/too much recursionerrors when serializing deep object graphs (for example angular components) - fixed
formatStringfunction,{{@...}}placeholders no longer fail withtoo much recursionon deep object graphs
Features
- new
CycleSafeReplacerOptionsinterface, that allows customization ofcycleSafeReplacermaxDepth- maximal depth of nested objects that will be serialized, deeper objects are replaced with[MaxDepth]marker, defaults to10plainObjectsOnly- indication whether serialize only plain objects and arrays, class instances are replaced with[ClassName]marker, defaults tofalse
- updated
cycleSafeReplacerfunction, now accepts optionalCycleSafeReplacerOptions
v7.3.0
v7.2.0
Features
- new
cycleSafeReplacerfunction, that createsJSON.stringifyreplacer that replaces already visited objects with a marker, and handles circular references - updated
formatStringfunction, now handles circular references when serializing values using{{@...}}placeholders
v7.1.1
v7.1.0
v7.0.0
Features
- new subpackage
@jscrpt/common/lodash- new optional dependency
lodash-espackage
- new optional dependency
- subpackage
@jscrpt/common/lodash- new
deepCopyWithArrayOverridefunction, which performs deep copy of object with arrays that are not merged but overrided with latest value
- new
BREAKING CHANGES
- utility method
extendmoved into subpackage@jscrpt/common/extendextendpackage dependency is now optional