v3.0.0
·
29 commits
to master
since this release
What's Changed
Breaking Changes:
- Removed
Newtonsoft.Jsondependency; all JSON serialisation now usesSystem.Text.Json(BCL) Entry.ToJson(),Query.Count(),AssetLibrary.Count()now returnJsonObjectinstead ofJObjectAssetLibrary.Query(JsonObject)— parameter type changed fromJObjecttoJsonObjectContentType.Fetch(),GlobalField.Fetch(),GlobalFieldQuery.Find()now returnJsonObjectinstead ofJObjectSerializerSettings→SerializerOptions- Model classes use
[JsonPropertyName]instead of[JsonProperty] - Requires .NET 10 or later
- Updated
contentstack.utilsdependency to2.0.0(final, non-beta)
Feat:
- Added
Endpointclass for dynamic region-to-URL resolution via CDN-backedregions.json - Added
ContentstackRegionMapto mapContentstackRegionenum to registry region IDs - Added
GCP_EUregion support - Added
ApiErrorBodyParserfor consistent API error envelope parsing - Added
JsonNodeConversionandJsonObjectMergeutilities to replace Newtonsoft equivalents - Added
ContentstackJsonDefaults— sharedJsonSerializerOptionsused across all custom converters
Enh:
Config.BaseUrlnow resolves hosts from the regions registry; removed hardcodedregionCode()andHostURL- Replaced
Console.WriteLinewithDebug.WriteLineinContentstackConvertto suppress parse warnings from application stdout
Chore:
- Replaced
refresh-region.cswithrefresh-region.py— avoids MSBuild compiling the script as source - Added
build/contentstack.csharp.targetsto auto-deliverrefresh-region.pyto consumer projects on first build - Added
Assets/regions.jsonto.gitignore - Added
EndpointTest.cs - Updated .NET version in SCA scan CI from
7.0.xto10.0.x
Full Changelog: v2.28.0...v3.0.0