@grafana/react-detect 0.6.3-canary.2559.23947657448.0 → 0.6.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.6.3 (Tue Apr 07 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: narrow defaultProps detection to React components only [#2559](https://github.com/grafana/plugin-tools/pull/2559) ([@jackw](https://github.com/jackw))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
10
+
11
+ ---
12
+
1
13
  # v0.6.2 (Wed Apr 01 2026)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -46,6 +46,9 @@ function collectClassComponentNames(ast) {
46
46
  }
47
47
  });
48
48
  walk(ast, (node) => {
49
+ if (!node) {
50
+ return;
51
+ }
49
52
  if (node.type !== "SequenceExpression") {
50
53
  return;
51
54
  }
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.6.3-canary.2559.23947657448.0",
4
+ "version": "0.6.3",
5
5
  "repository": {
6
6
  "directory": "packages/react-detect",
7
7
  "url": "https://github.com/grafana/plugin-tools"
@@ -41,5 +41,5 @@
41
41
  "engines": {
42
42
  "node": ">=20"
43
43
  },
44
- "gitHead": "cfb3e93935fa38deadd7b05563e751a668abc7d9"
44
+ "gitHead": "2a6a8313b67f6180c17140703832fca3a328d8c7"
45
45
  }
@@ -109,6 +109,9 @@ function collectClassComponentNames(ast: TSESTree.Program): Set<string> {
109
109
  // return statements, and standalone expression statements. We walk all SequenceExpression
110
110
  // nodes regardless of where they appear.
111
111
  walk(ast, (node) => {
112
+ if (!node) {
113
+ return;
114
+ }
112
115
  if (node.type !== 'SequenceExpression') {
113
116
  return;
114
117
  }