@grafana/create-plugin 0.5.2-canary.145.f69fd70.0 → 0.5.3

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,29 @@
1
+ # v0.5.3 (Thu Nov 17 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Create-Plugin: Transform known ES modules in jest config [#145](https://github.com/grafana/plugin-tools/pull/145) ([@jackw](https://github.com/jackw))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
10
+
11
+ ---
12
+
13
+ # v0.5.2 (Thu Nov 17 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Create-Plugin: Bump dependencies to support node 18 [#144](https://github.com/grafana/plugin-tools/pull/144) ([@jackw](https://github.com/jackw))
18
+ - Create-Plugin: Backend template: Switch from Info to Debug level [#146](https://github.com/grafana/plugin-tools/pull/146) ([@xnyo](https://github.com/xnyo))
19
+
20
+ #### Authors: 2
21
+
22
+ - Giuseppe Guerra ([@xnyo](https://github.com/xnyo))
23
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
24
+
25
+ ---
26
+
1
27
  # v0.5.1 (Mon Nov 14 2022)
2
28
 
3
29
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "0.5.2-canary.145.f69fd70.0",
3
+ "version": "0.5.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -59,5 +59,5 @@
59
59
  "engines": {
60
60
  "node": ">=16"
61
61
  },
62
- "gitHead": "f69fd70639b88d3c9a5c85473d47f1039c6aeb1f"
62
+ "gitHead": "ffc20a3bfe4c15077f48f958808d212cfb463fb1"
63
63
  }
@@ -44,7 +44,9 @@ func (d *Datasource) Dispose() {
44
44
  // The QueryDataResponse contains a map of RefID to the response for each query, and each response
45
45
  // contains Frames ([]*Frame).
46
46
  func (d *Datasource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {
47
- log.DefaultLogger.Info("QueryData called", "request", req)
47
+ // when logging at a non-Debug level, make sure you don't include sensitive information in the message
48
+ // (like the *backend.QueryDataRequest)
49
+ log.DefaultLogger.Debug("QueryData called", "numQueries", len(req.Queries))
48
50
 
49
51
  // create response struct
50
52
  response := backend.NewQueryDataResponse()
@@ -94,7 +96,9 @@ func (d *Datasource) query(_ context.Context, pCtx backend.PluginContext, query
94
96
  // datasource configuration page which allows users to verify that
95
97
  // a datasource is working as expected.
96
98
  func (d *Datasource) CheckHealth(_ context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error) {
97
- log.DefaultLogger.Info("CheckHealth called", "request", req)
99
+ // when logging at a non-Debug level, make sure you don't include sensitive information in the message
100
+ // (like the *backend.QueryDataRequest)
101
+ log.DefaultLogger.Debug("CheckHealth called")
98
102
 
99
103
  var status = backend.HealthStatusOk
100
104
  var message = "Data source is working"
@@ -1,5 +1,4 @@
1
- /**
2
- * nodeModulesToTransform
1
+ /*
3
2
  * This utility function is useful in combination with jest `transformIgnorePatterns` config
4
3
  * to transform specific packages (e.g.ES modules) in a projects node_modules folder.
5
4
  */
@@ -20,40 +20,40 @@
20
20
  "@babel/core": "^7.16.7",
21
21
  "@grafana/e2e": "{{ grafanaVersion }}",
22
22
  "@grafana/e2e-selectors": "{{ grafanaVersion }}",
23
- "@grafana/eslint-config": "^2.5.0",
23
+ "@grafana/eslint-config": "^5.1.0",
24
24
  "@grafana/tsconfig": "^1.2.0-rc1",
25
25
  "@swc/core": "^1.2.144",
26
- "@swc/helpers": "^0.3.6",
26
+ "@swc/helpers": "^0.4.12",
27
27
  "@swc/jest": "^0.2.20",
28
28
  "@testing-library/jest-dom": "^5.16.2",
29
- "@testing-library/react": "^12.1.3",
29
+ "@testing-library/react": "^13.4.0",
30
30
  "@types/glob": "^8.0.0",
31
- "@types/jest": "^27.4.1",
32
- "@types/lodash": "latest",{{#if_eq pluginType "app"}}
31
+ "@types/jest": "^29.2.2",
32
+ "@types/lodash": "^4.14.188",{{#if_eq pluginType "app"}}
33
33
  "@types/react-router-dom": "^5.3.3",{{/if_eq}}
34
- "@types/node": "^17.0.19",
35
- "@typescript-eslint/eslint-plugin": "^4.33.0",
36
- "@typescript-eslint/parser": "^4.33.0",
37
- "copy-webpack-plugin": "^10.0.0",
38
- "css-loader": "6.7.1",
39
- "eslint": "^7.32.0",
34
+ "@types/node": "^18.11.9",
35
+ "@typescript-eslint/eslint-plugin": "^5.42.1",
36
+ "@typescript-eslint/parser": "^5.42.1",
37
+ "copy-webpack-plugin": "^11.0.0",
38
+ "css-loader": "^6.7.1",
39
+ "eslint": "8.26.0",
40
40
  "eslint-config-prettier": "^8.3.0",
41
- "eslint-plugin-jsdoc": "^36.1.0",
41
+ "eslint-plugin-jsdoc": "^39.6.2",
42
42
  "eslint-plugin-prettier": "^4.0.0",
43
43
  "eslint-plugin-react": "^7.26.1",
44
44
  "eslint-plugin-react-hooks": "^4.2.0",
45
45
  "eslint-webpack-plugin": "^3.1.1",
46
+ "fork-ts-checker-webpack-plugin": "^7.2.0",
46
47
  "glob": "^8.0.3",
47
48
  "identity-obj-proxy": "3.0.0",
48
49
  "jest": "27.5.0",
49
- "fork-ts-checker-webpack-plugin": "^7.2.0",
50
50
  "prettier": "^2.5.0",
51
51
  "replace-in-file-webpack-plugin": "^1.0.6",
52
- "sass": "1.55.0",
53
- "sass-loader": "13.1.0",
52
+ "sass": "1.56.1",
53
+ "sass-loader": "13.2.0",
54
54
  "style-loader": "3.3.1",
55
- "swc-loader": "^0.1.15",
56
- "tsconfig-paths": "^3.12.0",
55
+ "swc-loader": "^0.2.3",
56
+ "tsconfig-paths": "^4.1.0",
57
57
  "ts-node": "^10.5.0",
58
58
  "typescript": "^4.4.0",
59
59
  "webpack": "^5.69.1",