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

Deprecate import Ember from 'ember' #20686

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

NullVoxPopuli
Copy link
Sponsor Contributor

@NullVoxPopuli NullVoxPopuli commented Apr 22, 2024

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

I'm surprised it didn't treat this file as a move...

Copy link
Member

Choose a reason for hiding this comment

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

My trick for reliably getting git to understand a move: Make a commit with just the file rename and no other changes, even if it leaves the codebase in a broken state for that commit.

@@ -90,6 +90,15 @@ function deprecation(options: DeprecationOptions) {
test the behavior without encountering the deprecated feature, just as users would.
*/
export const DEPRECATIONS = {
DEPRECATE_IMPORT_EMBER(importName: string) {
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

this is and needs to be a function, I hope that's ok 😅

import * as templateCompilation from '@ember/template-compilation';

// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Ember {
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

I have a hunch that some of these types may need to move back to the index.ts, but we'll see as the PR progresses

@NullVoxPopuli NullVoxPopuli force-pushed the deprecate-import-ember-from-ember branch 2 times, most recently from 17a6f91 to b5eaa95 Compare April 29, 2024 21:57
@NullVoxPopuli NullVoxPopuli force-pushed the deprecate-import-ember-from-ember branch from 7a95c95 to 70d0ca8 Compare May 2, 2024 15:10
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review May 2, 2024 15:17
@NullVoxPopuli NullVoxPopuli force-pushed the deprecate-import-ember-from-ember branch from 703a25b to 3e46fe1 Compare May 9, 2024 21:10
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.

None yet

2 participants