Skip to content

0.14.0

Compare
Choose a tag to compare
@Pinta365 Pinta365 released this 01 Aug 21:07
· 22 commits to main since this release

New features

  • deepFreeze(obj: T, createCopy?: boolean): T
    • Recursively freezes an object and all its nested objects. Freezing prevents
      any modifications to the object's properties.
    • If createCopy is true (default is false), a new frozen deep copy of
      the object is returned, leaving the original unchanged.
  • deepSeal(obj: T, createCopy?: boolean): T
    • Recursively seals an object and all its nested objects. Sealing prevents new
      properties from being added or removed, but existing properties can still be
      modified.
    • If createCopy is true (default is false), a new sealed deep copy of
      the object is returned, leaving the original unchanged.

Full Changelog: 0.13.0...0.14.0