Releases: AFatNiBBa/uneval
Releases · AFatNiBBa/uneval
Top-level method
Proto property
Fix
- Now the
"__proto__"
property can be assigned to objects without it being confused with the prototype setter - Problems with
Proxy
nesting
Changes
- The function that makes methods safe is moved inside the cache like
assign()
Documentation
New
- The type definition file now exposes some types
Fix
- Object Factory functions have no longer the parameter if not needed
Changes
- Documentation comments moved to "main.d.ts"
Type declaration
New
- Type declaration file, to give better suggestions
Fix
- If the "call" setting is
false
, there is no multiple reference and no need for the specialuneval.utils.assign()
function, there will be no parameter on the generated function
Coming soon
- Documentation on the type declaration file (If possible, I'm not sure)
Depth and Object factory
New
- Changed the wrapping function syntax
- Added the "depth" setting that will set the maximum depth of the object scanning
- Added the "call" setting that (if set to
false
) will allow you to get the source code of a function that will generate copies of the serialized object instead of the object itself
Fix References to named instance
Fix
- Now the conversions contenuted in "opts.namespace" are cached as references
Disable Custom Conversions / Specify "opts.tab" by number
New
- Added option to disable Custom Conversions
- Added the possibility to express "opts.tab" size by number
Namespace
Custom conversions
New
- You can now define a scanning and a conversion function in your objetc (See
readme.md > Supported > Custom conversions
)
Fix
- No longer throws an error when
"internal-prop"
is not installed
"getProxyDetails" polyfill
Fix
To inspect proxies i used an internal function which is no longer available in newer versions of node, so i created a native module to replace it