Skip to content

Commit cda02c3

Browse files
committed
AUS-1025: release 2.0.0
Version text only, per the final checklist: VersionSuffix removed and PackageReleaseNotes rewritten in the four csproj; the CHANGELOG heading is dated; the --prerelease and 2.0.0-preview.3 text is gone from the README, the package READMEs and the reference page, and the preview badge from the README header; the two "(preview.3)" markers in the Changed entries are dropped. The scripts default to 2.0.0. docs/api-surface/2.0.0.txt is the surface of the release build; it differs from the frozen 2.0.0-preview.3 file in the four informational-version lines only.
1 parent 9b57f47 commit cda02c3

14 files changed

Lines changed: 634 additions & 28 deletions

File tree

‎.github/scripts/api_surface/ApiSurface.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>disable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<JsonRpcVersion Condition="'$(JsonRpcVersion)' == ''">2.0.0-preview.3</JsonRpcVersion>
7+
<JsonRpcVersion Condition="'$(JsonRpcVersion)' == ''">2.0.0</JsonRpcVersion>
88
<NoWarn>$(NoWarn);CS0618;JSONRPC0001;JSONRPC0002;JSONRPC0003</NoWarn>
99
</PropertyGroup>
1010
<ItemGroup>

‎.github/scripts/check_package_links.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Handler.UnRegisterFunction and Config.SetBeforeProcessHandler as the published assembly carries it, formats each
99
UrlFormat with its DiagnosticId, requests the page and asserts the anchor id is in the HTML.
1010
11-
Usage: python3 .github/scripts/check_package_links.py 2.0.0-preview.3 [--keep] (exit 1 on any failure)
11+
Usage: python3 .github/scripts/check_package_links.py 2.0.0 [--keep] (exit 1 on any failure)
1212
1313
The check runs against nuget.org, so it is a release step (after the publish workflow has run and the flat
1414
container lists the version, which lags the push by a few minutes), not a pull-request gate.

‎AustinHarris.JsonRpc.AspNetCore/AustinHarris.JsonRpc.AspNetCore.csproj‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<Product>Json-Rpc.Net ASP.NET Core host</Product>
77
<Description>ASP.NET Core hosting for AustinHarris.JsonRpc. Adds HTTP endpoints and raw Kestrel connections over TCP, Unix sockets and named pipes, with dependency injection.</Description>
88
<VersionPrefix>2.0.0</VersionPrefix>
9-
<VersionSuffix>preview.3</VersionSuffix>
10-
<PackageReleaseNotes>2.0.0-preview.3, released with the core package: strong-named assemblies and the error-handler change. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
9+
<PackageReleaseNotes>2.0.0, released with the core package. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
1110
<Copyright>Austin Harris</Copyright>
1211
<PackageProjectUrl>https://astn.github.io/JSON-RPC.NET/aspnetcore.html</PackageProjectUrl>
1312
<RepositoryUrl>https://github.com/Astn/JSON-RPC.NET</RepositoryUrl>

‎AustinHarris.JsonRpc.AspNetCore/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ without converting the document to a string.
1111
## Install
1212

1313
```sh
14-
dotnet add package AustinHarris.JsonRpc.AspNetCore --prerelease
14+
dotnet add package AustinHarris.JsonRpc.AspNetCore
1515
```
1616

1717
Targets `net8.0` and `net10.0`; depends on the `AustinHarris.JsonRpc` core package and the ASP.NET Core shared

‎AustinHarris.JsonRpc.Newtonsoft/AustinHarris.JsonRpc.Newtonsoft.csproj‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<Product>Json-Rpc.Net Json.NET serializer</Product>
77
<Description>Json.NET serializer for AustinHarris.JsonRpc. Uses JsonSerializerSettings for converters, contract resolvers and lenient JSON input.</Description>
88
<VersionPrefix>2.0.0</VersionPrefix>
9-
<VersionSuffix>preview.3</VersionSuffix>
10-
<PackageReleaseNotes>2.0.0-preview.3, released with the core package: strong-named assemblies and the error-handler change. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
9+
<PackageReleaseNotes>2.0.0, released with the core package. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
1110
<Copyright>Austin Harris</Copyright>
1211
<PackageProjectUrl>https://astn.github.io/JSON-RPC.NET/newtonsoft.html</PackageProjectUrl>
1312
<RepositoryUrl>https://github.com/Astn/JSON-RPC.NET</RepositoryUrl>

