Skip to content

Releases: AFatNiBBa/uneval

Top-level method

21 Nov 05:13
Compare
Choose a tag to compare

Fix

  • Before the fix when passing a top-level method (not inside of an object) the generated source would not contain the wrapper function (which was needed)

Proto property

24 Oct 04:40
Compare
Choose a tag to compare

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

21 Oct 17:53
Compare
Choose a tag to compare

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

19 Oct 22:05
Compare
Choose a tag to compare

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 special uneval.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

18 Oct 22:17
Compare
Choose a tag to compare

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

08 Oct 21:43
Compare
Choose a tag to compare

Fix

  • Now the conversions contenuted in "opts.namespace" are cached as references

Disable Custom Conversions / Specify "opts.tab" by number

08 Oct 11:47
Compare
Choose a tag to compare

New

  • Added option to disable Custom Conversions
  • Added the possibility to express "opts.tab" size by number

Namespace

04 Oct 13:34
Compare
Choose a tag to compare

New

  • Namespace option (See readme.md > Options > namespace)

Custom conversions

06 Sep 22:03
Compare
Choose a tag to compare

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

05 Sep 23:06
Compare
Choose a tag to compare

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