@grafana/create-plugin 5.5.0-canary.1153.af88417.0 → 5.5.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 +44 -0
- package/package.json +2 -2
- package/templates/common/.config/types/custom.d.ts +0 -12
- package/templates/common/.config/webpack/webpack.config.ts +12 -9
- package/templates/common/_package.json +8 -8
- package/templates/common/docker-compose.yaml +1 -1
- package/templates/scenes-app/src/pages/Home/Home.tsx +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
# v5.5.0 (Fri Oct 04 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Create Plugin: Support SRI in dynamic imported chunks [#999](https://github.com/grafana/plugin-tools/pull/999) ([@jackw](https://github.com/jackw))
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug Fix
|
|
8
|
+
|
|
9
|
+
- Update dependency @grafana/scenes to v5.16.3 [#1161](https://github.com/grafana/plugin-tools/pull/1161) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
10
|
+
|
|
11
|
+
#### Authors: 2
|
|
12
|
+
|
|
13
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
14
|
+
- Jack Westbrook ([@jackw](https://github.com/jackw))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# v5.4.2 (Thu Oct 03 2024)
|
|
19
|
+
|
|
20
|
+
#### 🐛 Bug Fix
|
|
21
|
+
|
|
22
|
+
- Create Plugin: Remove topnav feature flag from Scenes templates [#1139](https://github.com/grafana/plugin-tools/pull/1139) ([@jackw](https://github.com/jackw))
|
|
23
|
+
- Update grafana patch dependencies [#1156](https://github.com/grafana/plugin-tools/pull/1156) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
24
|
+
|
|
25
|
+
#### Authors: 2
|
|
26
|
+
|
|
27
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
28
|
+
- Jack Westbrook ([@jackw](https://github.com/jackw))
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# v5.4.1 (Tue Oct 01 2024)
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fix
|
|
35
|
+
|
|
36
|
+
- Update grafana dependencies [#1113](https://github.com/grafana/plugin-tools/pull/1113) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
37
|
+
- Update grafana patch dependencies [#1141](https://github.com/grafana/plugin-tools/pull/1141) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
38
|
+
|
|
39
|
+
#### Authors: 1
|
|
40
|
+
|
|
41
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
1
45
|
# v5.4.0 (Mon Sep 30 2024)
|
|
2
46
|
|
|
3
47
|
#### 🚀 Enhancement
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "5.5.0
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=20"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "889ae14643d060d2317801a561bcbd918fa94c37"
|
|
92
92
|
}
|
|
@@ -35,15 +35,3 @@ declare module '*.woff2';
|
|
|
35
35
|
declare module '*.eot';
|
|
36
36
|
declare module '*.ttf';
|
|
37
37
|
declare module '*.otf';
|
|
38
|
-
|
|
39
|
-
// CSS declarations
|
|
40
|
-
declare module '*.module.css' {
|
|
41
|
-
const classes: { [key: string]: string };
|
|
42
|
-
export default classes;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare module '*.css' {
|
|
46
|
-
const content: string;
|
|
47
|
-
export default content;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
|
9
9
|
import ESLintPlugin from 'eslint-webpack-plugin';
|
|
10
10
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
11
|
-
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
12
11
|
import path from 'path';
|
|
13
12
|
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
|
|
14
13
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
14
|
+
import { SubresourceIntegrityPlugin } from "webpack-subresource-integrity";
|
|
15
15
|
import { type Configuration, BannerPlugin } from 'webpack';
|
|
16
16
|
import LiveReloadPlugin from 'webpack-livereload-plugin';
|
|
17
17
|
import VirtualModulesPlugin from 'webpack-virtual-modules';
|
|
@@ -132,13 +132,12 @@ const config = async (env): Promise<Configuration> => {
|
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
test: /\.
|
|
136
|
-
use: [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
],
|
|
135
|
+
test: /\.css$/,
|
|
136
|
+
use: ['style-loader', 'css-loader'],
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
test: /\.s[ac]ss$/,
|
|
140
|
+
use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
142
141
|
},
|
|
143
142
|
{
|
|
144
143
|
test: /\.(png|jpe?g|gif|svg)$/,
|
|
@@ -184,6 +183,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
184
183
|
path: path.resolve(process.cwd(), DIST_DIR),
|
|
185
184
|
publicPath: `public/plugins/${pluginJson.id}/`,
|
|
186
185
|
uniqueName: pluginJson.id,
|
|
186
|
+
crossOriginLoading: 'anonymous',
|
|
187
187
|
},
|
|
188
188
|
|
|
189
189
|
plugins: [
|
|
@@ -233,6 +233,9 @@ const config = async (env): Promise<Configuration> => {
|
|
|
233
233
|
],
|
|
234
234
|
},
|
|
235
235
|
]),
|
|
236
|
+
new SubresourceIntegrityPlugin({
|
|
237
|
+
hashFuncNames: ["sha256"],
|
|
238
|
+
}),
|
|
236
239
|
...(env.development ? [
|
|
237
240
|
new LiveReloadPlugin(),
|
|
238
241
|
new ForkTsCheckerWebpackPlugin({
|
|
@@ -246,7 +249,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
246
249
|
extensions: ['.ts', '.tsx'],
|
|
247
250
|
lintDirtyModulesOnly: Boolean(env.development), // don't lint on start, only lint changed files
|
|
248
251
|
}),
|
|
249
|
-
] : [
|
|
252
|
+
] : []),
|
|
250
253
|
],
|
|
251
254
|
|
|
252
255
|
resolve: {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/core": "^7.21.4",{{#if useCypress}}
|
|
22
|
-
"@grafana/e2e": "^11.0.
|
|
23
|
-
"@grafana/e2e-selectors": "^11.2.
|
|
22
|
+
"@grafana/e2e": "^11.0.6",
|
|
23
|
+
"@grafana/e2e-selectors": "^11.2.2",{{/if}}
|
|
24
24
|
"@grafana/eslint-config": "^7.0.0",{{#if usePlaywright}}
|
|
25
|
-
"@grafana/plugin-e2e": "^1.
|
|
25
|
+
"@grafana/plugin-e2e": "^1.8.3",{{/if}}
|
|
26
26
|
"@grafana/tsconfig": "^2.0.0",{{#if usePlaywright}}
|
|
27
27
|
"@playwright/test": "^1.41.2",{{/if}}
|
|
28
28
|
"@swc/core": "^1.3.90",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"imports-loader": "^5.0.0",
|
|
45
45
|
"jest": "^29.5.0",
|
|
46
46
|
"jest-environment-jsdom": "^29.5.0",
|
|
47
|
-
"mini-css-extract-plugin": "^2.9.1",
|
|
48
47
|
"prettier": "^2.8.7",
|
|
49
48
|
"replace-in-file-webpack-plugin": "^1.0.6",
|
|
50
49
|
"sass": "1.63.2",
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
"webpack": "^5.94.0",
|
|
59
58
|
"webpack-cli": "^5.1.4",
|
|
60
59
|
"webpack-livereload-plugin": "^3.0.2",
|
|
60
|
+
"webpack-subresource-integrity": "^5.1.0",
|
|
61
61
|
"webpack-virtual-modules": "^0.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@emotion/css": "11.10.6",
|
|
68
|
-
"@grafana/data": "^11.2.
|
|
69
|
-
"@grafana/runtime": "^11.2.
|
|
70
|
-
"@grafana/ui": "^11.2.
|
|
68
|
+
"@grafana/data": "^11.2.2",
|
|
69
|
+
"@grafana/runtime": "^11.2.2",
|
|
70
|
+
"@grafana/ui": "^11.2.2",
|
|
71
71
|
"@grafana/schema": "^10.4.0",{{#if_eq pluginType "scenesapp"}}
|
|
72
|
-
"@grafana/scenes": "^5.
|
|
72
|
+
"@grafana/scenes": "^5.16.3",{{/if_eq}}
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-dom": "18.2.0",{{#if isAppType}}
|
|
75
75
|
"react-router-dom": "^{{ reactRouterVersion }}",
|
|
@@ -28,12 +28,6 @@ const HomePage = () => {
|
|
|
28
28
|
|
|
29
29
|
return (
|
|
30
30
|
<>
|
|
31
|
-
{!config.featureToggles.topnav && (
|
|
32
|
-
<Alert title="Missing topnav feature toggle">
|
|
33
|
-
Scenes are designed to work with the new navigation wrapper that will be standard in Grafana 10
|
|
34
|
-
</Alert>
|
|
35
|
-
)}
|
|
36
|
-
|
|
37
31
|
{!config.datasources[DATASOURCE_REF.uid] && (
|
|
38
32
|
<Alert title={`Missing ${DATASOURCE_REF.uid} datasource`}>
|
|
39
33
|
These demos depend on <b>testdata</b> datasource: <code>{JSON.stringify(DATASOURCE_REF)}</code>. See{' '}
|