Skip to content

Commit ec7716a

Browse files
committed
In JavaScriptEngineSwitcher.V8:
1. Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8 version 13.3.415.23); 2. No longer supports a .NET Framework 4.5; 3. Added support for .NET Framework 4.6.2.
1 parent 9168464 commit ec7716a

23 files changed

+47
-55
lines changed

Directory.Packages.props

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<PackageVersion Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-arm64" Version="3.27.3" />
77
<PackageVersion Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-x64" Version="3.27.3" />
88
<PackageVersion Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-x86" Version="3.27.3" />
9-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-arm" Version="7.4.5" />
10-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-arm64" Version="7.4.5" />
11-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-x64" Version="7.4.5" />
12-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.osx-arm64" Version="7.4.5" />
13-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.osx-x64" Version="7.4.5" />
14-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-arm64" Version="7.4.5" />
15-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-x64" Version="7.4.5" />
16-
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-x86" Version="7.4.5" />
9+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-arm" Version="7.5.0" />
10+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-arm64" Version="7.5.0" />
11+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.linux-x64" Version="7.5.0" />
12+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.osx-arm64" Version="7.5.0" />
13+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.osx-x64" Version="7.5.0" />
14+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-arm64" Version="7.5.0" />
15+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-x64" Version="7.5.0" />
16+
<PackageVersion Include="Microsoft.ClearScript.V8.Native.win-x86" Version="7.5.0" />
1717
</ItemGroup>
1818
</Project>

samples/JavaScriptEngineSwitcher.Sample.AspNetCore.Infrastructure/JavaScriptEngineSwitcher.Sample.AspNetCore.Infrastructure.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
</ItemGroup>
4343

4444
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
45-
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="8.0.12" />
45+
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="8.0.13" />
4646
</ItemGroup>
4747

4848
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
49-
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="9.0.1" />
49+
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="9.0.2" />
5050
</ItemGroup>
5151

5252
</Project>

samples/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-arm64" />
3232
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-x64" />
3333
<PackageReference Include="JavaScriptEngineSwitcher.ChakraCore.Native.win-x86" />
34-
<PackageReference Include="Microsoft.ClearScript.V8.Native.win-arm64" />
35-
<PackageReference Include="Microsoft.ClearScript.V8.Native.win-x64" />
36-
<PackageReference Include="Microsoft.ClearScript.V8.Native.win-x86" />
3734

3835
<ProjectReference Include="../../src/JavaScriptEngineSwitcher.ChakraCore/JavaScriptEngineSwitcher.ChakraCore.csproj" />
3936
<ProjectReference Include="../../src/JavaScriptEngineSwitcher.Extensions.MsDependencyInjection/JavaScriptEngineSwitcher.Extensions.MsDependencyInjection.csproj" />
@@ -42,7 +39,6 @@
4239
<ProjectReference Include="../JavaScriptEngineSwitcher.Sample.AspNetCore.Infrastructure/JavaScriptEngineSwitcher.Sample.AspNetCore.Infrastructure.csproj" />
4340
<ProjectReference Include="../JavaScriptEngineSwitcher.Sample.Logic/JavaScriptEngineSwitcher.Sample.Logic.csproj" />
4441
<ProjectReference Include="../JavaScriptEngineSwitcher.Sample.Resources/JavaScriptEngineSwitcher.Sample.Resources.csproj" />
45-
<ProjectReference Include="../../src/JavaScriptEngineSwitcher.V8/JavaScriptEngineSwitcher.V8.csproj" />
4642
<ProjectReference Include="../../src/JavaScriptEngineSwitcher.Vroom/JavaScriptEngineSwitcher.Vroom.csproj" />
4743
</ItemGroup>
4844

samples/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1/Startup.cs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using JavaScriptEngineSwitcher.Jurassic;
1212
using JavaScriptEngineSwitcher.Msie;
1313
using JavaScriptEngineSwitcher.Sample.Logic.Services;
14-
using JavaScriptEngineSwitcher.V8;
1514
using JavaScriptEngineSwitcher.Vroom;
1615

1716
namespace JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1
@@ -63,7 +62,6 @@ public void ConfigureServices(IServiceCollection services)
6362
{
6463
options.EngineMode = JsEngineMode.ChakraIeJsRt;
6564
})
66-
.AddV8()
6765
.AddVroom()
6866
;
6967

