Releases: ClearFoundry/ClearScript
Releases · ClearFoundry/ClearScript
ClearScript 5.4
- Added COM object projection (Issue #38):
- New
ScriptEnginemethods:AddCOMObject()andAddCOMType(). - New
ExtendedHostFunctionsmethods:newComObj()andcomType().
- New
- 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.
- Added null, decimal, and array marshaling options to
- Other enhancements:
- Added optional heap size monitoring to
V8ScriptEngineandV8Runtime(experimental). - Added
HostFunctions.tryCatch(). - Added
ScriptEngine.Invoke()andV8ScriptEngine.Execute(V8Script). - Added
ScriptEngine.DisableTypeRestriction. - Enhanced error reporting for V8 assembly load failures (Issue #39).
- V8Update now supports branched V8 revisions.
- Added optional heap size monitoring to
- 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.EnableDebuggingwith 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
- Added support for building strong named assemblies (see ReadMe.txt).
- Added
AppDomain.AssemblyResolvehook for ClearScriptV8 (Issue #34). - Added
WindowsScriptEngineFlags.EnableStandardsMode. - Fixed parameterless invocation of Windows script items from VB.NET.
- Fixed
WindowsScriptEngineexecution 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
- Added support for Visual Studio 2013.
- Fixed
ErrorDetailsline number issue inWindowsScriptEngine(Issue #24). - Added
ScriptEngine.FormatCodeandV8Runtime.FormatCode. - Code formatting is now disabled by default.
- Fixed script access to nullable values (Issue #30).
- Added
ScriptEngine.GetStackTrace()(Issue #27). - Added
V8Runtime.MaxStackUsageandV8ScriptEngine.MaxRuntimeStackUsage(Issue #26). - Fixed V8 root object marshaling crash when
GlobalMembersis in effect. - Added tests for bug fixes and new APIs.
- Tested with V8 3.23.13.
Version 5.3.9
- V8Update now fetches known-good versions of GYP, Python, and Cygwin (Issue #20).
- Fixed
HostMethodandHostIndexedPropertyarguments. - Added tests for bug fixes.
- Tested with V8 3.22.23.
Version 5.3.8
- Added dynamic host object projection (Issue #3).
- Added support for overloaded indexers and indexed properties.
- Interface targets now expose
System.Objectmembers. - 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
PersistentAPI. - Tested with V8 3.22.11.
Version 5.3.7
- Fixed
V8ScriptEnginecompiled script evaluation result marshaling (Issue #16). - Added a test for the fix.
- Cleared
PYTHONPATHin V8Update. - Tested with V8 3.21.2.
Version 5.3.6
- 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
- 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).
PropertyBagenhancements.- 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
- Fixed script interruption crash in
V8ScriptEngine. - Added a test for the fix.
Version 5.3.3
- Improved V8 error handling (Issue #12).
- Lowered .NET Framework target to v4.0.
- Added several tests.
- Tested with V8 3.19.18.