ClearScript

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).

MIT License

Stars
1.8K
Committers
11

Bot releases are hidden (Show)

ClearScript - Version 5.3.10

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.9

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.8

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.7

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.6

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.5

Published by ClearScriptLib about 7 years ago

  • 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.
ClearScript - Version 5.3.4

Published by ClearScriptLib about 7 years ago

  • Fixed script interruption crash in V8ScriptEngine.
  • Added a test for the fix.
ClearScript - Version 5.3.3

Published by ClearScriptLib about 7 years ago

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

Published by ClearScriptLib about 7 years ago

  • Updates for breaking V8 API changes.
  • V8Update now fetches a tested revision by default.
  • Tested with V8 3.19.9.
ClearScript - Version 5.3.1

Published by ClearScriptLib about 7 years ago

  • Fixed JScriptEngine dynamic binding bug (Issue #9).
ClearScript - ClearScript 5.3

Published by ClearScriptLib about 7 years ago

  • Enhancements for V8 users:
    • V8ScriptEngine now supports script compilation and re-execution.
    • New V8Runtime class allows engines to share resources and compiled scripts.
    • New experimental APIs for restricting and querying V8 memory usage.
    • Improved V8 loading algorithm for simplified deployment.
    • V8Update can now fetch a V8 version that is known to work with ClearScript.
  • New method: ScriptEngine.CollectGarbage().
  • Host item caching improves performance and reduces memory usage.
  • Several new tests.
ClearScript - Version 5.2.2

Published by ClearScriptLib about 7 years ago

  • Fixed compilation errors caused by V8 API deprecation.
ClearScript - Version 5.2.1

Published by ClearScriptLib about 7 years ago

  • Restored .NET 4.0 source compatibility.
  • Updated build and deployment information in Readme.txt.
ClearScript - ClearScript 5.2

Published by ClearScriptLib about 7 years ago

  • Breaking Change: Revamped error handling:
    • Added ScriptEngineException and ScriptInterruptedException.
    • Exceptions are now preserved and chained whenever possible, including across engines.
  • Breaking Change: Host member type restriction:
    • Field, property, and method return values are now restricted to their declared types.
    • Type restriction can be overridden via ScriptMemberAttribute.
    • Members declared as System.Object are exempt from type restriction.
  • Important: New V8 API usage:
    • Switched to new HandleScope constructor for improved performance.
    • ClearScript 5.2 requires V8 3.17.11 or later.
  • V8Update improvements:
    • V8Update is now compatible with 32-bit Windows.
    • Pre-existing Python installations no longer break builds.
  • ClearScriptTest changes:
    • Added error handling tests.
    • Replaced many instances of ExpectedExceptionAttribute.
    • Method hit tests no longer rely on stack walking.
  • Global properties created via V8ScriptEngine.Add*() are now read-only.
  • Script items now correctly implement DynamicObject.GetDynamicMemberNames().
  • ClearScriptConsole now preloads system and ClearScript assemblies and enables reflection.
ClearScript - Version 5.1.3

Published by ClearScriptLib about 7 years ago

  • Fixed V8ScriptEngine access violation.
  • V8Update can now reuse previously downloaded files.
  • V8Update now forces GYP to target Visual Studio 2012.
  • ReadMe.txt updates.
ClearScript - Version 5.1.2

Published by ClearScriptLib about 7 years ago

  • Fixed delegate construction syntax for JavaScript.
  • Documentation updates.
  • New tests.
ClearScript - Version 5.1.1

Published by ClearScriptLib about 7 years ago

  • Fixed null argument binding.
  • Added tests.
  • Minor code fixes.
ClearScript - ClearScript 5.1

Published by ClearScriptLib about 7 years ago

  • Added ScriptEngine.AddRestrictedHostObject().
  • Added ScriptMemberAttribute, NoScriptAccessAttribute.
  • Improved method bind plumbing.
  • Improved GlobalMembers support in V8ScriptEngine.
  • Many new tests.
ClearScript - Version 5.0.4

Published by ClearScriptLib about 7 years ago

  • Fixed GlobalMembers writes in V8ScriptEngine.
ClearScript - Version 5.0.3

Published by ClearScriptLib about 7 years ago

  • Visual Studio 2012 Express compatibility.
  • Made ExecuteCommand() work with JavaScript var statements.