Skip to content

Releases: ClearFoundry/ClearScript

ClearScript 5.4

26 Sep 15:54

Choose a tag to compare

  • Added COM object projection (Issue #38):
    • New ScriptEngine methods: AddCOMObject() and AddCOMType().
    • New ExtendedHostFunctions methods: newComObj() and comType().
  • Improved performance and memory usage:
    • Host methods, events, and const/readonly fields are now cached as direct V8 object properties.
    • Added shared bind cache for improved performance and enhanced binder leak mitigation.
    • Made V8ScriptEngine.CollectGarbage() much more aggressive.
    • Switched to weak context/isolate bindings for V8 script objects and compiled scripts, fixing Issue #44.
    • Bypassed reflection for Windows script item property and method access, fixing Issue #47.
    • Added explicit disposal of cached V8 objects to fix Issue #48.
  • Enhanced support for legacy scripts:
    • Added null, decimal, and array marshaling options to WindowsScriptEngine.
    • Added ScriptEngine.UseReflectionBindFallback.
    • VBScript's For Each ... Next and JScript's Enumerator now operate on IEnumerable instances.
  • Other enhancements:
    • Added optional heap size monitoring to V8ScriptEngine and V8Runtime (experimental).
    • Added HostFunctions.tryCatch().
    • Added ScriptEngine.Invoke() and V8ScriptEngine.Execute(V8Script).
    • Added ScriptEngine.DisableTypeRestriction.
    • Enhanced error reporting for V8 assembly load failures (Issue #39).
    • V8Update now supports branched V8 revisions.
  • Miscellaneous fixes:
    • Added a V8 array buffer allocator, fixing Issue #46.
    • Overhauled ClearScriptV8 string usage to fix Issue #42 and improve performance.
    • Hardened ClearScriptV8 smart pointers.
    • Changed ActiveScript sites to return the current thread culture.
    • Added defensive code to make V8-related API objects resurrection-safe, fixing Issue #51.
    • Fixed exception when using WindowsScriptEngineFlags.EnableDebugging with no suitable script debugger installed (Issue #36).
  • Updates for breaking V8 API changes.
  • Added tests for bug fixes and new APIs.
  • Tested with V8 3.26.31.15.

Version 5.3.11

26 Sep 15:36

Choose a tag to compare

  • Added support for building strong named assemblies (see ReadMe.txt).
  • Added AppDomain.AssemblyResolve hook for ClearScriptV8 (Issue #34).
  • Added WindowsScriptEngineFlags.EnableStandardsMode.
  • Fixed parameterless invocation of Windows script items from VB.NET.
  • Fixed WindowsScriptEngine execution result variant leak.
  • Hardened assembly table I/O (Issue #33).
  • Updates for breaking V8 API changes.
  • Added tests for bug fixes and new APIs.
  • Tested with V8 3.24.17.

Version 5.3.10

26 Sep 15:34

Choose a tag to compare

  • Added support for Visual Studio 2013.
  • Fixed ErrorDetails line number issue in WindowsScriptEngine (Issue #24).
  • Added ScriptEngine.FormatCode and V8Runtime.FormatCode.
  • Code formatting is now disabled by default.
  • Fixed script access to nullable values (Issue #30).
  • Added ScriptEngine.GetStackTrace() (Issue #27).
  • Added V8Runtime.MaxStackUsage and V8ScriptEngine.MaxRuntimeStackUsage (Issue #26).
  • Fixed V8 root object marshaling crash when GlobalMembers is in effect.
  • Added tests for bug fixes and new APIs.
  • Tested with V8 3.23.13.

Version 5.3.9

26 Sep 15:31

Choose a tag to compare

  • V8Update now fetches known-good versions of GYP, Python, and Cygwin (Issue #20).
  • Fixed HostMethod and HostIndexedProperty arguments.
  • Added tests for bug fixes.
  • Tested with V8 3.22.23.

Version 5.3.8

26 Sep 15:30

Choose a tag to compare

  • Added dynamic host object projection (Issue #3).
  • Added support for overloaded indexers and indexed properties.
  • Interface targets now expose System.Object members.
  • Expanded caching for improved performance and memory usage.
  • Fixed crashes and deadlocks when shutting down with Eclipse debugger attached.
  • Added support for custom preloading of auxiliary assemblies (Issue #17).
  • Added many new tests.
  • Migrated to new V8 Persistent API.
  • Tested with V8 3.22.11.

Version 5.3.7

26 Sep 15:28

Choose a tag to compare

  • Fixed V8ScriptEngine compiled script evaluation result marshaling (Issue #16).
  • Added a test for the fix.
  • Cleared PYTHONPATH in V8Update.
  • Tested with V8 3.21.2.

Version 5.3.6

26 Sep 15:27

Choose a tag to compare

  • Added numeric conversion methods in HostFunctions.
  • Fixed bugs affecting numeric arguments and return values.
  • Added tests for bug fixes and new APIs.
  • Tested with V8 3.20.16.

Version 5.3.5

26 Sep 15:26

Choose a tag to compare

  • Fixed invocation of base interface methods on derived interface targets (Issue #14).
  • Fixed V8 and ClearScript builds on certain non-English locales (Issue #13).
  • Added boxed enum reference canonicalization (Issue #15).
  • PropertyBag enhancements.
  • Lots of minor host integration fixes.
  • Updates for breaking V8 API changes.
  • Several new tests.
  • Tested with V8 3.20.12.

Version 5.3.4

26 Sep 15:24

Choose a tag to compare

  • Fixed script interruption crash in V8ScriptEngine.
  • Added a test for the fix.

Version 5.3.3

26 Sep 15:23

Choose a tag to compare

  • Improved V8 error handling (Issue #12).
  • Lowered .NET Framework target to v4.0.
  • Added several tests.
  • Tested with V8 3.19.18.