Repository navigation
Releases
Releases · Lukasz17git/maraj
v3.0.1
v3.0.0
Major Changes
- 1fc1431: update() reads only own props: 'toString.value' and 'constructor.prototype.x' create those props (were read from Object.prototype, and 'constructor.prototype' paths could change it for the whole app)
- 1fc1431: update() throws on paths with 'proto' (was changing the prototype of the copy)
Patch Changes
- 2358030: update() is faster on nested paths (1.5x to 2x at depth 3 and more, same results): each level slices the path instead of joining its keys again, and one-path updates skip the tracker of copied paths
- 1fc1431: isStringIndex('NaN') returns false and parseStringIndex('NaN') returns null (were true and NaN)
- 1fc1431: 'skip' in onNewProps, onNewIndexes and onPathsIntersectedByPrimitiveValues skips only that path, at any depth (looped forever when the new prop, index or primitive was in the middle of the path)
v2.11.0
Minor Changes
- e901509: changed strictValueWrapper into strictType, more readable
- 86a0a05: paths through optional or nullable objects now work in update() and select() ('address.city' with address?: { city }, 'manager.name' with manager: { name } | null)
Patch Changes
- 86a0a05: select() now returns undefined when an object in the path is null or undefined (was throwing)
- 86a0a05: KeyOf and DotPaths no longer add undefined for optional props, and DotPaths<T, string> now includes optional strings (were left out)
- 86a0a05: ObjectLiteral no longer matches Promise, WeakMap or ArrayBuffer; KeyOf, Strict and DotPaths now treat File and Blob as values (KeyOf is never)
- 86a0a05: fixed DotPaths failing as a circular type on TypeScript 5.4 and newer
- 86a0a05: ValueInPath and ReturnedValueInPath now return never for a tuple position that doesn't exist ('point.5' on [number, number], was number)
v2.10.0
v2.9.0
Minor Changes
- bc35ab6: added strictness
v2.8.4
Patch Changes
- c822e9c: improved "remove" function
v2.8.3
Patch Changes
- 18136ef: added ObjectLiteral as export value and improved its type
v2.8.2
v2.8.1
Patch Changes
- e7b30cd: improved strictCallback
v2.8.0
Minor Changes
- dcebe1e: added strictCallback, improved flexibility in the update function