Skip to content

Releases: Taritsyn/JavaScriptEngineSwitcher

v3.0.1

11 Jan 18:22

Choose a tag to compare

Version: 3.0.1
Published: 1/11/2019
Change Set: ba8dd19

In JavaScriptEngineSwitcher.ChakraCore:

  • ChakraCore was updated to version 1.11.5
  • Fixed a error #65 “Memory leak using EmbedHostObject”

NuGet Packages

Before installing of NuGet packages, I recommend to first read “How to upgrade applications to version 3.X” section of the documentation.

JS engines

v3.0.0

25 Dec 21:35

Choose a tag to compare

Version: 3.0.0
Published: 12/25/2018
Change Set: 99c53cf

  • In the JsEngineSwitcher class a Instance property was renamed to the Current property
  • Now you can implement your own version of the JsEngineSwitcher class
  • Format of the error messages was unified
  • Created a new exception classes: JsCompilationException, JsEngineException, JsFatalException, JsInterruptedException, JsTimeoutException, JsScriptException and JsUsageException. These exceptions are responsible for handling errors, some of which were previously handled by the JsRuntimeException class
  • In the JsException class was added two new properties: Category and Description
  • From the JsRuntimeException class was removed one property - ErrorCode
  • In the JsRuntimeException class was added three new properties: Type, DocumentName and CallStack
  • JsEngineLoadException class now is inherited from the JsEngineException class
  • Removed a EmptyValueException class
  • Format method of the JsErrorHelpers class was renamed to the GenerateErrorDetails
  • Part of the auxiliary code was moved to external libraries: PolyfillsForOldDotNet and AdvancedStringBuilder
  • In IJsEngine interface was added two new properties: SupportsScriptInterruption and SupportsScriptPrecompilation, and four new methods: Interrupt, Precompile, PrecompileFile and PrecompileResource
  • In JavaScriptEngineSwitcher.Extensions.MsDependencyInjection added a overloaded versions of the AddJsEngineSwitcher extension method, which takes an instance of JS engine switcher
  • In JavaScriptEngineSwitcher.ChakraCore, JavaScriptEngineSwitcher.Msie, JavaScriptEngineSwitcher.V8 and JavaScriptEngineSwitcher.Vroom added a ability to interrupt execution of the script
  • In JavaScriptEngineSwitcher.ChakraCore, JavaScriptEngineSwitcher.Jint, JavaScriptEngineSwitcher.Jurassic, JavaScriptEngineSwitcher.Msie and JavaScriptEngineSwitcher.V8 added a ability to pre-compile scripts
  • In all modules, except the JavaScriptEngineSwitcher.V8, added support of .NET Standard 2.0
  • In JavaScriptEngineSwitcher.ChakraCore:
    • ChakraCore was updated to version 1.11.4
    • No longer used the old ChakraCore API for Windows (Internet Explorer-like API)
    • Now the ChakraCore for Windows requires the Microsoft Visual C++ Redistributable for Visual Studio 2017
    • In configuration settings of the ChakraCore JS engine was added one new property - MaxStackSize (default 492 or 984 KB)
    • Added support of .NET Framework 4.7.1 and .NET Core App 2.1
  • In JavaScriptEngineSwitcher.Jint:
    • Jint was updated to version 2.11.58
    • In configuration settings of the Jint JS engine a Timeout property has been replaced by the TimeoutInterval property (default TimeSpan.Zero) and was added one new property - LocalTimeZone (default TimeZoneInfo.Local)
  • In JavaScriptEngineSwitcher.Jurassic added support of Jurassic version of February 24, 2018
  • In JavaScriptEngineSwitcher.Msie:
    • MSIE JavaScript Engine was updated to version 3.0.0
    • In configuration settings of the MSIE JS engine was added one new property - MaxStackSize (default 492 or 984 KB)
  • In JavaScriptEngineSwitcher.V8:
    • Microsoft ClearScript.V8 was updated to version 5.5.4 (support of V8 version 7.0.276.42)
    • Now requires .NET Framework 4.5 or higher
    • Now the Microsoft ClearScript.V8 requires the Microsoft Visual C++ Redistributable for Visual Studio 2017
    • In configuration settings of the V8 JS engine became obsolete the MaxExecutableSize property and added two new properties: AwaitDebuggerAndPauseOnStart (default false) and EnableRemoteDebugging (default false)
  • In JavaScriptEngineSwitcher.Vroom added support of .NET Framework 4.7.1
  • Added a module based on the NiL.JS

NuGet Packages

Before installing of NuGet packages, I recommend to first read “How to upgrade applications to version 3.X” section of the documentation.

Core
JS engines

v3.0.0 RC 3

18 Dec 17:43

