Skip to content

Commit 6983d66

Browse files
authored
Improve changeset and refresh CHANGELOG (#355)
* chore: add changeset-improved from plugin-ui and refresh CHANGELOG * update changelog * add resolutions for @grafana/... packages to match version in dependencies everywhere
1 parent 503899b commit 6983d66

File tree

4 files changed

+344
-49
lines changed

4 files changed

+344
-49
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": "@grafana/plugin-ui/dist/utils/changeset/functions.js",
44
"commit": false,
55
"fixed": [],
66
"linked": [],

CHANGELOG.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changelog
22

3-
## 1.3.6 (2023-05-30)
3+
## v1.3.6 - 2023-05-30
44

5-
- **Chore**: Docs update
5+
- ⚙️ **Chore**: Docs update
66

7-
## 1.3.5 (2023-04-05)
7+
## v1.3.5 - 2023-04-05
88

9-
- **Security**: Recently, A third party researcher (Alessio Della Libera of **Snyk Research Team**) discovered and privately disclosed to us a stored XSS vulnerability in the Grafana-maintained `marcusolsson-json-datasource` plugin also known as “JSON API plugin” .
9+
- 🛡️ **Security**: Recently, A third party researcher (Alessio Della Libera of **Snyk Research Team**) discovered and privately disclosed to us a stored XSS vulnerability in the Grafana-maintained `marcusolsson-json-datasource` plugin also known as “JSON API plugin” .
1010

1111
Users with the editor role could perform a stored XSS attack against other viewers, editors, and administrators by including a specially crafted javascript statement in the `field` extractor in queries to the marcusolsson-json-datasource plugin. This resulted in XSS against anyone viewing a panel configured to query the datasource with a malicious query.
1212

@@ -20,22 +20,22 @@ If your dashboards currently rely on JSONPath queries containing subexpressions,
2020
2. For more complex queries, we suggest switching to the [`jsonata` language](http://docs.jsonata.org/simple), which the plugin also supports. This language has similar features to JSONPath, including support for filter expressions (called “predicates” in the documentation).
2121
3. If changing your existing queries isn’t feasible, the community plugin [“Infinity”](https://grafana.com/grafana/plugins/yesoreyeram-infinity-datasource/) supports JSONPath expressions, including filters and subexpressions if used with the `backend` parser option. Please note that Infinity is community supported plugin.
2222

23-
## 1.3.4 (2023-04-04)
23+
## v1.3.4 - 2023-04-04
2424

25-
- **Chore**: docs update
25+
- ⚙️ **Chore**: docs update
2626

27-
## 1.3.3 (2023-03-20)
27+
## v1.3.3 - 2023-03-20
2828

29-
- **Chore**: dependencies update
30-
- **Chore**: spellcheck added
29+
- ⚙️ **Chore**: dependencies update
30+
- ⚙️ **Chore**: spellcheck added
3131

32-
## 1.3.2 (2022-10-14)
32+
## v1.3.2 - 2022-10-14
3333

3434
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.3.1...v1.3.2)
3535

3636
- Fixed the broken docs and links
3737

38-
## 1.3.1 (2022-01-24)
38+
## v1.3.1 - 2022-01-24
3939

4040
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.3.0...v1.3.1)
4141

@@ -48,7 +48,7 @@ If your dashboards currently rely on JSONPath queries containing subexpressions,
4848

4949
- Certain strings incorrectly identified as dates [#202](https://github.com/grafana/grafana-json-datasource/issues/202)
5050

51-
## 1.3.0 (2021-09-03)
51+
## v1.3.0 - 2021-09-03
5252

5353
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.2.1...v1.3.0)
5454

@@ -60,15 +60,15 @@ If your dashboards currently rely on JSONPath queries containing subexpressions,
6060

6161
- Cannot read property 'filter' of undefined ([#156](https://github.com/grafana/grafana-json-datasource/issues/156))
6262

63-
## 1.2.1 (2021-06-18)
63+
## v1.2.1 - 2021-06-18
6464

6565
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.2.0...v1.2.1)
6666

6767
### Enhancements
6868

6969
- Update dependencies, docs, and metadata
7070

71-
## 1.2.0 (2021-05-18)
71+
## v1.2.0 - 2021-05-18
7272

7373
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.1.1...v1.2.0)
7474

@@ -79,9 +79,9 @@ If your dashboards currently rely on JSONPath queries containing subexpressions,
7979

8080
### Bug fixes
8181

82-
- Fix for macros not running in variable queries ([#100](https://github.com/grafana/grafana-json-datasource/pull/100)) (thanks [@KensingtonTech](https://github.com/KensingtonTech)!)
82+
- 🐛 **Fix**: Fix for macros not running in variable queries ([#100](https://github.com/grafana/grafana-json-datasource/pull/100)) (thanks [@KensingtonTech](https://github.com/KensingtonTech)!)
8383

84-
## 1.1.1 (2021-04-17)
84+
## v1.1.1 - 2021-04-17
8585

8686
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.1.0...v1.1.1)
8787

@@ -91,10 +91,10 @@ If your dashboards currently rely on JSONPath queries containing subexpressions,
9191

9292
### Bug fixes
9393

94-
- Fix issue where wrong fields were used when grouping
94+
- 🐛 **Fix**: Fix issue where wrong fields were used when grouping
9595
- Add variable support for aliases
9696

97-
## 1.1.0 (2021-04-15)
97+
## v1.1.0 - 2021-04-15
9898

9999
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.0.1...v1.1.0)
100100

@@ -116,7 +116,7 @@ This release introduces an Experimental tab to the query editor. This will be us
116116
- Ignore hidden queries ([#83](https://github.com/grafana/grafana-json-datasource/issues/83))
117117
- New queries don't use default values
118118

119-
## 1.0.1 (2021-03-05)
119+
## v1.0.1 - 2021-03-05
120120

121121
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v1.0.0...v1.0.1)
122122

@@ -128,13 +128,13 @@ This release introduces an Experimental tab to the query editor. This will be us
128128

129129
- Can't connect to API when URL contains encoded slash ([#59](https://github.com/grafana/grafana-json-datasource/issues/59))
130130

131-
## 1.0.0 (2021-03-04)
131+
## v1.0.0 - 2021-03-04
132132

133133
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.10.1...v1.0.0)
134134

135135
No noteworthy features or bug fixes in this release. Mostly metadata updates.
136136

137-
## 0.10.1 (2021-02-27)
137+
## v0.10.1 - 2021-02-27
138138

139139
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.10.0...v0.10.1)
140140

@@ -143,31 +143,31 @@ No noteworthy features or bug fixes in this release. Mostly metadata updates.
143143
- Undefined cache duration isn't handled
144144
- Query editor tries to update read only property
145145

146-
## 0.10.0 (2021-02-19)
146+
## v0.10.0 - 2021-02-19
147147

148148
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.9.2...v0.10.0)
149149

150150
### Enhancements
151151

152152
- Add auto-completion to JSON Path queries
153153

154-
## 0.9.2 (2021-02-03)
154+
## v0.9.2 - 2021-02-03
155155

156156
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.9.1...v0.9.2)
157157

