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: packages/kitsu-core/MIGRATING.md
+156-8Lines changed: 156 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,153 @@
1
1
# Migration Guides
2
2
3
+
## Migrating to `10.0.0`
4
+
5
+
`serialise` has been refactored to match the v9 `deserialise` behaviour. This was intended for the v9 release, however it slipped though the net and resulted in broken relationship serialisation in v9.
6
+
7
+
Relationships given to the `serialise` function are now always an object containing either a `data` object or a `data` array. This allows for optional top-level relationship `links` and `meta` objects to be serialised into the JSON:API format.
8
+
9
+
Exemptions:
10
+
-`links` that are not objects or do not contain `self` or `related` will become attributes as normal
11
+
-`meta` that are not objects will become attributes as normal
0 commit comments