Skip to content

Commit

Permalink
chore(deps): update grafana packages to ^11.4.0 (#648)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Dec 18, 2024
1 parent d1f7acb commit 9e6c8c8
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 408 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier": "^3.0.0",
"react-router-dom": "^7.0.2",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "^1.63.4",
"sass-loader": "^16.0.0",
Expand All @@ -73,11 +74,11 @@
"dependencies": {
"@emotion/css": "^11.13.5",
"@emotion/serialize": "^1.3.3",
"@grafana/data": "^11.2.2",
"@grafana/data": "^11.4.0",
"@grafana/experimental": "^2.1.2",
"@grafana/runtime": "^11.2.2",
"@grafana/schema": "^11.2.2",
"@grafana/ui": "^11.2.2",
"@grafana/runtime": "^11.4.0",
"@grafana/schema": "^11.4.0",
"@grafana/ui": "^11.4.0",
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
5 changes: 4 additions & 1 deletion src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ export class DataSource extends DataSourceApi<GrafanaQuery, GenericOptions> {

const value = match(variable)
.with({ type: P.union('custom', 'query') }, (v) => valueFromVariableWithMultiSupport(v))
.with({ type: P.union('constant', 'datasource', 'groupby', 'interval', 'textbox') }, (v) => v.current.value)
.with(
{ type: P.union('constant', 'datasource', 'groupby', 'interval', 'snapshot', 'textbox') },
(v) => v.current.value
)
.exhaustive();

if (value === undefined) {
Expand Down
Loading

0 comments on commit 9e6c8c8

Please sign in to comment.