‎AustinHarris.JsonRpc.Newtonsoft/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Configure parameter and result conversion with `JsonSerializerSettings`.
1010
## Install
1111

1212
```sh
13-
dotnet add package AustinHarris.JsonRpc.Newtonsoft --prerelease
13+
dotnet add package AustinHarris.JsonRpc.Newtonsoft
1414
```
1515

1616
Targets `netstandard2.0`, `netstandard2.1`, `net8.0` and `net10.0`; depends on Newtonsoft.Json 13.0.4 and the

‎AustinHarris.JsonRpc.SystemTextJson/AustinHarris.JsonRpc.SystemTextJson.csproj‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<Product>Json-Rpc.Net System.Text.Json serializer</Product>
77
<Description>System.Text.Json serializer for AustinHarris.JsonRpc. Reads UTF-8 parameters and writes results directly to the response buffer, configured with JsonSerializerOptions.</Description>
88
<VersionPrefix>2.0.0</VersionPrefix>
9-
<VersionSuffix>preview.3</VersionSuffix>
10-
<PackageReleaseNotes>2.0.0-preview.3, released with the core package: strong-named assemblies and the error-handler change. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
9+
<PackageReleaseNotes>2.0.0, released with the core package. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
1110
<Copyright>Austin Harris</Copyright>
1211
<PackageProjectUrl>https://astn.github.io/JSON-RPC.NET/systemtextjson.html</PackageProjectUrl>
1312
<RepositoryUrl>https://github.com/Astn/JSON-RPC.NET</RepositoryUrl>

‎AustinHarris.JsonRpc.SystemTextJson/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ response buffer.
1111
## Install
1212

1313
```sh
14-
dotnet add package AustinHarris.JsonRpc.SystemTextJson --prerelease
14+
dotnet add package AustinHarris.JsonRpc.SystemTextJson
1515
```
1616

1717
Targets `netstandard2.0`, `netstandard2.1`, `net8.0` and `net10.0`; depends on System.Text.Json 10.0.3 and the