Choose a tag to compare

v3.0.0 RC 3 Pre-release
Pre-release

Version: 3.0.0 RC 3
Published: 12/18/2018
Change Set: 6753a71

In JavaScriptEngineSwitcher.ChakraCore:

  • ChakraCore was updated to version 1.11.4
  • Improved a performance of script pre-compilation

NuGet Packages

Before installing of NuGet packages, I recommend to first read “How to upgrade applications to version 3.X” section of the documentation.

v3.0.0 RC 2

05 Dec 10:07

Choose a tag to compare

v3.0.0 RC 2 Pre-release
Pre-release

Version: 3.0.0 RC 2
Published: 12/4/2018
Change Set: 2f2f405

  • GetSourceFragmentFromCode and GetSourceFragmentFromLine methods of JsErrorHelpers class were replaced by the GetTextFragment and GetTextFragmentFromLine methods of TextHelpers class
  • Part of the auxiliary code was moved to external libraries: PolyfillsForOldDotNet and AdvancedStringBuilder
  • Removed a unnecessary net471 targets
  • In JavaScriptEngineSwitcher.Msie added support of MSIE JavaScript Engine version 3.0.0 RC 2
  • In JavaScriptEngineSwitcher.V8 added support of Microsoft ClearScript.V8 version 5.5.4 (support of V8 version 7.0.276.42)
  • In JavaScriptEngineSwitcher.ChakraCore:
    • ChakraCore was updated to version 1.11.3
    • In the NativeMethods class for the netstandard and netcoreapp targets was changed a calling convention from StdCall to Cdecl
    • Charset was explicitly specified in the JsCreateString, JsCopyString and JsCreatePropertyId methods of NativeMethods class
    • Added a netcoreapp2.1 target
  • In JavaScriptEngineSwitcher.NiL added support of NiL.JS version 2.5.1282

NuGet Packages

Before installing of NuGet packages, I recommend to first read “How to upgrade applications to version 3.X” section of the documentation.

v2.4.29

20 Nov 20:07

Choose a tag to compare

Version: 2.4.29
Published: 11/20/2018
Change Set: 749890b

  • In JavaScriptEngineSwitcher.Msie added support of MSIE JavaScript Engine version 2.2.10
  • In JavaScriptEngineSwitcher.ChakraCore added support of ChakraCore version 1.11.3

NuGet Packages

v2.4.28

13 Oct 19:17

Choose a tag to compare

Version: 2.4.28
Published: 10/13/2018
Change Set: 286ceec

In JavaScriptEngineSwitcher.ChakraCore added support of ChakraCore version 1.11.2.

NuGet Packages

v2.4.27

21 Sep 15:19

Choose a tag to compare

Version: 2.4.27
Published: 9/21/2018
Change Set: 3ee5895

In JavaScriptEngineSwitcher.ChakraCore was optimized a memory usage in version for Unix.

NuGet Packages

v3.0.0 RC 1

19 Sep 19:11

Choose a tag to compare

v3.0.0 RC 1 Pre-release
Pre-release

Version: 3.0.0 RC 1
Published: 9/19/2018
Change Set: 0202a9b

  • Fixed a error #59 “Unhandled exception when JS exception is thrown”
  • In JavaScriptEngineSwitcher.Msie:
    • Added support of MSIE JavaScript Engine version 3.0.0 RC 1
    • In configuration settings was added one new property - MaxStackSize (default 492 or 984 KB)
  • In JavaScriptEngineSwitcher.Jint in configuration settings was added one new property - LocalTimeZone (default TimeZoneInfo.Local)
  • In JavaScriptEngineSwitcher.ChakraCore:
    • ChakraCore was updated to version 1.11.1
    • No longer used the old ChakraCore API for Windows (Internet Explorer-like API)
    • Optimized a memory usage
    • MaxStackSize configuration property was removed from the version for .NET Standard 1.3

NuGet Packages

Before installing of NuGet packages, I recommend to first read “How to upgrade applications to version 3.X” section of the documentation.

v2.4.26

13 Sep 16:16

Choose a tag to compare

Version: 2.4.26
Published: 9/13/2018
Change Set: 1eae3fa

In JavaScriptEngineSwitcher.ChakraCore added support of ChakraCore version 1.11.1.

NuGet Packages

v2.4.25

08 Sep 18:27

Choose a tag to compare

Version: 2.4.25
Published: 9/8/2018
Change Set: 4d1249d

  • In JavaScriptEngineSwitcher.Jint in configuration settings was added one new property - LocalTimeZone (default TimeZoneInfo.Local)
  • In JavaScriptEngineSwitcher.ChakraCore improved a performance in version for Unix

NuGet Packages