Skip to content

Commit

Permalink
Prepare release (v0.9.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Mar 26, 2024
1 parent b3b308c commit 0726c86
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 30 deletions.
32 changes: 20 additions & 12 deletions Acornima.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Acornima.Tests", "test\Acor
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Acornima.Tests.Test262", "test\Acornima.Tests.Test262\Acornima.Tests.Test262.csproj", "{A7CA9D3E-5247-4212-9E08-BDECBC63B8E1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C428FBAE-48E0-4C47-B9D2-688866714516}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -34,6 +39,10 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C924464D-28FC-427E-A65A-A75ADCDADA00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C924464D-28FC-427E-A65A-A75ADCDADA00}.Release|Any CPU.ActiveCfg = Release|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Release|Any CPU.Build.0 = Release|Any CPU
{A3A0B6A1-AA69-4811-BD6D-AF786CA9D619}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3A0B6A1-AA69-4811-BD6D-AF786CA9D619}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3A0B6A1-AA69-4811-BD6D-AF786CA9D619}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -42,10 +51,14 @@ Global
{F41FD930-C3E8-42C0-AFE8-670C2E47E3D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F41FD930-C3E8-42C0-AFE8-670C2E47E3D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F41FD930-C3E8-42C0-AFE8-670C2E47E3D3}.Release|Any CPU.Build.0 = Release|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{384C7882-6721-4885-9DFC-461BD6AE2ABA}.Release|Any CPU.Build.0 = Release|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Release|Any CPU.Build.0 = Release|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Release|Any CPU.Build.0 = Release|Any CPU
{460A0A53-B9F6-47DB-83D7-763A39562A55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{460A0A53-B9F6-47DB-83D7-763A39562A55}.Debug|Any CPU.Build.0 = Debug|Any CPU
{460A0A53-B9F6-47DB-83D7-763A39562A55}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -54,18 +67,13 @@ Global
{A7CA9D3E-5247-4212-9E08-BDECBC63B8E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7CA9D3E-5247-4212-9E08-BDECBC63B8E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7CA9D3E-5247-4212-9E08-BDECBC63B8E1}.Release|Any CPU.Build.0 = Release|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E88ED3EB-27F2-4BAF-805F-EE25F810F4EA}.Release|Any CPU.Build.0 = Release|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2B479F2-5104-4ACB-BC8A-92422C9F3736}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C428FBAE-48E0-4C47-B9D2-688866714516} = {71570FFF-0BEA-4AF7-8288-9E46627EA676}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E0941456-4B6F-44D0-9A68-07E7D70D890F}
EndGlobalSection
Expand Down
11 changes: 0 additions & 11 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>

<VersionPrefix>0.1.0</VersionPrefix>

