Skip to content

Commit a5c37f5

Browse files
chore(release): bump version to 0.7.3 (#384)
- Add smoke tests for plugin configuration and query editor functionality. - Fix issue with the query editor being broken due to a dependency update. - Update @swc/core dependency to version 1.15.7 in package.json and yarn.lock. Fixes #383 --------- Co-authored-by: Sriram <[email protected]>
1 parent ad3802f commit a5c37f5

File tree

4 files changed

+68
-47
lines changed

4 files changed

+68
-47
lines changed

CHANGELOG.md

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

3+
## 0.7.3
4+
5+
🚀 Add smoke tests
6+
🐛 Fix: Query editor broken because of dependency (in v0.7.2)
7+
38
## 0.7.2
49

510
⚙️ Chore: Replaced custom timezone picker with Grafana UI component

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grafana-csv-datasource",
3-
"version": "0.7.2",
3+
"version": "0.7.3",
44
"description": "A Grafana data source for loading CSV data",
55
"keywords": [
66
"grafana",
@@ -47,7 +47,7 @@
4747
"@grafana/tsconfig": "^2.0.0",
4848
"@playwright/test": "^1.52.0",
4949
"@stylistic/eslint-plugin-ts": "^2.9.0",
50-
"@swc/core": "^1.13.4",
50+
"@swc/core": "1.15.7",
5151
"@swc/helpers": "^0.5.17",
5252
"@swc/jest": "^0.2.39",
5353
"@testing-library/jest-dom": "^6.1.5",

tests/e2e/smoke.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { test, expect } from '@grafana/plugin-e2e';
2+
3+
test('Smoke test: plugin loads config page', async ({ createDataSourceConfigPage, page }) => {
4+
await createDataSourceConfigPage({ type: 'marcusolsson-csv-datasource' });
5+
6+
await expect(await page.getByText('Type: CSV', { exact: true })).toBeVisible();
7+
await expect(await page.getByText('Storage Location', { exact: true })).toBeVisible();
8+
});
9+
10+
test('Smoke test: plugin query editor works', async ({ createDataSource, page, panelEditPage }) => {
11+
const datasource = await createDataSource({ type: 'marcusolsson-csv-datasource' });
12+
13+
await panelEditPage.datasource.set(datasource.name);
14+
15+
await expect(await page.getByText('Fields')).toBeVisible();
16+
});

yarn.lock

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,90 +2874,90 @@ __metadata:
28742874
languageName: node
28752875
linkType: hard
28762876

2877-
"@swc/core-darwin-arm64@npm:1.15.5":
2878-
version: 1.15.5
2879-
resolution: "@swc/core-darwin-arm64@npm:1.15.5"
2877+
"@swc/core-darwin-arm64@npm:1.15.7":
2878+
version: 1.15.7
2879+
resolution: "@swc/core-darwin-arm64@npm:1.15.7"
28802880
conditions: os=darwin & cpu=arm64
28812881
languageName: node
28822882
linkType: hard
28832883

2884-
"@swc/core-darwin-x64@npm:1.15.5":
2885-
version: 1.15.5
2886-
resolution: "@swc/core-darwin-x64@npm:1.15.5"
2884+
"@swc/core-darwin-x64@npm:1.15.7":
2885+
version: 1.15.7
2886+
resolution: "@swc/core-darwin-x64@npm:1.15.7"
28872887
conditions: os=darwin & cpu=x64
28882888
languageName: node
28892889
linkType: hard
28902890

2891-
"@swc/core-linux-arm-gnueabihf@npm:1.15.5":
2892-
version: 1.15.5
2893-
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.15.5"
2891+
"@swc/core-linux-arm-gnueabihf@npm:1.15.7":
2892+
version: 1.15.7
2893+
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.15.7"
28942894
conditions: os=linux & cpu=arm
28952895
languageName: node
28962896
linkType: hard
28972897

2898-
"@swc/core-linux-arm64-gnu@npm:1.15.5":
2899-
version: 1.15.5
2900-
resolution: "@swc/core-linux-arm64-gnu@npm:1.15.5"
2898+
"@swc/core-linux-arm64-gnu@npm:1.15.7":
2899+
version: 1.15.7
2900+
resolution: "@swc/core-linux-arm64-gnu@npm:1.15.7"
29012901
conditions: os=linux & cpu=arm64 & libc=glibc
29022902
languageName: node
29032903
linkType: hard
29042904

2905-
"@swc/core-linux-arm64-musl@npm:1.15.5":
2906-
version: 1.15.5
2907-
resolution: "@swc/core-linux-arm64-musl@npm:1.15.5"
2905+
"@swc/core-linux-arm64-musl@npm:1.15.7":
2906+
version: 1.15.7
2907+
resolution: "@swc/core-linux-arm64-musl@npm:1.15.7"
29082908
conditions: os=linux & cpu=arm64 & libc=musl
29092909
languageName: node
29102910
linkType: hard
29112911

2912-
"@swc/core-linux-x64-gnu@npm:1.15.5":
2913-
version: 1.15.5
2914-
resolution: "@swc/core-linux-x64-gnu@npm:1.15.5"
2912+
"@swc/core-linux-x64-gnu@npm:1.15.7":
2913+
version: 1.15.7
2914+
resolution: "@swc/core-linux-x64-gnu@npm:1.15.7"
29152915
conditions: os=linux & cpu=x64 & libc=glibc
29162916
languageName: node
29172917
linkType: hard
29182918

2919-
"@swc/core-linux-x64-musl@npm:1.15.5":
2920-
version: 1.15.5
2921-
resolution: "@swc/core-linux-x64-musl@npm:1.15.5"
2919+
"@swc/core-linux-x64-musl@npm:1.15.7":
2920+
version: 1.15.7
2921+
resolution: "@swc/core-linux-x64-musl@npm:1.15.7"
29222922
conditions: os=linux & cpu=x64 & libc=musl
29232923
languageName: node
29242924
linkType: hard
29252925

2926-
"@swc/core-win32-arm64-msvc@npm:1.15.5":
2927-
version: 1.15.5
2928-
resolution: "@swc/core-win32-arm64-msvc@npm:1.15.5"
2926+
"@swc/core-win32-arm64-msvc@npm:1.15.7":
2927+
version: 1.15.7
2928+
resolution: "@swc/core-win32-arm64-msvc@npm:1.15.7"
29292929
conditions: os=win32 & cpu=arm64
29302930
languageName: node
29312931
linkType: hard
29322932

2933-
"@swc/core-win32-ia32-msvc@npm:1.15.5":
2934-
version: 1.15.5
2935-
resolution: "@swc/core-win32-ia32-msvc@npm:1.15.5"
2933+
"@swc/core-win32-ia32-msvc@npm:1.15.7":
2934+
version: 1.15.7
2935+
resolution: "@swc/core-win32-ia32-msvc@npm:1.15.7"
29362936
conditions: os=win32 & cpu=ia32
29372937
languageName: node
29382938
linkType: hard
29392939

2940-
"@swc/core-win32-x64-msvc@npm:1.15.5":
2941-
version: 1.15.5
2942-
resolution: "@swc/core-win32-x64-msvc@npm:1.15.5"
2940+
"@swc/core-win32-x64-msvc@npm:1.15.7":
2941+
version: 1.15.7
2942+
resolution: "@swc/core-win32-x64-msvc@npm:1.15.7"
29432943
conditions: os=win32 & cpu=x64
29442944
languageName: node
29452945
linkType: hard
29462946

2947-
"@swc/core@npm:^1.13.4":
2948-
version: 1.15.5
2949-
resolution: "@swc/core@npm:1.15.5"
2947+
"@swc/core@npm:1.15.7":
2948+
version: 1.15.7
2949+
resolution: "@swc/core@npm:1.15.7"
29502950
dependencies:
2951-
"@swc/core-darwin-arm64": "npm:1.15.5"
2952-
"@swc/core-darwin-x64": "npm:1.15.5"
2953-
"@swc/core-linux-arm-gnueabihf": "npm:1.15.5"
2954-
"@swc/core-linux-arm64-gnu": "npm:1.15.5"
2955-
"@swc/core-linux-arm64-musl": "npm:1.15.5"
2956-
"@swc/core-linux-x64-gnu": "npm:1.15.5"
2957-
"@swc/core-linux-x64-musl": "npm:1.15.5"
2958-
"@swc/core-win32-arm64-msvc": "npm:1.15.5"
2959-
"@swc/core-win32-ia32-msvc": "npm:1.15.5"
2960-
"@swc/core-win32-x64-msvc": "npm:1.15.5"
2951+
"@swc/core-darwin-arm64": "npm:1.15.7"
2952+
"@swc/core-darwin-x64": "npm:1.15.7"
2953+
"@swc/core-linux-arm-gnueabihf": "npm:1.15.7"
2954+
"@swc/core-linux-arm64-gnu": "npm:1.15.7"
2955+
"@swc/core-linux-arm64-musl": "npm:1.15.7"
2956+
"@swc/core-linux-x64-gnu": "npm:1.15.7"
2957+
"@swc/core-linux-x64-musl": "npm:1.15.7"
2958+
"@swc/core-win32-arm64-msvc": "npm:1.15.7"
2959+
"@swc/core-win32-ia32-msvc": "npm:1.15.7"
2960+
"@swc/core-win32-x64-msvc": "npm:1.15.7"
29612961
"@swc/counter": "npm:^0.1.3"
29622962
"@swc/types": "npm:^0.1.25"
29632963
peerDependencies:
@@ -2986,7 +2986,7 @@ __metadata:
29862986
peerDependenciesMeta:
29872987
"@swc/helpers":
29882988
optional: true
2989-
checksum: 10c0/5517d998ad28b6812df46b6c6d9732b3abecb62e94a55d1151e8ede9792b5894b98260681e1de7c33da1a00726c495cff3080ebf97679765c88497e34a978e5a
2989+
checksum: 10c0/ae1d20db777bfe0404f2c840d8fa66da0664bca1f88ac8727cbe4c0cb04ee28505009b55caf345f1e790b96410f9bcf66d0178372e9c6505a9da76e7562a06bf
29902990
languageName: node
29912991
linkType: hard
29922992

@@ -7055,7 +7055,7 @@ __metadata:
70557055
"@grafana/ui": "npm:12.2.0"
70567056
"@playwright/test": "npm:^1.52.0"
70577057
"@stylistic/eslint-plugin-ts": "npm:^2.9.0"
7058-
"@swc/core": "npm:^1.13.4"
7058+
"@swc/core": "npm:1.15.7"
70597059
"@swc/helpers": "npm:^0.5.17"
70607060
"@swc/jest": "npm:^0.2.39"
70617061
"@testing-library/jest-dom": "npm:^6.1.5"

0 commit comments

Comments
 (0)