samples/JavaScriptEngineSwitcher.Sample.Logic/JavaScriptEngineSwitcher.Sample.Logic.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
</ItemGroup>
5555

5656
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
57-
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="8.0.12" />
57+
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="8.0.13" />
5858
</ItemGroup>
5959

6060
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
61-
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="9.0.1" />
61+
<FrameworkReference Include="Microsoft.AspNetCore.App" Version="9.0.2" />
6262
</ItemGroup>
6363

6464
</Project>

src/JavaScriptEngineSwitcher.V8.Native.linux-x64/JavaScriptEngineSwitcher.V8.Native.linux-x64.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_V8_Logo128x128.png</PackageIconFullPath>
1616
<Description>This package is deprecated. Instead, it is recommended to use a Microsoft.ClearScript.V8.Native.linux-x64 package.</Description>
1717
<PackageTags>$(PackageCommonTags);V8;ClearScript;Linux;x64</PackageTags>
18-
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8 version 12.3.219.12).</PackageReleaseNotes>
18+
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8 version 13.3.415.23).</PackageReleaseNotes>
1919
</PropertyGroup>
2020

2121
</Project>

src/JavaScriptEngineSwitcher.V8.Native.linux-x64/JavaScriptEngineSwitcher.V8.Native.linux-x64.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
$CommonMetadataElements$
55
<dependencies>
6-
<dependency id="Microsoft.ClearScript.V8.Native.linux-x64" version="7.4.5" />
6+
<dependency id="Microsoft.ClearScript.V8.Native.linux-x64" version="7.5.0" />
77
</dependencies>
88
</metadata>
99
<files>

src/JavaScriptEngineSwitcher.V8.Native.linux-x64/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
=============
1818
RELEASE NOTES
1919
=============
20-
Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8
21-
version 12.3.219.12).
20+
Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8
21+
version 13.3.415.23).
2222

2323
=============
2424
DOCUMENTATION

src/JavaScriptEngineSwitcher.V8.Native.osx-x64/JavaScriptEngineSwitcher.V8.Native.osx-x64.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_V8_Logo128x128.png</PackageIconFullPath>
1616
<Description>This package is deprecated. Instead, it is recommended to use a Microsoft.ClearScript.V8.Native.osx-x64 package.</Description>
1717
<PackageTags>$(PackageCommonTags);V8;ClearScript;macOS;OSX;x64</PackageTags>
18-
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8 version 12.3.219.12).</PackageReleaseNotes>
18+
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8 version 13.3.415.23).</PackageReleaseNotes>
1919
</PropertyGroup>
2020

2121
</Project>

src/JavaScriptEngineSwitcher.V8.Native.osx-x64/JavaScriptEngineSwitcher.V8.Native.osx-x64.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
$CommonMetadataElements$
55
<dependencies>
6-
<dependency id="Microsoft.ClearScript.V8.Native.osx-x64" version="7.4.5" />
6+
<dependency id="Microsoft.ClearScript.V8.Native.osx-x64" version="7.5.0" />
77
</dependencies>
88
</metadata>
99
<files>

src/JavaScriptEngineSwitcher.V8.Native.osx-x64/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
=============
1818
RELEASE NOTES
1919
=============
20-
Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8
21-
version 12.3.219.12).
20+
Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8
21+
version 13.3.415.23).
2222

2323
=============
2424
DOCUMENTATION

src/JavaScriptEngineSwitcher.V8.Native.win-x64/JavaScriptEngineSwitcher.V8.Native.win-x64.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_V8_Logo128x128.png</PackageIconFullPath>
1616
<Description>This package is deprecated. Instead, it is recommended to use a Microsoft.ClearScript.V8.Native.win-x64 package.</Description>
1717
<PackageTags>$(PackageCommonTags);V8;ClearScript;Windows;x64</PackageTags>
18-
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8 version 12.3.219.12).</PackageReleaseNotes>
18+
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8 version 13.3.415.23).</PackageReleaseNotes>
1919
</PropertyGroup>
2020

2121
</Project>

src/JavaScriptEngineSwitcher.V8.Native.win-x64/JavaScriptEngineSwitcher.V8.Native.win-x64.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
$CommonMetadataElements$
55
<dependencies>
6-
<dependency id="Microsoft.ClearScript.V8.Native.win-x64" version="7.4.5" />
6+
<dependency id="Microsoft.ClearScript.V8.Native.win-x64" version="7.5.0" />
77
</dependencies>
88
</metadata>
99
<files>

