Skip to content

Commit 82d46f2

Browse files
Merge pull request #152 from Stillpoint-Software/fix-left-function-compare
Fix wrapping parenthesis filter parsing error
2 parents baab602 + 50ab30d commit 82d46f2

30 files changed

+287
-134
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,10 @@ FodyWeavers.xsd
395395
*.msp
396396

397397
# JetBrains Rider
398-
*.sln.iml
398+
*.sln.iml
399+
400+
# Claude AI assistant files
401+
.claude/
402+
claude.md
403+
**/claude-tasks.md
404+
**/baseline-benchmarks.md

Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2525
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2626
<PackageIcon>assets/icon.png</PackageIcon>
27-
<PackageReleaseNotes>https://github.com/Stillpoint-Software/PostgresTest/releases/latest</PackageReleaseNotes>
28-
<RepositoryUrl>https://github.com/Stillpoint-Software/PostgresTest</RepositoryUrl>
27+
<PackageReleaseNotes>https://github.com/Stillpoint-Software/hyperbee.json/releases/latest</PackageReleaseNotes>
28+
<RepositoryUrl>https://github.com/Stillpoint-Software/hyperbee.json</RepositoryUrl>
2929
<RepositoryType>git</RepositoryType>
30-
<PackageProjectUrl>https://github.com/Stillpoint-Software/PostgresTest</PackageProjectUrl>
30+
<PackageProjectUrl>https://stillpoint-software.github.io/hyperbee.json/</PackageProjectUrl>
3131
</PropertyGroup>
3232

3333
<!-- Pull README & LICENSE into the package root -->
@@ -42,7 +42,7 @@
4242
PackagePath="\"
4343
Link="LICENSE" />
4444
</ItemGroup>
45-
<!-- Global project properies -->
45+
<!-- Global project properties - .NET 10 LTS First Strategy -->
4646
<PropertyGroup>
4747
<ImplicitUsings>enable</ImplicitUsings>
4848
<!-- Primary target: .NET 10 (next LTS), with .NET 9 for current support, .NET 8 for compatibility -->

Hyperbee.Json.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="_" Suffix="" Style="aaBb" /&gt;&lt;/Policy&gt;</s:String>
3838
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=TypesAndNamespaces/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="I" Suffix="" Style="AaBb" /&gt;&lt;/Policy&gt;</s:String>
3939
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=15b5b1f1_002D457c_002D4ca6_002Db278_002D5615aedc07d3/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static readonly fields (private)"&gt;&lt;ElementKinds&gt;&lt;Kind Name="READONLY_FIELD" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="__" Suffix="" Style="aaBb" /&gt;&lt;/Policy&gt;&lt;/Policy&gt;</s:String>
40+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=2c62818f_002D621b_002D4425_002Dadc9_002D78611099bfcb/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Any" AccessRightKinds="Any" Description="Type parameters"&gt;&lt;ElementKinds&gt;&lt;Kind Name="TYPE_PARAMETER" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="AA_BB"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="Aa_bb" /&gt;&lt;/Policy&gt;&lt;/Policy&gt;</s:String>
4041
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=4a98fdf6_002D7d98_002D4f5a_002Dafeb_002Dea44ad98c70c/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"&gt;&lt;ElementKinds&gt;&lt;Kind Name="FIELD" /&gt;&lt;Kind Name="READONLY_FIELD" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="AaBb" /&gt;&lt;/Policy&gt;&lt;/Policy&gt;</s:String>
4142
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=53eecf85_002Dd821_002D40e8_002Dac97_002Dfdb734542b84/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Instance" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Instance fields (not private)"&gt;&lt;ElementKinds&gt;&lt;Kind Name="FIELD" /&gt;&lt;Kind Name="READONLY_FIELD" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="_" Suffix="" Style="aaBb" /&gt;&lt;/Policy&gt;&lt;/Policy&gt;</s:String>
4243
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/UserRules/=70345118_002D4b40_002D4ece_002D937c_002Dbbeb7a0b2e70/@EntryIndexedValue">&lt;Policy&gt;&lt;Descriptor Staticness="Static" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Static fields (not private)"&gt;&lt;ElementKinds&gt;&lt;Kind Name="FIELD" /&gt;&lt;/ElementKinds&gt;&lt;/Descriptor&gt;&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"&gt;&lt;ExtraRule Prefix="_" Suffix="" Style="aaBb" /&gt;&lt;/Policy&gt;&lt;/Policy&gt;</s:String>

NuGet.Config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
5+
</packageSources>
6+
7+
<!-- Package source mapping for Central Package Management -->
8+
<packageSourceMapping>
9+
<packageSource key="nuget.org">
10+
<package pattern="Microsoft.*" />
11+
<package pattern="System.*" />
12+
<package pattern="*" />
13+
</packageSource>
14+
</packageSourceMapping>
15+
</configuration>

docs/.todo.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/docs.projitems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<Import_RootNamespace>docs</Import_RootNamespace>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<None Include="$(MSBuildThisFileDirectory).todo.md" />
1312
<None Include="$(MSBuildThisFileDirectory)additional-classes.md" />
1413
<None Include="$(MSBuildThisFileDirectory)index.md" />
1514
<None Include="$(MSBuildThisFileDirectory)jsonpatch.md" />

