Add Classic Classes Deprecation Guide#1409
Draft
wagenet wants to merge 2 commits intoember-learn:mainfrom
Draft
Conversation
✅ Deploy Preview for ember-deprecations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| There is no direct replacement for `reopen`. You should refactor your code to avoid this pattern. If you need to add functionality, consider creating a subclass: | ||
|
|
||
| ```javascript | ||
| import MyComponent from './my-component'; |
Contributor
There was a problem hiding this comment.
any chance we can use a word other than component?
I don't want folks to get the idea that we condone component extension at all (even for native classes)
Contributor
|
Should this also deprecate the |
Contributor
Author
|
@ef4 we should deprecate it, but I'm not sure we need to call it out in these guides. |
kategengler
reviewed
Aug 22, 2025
| since: 6.5.0 | ||
| --- | ||
|
|
||
| With the introduction of native class syntax in JavaScript, Ember is deprecating its classic class syntax, which includes `extend`, `reopen`, and `reopenClass`. This guide will help you migrate your code to the modern syntax. |
Contributor
There was a problem hiding this comment.
This should probably mention the codemod for native classes, as well as a migration path: emberjs/rfcs#1117 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC: emberjs/rfcs#1117