Skip to content

Commit 47f3381

Browse files
committed
Make using the "classic" edition of Ember throw
1 parent 9c9e418 commit 47f3381

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

lib/index.js

+2-20
Original file line numberDiff line numberDiff line change
@@ -119,27 +119,9 @@ module.exports = {
119119
throw new SilentError(message.join('\n\t'));
120120
}
121121
} else {
122-
this.ui.writeWarnLine(
123-
'The Ember Classic edition has been deprecated. Specifying "classic" in your package.json, or not specifying a value at all, will no longer be supported. You must explicitly set the "ember.edition" property to "octane". This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_editions-classic'
122+
throw new SilentError(
123+
'The Ember Classic edition has been removed. Specifying "classic" in your package.json, or not specifying a value at all, is no longer supported. You must explicitly set the "ember.edition" property to "octane". You can also run `npx @ember/octanify` to do this. \n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_editions-classic'
124124
);
125-
126-
if (
127-
optionalFeaturesMissing ||
128-
optionalFeatures.isFeatureEnabled('application-template-wrapper')
129-
) {
130-
this.ui.writeWarnLine(
131-
'Setting the `application-template-wrapper` optional feature flag to `true`, or not providing a setting at all, has been deprecated. You must add the `@ember/optional-features` addon and set this feature to `false`. You can also run `npx @ember/octanify` to do this. This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-application-template-wrapper'
132-
);
133-
}
134-
135-
if (
136-
optionalFeaturesMissing ||
137-
!optionalFeatures.isFeatureEnabled('template-only-glimmer-components')
138-
) {
139-
throw new SilentError(
140-
'Setting the `template-only-glimmer-components` optional feature flag to `false`, or not providing a setting at all, was deprecated in Ember 3.x and removed in Ember 4.0.0. You must add the `@ember/optional-features` addon and set this feature to `true`.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-template-only-glimmer-components'
141-
);
142-
}
143125
}
144126

145127
if (

0 commit comments

Comments
 (0)