Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion broccoli/amd-compat-entrypoints/ember-template-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ d('@ember/-internals/utils/index', emberinternalsUtilsIndex);
import * as emberCanaryFeaturesIndex from '@ember/canary-features/index';
d('@ember/canary-features/index', emberCanaryFeaturesIndex);

/*
/*

The classic build included these modules but not their dependencies, so they
never worked. Keeping this comment to document why the list of modules differs in
Expand Down Expand Up @@ -200,3 +200,7 @@ d('simple-html-tokenizer', simpleHtmlTokenizer);
if (typeof module === 'object' && module.exports) {
module.exports = emberTemplateCompilerIndex;
}

console.log(
'\n\n--------\n+ Your app is using the legacy ember-template-compiler.js AMD bundle. This will be removed in ember-source 7.0. See https://deprecations.emberjs.com/id/using-amd-bundles for more details.\n--------'
);
6 changes: 6 additions & 0 deletions broccoli/amd-compat-entrypoints/ember.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,9 @@ d('rsvp', rsvp);
if (typeof module === 'object' && typeof module.require === 'function') {
module.exports = emberIndex.default;
}

emberDebugIndex.deprecate(
'Your app loaded Ember via a legacy AMD bundle. Opt into loading it from the modern ES modules by setting the use-ember-modules optional feature.',
false,
emberinternalsDeprecationsIndex.DEPRECATIONS.DEPRECATE_AMD_BUNDLES.options
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,4 @@
}
},
"packageManager": "pnpm@10.5.0"
}
}
10 changes: 10 additions & 0 deletions packages/@ember/-internals/deprecations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ export const DEPRECATIONS = {
until: '7.0.0',
url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service',
}),
DEPRECATE_AMD_BUNDLES: deprecation({
for: 'ember-source',
id: 'using-amd-bundles',
since: {
available: '6.10.0',
enabled: '6.10.0',
},
until: '7.0.0',
url: 'https://deprecations.emberjs.com/id/using-amd-bundles',
}),
};

export function deprecateUntil(message: string, deprecation: DeprecationObject) {
Expand Down