Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure classic computed chains support #8432

Merged
merged 9 commits into from
Feb 27, 2023
Merged

fix: ensure classic computed chains support #8432

merged 9 commits into from
Feb 27, 2023

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Feb 26, 2023

Adds tests and a fix for computed chains not updating in EmberData 4.8+.

This fix relies on using private APIs within @glimmer/validator and @ember/-internals/metal in order to fix emberjs/ember.js#20386. The fix works by forcing creation and entanglement of the special [] and length tags that array prototype extensions typically provide.

resolves #8411
resolves #8431

@runspired runspired added 🎯 release PR should be backported to release 🎯 canary PR is targeting canary (default) 🎯 lts The PR should be backported to the most recent LTS 🏷️ bug This PR primarily fixes a reported issue labels Feb 26, 2023
@runspired runspired merged commit 3955695 into master Feb 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-chains branch February 27, 2023 03:59
runspired added a commit that referenced this pull request Feb 27, 2023
* adds tests and gets tests passing lols

* simplify working version

* more fixes

* reduce private api abuse

* fixes

* restore worse private api use :(

* fix deprecation scenario

* fix dep stripped

* fix lint
runspired added a commit that referenced this pull request Feb 27, 2023
* adds tests and gets tests passing lols

* simplify working version

* more fixes

* reduce private api abuse

* fixes

* restore worse private api use :(

* fix deprecation scenario

* fix dep stripped

* fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 canary PR is targeting canary (default) 🎯 lts The PR should be backported to the most recent LTS 🎯 release PR should be backported to release 🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
1 participant