Skip to content

Commit

Permalink
Version 3.20.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Taritsyn committed Jan 19, 2023
1 parent d4097dc commit f02f571
Show file tree
Hide file tree
Showing 29 changed files with 40 additions and 114 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change log
==========

## v3.20.9 - January 19, 2022
* In JavaScriptEngineSwitcher.Jint added support of Jint version 3.0.0 Beta 2046
* In JavaScriptEngineSwitcher.NiL:
* NiL.JS was updated to version 2.5.1623
* Added support of .NET 7.0

## v3.20.8 - December 20, 2022
* In JavaScriptEngineSwitcher.Jint added support of Jint version 3.0.0 Beta 2044
* In JavaScriptEngineSwitcher.V8 added support of Microsoft ClearScript.V8 version 7.3.6 (support of V8 version 10.8.168.24)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2022 Andrey Taritsyn - http://www.taritsyn.ru
Copyright (c) 2013-2023 Andrey Taritsyn - http://www.taritsyn.ru

Apache License
Version 2.0, January 2004
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This library can be installed through NuGet:
* [JS Engine Switcher: Jint](http://nuget.org/packages/JavaScriptEngineSwitcher.Jint) (supports .NET Framework 4.6.2, .NET Standard 2.0 and .NET Standard 2.1)
* [JS Engine Switcher: Jurassic](http://nuget.org/packages/JavaScriptEngineSwitcher.Jurassic) (supports .NET Framework 4.0 Client, .NET Framework 4.5 and .NET Standard 2.0)
* [JS Engine Switcher: MSIE](http://nuget.org/packages/JavaScriptEngineSwitcher.Msie) (supports .NET Framework 4.0 Client, .NET Framework 4.5, .NET Standard 1.3 and .NET Standard 2.0)
* [JS Engine Switcher: NiL](http://nuget.org/packages/JavaScriptEngineSwitcher.NiL) (supports .NET Framework 4.6.1, .NET Framework 4.8, .NET Core App 3.1, .NET 5.0 and .NET 6)
* [JS Engine Switcher: NiL](http://nuget.org/packages/JavaScriptEngineSwitcher.NiL) (supports .NET Framework 4.6.1, .NET Framework 4.8, .NET Core App 3.1, .NET 5.0, .NET 6 and .NET 7)
* [JS Engine Switcher: Node](http://nuget.org/packages/JavaScriptEngineSwitcher.Node) (supports .NET Framework 4.6.1, .NET Standard 2.0, .NET Core App 3.1, .NET 5.0 and .NET 6)
* [JS Engine Switcher: V8](http://nuget.org/packages/JavaScriptEngineSwitcher.V8) (supports .NET Framework 4.5, .NET Framework 4.7.1, .NET Standard 2.1, .NET Core App 3.1 and .NET 5.0)
* [Microsoft ClearScript.V8 for Windows (x86)](https://www.nuget.org/packages/Microsoft.ClearScript.V8.Native.win-x86)
Expand Down
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Copyright>Copyright © 2013-2022 Andrey Taritsyn</Copyright>
<Copyright>Copyright © 2013-2023 Andrey Taritsyn</Copyright>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("JS Engine Switcher: Sample ASP.NET MVC 4 Site")]
[assembly: AssemblyCopyright("Copyright © 2013-2022 Andrey Taritsyn")]
[assembly: AssemblyCopyright("Copyright © 2013-2023 Andrey Taritsyn")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(false)]
[assembly: Guid("39487053-b459-4433-ae93-e00affc653c6")]

[assembly: AssemblyVersion("3.20.8.0")]
[assembly: AssemblyFileVersion("3.20.8.0")]
[assembly: AssemblyVersion("3.20.9.0")]
[assembly: AssemblyFileVersion("3.20.9.0")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsengineswitcher.sample.aspnet4.mvc4",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 1.0 MVC 1 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>netcoreapp1.0</TargetFramework>
<RuntimeFrameworkVersion>1.0.16</RuntimeFrameworkVersion>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsengineswitcher.sample.aspnetcore1.mvc1",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 1.0 Full MVC 1 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>net451</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsengineswitcher.sample.aspnetcore1full.mvc1",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 2.1 MVC 2.1 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>netcoreapp2.1</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsengineswitcher.sample.aspnetcore21.mvc21",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 3.1 MVC 3.1 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jsengineswitcher.sample.aspnetcore31.mvc31",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 5.0 MVC 5 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "javascriptengineswitcher.sample.aspnetcore5.mvc5",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 6.0 MVC 6 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "javascriptengineswitcher.sample.aspnetcore6.mvc6",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Sample ASP.NET Core 7.0 MVC 7 Site</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "javascriptengineswitcher.sample.aspnetcore7.mvc7",
"private": true,
"version": "3.20.8",
"version": "3.20.9",
"devDependencies": {
"gulp": "4.0.2",
"del": "5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Logic for Samples</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFrameworks>net40;net451;net471;netstandard1.6;netstandard2.0;netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.0</NetStandardImplicitPackageVersion>
<OutputType>Library</OutputType>
Expand Down Expand Up @@ -44,11 +44,11 @@
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="6.0.12" />
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="6.0.13" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="7.0.1" />
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="7.0.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Resources for Samples</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFrameworks>net40-client;net45;net471;netstandard1.3;netstandard2.0</TargetFrameworks>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
<OutputType>Library</OutputType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Jint</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<TargetFrameworks>net462;netstandard2.0;netstandard2.1</TargetFrameworks>
<OutputType>Library</OutputType>
Expand Down
4 changes: 2 additions & 2 deletions src/JavaScriptEngineSwitcher.Jint/readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


--------------------------------------------------------------------------------
README file for JS Engine Switcher: Jint v3.20.8 Preview
README file for JS Engine Switcher: Jint v3.20.9 Preview

--------------------------------------------------------------------------------

Copyright (c) 2013-2022 Andrey Taritsyn - http://www.taritsyn.ru
Copyright (c) 2013-2023 Andrey Taritsyn - http://www.taritsyn.ru


===========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: NiL</Product>
<VersionPrefix>3.20.1</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFrameworks>net461;net48;netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
4 changes: 2 additions & 2 deletions src/JavaScriptEngineSwitcher.NiL/readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


--------------------------------------------------------------------------------
README file for JS Engine Switcher: NiL v3.20.1
README file for JS Engine Switcher: NiL v3.20.9

--------------------------------------------------------------------------------

Copyright (c) 2013-2022 Andrey Taritsyn - http://www.taritsyn.ru
Copyright (c) 2013-2023 Andrey Taritsyn - http://www.taritsyn.ru


===========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Benchmarks</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFrameworks>net461;netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -14,7 +14,7 @@
<Import Project="../../build/common.props" />

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" VersionOverride="0.13.2" />
<PackageReference Include="BenchmarkDotNet" VersionOverride="0.13.4" />
<PackageReference Include="BuildBundlerMinifier" VersionOverride="3.2.449" PrivateAssets="All" />
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-arm" />
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-arm64" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>JS Engine Switcher: Tests</Product>
<VersionPrefix>3.20.8</VersionPrefix>
<VersionPrefix>3.20.9</VersionPrefix>
<TargetFrameworks>net452;net471;netcoreapp2.1;netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
80 changes: 0 additions & 80 deletions test/JavaScriptEngineSwitcher.Tests/Jint/InteropTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,6 @@ protected override string EngineName

#region Embedding of objects

#region Objects with fields

[Fact]
public override void EmbeddingOfInstanceOfCustomReferenceTypeWithFieldsIsCorrect()
{
// Arrange
var product = new Product
{
Name = "Red T-shirt",
Description = string.Empty,
Price = 995.00
};

const string updateCode = "product.Price *= 1.15;";

const string input1 = "product.Name";
const string targetOutput1 = "Red T-shirt";

const string input2 = "product.Price";
const double targetOutput2 = 1144.25;

// Act
string output1;
double output2;

using (var jsEngine = CreateJsEngine())
{
jsEngine.EmbedHostObject("product", product);
jsEngine.Execute(updateCode);

output1 = jsEngine.Evaluate<string>(input1);
output2 = jsEngine.Evaluate<double>(input2);
}

// Assert
Assert.Equal(targetOutput1, output1);
Assert.Equal(targetOutput2, output2);
}

#endregion

#region Delegates

[Fact]
Expand Down Expand Up @@ -339,45 +298,6 @@ public void MappingHostErrorDuringRecursiveExecutionOfFilesIsCorrect()
#endregion

#endregion


#region Embedding of types

#region Types with methods

#if NET471
[Fact]
public override void EmbeddingOfBuiltinReferenceTypeWithMethodsIsCorrect()
{
// Arrange
Type mathType = typeof(Math);

const string input1 = "Math2.Max(5.37, 5.56)";
const double targetOutput1 = 5.56;

const string input2 = "Math2.Log10(23)";
const double targetOutput2 = 1.36172783601759;

// Act
double output1;
double output2;

using (var jsEngine = CreateJsEngine())
{
jsEngine.EmbedHostType("Math2", mathType);
output1 = Math.Round(jsEngine.Evaluate<double>(input1), 2);
output2 = Math.Round(jsEngine.Evaluate<double>(input2), 14);
}

// Assert
Assert.Equal(targetOutput1, output1);
Assert.Equal(targetOutput2, output2);
}
#endif

#endregion

#endregion
}
}
#endif

0 comments on commit f02f571

Please sign in to comment.