<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/adams85/acornima</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions benchmarks/Acornima.Benchmarks/Acornima.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net48;net8.0</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\src\Karambolo.Public.snk</AssemblyOriginatorKeyFile>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
10 changes: 8 additions & 2 deletions src/Acornima.Extras/Acornima.Extras.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<RootNamespace>Acornima</RootNamespace>
<TargetFrameworks>net6.0;net462;netstandard2.0;netstandard2.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<AssemblyTitle>Acornima.Extras</AssemblyTitle>
<Description>Additional features and utilities for the Acornima package.</Description>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageId>Acornima.Extras</PackageId>
<PackageTags>javascript, ecmascript, parser</PackageTags>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,8 +22,8 @@
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Acornima.Benchmarks" />
<InternalsVisibleTo Include="Acornima.Tests" />
<InternalsVisibleTo Include="Acornima.Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001009386e741f80212b92e6324bd2d5d89871d081fa41cce46ba30a3d3cae4be4935a92cf6c76a55e5192adad2235139d550816388bdad8a972a7a4eace42838c7694a0124c56174ff27690ba4d470c423ee72efac06decef995b89b6e936b59fe4c6ba88d3c2d3a34216221e1bf455faf1c3e88d93f37b0891b2fbbad9bf606d9ce" />
<InternalsVisibleTo Include="Acornima.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001009386e741f80212b92e6324bd2d5d89871d081fa41cce46ba30a3d3cae4be4935a92cf6c76a55e5192adad2235139d550816388bdad8a972a7a4eace42838c7694a0124c56174ff27690ba4d470c423ee72efac06decef995b89b6e936b59fe4c6ba88d3c2d3a34216221e1bf455faf1c3e88d93f37b0891b2fbbad9bf606d9ce" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/Acornima.Extras/AstToJsonConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ public void Convert(Node node)
{
Member("specifiers", node.Specifiers);
Member("source", node.Source);
// original Esprima doesn't include this information yet
if (node.Attributes.Count > 0)
{
Member("attributes", node.Attributes);
Expand Down
12 changes: 9 additions & 3 deletions src/Acornima/Acornima.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net462;netstandard2.0;netstandard2.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<AssemblyTitle>Acornima</AssemblyTitle>
<Description>A standard-compliant JavaScript parser, which is a fork of Esprima.NET combined with the .NET port of the acornjs parser.</Description>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageId>Acornima</PackageId>
<PackageTags>javascript, ecmascript, parser</PackageTags>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0'">
Expand All @@ -23,9 +29,9 @@
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Acornima.Benchmarks" />
<InternalsVisibleTo Include="Acornima.Extras" />
<InternalsVisibleTo Include="Acornima.Tests" />
<InternalsVisibleTo Include="Acornima.Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001009386e741f80212b92e6324bd2d5d89871d081fa41cce46ba30a3d3cae4be4935a92cf6c76a55e5192adad2235139d550816388bdad8a972a7a4eace42838c7694a0124c56174ff27690ba4d470c423ee72efac06decef995b89b6e936b59fe4c6ba88d3c2d3a34216221e1bf455faf1c3e88d93f37b0891b2fbbad9bf606d9ce" />
<InternalsVisibleTo Include="Acornima.Extras, PublicKey=00240000048000009400000006020000002400005253413100040000010001009386e741f80212b92e6324bd2d5d89871d081fa41cce46ba30a3d3cae4be4935a92cf6c76a55e5192adad2235139d550816388bdad8a972a7a4eace42838c7694a0124c56174ff27690ba4d470c423ee72efac06decef995b89b6e936b59fe4c6ba88d3c2d3a34216221e1bf455faf1c3e88d93f37b0891b2fbbad9bf606d9ce" />
<InternalsVisibleTo Include="Acornima.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001009386e741f80212b92e6324bd2d5d89871d081fa41cce46ba30a3d3cae4be4935a92cf6c76a55e5192adad2235139d550816388bdad8a972a7a4eace42838c7694a0124c56174ff27690ba4d470c423ee72efac06decef995b89b6e936b59fe4c6ba88d3c2d3a34216221e1bf455faf1c3e88d93f37b0891b2fbbad9bf606d9ce" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Acornima/Ast/NodeList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void Reset()
}

/// <remarks>
/// According to the <see cref="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerator-1.current#remarks">specification</see>,
/// According to the <see href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerator-1.current#remarks">specification</see>,
/// accessing <see cref="Current"/> before calling <see cref="MoveNext"/> or after <see cref="MoveNext"/> returning <see langword="false"/> is undefined behavior.
/// Thus, to maximize performance, this implementation doesn't do any null or range checks, just let the default exceptions occur on invalid access.
/// </remarks>
Expand Down
1 change: 1 addition & 0 deletions src/Acornima/Helpers/StringPool.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Acornima.Properties;
Expand Down
24 changes: 24 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<VersionPrefix>0.1.0</VersionPrefix>

<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\Karambolo.Public.snk</AssemblyOriginatorKeyFile>

<Authors>Adam Simon</Authors>
<Copyright>Adam Simon</Copyright>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/adams85/acornima</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591;$(NoWarn)</NoWarn>
</PropertyGroup>
</Project>
Binary file added src/Karambolo.Public.snk
Binary file not shown.
2 changes: 2 additions & 0 deletions test/Acornima.Tests/Acornima.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\src\Karambolo.Public.snk</AssemblyOriginatorKeyFile>
<DefaultItemExcludes>Fixtures.RegExp\Generator\**;$(DefaultItemExcludes)</DefaultItemExcludes>
</PropertyGroup>

Expand Down

0 comments on commit 0726c86

Please sign in to comment.