diff --git a/CHANGELOG.md b/CHANGELOG.md index ad31b6f..d383155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ### Version: 1.0.0 -#### Date: +#### Date: July-13-2026 ##### Breaking Changes: - Removed the `Newtonsoft.Json` dependency entirely. Both the tool's internals and the models/converters it generates now use `System.Text.Json`. diff --git a/README.md b/README.md index 70b6a2a..8641578 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,17 @@ This utility is use to generate models based on ContentTypes in Stack. ## Requirements **As of v1.0.0**, this tool targets **.NET 10.0** and requires the **.NET 10.0 SDK or later**. Versions prior to v1.0.0 targeted .NET 7.0. +### Compatibility +Since v1.0.0, generated model files use `System.Text.Json` instead of `Newtonsoft.Json`. Because generated code references `Contentstack.Core.Models` and `Contentstack.Utils.Interfaces` / `ContentstackHelper` directly, your consuming project must reference System.Text.Json-based SDK versions for the generated code to compile: + +| Package | Minimum Version | +|---|---| +| `contentstack.csharp` (Delivery SDK) | `3.0.0` | +| `contentstack.management.csharp` (Management SDK) | `1.0.0` | +| `contentstack.utils` | `2.0.0` | + +Generating models into a project still referencing pre-3.0.0 / pre-1.0.0 / pre-2.0.0 (Newtonsoft-based) SDK versions will produce code that fails to compile. + ## Installation To install Contenstack model generator run following command: ``` diff --git a/contentstack.model.generator/contentstack.model.generator.csproj b/contentstack.model.generator/contentstack.model.generator.csproj index 6ab2556..1347695 100644 --- a/contentstack.model.generator/contentstack.model.generator.csproj +++ b/contentstack.model.generator/contentstack.model.generator.csproj @@ -13,15 +13,15 @@ true ./nupkg true - 1.0.0-beta.1 + 1.0.0 Contentstack - 1.0.0-beta.1 + 1.0.0 Contentstack.Model.Generator LICENSE.txt - Improved Error messages + See CHANGELOG.md for full release notes. true true - v0.5.1 + contentstack;model-generator;codegen;cli;dotnet-tool;csharp;net10;system-text-json;cms;headless-cms Release;Debug