@grafana/create-plugin 1.0.0 → 1.0.1

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,21 @@
1
+ # v1.0.1 (Fri Mar 03 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Will Browne ([@wbrowne](https://github.com/wbrowne)), for all your work!
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Add `@latest` to docs and scripts using npx commands [#208](https://github.com/grafana/plugin-tools/pull/208) ([@tolzhabayev](https://github.com/tolzhabayev))
10
+ - Remove default logging examples as their usage is prone to user error [#205](https://github.com/grafana/plugin-tools/pull/205) ([@wbrowne](https://github.com/wbrowne))
11
+
12
+ #### Authors: 2
13
+
14
+ - Timur Olzhabayev ([@tolzhabayev](https://github.com/tolzhabayev))
15
+ - Will Browne ([@wbrowne](https://github.com/wbrowne))
16
+
17
+ ---
18
+
1
19
  # v1.0.0 (Fri Feb 03 2023)
2
20
 
3
21
  #### 💥 Breaking Change
package/README.md CHANGED
@@ -49,7 +49,7 @@ yarn dlx @grafana/create-plugin
49
49
  #### [`npx`](https://github.com/npm/npx)
50
50
 
51
51
  ```bash
52
- npx @grafana/create-plugin
52
+ npx @grafana/create-plugin@latest
53
53
  ```
54
54
 
55
55
  #### [`npm`](https://docs.npmjs.com/cli/v7/commands/npm-init)
@@ -71,7 +71,7 @@ following command to migrate it to the new build tooling:
71
71
  # Run this command from the root of your plugin
72
72
  cd ./my-plugin
73
73
 
74
- npx @grafana/create-plugin migrate
74
+ npx @grafana/create-plugin@latest migrate
75
75
  ```
76
76
 
77
77
  For more information see [here](https://grafana.github.io/plugin-tools/docs/migrating-from-toolkit)
@@ -90,7 +90,7 @@ that automatically updates the build configuration for you:
90
90
  # Run this command from the root of your plugin
91
91
  cd ./my-plugin
92
92
 
93
- npx @grafana/create-plugin update
93
+ npx @grafana/create-plugin@latest update
94
94
  ```
95
95
 
96
96
  For more information see [here](https://grafana.github.io/plugin-tools/docs/updating-to-new-releases)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=16"
62
62
  },
63
- "gitHead": "1b6746b0c95271772741cf1a8cba405919f53874"
63
+ "gitHead": "df4b2df88e1f540db9d6f3122115e1ac5bbdf2cf"
64
64
  }
@@ -9,7 +9,6 @@ import (
9
9
 
10
10
  "github.com/grafana/grafana-plugin-sdk-go/backend"
11
11
  "github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt"
12
- "github.com/grafana/grafana-plugin-sdk-go/backend/log"
13
12
  "github.com/grafana/grafana-plugin-sdk-go/data"
14
13
  )
15
14
 
@@ -45,10 +44,6 @@ func (d *Datasource) Dispose() {
45
44
  // The QueryDataResponse contains a map of RefID to the response for each query, and each response
46
45
  // contains Frames ([]*Frame).
47
46
  func (d *Datasource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {
48
- // when logging at a non-Debug level, make sure you don't include sensitive information in the message
49
- // (like the *backend.QueryDataRequest)
50
- log.DefaultLogger.Debug("QueryData called", "numQueries", len(req.Queries))
51
-
52
47
  // create response struct
53
48
  response := backend.NewQueryDataResponse()
54
49
 
@@ -99,10 +94,6 @@ func (d *Datasource) query(_ context.Context, pCtx backend.PluginContext, query
99
94
  // datasource configuration page which allows users to verify that
100
95
  // a datasource is working as expected.
101
96
  func (d *Datasource) CheckHealth(_ context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error) {
102
- // when logging at a non-Debug level, make sure you don't include sensitive information in the message
103
- // (like the *backend.QueryDataRequest)
104
- log.DefaultLogger.Debug("CheckHealth called")
105
-
106
97
  var status = backend.HealthStatusOk
107
98
  var message = "Data source is working"
108
99
 
@@ -13,7 +13,7 @@
13
13
  "e2e": "yarn cypress install && yarn grafana-e2e run",
14
14
  "e2e:update": "yarn cypress install && yarn grafana-e2e run --update-screenshots",
15
15
  "server": "docker-compose up --build",
16
- "sign": "npx --yes @grafana/sign-plugin"
16
+ "sign": "npx --yes @grafana/sign-plugin@latest"
17
17
  },
18
18
  "author": "{{ sentenceCase orgName }}",
19
19
  "license": "Apache-2.0",