Skip to content
This repository was archived by the owner on Aug 7, 2026. It is now read-only.

fix: make change tracker compatible with Ember 5 - #1

Draft
eyupatis wants to merge 5 commits into
masterfrom
fix/ember-5-compat
Draft

fix: make change tracker compatible with Ember 5#1
eyupatis wants to merge 5 commits into
masterfrom
fix/ember-5-compat

Conversation

@eyupatis

@eyupatis eyupatis commented Jul 17, 2026

Copy link
Copy Markdown

Summary

  • import Model from the public @ember-data/model package
  • replace deprecated Ember.assign with Object.assign
  • use the public store.serializerFor API
  • export ChangeTrackerMixin and stop globally patching every Ember Data model with Model.reopen
  • leave the initializer as a compatibility no-op so consuming applications can opt models in explicitly

The Instrumentl app consumes this branch in instrumentl/instrumentl#22071 and composes the exported mixin explicitly in instrumentl/instrumentl#22075.

Why

These changes remove the deprecated/private APIs that block the Ember Data 5 upgrade without adding compatibility monkey patches. Explicit mixin composition also limits change-tracking behavior to the models that use it.

eyupatis added 4 commits July 17, 2026 13:24
…assign

modelChanges() had its own direct Ember.assign call that was missed in the
initial fix (only tracker.js's internal assign helper was updated). Ember.assign
is fully removed in Ember 5.x, not just deprecated.
…lookup

ember-data 5.x no longer auto-registers the classic private serializer:-rest
name (used as a fallback REST serializer for rollback normalization), so
container.lookup('serializer:-rest') returned undefined. store.serializerFor
is the supported, model-aware replacement.
…mmits

The fork stayed at the upstream 0.10.1 version string across multiple fix
commits, causing yarn's local cache to occasionally serve stale tarballs
for this exact name+version combination even when yarn.lock pointed to a
newer commit SHA.
@eyupatis eyupatis changed the title fix: Ember 5.x compat (bare ember-data/model import, removed Ember.assign/merge) fix: make change tracker compatible with Ember 5 Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant