sentry: update plugin instance export name

This commit is contained in:
Patrik Oldsberg
2021-02-10 17:30:04 +01:00
parent 875471037e
commit 53d3e2d626
5 changed files with 12 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-sentry': patch
---
Export the plugin instance as `sentryPlugin`. The plugin instance is still exported as `plugin` as well, but it will be removed in the future.
+3 -3
View File
@@ -20,9 +20,9 @@ import {
} from '@backstage/core';
import { useEntity } from '@backstage/plugin-catalog-react';
import React from 'react';
import { plugin, rootRouteRef } from './plugin';
import { sentryPlugin, rootRouteRef } from './plugin';
export const EntitySentryContent = plugin.provide(
export const EntitySentryContent = sentryPlugin.provide(
createRoutableExtension({
mountPoint: rootRouteRef,
component: () =>
@@ -38,7 +38,7 @@ export const EntitySentryContent = plugin.provide(
}),
);
export const EntitySentryCard = plugin.provide(
export const EntitySentryCard = sentryPlugin.provide(
createComponentExtension({
component: {
lazy: () =>
+1 -1
View File
@@ -16,6 +16,6 @@
export * from './api';
export * from './components';
export { plugin } from './plugin';
export { sentryPlugin, sentryPlugin as plugin } from './plugin';
export { EntitySentryCard, EntitySentryContent } from './extensions';
export { Router } from './components/Router';
+2 -2
View File
@@ -14,10 +14,10 @@
* limitations under the License.
*/
import { plugin } from './plugin';
import { sentryPlugin } from './plugin';
describe('sentry', () => {
it('should export plugin', () => {
expect(plugin).toBeDefined();
expect(sentryPlugin).toBeDefined();
});
});
+1 -1
View File
@@ -28,7 +28,7 @@ export const rootRouteRef = createRouteRef({
title: 'Sentry',
});
export const plugin = createPlugin({
export const sentryPlugin = createPlugin({
id: 'sentry',
apis: [
createApiFactory({