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
This release primarily focused on polish for the `RequestManager` story, introducing builder utils, builders for `REST``ActiveRecord` and `JSON:API` requests as well as serialization utils for `JSON:API` requests.
67
+
68
+
As part of shipping serialization utils, we implemented several long-awaited cache features to support them:
69
+
70
+
-`cache.changedRelationships` retrieves a diff of what has been added or removed from each relationship for a resource
71
+
-`cache.hasChangedRelationships` answers whether any relationships have changed for a resource
72
+
-`cache.rollbackRelationships` will reset all relationships for that resource to their "remote" state, removing any local changes.
64
73
65
74
#### Deprecations
66
75
67
-
EmberData 5.3 introduced 0 deprecations.
76
+
EmberData 5.3 introduced 5 deprecations.
77
+
78
+
As part of our ongoing efforts to modernize the library and to support the above changes, we implemented several new deprecations.
79
+
80
+
- Deprecate legacy import paths (`ember-data/`) except for `ember-data/store`
81
+
- Deprecate non-strict-type (e.g. "users" or "myType" instead of "user" and "my-type")
82
+
- Deprecate non-strict-id (e.g . `1` instead of `"1"`)
83
+
84
+
And in relationships specifically:
85
+
86
+
- deprecate fixing non-unique relationship payloads (when the same record is referenced multiple times in a related collection)
87
+
- deprecate remote updates clearing local changes (an upcoming blog post will explain the new behavior here in detail)
68
88
69
89
For more details on changes in EmberData 5.3, please review the
0 commit comments