Skip to content

v3.0.0

Choose a tag to compare

@naman-contentstack naman-contentstack released this 13 Jul 10:32
· 29 commits to master since this release
8267582

What's Changed

Breaking Changes:
  • Removed Newtonsoft.Json dependency; all JSON serialisation now uses System.Text.Json (BCL)
  • Entry.ToJson(), Query.Count(), AssetLibrary.Count() now return JsonObject instead of JObject
  • AssetLibrary.Query(JsonObject) — parameter type changed from JObject to JsonObject
  • ContentType.Fetch(), GlobalField.Fetch(), GlobalFieldQuery.Find() now return JsonObject instead of JObject
  • SerializerSettingsSerializerOptions
  • Model classes use [JsonPropertyName] instead of [JsonProperty]
  • Requires .NET 10 or later
  • Updated contentstack.utils dependency to 2.0.0 (final, non-beta)
Feat:
  • Added Endpoint class for dynamic region-to-URL resolution via CDN-backed regions.json
  • Added ContentstackRegionMap to map ContentstackRegion enum to registry region IDs
  • Added GCP_EU region support
  • Added ApiErrorBodyParser for consistent API error envelope parsing
  • Added JsonNodeConversion and JsonObjectMerge utilities to replace Newtonsoft equivalents
  • Added ContentstackJsonDefaults — shared JsonSerializerOptions used across all custom converters
Enh:
  • Config.BaseUrl now resolves hosts from the regions registry; removed hardcoded regionCode() and HostURL
  • Replaced Console.WriteLine with Debug.WriteLine in ContentstackConvert to suppress parse warnings from application stdout
Chore:
  • Replaced refresh-region.cs with refresh-region.py — avoids MSBuild compiling the script as source
  • Added build/contentstack.csharp.targets to auto-deliver refresh-region.py to consumer projects on first build
  • Added Assets/regions.json to .gitignore
  • Added EndpointTest.cs
  • Updated .NET version in SCA scan CI from 7.0.x to 10.0.x

Full Changelog: v2.28.0...v3.0.0