Skip to content

Commit

Permalink
Merge pull request AngleSharp#72 from AngleSharp/devel
Browse files Browse the repository at this point in the history
Release 0.16.0
  • Loading branch information
FlorianRappl authored Jun 12, 2021
2 parents 3c0be24 + 133c64d commit 03dbf9b
Show file tree
Hide file tree
Showing 25 changed files with 38 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.16.0

Released on Sunday, June 13 2021.

- Updated to use AngleSharp 0.16

# 0.15.1

Release on Sunday, June 6 2021.
Expand Down
6 changes: 3 additions & 3 deletions src/AngleSharp.Css.Tests/AngleSharp.Css.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
<IsPackable>false</IsPackable>
<LangVersion>7.1</LangVersion>
<LangVersion>9.0</LangVersion>
<AssemblyName>AngleSharp.Css.Tests</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <!-- https://github.com/Tyrrrz/GitHubActionsTestLogger/issues/5 -->
</PropertyGroup>
Expand All @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AngleSharp.Xml" Version="0.15.0" />
<PackageReference Include="AngleSharp.Xml" Version="0.16.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css.Tests/Functions/CssDocumentFunction.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Tests.Functions
{
using AngleSharp.Css.Dom;
using AngleSharp.Dom;
using NUnit.Framework;
using System.Linq;
using static CssConstructionFunctions;
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css.Tests/Mocks/PageRequester.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Tests.Mocks
{
using AngleSharp.Dom;
using AngleSharp.Io;
using AngleSharp.Text;
using System;
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css.Tests/Mocks/SiteMapping.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Tests.Mocks
{
using AngleSharp.Dom;
using AngleSharp.Xml;
using AngleSharp.Xml.Dom;
using AngleSharp.Xml.Parser;
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css.Tests/Parsing/CssTokenization.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Tests.Parsing
{
using AngleSharp.Css.Parser;
using AngleSharp.Dom;
using AngleSharp.Text;
using NUnit.Framework;

Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css.Tests/Rules/CssImportRule.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Tests.Rules
{
using AngleSharp.Dom;
using NUnit.Framework;
using static CssConstructionFunctions;

Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Css.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<copyright>Copyright 2016-2021, AngleSharp</copyright>
<tags>html html5 css css3 dom styling library anglesharp angle</tags>
<dependencies>
<dependency id="AngleSharp" version="0.15.0" />
<dependency id="AngleSharp" version="0.16.0" />
</dependencies>
</metadata>
</package>
4 changes: 2 additions & 2 deletions src/AngleSharp.Css/AngleSharp.Css.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>7.1</LangVersion>
<LangVersion>9.0</LangVersion>
<RepositoryUrl>https://github.com/AngleSharp/AngleSharp.Css</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="0.15.0" />
<PackageReference Include="AngleSharp" Version="0.16.0" />
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Css/Dom/CssHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static String Escape(String str)
continue;
}
else if (ch < 0x80 &&
!ch.IsOneOf(Symbols.Minus,Symbols.Underscore) &&
!(ch is Symbols.Minus or Symbols.Underscore) &&
!ch.IsAlphanumericAscii())
{
sb.Append(Symbols.ReverseSolidus);
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Dom/IDocumentFunction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Dom;
using System;

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Dom/Internal/DocumentFunction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Dom;
using AngleSharp.Text;
using System;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Css;
using AngleSharp.Dom;
using AngleSharp.Text;
using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Css;
using AngleSharp.Dom;
using System;
using System.Text.RegularExpressions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Css;
using AngleSharp.Dom;
using System;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Css;
using AngleSharp.Dom;
using System;

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Extensions/ValidationExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AngleSharp.Css.Dom
{
using AngleSharp.Dom;
using System;
using System.Linq;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css
{
using AngleSharp.Css.Dom;
using AngleSharp.Dom;
using System;
using System.Collections.Generic;

Expand Down
7 changes: 4 additions & 3 deletions src/AngleSharp.Css/Parser/CssTokenizer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace AngleSharp.Css.Parser
{
using AngleSharp.Common;
using AngleSharp.Dom;
using AngleSharp.Css.Dom.Events;
using AngleSharp.Css.Parser.Tokens;
using AngleSharp.Text;
Expand Down Expand Up @@ -65,7 +66,7 @@ public String ContentFrom(Int32 position)
var current = Current;
var spaced = 0;

while (!current.IsOneOf(Symbols.EndOfFile, Symbols.Semicolon, Symbols.CurlyBracketOpen, Symbols.CurlyBracketClose))
while (!(current is Symbols.EndOfFile or Symbols.Semicolon or Symbols.CurlyBracketOpen or Symbols.CurlyBracketClose))
{
var token = Data(current);

Expand Down Expand Up @@ -762,7 +763,7 @@ private CssToken NumberStart(Char current)
{
while (true)
{
if (current.IsOneOf(Symbols.Plus, Symbols.Minus))
if (current is Symbols.Plus or Symbols.Minus)
{
StringBuffer.Append(current);
current = GetNext();
Expand Down Expand Up @@ -1099,7 +1100,7 @@ private CssToken UrlUQ(Char current)
{
return NewUrl(FlushBuffer(), bad: true);
}
else if (current.IsOneOf(Symbols.DoubleQuote, Symbols.SingleQuote, Symbols.RoundBracketOpen) || current.IsNonPrintable())
else if (current is Symbols.DoubleQuote or Symbols.SingleQuote or Symbols.RoundBracketOpen || current.IsNonPrintable())
{
RaiseErrorOccurred(CssParseError.InvalidCharacter);
return UrlBad();
Expand Down
4 changes: 2 additions & 2 deletions src/AngleSharp.Css/Parser/Micro/CssUriParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ private static CssUrlValue Unquoted(StringSource source)
{
return End(source, buffer);
}
else if (current.IsOneOf(Symbols.RoundBracketClose, Symbols.EndOfFile))
else if (current is Symbols.RoundBracketClose or Symbols.EndOfFile)
{
source.Next();
return new CssUrlValue(buffer.ToPool());
}
else if (current.IsOneOf(Symbols.DoubleQuote, Symbols.SingleQuote, Symbols.RoundBracketOpen) || current.IsNonPrintable())
else if (current is Symbols.DoubleQuote or Symbols.SingleQuote or Symbols.RoundBracketOpen || current.IsNonPrintable())
{
return Bad(source, buffer);
}
Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Css/Parser/Micro/UnitParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private static Unit UnitStart(StringSource source)
{
var current = source.Current;

if (current.IsOneOf(Symbols.Plus, Symbols.Minus))
if (current is Symbols.Plus or Symbols.Minus)
{
var next = source.Next();

Expand Down
4 changes: 2 additions & 2 deletions src/AngleSharp.Css/Parser/StringSourceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AngleSharp.Css.Parser
namespace AngleSharp.Css.Parser
{
using AngleSharp.Text;
using System;
Expand Down Expand Up @@ -42,7 +42,7 @@ public static String TakeUntilClosed(this StringSource source)
current = source.SkipCssComment();
continue;
}
else if (current.IsOneOf(Symbols.SingleQuote, Symbols.DoubleQuote))
else if (current is Symbols.SingleQuote or Symbols.DoubleQuote)
{
source.ParseString();
current = source.Current;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="Alba.CsCss" version="1.0.1.0" />
<PackageReference Include="AngleSharp" Version="0.15.0" />
<PackageReference Include="AngleSharp" Version="0.16.0" />
<PackageReference Include="ExCSS" version="2.0.6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<Description>Extends the CSSOM from the core AngleSharp library.</Description>
<Product>AngleSharp.Css</Product>
<Version>0.15.1</Version>
<Version>0.16.0</Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion tools/anglesharp.cake
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Task("Publish-Release")
Name = version,
Body = String.Join(Environment.NewLine, releaseNotes.Notes),
Prerelease = false,
TargetCommitish = "master",
TargetCommitish = "main",
}).Wait();
});

Expand Down

0 comments on commit 03dbf9b

Please sign in to comment.