158158
### Bug fixes
159159

160160
- Variable queries fail with error ([#48](https://github.com/grafana/grafana-json-datasource/issues/48))
161161

162-
## 0.9.1 (2021-02-01)
162+
## v0.9.1 - 2021-02-01
163163

164164
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.9.0...v0.9.1)
165165

166166
### Bug fixes
167167

168168
- Cannot read property 'toString' of null ([#46](https://github.com/grafana/grafana-json-datasource/issues/46))
169169

170-
## 0.9.0 (2021-02-01)
170+
## v0.9.0 - 2021-02-01
171171

172172
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.8.0...v0.9.0)
173173

@@ -185,7 +185,7 @@ It introduces a new key value editor for query parameters and headers, as well a
185185

186186
This release deprecates the `queryString` property in the query model, in favor of the new `params`. The query string config _should_ be backwards-compatible (and forward-compatible) with previous versions, but make sure to back up your dashboard before upgrading.
187187

188-
## 0.8.0 (2021-01-08)
188+
## v0.8.0 - 2021-01-08
189189

190190
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.7.1...v0.8.0)
191191

@@ -199,15 +199,15 @@ This release deprecates the `queryString` property in the query model, in favor
199199
- Grafana Explore gets stuck when adding a second query ([#31](https://github.com/grafana/grafana-json-datasource/issues/31))
200200
- Multiple data source queries overwrite each other
201201

202-
## 0.7.1 (2020-12-07)
202+
## v0.7.1 - 2020-12-07
203203

204204
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.7.0...v0.7.1)
205205

206206
### Bug fixes
207207

208208
- Falsy values are returned as NaN ([#25](https://github.com/grafana/grafana-json-datasource/issues/25))
209209

210-
## 0.7.0 (2020-12-04)
210+
## v0.7.0 - 2020-12-04
211211

212212
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.6.4...v0.7.0)
213213

@@ -222,15 +222,15 @@ This release deprecates the `queryString` property in the query model, in favor
222222
- Template variable chaining is not working ([#23](https://github.com/grafana/grafana-json-datasource/issues/23))
223223
- Cannot read property 'length' of null ([#21](https://github.com/grafana/grafana-json-datasource/issues/21))
224224

225-
## 0.6.4 (2020-11-30)
225+
## v0.6.4 - 2020-11-30
226226

227227
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.6.3...v0.6.4)
228228

229229
### Bug fixes
230230

231231
- Fixes an issue where custom query parameters defined in the data source are flipped.
232232

233-
## 0.6.3 (2020-11-27)
233+
## v0.6.3 - 2020-11-27
234234

235235
[Full changelog](https://github.com/grafana/grafana-json-datasource/compare/v0.6.2...v0.6.3)
236236

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "grafana-toolkit plugin:test",
1414
"dev": "grafana-toolkit plugin:dev",
1515
"watch": "grafana-toolkit plugin:dev --watch",
16-
"sign": "grafana-toolkit plugin:sign"
16+
"sign": "grafana-toolkit plugin:sign",
17+
"changeset": "changeset-improved"
1718
},
1819
"homepage": "https://grafana.com/plugins/marcusolsson-json-datasource",
1920
"bugs": "https://github.com/grafana/grafana-json-datasource/issues",
@@ -23,6 +24,7 @@
2324
"url": "https://grafana.com"
2425
},
2526
"dependencies": {
27+
"@grafana/plugin-ui": "^0.3.1",
2628
"dayjs": "^1.10.4",
2729
"jsonata": "^1.8.6",
2830
"jsonpath-plus": "^6.0.1",
@@ -53,7 +55,11 @@
5355
"resolutions": {
5456
"minimist": "1.2.8",
5557
"moment": "2.29.4",
56-
"moment-timezone": "0.5.41"
58+
"moment-timezone": "0.5.41",
59+
"@grafana/data": "9.4.3",
60+
"@grafana/runtime": "9.4.3",
61+
"@grafana/toolkit": "9.4.3",
62+
"@grafana/ui": "9.4.3"
5763
},
5864
"engines": {
5965
"node": ">=14"

0 commit comments

Comments
 (0)