|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -## [v1.0.0-beta.1](https://github.com/contentstack/contentstack-management-dotnet/tree/v1.0.0-beta.1) |
| 3 | +## [v1.0.0-beta.1](https://github.com/contentstack/contentstack-management-dotnet/tree/v1.0.0-beta.1)(2026-06-15) |
4 | 4 | - **Feat** |
5 | 5 | - **Branch support** |
6 | 6 | - Added `Branch` model with `Create`, `CreateAsync`, `Fetch`, `FetchAsync`, `Delete`, `DeleteAsync`, and `Query` operations |
7 | | - - Added `BranchModel` and `BranchAliasModel` with System.Text.Json serialization |
8 | 7 | - `Stack.Branch(uid?)` accessor follows the same pattern as other stack resources |
9 | | - - Added unit tests (`BranchTest`) covering resource path, SDK guard conditions, and query parameter construction |
10 | | - - Added integration tests (`Contentstack005_BranchTest`) covering CRUD lifecycle, query with pagination, SDK validation errors, and API error scenarios |
11 | | - - **Webhook migration to System.Text.Json** |
12 | | - - Migrated `WebhookModel` to use `System.Text.Json` attributes |
13 | | - - **Workflow migration to System.Text.Json** |
14 | | - - Migrated `WorkflowModel` to use `System.Text.Json` attributes |
15 | 8 | - **Breaking Change** |
16 | | - - **System.Text.Json Migration (Beta)** |
17 | | - - Migrated core serialization from Newtonsoft.Json to System.Text.Json |
18 | | - - Updated ContentstackClient, ContentstackResponse, and core HTTP handling |
19 | | - - Added backward compatibility for IResponse interface with both JsonObject and JObject support |
20 | | - - Migrated core modules including Client, User, Organization, Stack, ContentType, Assets, Environment, Global Field, Entry, Entry Variant, and Variant Group to System.Text.Json |
21 | | - - Re-enabled previously excluded modules and Stack methods including Asset(), Environment(), GlobalField(), and VariantGroup() |
22 | | - - Migrated QueryService and related service layers to use JsonSerializerOptions and Utf8JsonWriter |
23 | | - - Updated constructors, response handling, and serialization services across modules |
24 | | - - Migrated field system models, content modelling classes, and variant group integrations |
25 | | - - Enhanced variant group API integration with proper content type linking |
26 | | - - Added OpenJsonObjectResponse() support for STJ-based JSON parsing |
27 | | - - Improved error handling with enhanced API validation messages |
28 | | - - Added schema validation improvements including default Title field handling |
29 | | - - Improved JSON serialization performance and reduced memory footprint |
30 | | - - Reduced Newtonsoft.Json dependency while maintaining backward compatibility for non-migrated functionality |
31 | | - - Added comprehensive STJ migration testing and validation infrastructure |
32 | | - - Added/updated unit and integration test coverage for all migrated modules including Client, User, Organization, Stack, ContentType, Assets, Environment, Global Field, Entry, Entry Variant, and Variant Group |
33 | | - - Migrated Locale and Bulk Operations modules to System.Text.Json |
34 | | - - Re-enabled `Stack.Locale()` and `Stack.BulkOperation()` methods |
35 | | - - Migrated all Bulk Operation services (Publish, Unpublish, Delete, AddItems, UpdateItems, ReleaseItems, WorkflowUpdate) to STJ |
36 | | - - Migrated `LocaleModel` and `BulkOperationModels` to use `System.Text.Json` attributes |
37 | | - - Added/updated unit and integration test coverage for Locale and Bulk Operations |
38 | | - - Upgraded target framework to .NET 10 and removed all build warnings |
39 | | - - Remaining modules migrated and re-enabled — `AuditLog`, `Extension`, `Label`, `Role`, `Taxonomy`, `Term`, `Webhook`, `DeliveryToken`, `ManagementToken`, and `CustomExtension` fully re-enabled with STJ attributes; all corresponding `Stack.*()` accessor methods restored |
40 | | - - All `[JsonProperty]` replaced with `[JsonPropertyName]` across all model classes; `[JsonObject(ItemNullValueHandling)]` removed in favour of global `DefaultIgnoreCondition = WhenWritingNull` |
41 | | - - OAuth module enabled — `OAuthHandler`, `OAuthTokenService`, `OAuthAppAuthorizationService`, and `OAuthAppRevocationService` now active; auto token refresh wired into `InvokeAsync` pipeline via `EnsureOAuthTokenIsValidAsync` |
42 | | - - CustomWidgetModel scope serialization migrated from `JsonTextWriter` to `System.Text.Json.JsonSerializer.Serialize()` |
43 | | - - Asset extension upload tests — 3 previously skipped tests (`Test002_Should_Create_Dashboard`, `Test003_Should_Create_Custom_Widget`, `Test004_Should_Create_Custom_field`) now have real implementations |
44 | | - - Unit test coverage expanded — 991 → 1,242 passing tests; 24 previously excluded test files re-enabled covering AuditLog, Extension, Label, Role, Taxonomy, Term, Webhook, DeliveryToken, CustomExtension, and all infrastructure tests (HTTP pipeline, converters, runtime contexts, utilities) |
45 | | - - Integration test coverage expanded — 4 previously excluded integration test files re-enabled: ContentType Expanded (`Contentstack012b`), DeliveryToken (`Contentstack016`), Taxonomy (`Contentstack017`), Role (`Contentstack019`) |
46 | | - |
47 | | -## [v0.10.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.9.0) |
| 9 | + - **Complete migration from Newtonsoft.Json to System.Text.Json** |
| 10 | + - `Newtonsoft.Json` is no longer a dependency — remove it from your project once your own code no longer references it directly |
| 11 | + - `client.SerializerSettings` (`JsonSerializerSettings`) replaced by `client.SerializerOptions` (`JsonSerializerOptions`) |
| 12 | + - `response.OpenJObjectResponse()` removed — use `response.OpenJsonObjectResponse()` (`JsonObject`) or `response.OpenTResponse<T>()` instead |
| 13 | + - `JObjectParameterValue` now accepts `System.Text.Json.Nodes.JsonNode` instead of `Newtonsoft.Json.Linq.JObject` |
| 14 | + - All `[JsonProperty]` attributes replaced with `[JsonPropertyName]`; `[JsonObject(ItemNullValueHandling)]` removed in favour of `DefaultIgnoreCondition = WhenWritingNull` on `SerializerOptions` |
| 15 | + - All modules fully migrated to System.Text.Json: AuditLog, Branch, BulkOperation, ContentType, DeliveryToken, Entry, EntryVariant, Environment, Extension, GlobalField, Label, Locale, ManagementToken, Organization, Release, Role, Stack, Taxonomy, Term, User, VariantGroup, Webhook, and Workflow |
| 16 | + - OAuth auto token refresh wired into the request pipeline |
| 17 | + - Upgraded target framework to .NET 10 |
| 18 | + |
| 19 | +## [v0.10.0](https://github.com/contentstack/contentstack-management-dotnet/tree/v0.10.0) |
48 | 20 | - Feat |
49 | 21 | - **Enhanced Error Handling and Test Coverage (DX-5436)** |
50 | 22 | - Added comprehensive error handling across all models with enhanced `ContentstackErrorException` |
|
0 commit comments