Skip to content

Conversation

@NullVoxPopuli
Copy link
Collaborator

No description provided.

@runspired
Copy link
Contributor

resolves #1536

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review March 26, 2025 03:30

// @ts-ignore: this is private API.
const fallbackRegistry = Application.buildRegistry(namespace);
// TODO: only do this on Ember < 3.13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment relevant? If so, do we even need to be supporting Ember < 3.13 here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't, but I'd argue cleanup for legacy stuff should be in a different PR (which I can submit next! as there are a number of other cleanup opportunities, I think)

import EmberObject from '@ember/object';

import Ember from 'ember';
import { Registry } from '@ember/-internals/container';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we specified these with the barrel deprecation RFC, but I wonder if there is anything in ember-source testing to make sure we don't break such import paths?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they're all private API, so I think it's totally fair for ember to break them if it wishes.

@ember/test-helpers should not be using private APIs haha

(we can explore migrate off of them in a separate PR)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They may be private but if we don't do that follow up PR all the pain will be ours.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aye, I'm doing this now 🎉

//
// import { registerWaiter } from '@ember/test';
Ember.Test.registerWaiter(this._legacyWaiter);
registerWaiter(this._legacyWaiter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL we support the legacy waiters still

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, and probably will continue to do so until they're deprecated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the entire legacy test system is still in there...

@kategengler kategengler merged commit e9bc60c into master Mar 26, 2025
25 checks passed
@kategengler kategengler deleted the nvp/resolve-deprecations-barrel branch March 26, 2025 16:22
@github-actions github-actions bot mentioned this pull request Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants