From faa49b2996fbb35f54db7360a8d94bcce9b75407 Mon Sep 17 00:00:00 2001 From: Katie Gengler Date: Mon, 15 Nov 2021 12:03:08 -0500 Subject: [PATCH] Make using the "classic" edition of Ember throw (cherry picked from commit 47f338121267f1f716e6e68f7ecc9b3635e56255) --- lib/index.js | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/lib/index.js b/lib/index.js index d873039d2bf..496834ac163 100644 --- a/lib/index.js +++ b/lib/index.js @@ -112,27 +112,9 @@ module.exports = { throw new SilentError(message.join('\n\t')); } } else { - this.ui.writeWarnLine( - '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' + throw new SilentError( + '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' ); - - if ( - optionalFeaturesMissing || - optionalFeatures.isFeatureEnabled('application-template-wrapper') - ) { - this.ui.writeWarnLine( - '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' - ); - } - - if ( - optionalFeaturesMissing || - !optionalFeatures.isFeatureEnabled('template-only-glimmer-components') - ) { - throw new SilentError( - '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' - ); - } } if (