@grafana/create-plugin 7.7.1 → 7.8.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,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.8.0](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.7.1...@grafana/create-plugin@7.8.0) (2026-06-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * **deps:** bump grafana libs to 13.0.2 ([#2708](https://github.com/grafana/plugin-tools/issues/2708)) ([aa149de](https://github.com/grafana/plugin-tools/commit/aa149de372c87092d59c09049228c54bd5f54763))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * correct relative @-import path in plugin skill files ([#2709](https://github.com/grafana/plugin-tools/issues/2709)) ([c1793f0](https://github.com/grafana/plugin-tools/commit/c1793f06444f1c11a0acc577a1d7cc43b7fd3bcd))
14
+ * **deps:** bump copy-webpack-plugin to 14.0.0 ([#2710](https://github.com/grafana/plugin-tools/issues/2710)) ([a50d0cb](https://github.com/grafana/plugin-tools/commit/a50d0cbfd84f4b5d0b3d636a1f9936025df41ee0))
15
+ * **deps:** Update dependency semver to v7.8.2 ([#2688](https://github.com/grafana/plugin-tools/issues/2688)) ([2395e45](https://github.com/grafana/plugin-tools/commit/2395e456066c4385a0e9543e073efae06113adec))
16
+ * **deps:** Update dependency valibot to v1.4.1 ([#2716](https://github.com/grafana/plugin-tools/issues/2716)) ([345632a](https://github.com/grafana/plugin-tools/commit/345632ac71d90ba72a7ce4b290def3ac4f0387e3))
17
+ * **templates:** Update create-plugin template github actions ([#2674](https://github.com/grafana/plugin-tools/issues/2674)) ([8afa2ea](https://github.com/grafana/plugin-tools/commit/8afa2ea47af94e15d51610bc2e77fe1959297486))
18
+
3
19
  ## [7.7.1](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.7.0...@grafana/create-plugin@7.7.1) (2026-06-09)
4
20
 
5
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "7.7.1",
3
+ "version": "7.8.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "directory": "packages/create-plugin",
@@ -37,9 +37,9 @@
37
37
  "jsonc-parser": "3.3.1",
38
38
  "minimist": "1.2.8",
39
39
  "recast": "0.23.11",
40
- "semver": "7.7.2",
40
+ "semver": "7.8.2",
41
41
  "title-case": "4.3.2",
42
- "valibot": "1.2.0",
42
+ "valibot": "1.4.1",
43
43
  "which": "6.0.1",
44
44
  "yaml": "2.9.0"
45
45
  },
@@ -51,7 +51,7 @@
51
51
  "@types/semver": "7.7.1",
52
52
  "@types/tmp": "0.2.6",
53
53
  "@types/which": "3.0.4",
54
- "tmp": "0.2.5"
54
+ "tmp": "0.2.6"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=20"
@@ -1 +1 @@
1
- @../../../../.config/AGENTS/skills/build-plugin.md
1
+ @../../../.config/AGENTS/skills/build-plugin.md
@@ -1 +1 @@
1
- @../../../../.config/AGENTS/skills/validate-plugin.md
1
+ @../../../.config/AGENTS/skills/validate-plugin.md
@@ -3,4 +3,4 @@ name: build-plugin
3
3
  description: build a Grafana plugin using the standard build process (frontend and backend if applicable)
4
4
  ---
5
5
 
6
- @../../../../.config/AGENTS/skills/build-plugin.md
6
+ @../../../.config/AGENTS/skills/build-plugin.md
@@ -3,4 +3,4 @@ name: validate-plugin
3
3
  description: validate a Grafana plugin using the official Grafana plugin validator
4
4
  ---
5
5
 
6
- @../../../../.config/AGENTS/skills/validate-plugin.md
6
+ @../../../.config/AGENTS/skills/validate-plugin.md
@@ -7,7 +7,7 @@ services:
7
7
  context: .
8
8
  args:
9
9
  grafana_image: ${GRAFANA_IMAGE:-{{~grafanaImage~}} }
10
- grafana_version: ${GRAFANA_VERSION:-12.4.0}
10
+ grafana_version: ${GRAFANA_VERSION:-13.0.2}
11
11
  development: ${DEVELOPMENT:-false}
12
12
  anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true}
13
13
  ports:
@@ -36,7 +36,7 @@
36
36
  "@types/ws": "^8.18.1",{{/if}}
37
37
  "@typescript-eslint/eslint-plugin": "^8.38.0",
38
38
  "@typescript-eslint/parser": "^8.38.0",{{#unless useExperimentalRspack}}
39
- "copy-webpack-plugin": "^13.0.0",{{/unless}}
39
+ "copy-webpack-plugin": "^14.0.0",{{/unless}}
40
40
  "css-loader": "^7.1.0",
41
41
  "eslint": "^9.32.0",
42
42
  "eslint-config-prettier": "^10.1.0",
@@ -74,11 +74,11 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@emotion/css": "11.10.6",
77
- "@grafana/data": "12.4.2",
78
- "@grafana/i18n": "12.4.2",
79
- "@grafana/runtime": "12.4.2",
80
- "@grafana/ui": "12.4.2",
81
- "@grafana/schema": "12.4.2",{{#if_eq pluginType "scenesapp" }}
77
+ "@grafana/data": "13.0.2",
78
+ "@grafana/i18n": "13.0.2",
79
+ "@grafana/runtime": "13.0.2",
80
+ "@grafana/ui": "13.0.2",
81
+ "@grafana/schema": "13.0.2",{{#if_eq pluginType "scenesapp" }}
82
82
  "@grafana/scenes": "{{ scenesVersion }}",{{/if_eq}}
83
83
  "react": "^18.3.0",
84
84
  "react-dom": "^18.3.0"{{#if isAppType}},
@@ -32,7 +32,7 @@ jobs:
32
32
  {{#if_eq packageManagerName "pnpm"}}
33
33
  # pnpm action uses the packageManager field in package.json to
34
34
  # understand which version to install.
35
- - uses: pnpm/action-setup@v4
35
+ - uses: pnpm/action-setup@v6
36
36
  {{/if_eq}}
37
37
  - name: Setup Node.js environment
38
38
  uses: actions/setup-node@v6
@@ -68,21 +68,21 @@ jobs:
68
68
 
69
69
  - name: Lint backend
70
70
  if: steps.check-for-backend.outputs.has-backend == 'true'
71
- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
71
+ uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
72
72
  with:
73
73
  version: latest
74
74
  args: ./...
75
75
 
76
76
  - name: Build backend
77
77
  if: steps.check-for-backend.outputs.has-backend == 'true'
78
- uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0
78
+ uses: magefile/mage-action@a662bd8c29d8106879588cfff83b2faf6e6f59db # v4.0.0
79
79
  with:
80
80
  version: latest
81
81
  args: buildAll
82
82
 
83
83
  - name: Test backend
84
84
  if: steps.check-for-backend.outputs.has-backend == 'true'
85
- uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0
85
+ uses: magefile/mage-action@a662bd8c29d8106879588cfff83b2faf6e6f59db # v4.0.0
86
86
  with:
87
87
  version: latest
88
88
  args: test
@@ -182,7 +182,7 @@ jobs:
182
182
  {{#if_eq packageManagerName "pnpm"}}
183
183
  # pnpm action uses the packageManager field in package.json to
184
184
  # understand which version to install.
185
- - uses: pnpm/action-setup@v4
185
+ - uses: pnpm/action-setup@v6
186
186
  {{/if_eq}}
187
187
  - name: Setup Node.js environment
188
188
  uses: actions/setup-node@v6
@@ -14,11 +14,11 @@ jobs:
14
14
  {{#if_eq packageManagerName "pnpm"}}
15
15
  # pnpm action uses the packageManager field in package.json to
16
16
  # understand which version to install.
17
- - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
17
+ - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
18
18
  {{/if_eq}}
19
19
 
20
20
  - name: Setup Node.js environment
21
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
21
+ uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
22
22
  with:
23
23
  node-version: '22'
24
24
  cache: '{{ packageManagerName }}'
package/vitest.config.ts CHANGED
@@ -10,8 +10,7 @@ export default mergeConfig(
10
10
  setupFiles: ['./vitest.setup.ts'],
11
11
  },
12
12
  plugins: [
13
- // This plugin is used to convince Vitest the mocked virtual migrations exist.
14
- // https://vitest.dev/guide/mocking/modules.html#mocking-non-existing-module
13
+ // Convince Vitest the mocked virtual migrations exist (vitest 4.1+ needs both resolveId and load for dynamic bare-specifier imports).
15
14
  {
16
15
  name: 'virtual-migrations',
17
16
  resolveId(id) {
@@ -19,6 +18,11 @@ export default mergeConfig(
19
18
  return id;
20
19
  }
21
20
  },
21
+ load(id) {
22
+ if (id === 'virtual-test-migration.js' || id === 'virtual-test-migration2.js') {
23
+ return 'export default () => {};';
24
+ }
25
+ },
22
26
  },
23
27
  ],
24
28
  })