@grafana/create-plugin 6.5.2-canary.2349.20294272116.0 → 6.5.2

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,16 @@
1
+ # v6.5.2 (Wed Dec 17 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Refactor: replace chalk with nodes styletext function [#2349](https://github.com/grafana/plugin-tools/pull/2349) ([@jackw](https://github.com/jackw))
6
+ - fix: stop eslint migration stripping extra chars from plugin name [#2348](https://github.com/grafana/plugin-tools/pull/2348) ([@jackw](https://github.com/jackw))
7
+
8
+ #### Authors: 1
9
+
10
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
11
+
12
+ ---
13
+
1
14
  # v6.5.1 (Wed Dec 17 2025)
2
15
 
3
16
  #### 🐛 Bug Fix
@@ -258,11 +258,11 @@ function getPluginVarName(pluginName) {
258
258
  }
259
259
  function getPluginShortName(pluginName) {
260
260
  if (pluginName.startsWith("@")) {
261
- let match = pluginName.match(/^@([^/]+)\/eslint-plugin$/);
261
+ let match = new RegExp(`^(@[^/]+)/eslint-plugin$`, "u").exec(pluginName);
262
262
  if (match) {
263
263
  return match[1];
264
264
  }
265
- match = pluginName.match(/^@([^/]+)\/eslint-plugin-(.+)$/);
265
+ match = new RegExp(`^(@[^/]+)/eslint-plugin-(.+)$`, "u").exec(pluginName);
266
266
  if (match) {
267
267
  return `${match[1]}/${match[2]}`;
268
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "6.5.2-canary.2349.20294272116.0",
3
+ "version": "6.5.2",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -43,7 +43,7 @@
43
43
  "yaml": "^2.7.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@libs/output": "1.0.3-canary.2349.20294272116.0",
46
+ "@libs/output": "^1.0.3",
47
47
  "@libs/version": "^1.0.2",
48
48
  "@types/glob": "^9.0.0",
49
49
  "@types/minimist": "^1.2.5",
@@ -55,5 +55,5 @@
55
55
  "engines": {
56
56
  "node": ">=20"
57
57
  },
58
- "gitHead": "d0059d2dab38a6019db3d3294f662de6dc9e5e34"
58
+ "gitHead": "bb1e54d5940251c00b9ed80797f422a655c968be"
59
59
  }
@@ -139,9 +139,10 @@ describe('004-eslint9-flat-config', () => {
139
139
  'plugin:react/recommended',
140
140
  'prettier',
141
141
  ],
142
- plugins: ['simple-import-sort'],
142
+ plugins: ['simple-import-sort', '@grafana/eslint-plugin-plugins'],
143
143
  rules: {
144
144
  'simple-import-sort/imports': 'error',
145
+ '@grafana/plugins/import-is-compatible': 'warn',
145
146
  },
146
147
  overrides: [
147
148
  {
@@ -163,6 +164,7 @@ describe('004-eslint9-flat-config', () => {
163
164
  import react from "eslint-plugin-react";
164
165
  import prettier from "eslint-config-prettier/flat";
165
166
  import simpleImportSort from "eslint-plugin-simple-import-sort";
167
+ import grafanaEslintPluginPlugins from "@grafana/eslint-plugin-plugins";
166
168
 
167
169
  export default defineConfig([
168
170
  js.configs.recommended,
@@ -173,10 +175,12 @@ describe('004-eslint9-flat-config', () => {
173
175
  {
174
176
  plugins: {
175
177
  "simple-import-sort": simpleImportSort,
178
+ "@grafana/plugins": grafanaEslintPluginPlugins,
176
179
  },
177
180
 
178
181
  rules: {
179
182
  "simple-import-sort/imports": "error",
183
+ "@grafana/plugins/import-is-compatible": "warn",
180
184
  },
181
185
  },
182
186
  {
@@ -340,12 +340,12 @@ function getPluginVarName(pluginName: string) {
340
340
 
341
341
  function getPluginShortName(pluginName: string) {
342
342
  if (pluginName.startsWith('@')) {
343
- let match = pluginName.match(/^@([^/]+)\/eslint-plugin$/);
343
+ let match = new RegExp(`^(@[^/]+)\/eslint-plugin$`, 'u').exec(pluginName);
344
344
 
345
345
  if (match) {
346
346
  return match[1];
347
347
  }
348
- match = pluginName.match(/^@([^/]+)\/eslint-plugin-(.+)$/);
348
+ match = new RegExp(`^(@[^/]+)\/eslint-plugin-(.+)$`, 'u').exec(pluginName);
349
349
 
350
350
  if (match) {
351
351
  return `${match[1]}/${match[2]}`;