‎CHANGELOG.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ the package pages on NuGet link here.
88
Versions follow [Semantic Versioning](https://semver.org/) for the public API and the documented wire
99
behaviour: a breaking change to either means a new major version.
1010

11-
## 2.0.0 (in preview: `2.0.0-preview.3`)
11+
## 2.0.0 (2026-09-28)
1212

1313
### Added
1414

@@ -34,8 +34,8 @@ behaviour: a breaking change to either means a new major version.
3434

3535
### Changed
3636

37-
- The four assemblies are strong-named (preview.3). One key, `AustinHarris.JsonRpc.snk` at the repository root, signs the packages and the friend assemblies, and stays the same from here on: changing a strong-name key changes the assembly identity. Public key token `e6819c02cf4aec44`. A signed caller can now reference the packages without CS8002, and .NET Framework loads them from a signed assembly.
38-
- An error handler receives the exception the method threw (preview.3). Previously the library replaced an exception that had an `InnerException` with that inner exception, and promoted an inner `JsonRpcException` to the response, so a handler saw the cause instead of the error and an authored outer error lost its message. Now only the wrappers the invocation machinery adds are stripped, a `TargetInvocationException` and a single-inner `AggregateException`, on the synchronous and asynchronous paths alike; everything else, inner exception included, reaches the handler as thrown.
37+
- The four assemblies are strong-named. One key, `AustinHarris.JsonRpc.snk` at the repository root, signs the packages and the friend assemblies, and stays the same from here on: changing a strong-name key changes the assembly identity. Public key token `e6819c02cf4aec44`. A signed caller can now reference the packages without CS8002, and .NET Framework loads them from a signed assembly.
38+
- An error handler receives the exception the method threw. Previously the library replaced an exception that had an `InnerException` with that inner exception, and promoted an inner `JsonRpcException` to the response, so a handler saw the cause instead of the error and an authored outer error lost its message. Now only the wrappers the invocation machinery adds are stripped, a `TargetInvocationException` and a single-inner `AggregateException`, on the synchronous and asynchronous paths alike; everything else, inner exception included, reaches the handler as thrown.
3939
- `RpcMethod.FromMethod` is `RpcMethod.FromMethodInfo`; `RpcInterfaceMethod.Method` is `RpcInterfaceMethod.MethodInfo`. A `MethodInfo` is always spelled out; "method" means the JSON-RPC method.
4040
- The session parameter is spelled `sessionId` on every overload (`BindService`, `Handler.RegisterInstance` and the `JsonRpcService` constructor used `sessionID`).
4141
- `Handler.RegisterFuction` and `UnRegisterFunction` are obsolete; use `ServiceBinder.BindMethod` and `UnbindMethod` (which throw on a duplicate name instead of replacing it).

‎Json-Rpc/AustinHarris.JsonRpc.csproj‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
<Product>Json-Rpc.Net Core</Product>
77
<Description>High-throughput JSON-RPC 2.0 server library for .NET Standard 2.0 through .NET 10: UTF-8 bytes in and out, no JSON library dependency, with Json.NET, System.Text.Json and ASP.NET Core hosting as companion packages.</Description>
88
<VersionPrefix>2.0.0</VersionPrefix>
9-
<VersionSuffix>preview.3</VersionSuffix>
109
<Copyright>Austin Harris</Copyright>
1110
<PackageProjectUrl>https://astn.github.io/JSON-RPC.NET/</PackageProjectUrl>
1211
<RepositoryUrl>https://github.com/Astn/JSON-RPC.NET</RepositoryUrl>
1312
<RepositoryType>git</RepositoryType>
1413
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1514
<PackageReadmeFile>README.md</PackageReadmeFile>
1615
<PackageTags>json-rpc;jsonrpc;json;rpc;server;netstandard;netstandard2.0;netstandard2.1;net8.0;net10.0;kestrel;pipelines;system.text.json;json.net;fast</PackageTags>
17-
<PackageReleaseNotes>2.0.0-preview.3: the four assemblies are strong-named with one key that stays fixed from here on, and an error handler now receives the exception the method threw, with its cause attached, instead of that exception's inner exception. preview.2 brought document and batch limits on by default (JsonRpcLimits), reserved method names refused at registration, InProcessClient removed, diagnostic ids on the obsolete members, and the documentation site. Since preview.1 the request pipeline is built around UTF-8 bytes, the JSON serializer is pluggable and Task and ValueTask methods are supported again, at six times the throughput of 1.2.3 through the 1.x string API and twenty-four times through the byte entry points, measured on a 32-core Hugging Face Jobs host (see the README). What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
16+
<PackageReleaseNotes>2.0.0: the request pipeline is built around UTF-8 bytes (ReadOnlySequence, ReadOnlyMemory or ReadOnlySpan in, IBufferWriter out), the JSON serializer is pluggable with the built-in serializer as the default and Json.NET and System.Text.Json as packages, and Task and ValueTask methods are supported again through ProcessAsync with cooperative cancellation. Document and batch limits are on by default (JsonRpcLimits), reserved method names are refused at registration, unknown named parameters are rejected, an error handler receives the exception the method threw, and the four assemblies are strong-named with one key that stays fixed from here on. Six times the throughput of 1.2.3 through the 1.x string API and twenty-four times through the byte entry points, measured on a 32-core Hugging Face Jobs host (see the README). InProcessClient is removed; three legacy members are obsolete at warning level with diagnostic ids JSONRPC0001 to JSONRPC0003. What is new: https://astn.github.io/JSON-RPC.NET/changelog.html. Upgrading from 1.x: https://astn.github.io/JSON-RPC.NET/upgrading.html</PackageReleaseNotes>
1817
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net10.0</TargetFrameworks>
1918
<LangVersion>latest</LangVersion>
2019
<GenerateDocumentationFile>true</GenerateDocumentationFile>

0 commit comments

Comments
 (0)