chore: 🤖 deprecation workflow (#1462)

* chore: 🤖 rebase main

* test: 💍 rebase

* test: 💍 rebase

* test: 💍 rebase

* test: 💍 rebase
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-11-15 19:36:30 -08:00
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 {
@@ -0,0 +1,21 @@
import Component from '@glimmer/component';
import { deprecate } from '@ember/debug';
export default class RoseBadgeComponent extends Component {
constructor() {
super(...arguments);
deprecate(
`Rose badge component is deprecated, use HDS Badge instead. For more info, refer to `,
false,
{
id: 'rose.badge',
until: '4.8.0',
for: 'rose',
since: {
enabled: '3.28.8',
},
url: 'https://boundary-ui-storybook.vercel.app/?path=/docs/rose-badge--hds-badge',
}
);
}
}