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

[CLEANUP] Remove sync queue from @ember/runloop. #17940

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Apr 17, 2019

Was deprecated until: '3.5.0', should be safe to cleanup now.

Was deprecated `until: '3.5.0'`, should be safe to cleanup now.
@rwjblue rwjblue changed the title Remove sync queue from @ember/runloop. [CLEANUP] Remove sync queue from @ember/runloop. Apr 18, 2019
@rwjblue rwjblue merged commit 5a93bbb into emberjs:master Apr 18, 2019
@rwjblue rwjblue deleted the remove-sync-queue branch April 18, 2019 15:00
@GavinJoyce
Copy link
Member

I can't seem to find any information on this, there's no entry in the 3.x deprecations list for ember-metal.run.sync and I can't seem to find any mention in a previous RFC.

Are the details of why this was deprecated/removed captured anywhere?

@rwjblue
Copy link
Member Author

rwjblue commented May 31, 2019

@GavinJoyce - The sync queue was used only for Ember.Binding flushing which was removed in 3.0, the functionality had to live in Ember through 3.4 due to the 3.x legacy compat addons. When it was originally removed some folks that were manually scheduling into sync reported it as a regression so we brought it back as a private API deprecation. This PR cleans up that long standing deprecation.

@GavinJoyce
Copy link
Member

👍 thanks

@mydea
Copy link
Contributor

mydea commented Aug 13, 2019

Hmm, there was no deprecation warning for this. We've been using this, and now the app broke after updating to 3.11. We haven't seen any warning, so this was rather unexpected! Just fyi.

Is it generally safe to refactor this to use actions instead?

@rwjblue
Copy link
Member Author

rwjblue commented Aug 13, 2019

@mydea - AFAICT there definitely was a deprecation cycle for this, in the diff of this PR the deprecations (which were labelled as until: '3.5.0') being removed. Each entry point to add something into the sync queue should have issued a deprecation from around Ember 3.1 through 3.10 (including a number of LTS versions after which deprecated private API removal is allowed to be removed).

@rwjblue
Copy link
Member Author

rwjblue commented Aug 13, 2019

Is it generally safe to refactor this to use actions instead?

I think it depends on why you were using sync, if you expected deduplicated change notifications (the only "special" thing about sync queue) then no actions isn't a suitable replacement. I suspect that most folks that happened to use sync didn't actually care about that feature and they were just trying to use the "first queue", in which case actions is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants