@grafana/react-detect 0.3.0-canary.2395.21022949463.0 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.3.0 (Thu Jan 15 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: support yarn v1 [#2395](https://github.com/grafana/plugin-tools/pull/2395) ([@jackw](https://github.com/jackw))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
10
+
11
+ ---
12
+
1
13
  # v0.2.1 (Thu Jan 08 2026)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -31,6 +31,7 @@ async function detect19(argv) {
31
31
  title: "Error during detection",
32
32
  body: [error.message]
33
33
  });
34
+ process.exit(1);
34
35
  }
35
36
  }
36
37
  async function getAllMatches(pluginRoot) {
@@ -34,7 +34,7 @@ class DependencyContext {
34
34
  pruneCycles: false
35
35
  });
36
36
  } else if (lockfile === "yarn.lock") {
37
- if (lockfileContent.includes("# yarn lockfile v1")) {
37
+ if (/#\s*yarn lockfile v1/i.test(lockfileContent)) {
38
38
  this.depGraph = await parseYarnLockV1Project(pkgJsonContentString, lockfileContent, {
39
39
  includeDevDeps: true,
40
40
  includeOptionalDeps: true,
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.3.0-canary.2395.21022949463.0",
4
+ "version": "0.3.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": "f0dc3b7d4ca9cf0bb12eec944cc2657957534f47"
43
+ "gitHead": "41320751786a4b7fa6c5addf92fb7f81a4df6702"
44
44
  }
@@ -39,6 +39,7 @@ export async function detect19(argv: minimist.ParsedArgs) {
39
39
  title: 'Error during detection',
40
40
  body: [(error as Error).message],
41
41
  });
42
+ process.exit(1);
42
43
  }
43
44
  }
44
45
 
@@ -37,7 +37,7 @@ export class DependencyContext {
37
37
  pruneCycles: false,
38
38
  });
39
39
  } else if (lockfile === 'yarn.lock') {
40
- if (lockfileContent.includes('# yarn lockfile v1')) {
40
+ if (/#\s*yarn lockfile v1/i.test(lockfileContent)) {
41
41
  this.depGraph = await parseYarnLockV1Project(pkgJsonContentString, lockfileContent, {
42
42
  includeDevDeps: true,
43
43
  includeOptionalDeps: true,