Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Updates dependencies and fixes some simple deprecation warnings
Changes
npx @grafana/create-plugin@latest update
:.config
directory.cprc.json
.github/workflows/detect-breaking-changes.yml
: remove reference to@grafana/e2e-selectors
which is no longer used in TwinMaker.nvmrc
: bump node to the latest LTS versionREADME.md
: add note to notify the TwinMaker team on changes to be releasedcspell.config.json
: added additional word to ignore for spellchecksgo.mod
: bumpgithub.com/grafana/grafana-plugin-sdk-go
jest-setup.js
: automatic formatting changespackage.json
:scripts
mostly automated changes from runningnpx @grafana/create-plugin@latest update
dependencies
as those are potentially bigger changes that might not be compatible with some versions of Amazon Managed Grafanadependencies
:devDependencies
@grafana/*
packages to latest 10.x.x versions, but left existing aws related dependencies the samedevDependencies
:@grafana/*
, packages,react
,react-dom
that were added todependencies
bynpx @grafana/create-plugin@latest update
. This is to prevent having different versions of the same packages defined in bothdevDependencies
anddependencies
.@grafana/eslint-config
, there is no point having a separate version of those plugins installed.resolutions
:"lodash.pick": "https://github.com/lodash/lodash/archive/refs/tags/4.17.21.tar.gz"
: the modularized packages for lodash are deprecated and don't receive updates for vulns"react-use": "^17.5.0"
: to force it to a version withoutfast-loops
"rxjs": "7.5.1"
: use the version ofrxjs
from@grafana/data
"moment-timezone": "^0.5.35"
:yarn why moment-timezone
shows 0.5.45 is the only version installed after removing the resolution"moment": "^2.29.4"``yarn why moment
shows only versions without known vulns are installed after removing the resolution"@braintree/sanitize-url": "^6.0.1"
:yarn why @braintree/sanitize-url
shows 7.0.0 is the only version installed after removing the resolution"yaml": "^2.2.2"
:yarn why yaml
shows only versions without known vulns are installed after removing the resolution"prismjs": "^1.27.0"
:yarn why prismjs
shows 1.29.0 is the only version installed after removing the resolution"minimatch": "^3.0.5"
:yarn why debug
shows only versions without known vulns are installed after removing the resolution"xml2js": "^0.5.0"
:yarn why xml2js
shows 0.5.0 is the only version installed after removing the resolution"debug": "^4.0.0"
:yarn why debug
shows only versions without known vulns are installed after removing the resolution"underscore": "^1.12.1"
: this was previously required because of@grafana/e2e
which is no longer used in"log4js": "^6.4.0"
: this was previously required because of@grafana/e2e
which is no longer used in TwinMaker"@types/video.js": "^7.3.51"
:video.js
is not imported in any of the source code so the types are not requiredvideo.js": "8.3.0"
: 8.3.0 is already installed from@iot-app-kit/react-components
DataQuery
in@grafana/data
deprecated in favor ofDataQuery
from@grafana/schema
,JSX.Element
deprecated in favor ofReact.JSX.Element
toBeCalledTimes
andtoBeCalledWith
deprecated in favor oftoHaveBeenCalledTimes
andtoHaveBeenCalledWith
src/common/manager.ts
src/datasource/components/QueryOptions.tsx
src/datasource/requestLooper.ts
src/panels/scene-viewer/helpers.test.ts
src/panels/tests/sdkInit.spec.ts
src/panels/video-player/VideoPlayer.test.tsx
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
I suggest view the diff with
Hide whitespace
enabled to hide formatting changes.