ran npx @grafana/create-plugin@latest update which automatically:
updated all the files in the .config/
updated scripts and dependencies in package.json
.nvmrc: updated node version to 20
docker-compose.yaml: update grafana image to use 10.4.5
removed @grafana/e2e packages and references to it
src/components/query/QueryEditor.test.tsx: remove unnecessary await to fix a warning
othersrc/* files:
formatting changes
a lot of the functions in src/sitewiseCache.ts used toPromise which has a return type of Promise<T | undefined> so I updated the type signature of those functions and update its usages to check for undefined.
Note to reviewer: I recommended hiding whitespace changes when viewing to hide formatting changes.
Changes:
npx @grafana/create-plugin@latest update
which automatically:.config/
package.json
.nvmrc
: updated node version to 20docker-compose.yaml
: update grafana image to use 10.4.5src/components/query/QueryEditor.test.tsx
: remove unnecessaryawait
to fix a warningsrc/*
files:src/sitewiseCache.ts
usedtoPromise
which has a return type ofPromise<T | undefined>
so I updated the type signature of those functions and update its usages to check for undefined.Note to reviewer: I recommended hiding whitespace changes when viewing to hide formatting changes.