Skip to content

v5.3.0 | don't forget, baby, I'm a wildcard

Compare
Choose a tag to compare
@runspired runspired released this 18 Sep 19:55
· 667 commits to main since this release

The Big Picture

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.

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)

🚀 Enhancement

🐛 Bug Fix

🌲 New Deprecation

🚿 Deprecation Removal

  • adapter, model, private-build-infra, serializer
    • #8797 Drop support for ember-cli-mocha and ember-mocha when generating test blueprints (@bertdeblock)

📝 Documentation

🥅 Test

🏠 Internal

Committers: 11