chore: 🤖 deprecation workflow (#1462)
* chore: 🤖 rebase main * test: 💍 rebase * test: 💍 rebase * test: 💍 rebase * test: 💍 rebase
This commit is contained in:
1 parent
58a47c8375
commit
b8cbbceff6
2 files changed
+28
-9
No files matched your search
@@ -1,14 +1,12 @@
|
||||
import { registerDeprecationHandler } from '@ember/debug';
|
||||
|
||||
export function initialize(application) {
|
||||
const config = application.resolveRegistration('config:environment');
|
||||
const isTesting = config.environment === 'test';
|
||||
if (isTesting) {
|
||||
// Disable all deprecations for now in tests.
|
||||
registerDeprecationHandler((/*message, options, next*/) => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
export function initialize() {
|
||||
registerDeprecationHandler((message, options, next) => {
|
||||
if (options?.url) {
|
||||
message += options.url;
|
||||
}
|
||||
next(message, options);
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in new issue
Block a user