Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump the js-deps group across 1 directory with 53 updates #4217

Closed
wants to merge 3 commits into from
Closed
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
39 changes: 31 additions & 8 deletions .storybook/static/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* - Please do NOT serve this file on production.
*/

const PACKAGE_VERSION = '2.4.9'
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
const PACKAGE_VERSION = '2.7.0'
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
const activeClientIds = new Set()

Expand Down Expand Up @@ -62,7 +62,12 @@ self.addEventListener('message', async function (event) {

sendToClient(client, {
type: 'MOCKING_ENABLED',
payload: true,
payload: {
client: {
id: client.id,
frameType: client.frameType,
},
},
})
break
}
Expand Down Expand Up @@ -155,6 +160,10 @@ async function handleRequest(event, requestId) {
async function resolveMainClient(event) {
const client = await self.clients.get(event.clientId)

if (activeClientIds.has(event.clientId)) {
return client
}

if (client?.frameType === 'top-level') {
return client
}
Expand Down Expand Up @@ -183,12 +192,26 @@ async function getResponse(event, client, requestId) {
const requestClone = request.clone()

function passthrough() {
const headers = Object.fromEntries(requestClone.headers.entries())
// Cast the request headers to a new Headers instance
// so the headers can be manipulated with.
const headers = new Headers(requestClone.headers)

// Remove the "accept" header value that marked this request as passthrough.
// This prevents request alteration and also keeps it compliant with the
// user-defined CORS policies.
const acceptHeader = headers.get('accept')
if (acceptHeader) {
const values = acceptHeader.split(',').map((value) => value.trim())
const filteredValues = values.filter(
(value) => value !== 'msw/passthrough',
)

// Remove internal MSW request header so the passthrough request
// complies with any potential CORS preflight checks on the server.
// Some servers forbid unknown request headers.
delete headers['x-msw-intention']
if (filteredValues.length > 0) {
headers.set('accept', filteredValues.join(', '))
} else {
headers.delete('accept')
}
}

return fetch(requestClone, { headers })
}
Expand Down
106 changes: 53 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,64 +33,64 @@
},
"devDependencies": {
"@apollo/client": "3.12.3",
"@babel/core": "7.25.2",
"@babel/plugin-transform-modules-commonjs": "7.24.8",
"@babel/core": "7.26.0",
"@babel/plugin-transform-modules-commonjs": "7.26.3",
"@codemirror/commands": "6.7.1",
"@codemirror/language": "6.10.3",
"@codemirror/lint": "6.8.2",
"@codemirror/state": "6.4.1",
"@codemirror/view": "6.34.2",
"@dnd-kit/core": "6.1.0",
"@codemirror/language": "6.10.7",
"@codemirror/lint": "6.8.4",
"@codemirror/state": "6.5.0",
"@codemirror/view": "6.36.0",
"@dnd-kit/core": "6.3.1",
"@dnd-kit/sortable": "8.0.0",
"@dnd-kit/utilities": "3.2.2",
"@emotion/cache": "11.13.1",
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@lezer/generator": "1.7.1",
"@emotion/cache": "11.14.0",
"@emotion/react": "11.14.0",
"@emotion/styled": "11.14.0",
"@lezer/generator": "1.7.2",
"@lezer/highlight": "1.2.1",
"@lezer/lr": "1.4.2",
"@material/material-color-utilities": "0.2.7",
"@material/material-color-utilities": "0.3.0",
"@mui/icons-material": "5.16.7",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "5.16.7",
"@mui/styles": "5.16.7",
"@mui/system": "5.16.7",
"@mui/x-data-grid": "6.20.4",
"@playwright/test": "1.47.2",
"@storybook/addon-essentials": "8.3.6",
"@storybook/addon-interactions": "8.3.3",
"@storybook/addon-links": "8.4.1",
"@storybook/blocks": "8.3.6",
"@storybook/preview-api": "8.3.3",
"@storybook/react": "8.3.3",
"@storybook/react-vite": "8.3.3",
"@storybook/test": "8.3.3",
"@storybook/test-runner": "0.19.1",
"@storybook/types": "8.4.4",
"@playwright/test": "1.49.1",
"@storybook/addon-essentials": "8.4.7",
"@storybook/addon-interactions": "8.4.7",
"@storybook/addon-links": "8.4.7",
"@storybook/blocks": "8.4.7",
"@storybook/preview-api": "8.4.7",
"@storybook/react": "8.4.7",
"@storybook/react-vite": "8.4.7",
"@storybook/test": "8.4.7",
"@storybook/test-runner": "0.20.1",
"@storybook/types": "8.4.7",
"@types/chance": "1.1.6",
"@types/diff": "5.2.2",
"@types/glob": "8.1.0",
"@types/jest": "29.5.13",
"@types/jest": "29.5.14",
"@types/k6": "0.54.2",
"@types/lodash": "4.17.13",
"@types/luxon": "3.4.2",
"@types/node": "20.16.6",
"@types/prop-types": "15.7.13",
"@types/prop-types": "15.7.14",
"@types/react": "18.3.9",
"@types/react-big-calendar": "1.8.12",
"@types/react-big-calendar": "1.16.0",
"@types/react-dom": "18.3.0",
"@types/react-transition-group": "4.4.11",
"@types/react-transition-group": "4.4.12",
"@types/react-virtualized-auto-sizer": "1.0.4",
"@typescript-eslint/eslint-plugin": "8.7.0",
"@typescript-eslint/parser": "8.7.0",
"@uiw/codemirror-theme-vscode": "4.23.6",
"@uiw/react-codemirror": "4.23.6",
"@typescript-eslint/eslint-plugin": "8.18.1",
"@typescript-eslint/parser": "8.18.1",
"@uiw/codemirror-theme-vscode": "4.23.7",
"@uiw/react-codemirror": "4.23.7",
"@urql/exchange-retry": "1.3.0",
"bowser": "2.11.0",
"chance": "1.1.12",
"classnames": "2.5.1",
"cm6-graphql": "0.2.0",
"concurrently": "9.0.1",
"concurrently": "9.1.0",
"cypress": "13.14.2",
"detect-package-manager": "3.0.2",
"diff": "7.0.0",
Expand All @@ -101,56 +101,56 @@
"eslint-config-standard": "17.1.0",
"eslint-config-standard-jsx": "11.0.0",
"eslint-plugin-cypress": "3.5.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-n": "17.11.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-n": "17.15.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "7.1.0",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-promise": "7.2.1",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-storybook": "0.9.0",
"eslint-plugin-storybook": "0.11.1",
"fuse.js": "7.0.0",
"glob": "11.0.0",
"graphiql": "3.7.1",
"graphql": "16.9.0",
"graphiql": "3.8.3",
"graphql": "16.10.0",
"http-server": "14.1.1",
"jest": "29.7.0",
"lodash": "4.17.21",
"luxon": "3.5.0",
"mdast-util-find-and-replace": "3.0.1",
"mdi-material-ui": "7.9.2",
"msw": "2.4.9",
"msw-storybook-addon": "2.0.3",
"prettier": "3.3.3",
"mdi-material-ui": "7.9.3",
"msw": "2.7.0",
"msw-storybook-addon": "2.0.4",
"prettier": "3.4.2",
"prettier-plugin-go-template": "0.0.15",
"prop-types": "15.8.1",
"punycode": "2.3.1",
"react": "18.3.1",
"react-big-calendar": "1.14.1",
"react-big-calendar": "1.17.0",
"react-colorful": "5.6.1",
"react-countdown": "2.3.6",
"react-dom": "18.3.1",
"react-error-boundary": "4.0.13",
"react-error-boundary": "4.1.2",
"react-ga4": "2.1.0",
"react-infinite-scroll-component": "6.1.0",
"react-markdown": "9.0.1",
"react-redux": "9.1.2",
"react-redux": "9.2.0",
"react-transition-group": "4.4.5",
"react-virtualized-auto-sizer": "1.0.24",
"recharts": "2.12.7",
"react-virtualized-auto-sizer": "1.0.25",
"recharts": "2.15.0",
"redux": "4.2.1",
"redux-devtools-extension": "2.13.9",
"redux-thunk": "2.4.2",
"remark-breaks": "4.0.0",
"remark-gfm": "4.0.0",
"semver": "7.6.3",
"storybook": "8.3.3",
"storybook": "8.4.7",
"storybook-addon-mock": "4.3.0",
"stylelint": "16.9.0",
"stylelint": "16.12.0",
"stylelint-config-standard": "36.0.1",
"typescript": "5.5.2",
"urql": "4.1.0",
"typescript": "5.7.2",
"urql": "4.2.1",
"vite": "5.4.10",
"wonka": "6.3.4",
"wouter": "2.12.1"
Expand Down
6 changes: 4 additions & 2 deletions web/src/app/admin/admin-alert-counts/AlertCountLineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import {
import Spinner from '../../loading/components/Spinner'
import { Time } from '../../util/Time'

type DataType = React.ComponentProps<typeof LineChart>['data']

interface AlertCountLineGraphProps {
data: (typeof LineChart.defaultProps)['data']
data: DataType
loading: boolean
unit: DateTimeUnit
}
Expand Down Expand Up @@ -116,7 +118,7 @@ export default function AlertCountLineGraph(
}

function flattenData(
data: (typeof LineChart.defaultProps)['data'],
data: DataType,
): Array<{ [key: string]: number | string }> {
const dateMap: { [key: string]: { [key: string]: number | string } } = {}

Expand Down
Loading
Loading