src/JavaScriptEngineSwitcher.V8.Native.win-x64/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
=============
1818
RELEASE NOTES
1919
=============
20-
Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8
21-
version 12.3.219.12).
20+
Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8
21+
version 13.3.415.23).
2222

2323
=============
2424
DOCUMENTATION

src/JavaScriptEngineSwitcher.V8.Native.win-x86/JavaScriptEngineSwitcher.V8.Native.win-x86.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_V8_Logo128x128.png</PackageIconFullPath>
1616
<Description>This package is deprecated. Instead, it is recommended to use a Microsoft.ClearScript.V8.Native.win-x86 package.</Description>
1717
<PackageTags>$(PackageCommonTags);V8;ClearScript;Windows;x86</PackageTags>
18-
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8 version 12.3.219.12).</PackageReleaseNotes>
18+
<PackageReleaseNotes>Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8 version 13.3.415.23).</PackageReleaseNotes>
1919
</PropertyGroup>
2020

2121
</Project>

src/JavaScriptEngineSwitcher.V8.Native.win-x86/JavaScriptEngineSwitcher.V8.Native.win-x86.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
$CommonMetadataElements$
55
<dependencies>
6-
<dependency id="Microsoft.ClearScript.V8.Native.win-x86" version="7.4.5" />
6+
<dependency id="Microsoft.ClearScript.V8.Native.win-x86" version="7.5.0" />
77
</dependencies>
88
</metadata>
99
<files>

src/JavaScriptEngineSwitcher.V8.Native.win-x86/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
=============
1818
RELEASE NOTES
1919
=============
20-
Microsoft ClearScript.V8 was updated to version 7.4.5 (support of the V8
21-
version 12.3.219.12).
20+
Microsoft ClearScript.V8 was updated to version 7.5 (support of the V8
21+
version 13.3.415.23).
2222

2323
=============
2424
DOCUMENTATION

src/JavaScriptEngineSwitcher.V8/JavaScriptEngineSwitcher.V8.csproj

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Product>JS Engine Switcher: V8</Product>
55
<VersionPrefix>3.24.2</VersionPrefix>
6-
<TargetFrameworks>net45;net471;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
6+
<TargetFrameworks>net462;net471;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
77
<OutputType>Library</OutputType>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<NoWarn>$(NoWarn);CS1591;NU1903</NoWarn>
@@ -22,14 +22,15 @@
2222
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_V8_Logo128x128.png</PackageIconFullPath>
2323
<Description>JavaScriptEngineSwitcher.V8 contains a `V8JsEngine` adapter (wrapper for the Microsoft ClearScript.V8).</Description>
2424
<PackageTags>$(PackageCommonTags);V8;ClearScript</PackageTags>
25-
<PackageReleaseNotes>1. Microsoft ClearScript.V8 was updated to version 7.4.5;
26-
2. In configuration settings of the V8 JS engine was added two new properties: `AddPerformanceObject` (default `false`) and `SetTimerResolution` (default `false`).</PackageReleaseNotes>
25+
<PackageReleaseNotes>1. Microsoft ClearScript.V8 was updated to version 7.5;
26+
2. No longer supports a .NET Framework 4.5;
27+
3. Added support for .NET Framework 4.6.2.</PackageReleaseNotes>
2728
</PropertyGroup>
2829

2930
<ItemGroup>
30-
<Reference Condition=" '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'net471' " Include="Microsoft.CSharp" Pack="false" />
31+
<Reference Condition=" '$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'net471' " Include="Microsoft.CSharp" Pack="false" />
3132

32-
<PackageReference Include="Microsoft.ClearScript.V8" Version="7.4.5" />
33+
<PackageReference Include="Microsoft.ClearScript.V8" Version="7.5.0" />
3334
<PackageReference Include="ResxToCs.MSBuild" Version="1.0.0-alpha7" PrivateAssets="All" />
3435

3536
<ProjectReference Include="../JavaScriptEngineSwitcher.Core/JavaScriptEngineSwitcher.Core.csproj" />

