You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+57-4Lines changed: 57 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,61 @@
1
+
## Migrating from v3 to v4
2
+
3
+
This changelog documents a breaking change to the `ISystemFields` interface, specifically related to the `publish_details` field.
4
+
5
+
## What Changed
6
+
7
+
The `publish_details` field is no longer an array of objects. It is now represented as a single `IPublishDetails` object.
8
+
9
+
This update aligns the generated types with the actual [Contentstack API](https://www.contentstack.com/docs/developers/apis/content-delivery-api) response.
10
+
11
+
## Before
12
+
13
+
```typescript
14
+
exportinterfaceISystemFields {
15
+
uid?:string;
16
+
created_at?:string;
17
+
updated_at?:string;
18
+
created_by?:string;
19
+
updated_by?:string;
20
+
_content_type_uid?:string;
21
+
tags?:string[];
22
+
ACL?:any[];
23
+
_version?:number;
24
+
_in_progress?:boolean;
25
+
locale?:string;
26
+
publish_details?:IPublishDetails[]; // Incorrect: Array of IPublishDetails
27
+
title?:string;
28
+
}
29
+
```
30
+
31
+
## After
32
+
33
+
```typescript
34
+
exportinterfaceISystemFields {
35
+
uid?:string;
36
+
created_at?:string;
37
+
updated_at?:string;
38
+
created_by?:string;
39
+
updated_by?:string;
40
+
_content_type_uid?:string;
41
+
tags?:string[];
42
+
ACL?:any[];
43
+
_version?:number;
44
+
_in_progress?:boolean;
45
+
locale?:string;
46
+
publish_details?:IPublishDetails; // Corrected: Single IPublishDetails object
47
+
title?:string;
48
+
}
49
+
```
50
+
51
+
---
52
+
1
53
## Migrating from v2 to v3
54
+
2
55
This document outlines the necessary changes to separate nested modular blocks into distinct interfaces. This update will affect how modular blocks are structured and used throughout the codebase.
0 commit comments