JavaScriptEngineSwitcher.Core 3.0.0

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines (MSIE JavaScript Engine for .NET, Microsoft ClearScript.V8, Jurassic, Jint, ChakraCore, VroomJs and NiL.JS). This library allows you to quickly and easily switch to using of another JavaScript engine.

There is a newer version of this package available.
See the version list below for details.
Install-Package JavaScriptEngineSwitcher.Core -Version 3.0.0
dotnet add package JavaScriptEngineSwitcher.Core --version 3.0.0
<PackageReference Include="JavaScriptEngineSwitcher.Core" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JavaScriptEngineSwitcher.Core --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

1. In the `JsEngineSwitcher` class a `Instance` property was renamed to the `Current` property;
2. Now you can implement your own version of the `JsEngineSwitcher` class;
3. Format of the error messages was unified;
4. 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;
5. In the `JsException` class was added two new properties: `Category` and `Description`;
6. From the `JsRuntimeException` class was removed one property - `ErrorCode`;
7. In the `JsRuntimeException` class was added three new properties: `Type`, `DocumentName` and `CallStack`;
8. `JsEngineLoadException` class now is inherited from the `JsEngineException` class;
9. Removed a `EmptyValueException` class;
10. `Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`;
11. Part of the auxiliary code was moved to external libraries: PolyfillsForOldDotNet and AdvancedStringBuilder;
12. In `IJsEngine` interface was added two new  properties: `SupportsScriptInterruption` and `SupportsScriptPrecompilation`, and four new methods: `Interrupt`, `Precompile`, `PrecompileFile` and `PrecompileResource`;
13. Added support of .NET Standard 2.0.

Showing the top 6 GitHub repositories that depend on JavaScriptEngineSwitcher.Core:

Repository Stars
xenko3d/xenko
Xenko Game Engine
reactjs/React.NET
.NET library for JSX compilation and server-side rendering of React components
smartstore/SmartStoreNET
Open Source ASP.NET MVC Ecommerce Shopping Cart Solution
Wyamio/Wyam
A modular static content and static site generator.
Taritsyn/WebMarkupMin
The Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
levibotelho/LearnAngular
The open source code repository for LearnAngular.

Version History

Version Downloads Last updated
3.1.0 34,284 5/3/2019
3.0.0 104,805 12/25/2018
3.0.0-rc2 1,082 12/4/2018
3.0.0-rc1 12,413 9/19/2018
3.0.0-beta9 472 8/23/2018
3.0.0-beta4 12,070 5/29/2018
3.0.0-beta3 348 5/22/2018
3.0.0-beta1 913 4/8/2018
3.0.0-alpha9 2,086 12/22/2017
3.0.0-alpha6 704 10/17/2017
3.0.0-alpha2 783 7/26/2017
3.0.0-alpha1 364 7/12/2017
2.4.10 222,022 7/4/2017
2.4.9 241,644 6/28/2017
2.4.0 47,635 4/26/2017
2.2.0 164,285 12/20/2016
2.1.2 19,412 11/8/2016
2.0.3 14,474 10/17/2016
2.0.0 97,206 9/19/2016
2.0.0-beta1 461 9/17/2016
2.0.0-alpha1 711 8/23/2016
1.5.0 243,022 3/4/2016
1.5.0-beta1 383 2/26/2016
1.5.0-alpha1 490 1/5/2016
1.2.4 268,083 2/19/2015
1.2.0 85,498 10/13/2014
1.1.3 141,810 3/22/2014
1.1.0 43,369 1/16/2014
1.0.0 3,502 12/30/2013
0.9.5 5,749 12/7/2013
0.9.2 45,937 9/5/2013