@grafana/create-plugin 7.9.0 → 7.9.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 +21 -0
- package/package.json +5 -5
- package/templates/app/src/module.tsx +2 -8
- package/templates/common/_package.json +4 -4
- package/templates/github/workflows/bundle-stats.yml +1 -1
- package/templates/github/workflows/ci.yml +2 -2
- package/templates/github/workflows/cp-update.yml +1 -1
- package/templates/github/workflows/is-compatible.yml +1 -1
- package/templates/github/workflows/release.yml +1 -1
- package/templates/scenes-app/src/module.tsx +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.9.2](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.9.1...@grafana/create-plugin@7.9.2) (2026-08-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **create-plugin:** bump valibot to 1.4.2 ([#2813](https://github.com/grafana/plugin-tools/issues/2813)) ([4920dd8](https://github.com/grafana/plugin-tools/commit/4920dd88acd6e25817dec8b0342cf0d64de8902b))
|
|
9
|
+
* **create-plugin:** unpin @playwright/test now that 1.62.1 fixes tsconfig resolution ([#2815](https://github.com/grafana/plugin-tools/issues/2815)) ([3f5dc96](https://github.com/grafana/plugin-tools/commit/3f5dc9656b48e602b099044cc1eb9b25c6e2c220))
|
|
10
|
+
* **deps:** bump plugin-actions in create-plugin templates ([#2732](https://github.com/grafana/plugin-tools/issues/2732)) ([9f43b00](https://github.com/grafana/plugin-tools/commit/9f43b00a32bfabaf9ad27b7efd409e512777e342))
|
|
11
|
+
* remove suspense boundaries from app plugin templates ([#2778](https://github.com/grafana/plugin-tools/issues/2778)) ([dd1293a](https://github.com/grafana/plugin-tools/commit/dd1293a5c9278147df465ff7521e18cb7aec754f))
|
|
12
|
+
|
|
13
|
+
## [7.9.1](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.9.0...@grafana/create-plugin@7.9.1) (2026-07-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **create-plugin:** pin @playwright/test to 1.61.x ([#2806](https://github.com/grafana/plugin-tools/issues/2806)) ([772bf50](https://github.com/grafana/plugin-tools/commit/772bf5018b1076d8e4dfa29625571b63003f665f))
|
|
19
|
+
* **deps:** Update dependency recast to v0.23.12 ([#2776](https://github.com/grafana/plugin-tools/issues/2776)) ([8310d86](https://github.com/grafana/plugin-tools/commit/8310d86fc1288b76dca4d1cdf34d5bd6f766e180))
|
|
20
|
+
* **deps:** Update dependency which to v7 ([#2769](https://github.com/grafana/plugin-tools/issues/2769)) ([9404973](https://github.com/grafana/plugin-tools/commit/9404973dd48592cf348cf8b6df2571b6c3e99ae2))
|
|
21
|
+
* **deps:** Update grafana dependencies ([#2789](https://github.com/grafana/plugin-tools/issues/2789)) ([53c8b6b](https://github.com/grafana/plugin-tools/commit/53c8b6b05a4af04e7556149b6f1ade40031c7cd2))
|
|
22
|
+
* **templates:** Update dependency @grafana/plugin-e2e to v3.10.0 ([#2787](https://github.com/grafana/plugin-tools/issues/2787)) ([ca2e54f](https://github.com/grafana/plugin-tools/commit/ca2e54fa3b05b0f9fb5647fa8ae3aeada7519916))
|
|
23
|
+
|
|
3
24
|
## [7.9.0](https://github.com/grafana/plugin-tools/compare/@grafana/create-plugin@7.8.1...@grafana/create-plugin@7.9.0) (2026-07-14)
|
|
4
25
|
|
|
5
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"directory": "packages/create-plugin",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"handlebars": "4.7.9",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
37
37
|
"minimist": "1.2.8",
|
|
38
|
-
"recast": "0.23.
|
|
39
|
-
"semver": "7.8.
|
|
38
|
+
"recast": "0.23.12",
|
|
39
|
+
"semver": "7.8.5",
|
|
40
40
|
"title-case": "4.3.2",
|
|
41
|
-
"valibot": "1.4.
|
|
42
|
-
"which": "
|
|
41
|
+
"valibot": "1.4.2",
|
|
42
|
+
"which": "7.0.0",
|
|
43
43
|
"yaml": "2.9.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import React, { Suspense, lazy } from 'react';
|
|
2
|
-
import { AppPlugin
|
|
2
|
+
import { AppPlugin } from '@grafana/data';
|
|
3
3
|
import { LoadingPlaceholder } from '@grafana/ui';
|
|
4
4
|
import type { AppConfigProps } from './components/AppConfig/AppConfig';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const App = lazy(() => import('./components/App/App'));
|
|
7
7
|
const LazyAppConfig = lazy(() => import('./components/AppConfig/AppConfig'));
|
|
8
8
|
|
|
9
|
-
const App = (props: AppRootProps) => (
|
|
10
|
-
<Suspense fallback={<LoadingPlaceholder text="" />}>
|
|
11
|
-
<LazyApp {...props} />
|
|
12
|
-
</Suspense>
|
|
13
|
-
);
|
|
14
|
-
|
|
15
9
|
const AppConfig = (props: AppConfigProps) => (
|
|
16
10
|
<Suspense fallback={<LoadingPlaceholder text="" />}>
|
|
17
11
|
<LazyAppConfig {...props} />
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@grafana/eslint-config": "^9.0.0",
|
|
20
|
-
"@grafana/plugin-e2e": "^3.
|
|
21
|
-
"@grafana/sign-plugin": "^3.
|
|
22
|
-
"@grafana/tsconfig": "^2.0
|
|
23
|
-
"@playwright/test": "^1.
|
|
20
|
+
"@grafana/plugin-e2e": "^3.10.0",
|
|
21
|
+
"@grafana/sign-plugin": "^3.3.3",
|
|
22
|
+
"@grafana/tsconfig": "^2.2.0",
|
|
23
|
+
"@playwright/test": "^1.62.1",{{#if useExperimentalRspack}}
|
|
24
24
|
"@rspack/core": "^1.6.0",
|
|
25
25
|
"@rspack/cli": "^1.6.0",{{/if}}
|
|
26
26
|
"@stylistic/eslint-plugin-ts": "^4.4.0",
|
|
@@ -152,7 +152,7 @@ jobs:
|
|
|
152
152
|
|
|
153
153
|
- name: Resolve Grafana E2E versions
|
|
154
154
|
id: resolve-versions
|
|
155
|
-
uses: grafana/plugin-actions/e2e-version@e2e-version/
|
|
155
|
+
uses: grafana/plugin-actions/e2e-version@e2e-version/v3.0.1
|
|
156
156
|
|
|
157
157
|
playwright-tests:
|
|
158
158
|
needs: [resolve-versions, build]
|
|
@@ -199,7 +199,7 @@ jobs:
|
|
|
199
199
|
ANONYMOUS_AUTH_ENABLED=false DEVELOPMENT=false GRAFANA_VERSION=$\{{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=$\{{ matrix.GRAFANA_IMAGE.NAME }} docker compose up -d
|
|
200
200
|
|
|
201
201
|
- name: Wait for grafana server
|
|
202
|
-
uses: grafana/plugin-actions/wait-for-grafana@wait-for-grafana/v1.0.
|
|
202
|
+
uses: grafana/plugin-actions/wait-for-grafana@wait-for-grafana/v1.0.4
|
|
203
203
|
with:
|
|
204
204
|
url: http://localhost:3000/login
|
|
205
205
|
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
release:
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
steps:
|
|
18
|
-
- uses: grafana/plugin-actions/create-plugin-update@create-plugin-update/v2.0.
|
|
18
|
+
- uses: grafana/plugin-actions/create-plugin-update@create-plugin-update/v2.0.2
|
|
19
19
|
with:
|
|
20
20
|
# Make sure to save the token in your repository secrets as `GH_PAT_TOKEN`
|
|
21
21
|
token: $\{{ secrets.GH_PAT_TOKEN }}
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
echo "modulets=${MODULETS}" >> $GITHUB_OUTPUT
|
|
37
37
|
|
|
38
38
|
- name: Compatibility check
|
|
39
|
-
uses: grafana/plugin-actions/is-compatible@is-compatible/v1.0.
|
|
39
|
+
uses: grafana/plugin-actions/is-compatible@is-compatible/v1.0.3
|
|
40
40
|
with:
|
|
41
41
|
module: $\{{ steps.find-module-ts.outputs.modulets }}
|
|
42
42
|
comment-pr: "no"
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
with:
|
|
21
21
|
persist-credentials: false
|
|
22
22
|
|
|
23
|
-
- uses: grafana/plugin-actions/build-plugin@build-plugin/v1.0
|
|
23
|
+
- uses: grafana/plugin-actions/build-plugin@build-plugin/v1.2.0
|
|
24
24
|
# Uncomment to enable plugin signing
|
|
25
25
|
# (For more info on how to generate the access policy token see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token)
|
|
26
26
|
#with:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Suspense, lazy } from 'react';
|
|
2
|
-
import { AppPlugin
|
|
2
|
+
import { AppPlugin } from '@grafana/data';
|
|
3
3
|
import { initPluginTranslations } from '@grafana/i18n';
|
|
4
4
|
import { loadResources } from '@grafana/scenes';
|
|
5
5
|
import { LoadingPlaceholder } from '@grafana/ui';
|
|
@@ -8,15 +8,9 @@ import pluginJson from 'plugin.json';
|
|
|
8
8
|
|
|
9
9
|
await initPluginTranslations(pluginJson.id, [loadResources]);
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const App = lazy(() => import('./components/App/App'));
|
|
12
12
|
const LazyAppConfig = lazy(() => import('./components/AppConfig/AppConfig'));
|
|
13
13
|
|
|
14
|
-
const App = (props: AppRootProps) => (
|
|
15
|
-
<Suspense fallback={<LoadingPlaceholder text="" />}>
|
|
16
|
-
<LazyApp {...props} />
|
|
17
|
-
</Suspense>
|
|
18
|
-
);
|
|
19
|
-
|
|
20
14
|
const AppConfig = (props: AppConfigProps) => (
|
|
21
15
|
<Suspense fallback={<LoadingPlaceholder text="" />}>
|
|
22
16
|
<LazyAppConfig {...props} />
|