Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions grafana-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,94 +60,94 @@
"license": "Apache-2.0",
"devDependencies": {
"@grafana/tsconfig": "^2.2.0",
"@jest/globals": "30.5.0",
"@playwright/test": "1.62.1",
"@rsbuild/core": "2.2.1",
"@rsbuild/plugin-react": "2.1.0",
"@swc/core": "1.16.1",
"@jest/globals": "30.5.2",
"@playwright/test": "1.63.0",
"@rsbuild/core": "2.2.11",
"@rsbuild/plugin-react": "2.1.1",
"@swc/core": "1.16.12",
"@swc/helpers": "^0.5.23",
"@swc/jest": "^0.2.39",
"@testing-library/dom": "latest",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.6",
"@testing-library/user-event": "^14.6.7",
"@types/express": "^4.17.21",
"@types/jest": "^30.0.0",
"@types/lodash": "^4.17.25",
"@types/lodash-es": "^4.17.6",
"@types/node": "^24.13.3",
"@types/node": "^24.19.0",
"@types/react": "18.2.0",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "18.2.0",
"@types/react-responsive": "^8.0.5",
"@types/react-test-renderer": "^18.0.5",
"@types/throttle-debounce": "^5.0.0",
"dompurify": "^3.4.14",
"express": "^4.21.2",
"dompurify": "^3.4.16",
"express": "^4.22.3",
"identity-obj-proxy": "3.0.0",
"jest": "30.5.0",
"jest-environment-jsdom": "30.5.0",
"jest": "30.5.2",
"jest-environment-jsdom": "30.5.2",
"jest-html-reporters": "^3.1.7",
"knip": "^6.33.0",
"knip": "^6.38.0",
"lint-staged": "^16.4.0",
"lodash-es": "^4.17.21",
"mailslurp-client": "^17.4.0",
"moment-timezone": "0.6.3",
"mailslurp-client": "^17.6.0",
"moment-timezone": "0.6.4",
"openapi-typescript": "^7.13.0",
"oxfmt": "0.65.0",
"oxlint": "1.80.0",
"oxfmt": "0.71.0",
"oxlint": "1.86.0",
"react-test-renderer": "^18.0.2",
"semver": "^7.8.5",
"serve": "^14.2.6",
"stylelint": "17.14.1",
"stylelint": "17.15.0",
"stylelint-config-standard": "^40.0.0",
"ts-jest": "29.4.12",
"ts-jest": "29.4.14",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "5.9.3"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"@emotion/css": "11.10.6",
"@grafana/data": "^11.1.3",
"@emotion/css": "11.13.5",
"@grafana/data": "^11.6.16",
"@grafana/faro-web-sdk": "^1.19.0",
"@grafana/faro-web-tracing": "^1.19.0",
"@grafana/labels": "^1.6.6",
"@grafana/runtime": "^11.1.3",
"@grafana/labels": "^1.6.13",
"@grafana/runtime": "^11.6.16",
"@grafana/scenes": "^1.28.0",
"@grafana/schema": "^11.1.3",
"@grafana/schema": "^11.6.16",
"@grafana/ui": "^11.1.3",
"@lifeomic/attempt": "^3.0.3",
"axios": "^1.18.0",
"axios": "^1.20.0",
"change-case": "^4.1.1",
"classnames": "^2.3.2",
"dayjs": "^1.11.5",
"dayjs": "^1.11.23",
"immutability-helper": "^3.1.1",
"linkify-react": "^4.3.2",
"linkifyjs": "^4.3.2",
"mobx": "6.12.0",
"mobx-react": "9.1.0",
"linkify-react": "^4.3.3",
"linkifyjs": "^4.3.3",
"mobx": "6.16.1",
"mobx-react": "9.2.2",
"object-hash": "^3.0.0",
"openapi-fetch": "^0.8.1",
"openapi-fetch": "^0.17.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapt the custom fetch wrapper to the new Request-based API

openapi-fetch 0.17 passes a Request to its custom fetch function, but getCustomFetchFn in src/network/oncall-api/http-client.ts:21–31 still expects (url, requestConfig) and immediately calls requestConfig.headers.set. With the second argument absent, every request through onCallApi() throws before reaching the network (including loading alert groups); update the adapter to handle the Request and preserve its headers, method, and body alongside this bump.

Prompt To Fix With AI
This is a comment left during a code review.
Path: grafana-plugin/package.json
Line: 134

Comment:
**Adapt the custom fetch wrapper to the new Request-based API**

`openapi-fetch` 0.17 passes a `Request` to its custom fetch function, but `getCustomFetchFn` in `src/network/oncall-api/http-client.ts:21–31` still expects `(url, requestConfig)` and immediately calls `requestConfig.headers.set`. With the second argument absent, every request through `onCallApi()` throws before reaching the network (including loading alert groups); update the adapter to handle the Request and preserve its headers, method, and body alongside this bump.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟠 Major · bug · Reply if this doesn't apply.

"qrcode.react": "^3.1.0",
"query-string": "^9.5.1",
"rc-table": "^7.17.1",
"react": "18.2.0",
"react-copy-to-clipboard": "^5.0.2",
"react-dom": "18.2.0",
"react-draggable": "^4.7.1",
"rc-table": "^7.55.1",
"react": "18.3.1",
"react-copy-to-clipboard": "^5.1.1",
"react-dom": "18.3.1",
"react-draggable": "^4.7.2",
"react-emoji-render": "^1.2.4",
"react-hook-form": "^7.50.1",
"react-modal": "^3.15.1",
"react-hook-form": "^7.89.0",
"react-modal": "^3.16.3",
"react-responsive": "^8.1.0",
"react-router-v7": "npm:react-router@7.18.2",
"react-string-replace": "^0.4.4",
"react-string-replace": "^0.5.1",
"react-use": "^17.4.0",
"throttle-debounce": "^2.1.0",
"tinycolor2": "^1.6.0",
"tslib": "2.5.3"
"tslib": "2.8.1"
}
}
Loading
Loading