src/Hyperbee.Json/Dynamic/DynamicJsonElement.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override bool TryGetIndex( GetIndexBinder binder, object[] indexes, out o
4343
return true;
4444
}
4545

46-
result = null;
46+
result = null!;
4747
return false;
4848
}
4949

@@ -60,7 +60,7 @@ public override bool TryGetMember( GetMemberBinder binder, out object result )
6060
}
6161
}
6262

63-
result = null;
63+
result = null!;
6464
return false;
6565
}
6666

@@ -74,7 +74,7 @@ public override bool TryInvokeMember( InvokeMemberBinder binder, object[] args,
7474
return true;
7575
}
7676

77-
result = null;
77+
result = null!;
7878
return false;
7979
}
8080

src/Hyperbee.Json/Dynamic/DynamicJsonNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public override bool TryGetIndex( GetIndexBinder binder, object[] indexes, out o
3939
return true;
4040
}
4141

42-
result = null;
42+
result = null!;
4343
return false;
4444
}
4545

@@ -57,7 +57,7 @@ public override bool TryGetMember( GetMemberBinder binder, out object result )
5757
result = new DynamicJsonNode( ref arrayValue );
5858
return true;
5959
default:
60-
result = null;
60+
result = null!;
6161
return false;
6262
}
6363
}
@@ -86,7 +86,7 @@ public override bool TryInvokeMember( InvokeMemberBinder binder, object[] args,
8686
return true;
8787
}
8888

89-
result = null;
89+
result = null!;
9090
return false;
9191
}
9292

src/Hyperbee.Json/Hyperbee.Json.csproj

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<IsPackable>true</IsPackable>
4-
<Authors>Stillpoint Software, Inc.</Authors>
5-
<PackageId>Hyperbee.Json</PackageId>
6-
<PackageReadmeFile>README.md</PackageReadmeFile>
7-
<PackageTags>json-path;jsonpath;json-pointer;jsonpointer;json-patch;jsonpatch;query;path;patch;diff;json;rfc9535;rfc6901;rfc6902</PackageTags>
8-
<PackageIcon>icon.png</PackageIcon>
9-
<PackageProjectUrl>https://stillpoint-software.github.io/hyperbee.json/</PackageProjectUrl>
10-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
11-
<Copyright>Stillpoint Software, Inc.</Copyright>
12-
<Title>Hyperbee Json</Title>
13-
<Description>A high-performance JSON library for System.Text.Json JsonElement and JsonNode, providing robust support for JSONPath, JsonPointer, JsonPatch, and JsonDiff.</Description>
14-
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Json</RepositoryUrl>
15-
<RepositoryType>git</RepositoryType>
16-
<PackageReleaseNotes>https://github.com/Stillpoint-Software/Hyperbee.Json/releases/latest</PackageReleaseNotes>
17-
18-
</PropertyGroup>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<IsPackable>true</IsPackable>
4+
<Authors>Stillpoint Software, Inc.</Authors>
5+
<PackageId>Hyperbee.Json</PackageId>
6+
<PackageReadmeFile>README.md</PackageReadmeFile>
7+
<PackageTags>json-path;jsonpath;json-pointer;jsonpointer;json-patch;jsonpatch;query;path;patch;diff;json;rfc9535;rfc6901;rfc6902</PackageTags>
8+
<PackageIcon>icon.png</PackageIcon>
9+
<PackageProjectUrl>https://stillpoint-software.github.io/hyperbee.json/</PackageProjectUrl>
10+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
11+
<Copyright>Stillpoint Software, Inc.</Copyright>
12+
<Title>Hyperbee Json</Title>
13+
<Description>A high-performance JSON library for System.Text.Json JsonElement and JsonNode, providing robust support for JSONPath, JsonPointer, JsonPatch, and JsonDiff.</Description>
14+
<RepositoryUrl>https://github.com/Stillpoint-Software/Hyperbee.Json</RepositoryUrl>
15+
<RepositoryType>git</RepositoryType>
16+
<PackageReleaseNotes>https://github.com/Stillpoint-Software/Hyperbee.Json/releases/latest</PackageReleaseNotes>
17+
</PropertyGroup>
1918
<ItemGroup>
2019
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2120
<_Parameter1>$(AssemblyName).Tests</_Parameter1>

src/Hyperbee.Json/Path/Filters/Parser/Expressions/FunctionExpressionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal class FunctionExpressionFactory : IExpressionFactory
88
public static bool TryGetExpression<TNode>( ref ParserState state, out Expression expression, out CompareConstraint compareConstraint, ITypeDescriptor<TNode> descriptor )
99
{
1010
compareConstraint = CompareConstraint.None;
11-
expression = null;
11+
expression = null!;
1212

1313
if ( state.Item.IsEmpty || !char.IsLetter( state.Item[0] ) )
1414
{

0 commit comments

Comments
 (0)