Skip to content

Commit 9af3095

Browse files
authored
ref(ember): Silence deprecation warnings in beta (#3346)
* ref(ember): Silence deprecation warnings in beta We can deal with deprecations once they hit mainline, this should hopefully silence deprecations in the scenarios so we can see failures more easily and not spit out too many logs
1 parent 5339751 commit 9af3095

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { registerDeprecationHandler } from '@ember/debug';
2+
3+
export function initialize() {
4+
registerDeprecationHandler((message, options, next) => {
5+
if (options && options.until && options.until !== '3.0.0') {
6+
return;
7+
} else {
8+
next(message, options);
9+
}
10+
});
11+
}
12+
13+
export default { initialize };

0 commit comments

Comments
 (0)