This release primarily focused on polish for the RequestManager story, introducing builder utils, builders for RESTActiveRecord and JSON:API requests as well as serialization utils for JSON:API requests.
As part of shipping serialization utils, we implemented several long-awaited cache features to support them:
cache.changedRelationships retrieves a diff of what has been added or removed from each relationship for a resource
cache.hasChangedRelationships answers whether any relationships have changed for a resource
cache.rollbackRelationships will reset all relationships for that resource to their "remote" state, removing any local changes.
As part of our ongoing efforts to modernize the library and to support the above changes, we implemented several new deprecations.
Deprecate legacy import paths (ember-data/) except for ember-data/store
Deprecate non-strict-type (e.g. "users" or "myType" instead of "user" and "my-type")
Deprecate non-strict-id (e.g . 1 instead of "1")
And in relationships specifically:
deprecate fixing non-unique relationship payloads (when the same record is referenced multiple times in a related collection)
deprecate remote updates clearing local changes (an upcoming blog post will explain the new behavior here in detail)
Changelog (2023-09-18)
:rocket: Enhancement
#8849 feat: docs, tests and fixes for create/update/deleteRecord builders (@Baltazore)
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps ember-data from 4.4.1 to 5.3.0.
Release notes
Sourced from ember-data's releases.
... (truncated)
Changelog
Sourced from ember-data's changelog.
... (truncated)
Commits
4badefd
Release v5.3.0f825b94
Release v5.4.0-alpha.16977a794
chore(deps): update dependency@babel/core
to ^7.22.19 (#8875)2ee4219
Release v5.4.0-alpha.153ad11e2
chore(deps): update pnpm to v8.7.5 (#8870)8289d5c
Release v5.4.0-alpha.1459b18a1
Release v5.4.0-alpha.137bb299f
chore(deps): update dependency@babel/core
to ^7.22.17 (#8834)ac092d1
chore: burn down runloop and RSVP usage (#8860)54b09f5
chore(deps): update pnpm to v8.7.4 (#8853)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show