@grafana/react-detect 0.2.0-canary.2358.20374737796.0 → 0.2.0-canary.2358.20376909013.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ const PATTERN_DEFINITIONS = {
15
15
  fix: {
16
16
  description: "Externalize react/jsx-runtime in webpack config. Your plugin will only be compatible with Grafana >=12.3.0"
17
17
  },
18
- link: "https://react.dev/blog/2024/04/25/react-19-upgrade-guide#libraries-depending-on-react-internals-may-block-upgrades"
18
+ link: "https://grafana.com/developers/plugin-tools/how-to-guides/extend-configurations#extend-the-webpack-config"
19
19
  },
20
20
  defaultProps: {
21
21
  severity: "removed",
@@ -19,11 +19,15 @@ function consoleReporter(results) {
19
19
  title: "No React 19 breaking changes detected.",
20
20
  body: [
21
21
  `Plugin: ${results.plugin.name} version: ${results.plugin.version}`,
22
- "Good news! Your plugin appears to be compatible with React 19.",
23
- "",
24
- ...summaryMsg
22
+ "Good news! Your plugin appears to be compatible with React 19."
25
23
  ]
26
24
  });
25
+ output.addHorizontalLine("green");
26
+ output.success({
27
+ title: "Next steps",
28
+ body: summaryMsg,
29
+ withPrefix: false
30
+ });
27
31
  return;
28
32
  }
29
33
  output.error({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grafana/react-detect",
3
3
  "description": "Run various checks to detect if a Grafana plugin is compatible with React.",
4
- "version": "0.2.0-canary.2358.20374737796.0",
4
+ "version": "0.2.0-canary.2358.20376909013.0",
5
5
  "repository": {
6
6
  "directory": "packages/react-detect",
7
7
  "url": "https://github.com/grafana/plugin-tools"
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=20"
42
42
  },
43
- "gitHead": "834f9e9577721255794b2257955d96d0faf967ae"
43
+ "gitHead": "18378bfb52c5284c39ccbd8c698efadcd2fa223c"
44
44
  }
@@ -20,7 +20,7 @@ export const PATTERN_DEFINITIONS: Record<string, PatternDefinition> = {
20
20
  description:
21
21
  'Externalize react/jsx-runtime in webpack config. Your plugin will only be compatible with Grafana >=12.3.0',
22
22
  },
23
- link: 'https://react.dev/blog/2024/04/25/react-19-upgrade-guide#libraries-depending-on-react-internals-may-block-upgrades',
23
+ link: 'https://grafana.com/developers/plugin-tools/how-to-guides/extend-configurations#extend-the-webpack-config',
24
24
  },
25
25
  defaultProps: {
26
26
  severity: 'removed',
@@ -22,10 +22,14 @@ export function consoleReporter(results: PluginAnalysisResults) {
22
22
  body: [
23
23
  `Plugin: ${results.plugin.name} version: ${results.plugin.version}`,
24
24
  'Good news! Your plugin appears to be compatible with React 19.',
25
- '',
26
- ...summaryMsg,
27
25
  ],
28
26
  });
27
+ output.addHorizontalLine('green');
28
+ output.success({
29
+ title: 'Next steps',
30
+ body: summaryMsg,
31
+ withPrefix: false,
32
+ });
29
33
  return;
30
34
  }
31
35