Patch Changes
-
Type utils in collection options as specific type (e.g. ElectricCollectionUtils) instead of generic UtilsRecord. (#940)
-
Fix proxy to handle frozen objects correctly. Previously, creating a proxy for a frozen object (such as data from state management libraries that freeze their state) would throw a TypeError when attempting to modify properties via the proxy. The proxy now uses an unfrozen internal copy as the Proxy target, allowing modifications to be tracked correctly while preserving the immutability of the original object. (#933)
Also adds support for
Object.seal()andObject.preventExtensions()on proxies, allowing these operations to work correctly on change-tracking proxies.