src/JavaScriptEngineSwitcher.V8/PACKAGE-DESCRIPTION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
JavaScriptEngineSwitcher.V8 contains a `V8JsEngine` adapter (wrapper for the [Microsoft ClearScript.V8](http://github.com/Microsoft/ClearScript) version 7.4.5).
1+
JavaScriptEngineSwitcher.V8 contains a `V8JsEngine` adapter (wrapper for the [Microsoft ClearScript.V8](http://github.com/Microsoft/ClearScript) version 7.5).
22

33
This package does not contain the native ClearScript.V8 assemblies.
44
Therefore, you need to choose and install the most appropriate package(s) for your platform.

src/JavaScriptEngineSwitcher.V8/V8JsEngine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public sealed class V8JsEngine : JsEngineBase
4747
/// <summary>
4848
/// Version of original JS engine
4949
/// </summary>
50-
private const string EngineVersion = "12.3.219.12";
50+
private const string EngineVersion = "13.3.415.23";
5151

5252
/// <summary>
5353
/// V8 JS engine

src/JavaScriptEngineSwitcher.V8/readme.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
===========
1414
JavaScriptEngineSwitcher.V8 contains a `V8JsEngine` adapter (wrapper for the
1515
Microsoft ClearScript.V8 (http://github.com/Microsoft/ClearScript) version
16-
7.4.5).
16+
7.5).
1717

1818
This package does not contain the native ClearScript.V8 assemblies.
1919
Therefore, you need to choose and install the most appropriate package(s) for
@@ -31,10 +31,9 @@
3131
=============
3232
RELEASE NOTES
3333
=============
34-
1. Microsoft ClearScript.V8 was updated to version 7.4.5;
35-
2. In configuration settings of the V8 JS engine was added two new properties:
36-
`AddPerformanceObject` (default `false`) and `SetTimerResolution` (default
37-
`false`).
34+
1. Microsoft ClearScript.V8 was updated to version 7.5;
35+
2. No longer supports a .NET Framework 4.5;
36+
3. Added support for .NET Framework 4.6.2.
3837

3938
=============
4039
DOCUMENTATION

test/JavaScriptEngineSwitcher.Tests/V8/CommonTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public void MappingRuntimeErrorDuringExecutionOfCode()
181181
);
182182
}
183183

184-
/*
185184
[Fact]
186185
public void MappingRuntimeErrorDuringOutOfMemory()
187186
{
@@ -217,7 +216,6 @@ public void MappingRuntimeErrorDuringOutOfMemory()
217216
Assert.Equal("Runtime error", exception.Category);
218217
Assert.Equal("The V8 runtime has exceeded its memory limit", exception.Description);
219218
}
220-
*/
221219

222220
#endregion
223221

test/JavaScriptEngineSwitcher.Tests/V8/PrecompilationTests.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ public void MappingRuntimeErrorDuringExecutionOfPrecompiledCode()
102102
Assert.Equal("Runtime error", exception.Category);
103103
Assert.Equal("Cannot read properties of null (reading '5')", exception.Description);
104104
Assert.Equal("TypeError", exception.Type);
105-
Assert.Equal("get-item.js", exception.DocumentName);
105+
Assert.Equal("get-item [2].js", exception.DocumentName);
106106
Assert.Equal(2, exception.LineNumber);
107107
Assert.Equal(18, exception.ColumnNumber);
108108
Assert.Equal(" var item = items[itemIndex];", exception.SourceFragment);
109109
Assert.Equal(
110-
" at getItem (get-item.js:2:18)" + Environment.NewLine +
111-
" at get-item.js:9:10" + Environment.NewLine +
112-
" at get-item.js:13:3",
110+
" at getItem (get-item [2].js:2:18)" + Environment.NewLine +
111+
" at get-item [2].js:9:10" + Environment.NewLine +
112+
" at get-item [2].js:13:3",
113113
exception.CallStack
114114
);
115115
}
@@ -177,10 +177,10 @@ public void GenerationOfRuntimeErrorMessage()
177177
return getFullName(firstName, lastName);
178178
})(getFullName);";
179179
string targetOutput = "ReferenceError: middleName is not defined" + Environment.NewLine +
180-
" at getFullName (get-full-name.js:2:35) -> var fullName = firstName + " +
180+
" at getFullName (get-full-name [2].js:2:35) -> var fullName = firstName + " +
181181
"' ' + middleName + ' ' + lastName;" + Environment.NewLine +
182-
" at get-full-name.js:12:9" + Environment.NewLine +
183-
" at get-full-name.js:13:3"
182+
" at get-full-name [2].js:12:9" + Environment.NewLine +
183+
" at get-full-name [2].js:13:3"
184184
;
185185

186186
JsRuntimeException exception = null;

0 commit comments

Comments
 (0)