Skip to content

Commit 259264f

Browse files
committed
fix: update dependencies
1 parent 20bbf89 commit 259264f

File tree

7 files changed

+3445
-2187
lines changed

7 files changed

+3445
-2187
lines changed

.yarn/releases/yarn-4.2.2.cjs

Lines changed: 0 additions & 894 deletions
This file was deleted.

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.2.2.cjs
7+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,44 @@
1111
"type": "module",
1212
"dependencies": {
1313
"@codemirror/lang-javascript": "^6.2.2",
14-
"@emotion/react": "11.13.3",
15-
"@emotion/styled": "11.13.0",
16-
"@graasp/apps-query-client": "3.7.0",
17-
"@graasp/sdk": "^4.32.1",
14+
"@emotion/react": "11.14.0",
15+
"@emotion/styled": "11.14.0",
16+
"@graasp/apps-query-client": "3.7.3",
17+
"@graasp/sdk": "^5.5.0",
1818
"@graasp/stylis-plugin-rtl": "^2.2.0",
19-
"@graasp/ui": "5.3.0",
20-
"@mui/icons-material": "5.16.7",
21-
"@mui/lab": "5.0.0-alpha.170",
22-
"@mui/material": "5.16.7",
23-
"@sentry/react": "8.34.0",
19+
"@graasp/ui": "5.4.7",
20+
"@mui/icons-material": "6.3.1",
21+
"@mui/lab": "6.0.0-beta.22",
22+
"@mui/material": "6.3.1",
23+
"@sentry/react": "8.47.0",
2424
"@tanstack/react-query": "^4.36.1",
2525
"@tanstack/react-query-devtools": "^4.36.1",
26-
"@types/node": "20.16.11",
27-
"@types/react": "18.3.11",
28-
"@types/react-dom": "18.3.1",
26+
"@types/node": "22.10.5",
27+
"@types/react": "18.3.18",
28+
"@types/react-dom": "18.3.5",
2929
"@types/stopword": "^2.0.3",
30-
"@uiw/react-codemirror": "^4.23.5",
30+
"@uiw/react-codemirror": "^4.23.7",
3131
"date-fns": "^4.1.0",
3232
"file-saver": "^2.0.5",
33-
"i18next": "^23.16.0",
33+
"i18next": "^24.2.0",
3434
"lodash.countby": "^4.6.0",
3535
"lodash.flatten": "^4.4.0",
3636
"lodash.groupby": "^4.6.0",
37-
"lucide-react": "^0.452.0",
38-
"prism-react-renderer": "^2.4.0",
37+
"lucide-react": "^0.469.0",
38+
"prism-react-renderer": "^2.4.1",
3939
"react": "18.3.1",
4040
"react-dom": "18.3.1",
41-
"react-i18next": "^15.0.3",
42-
"react-markdown": "^9.0.1",
41+
"react-i18next": "^15.4.0",
42+
"react-markdown": "^9.0.3",
4343
"react-mde": "12.0.8",
44-
"react-router-dom": "^6.27.0",
45-
"react-toastify": "10.0.6",
44+
"react-router-dom": "^6.28.1",
45+
"react-toastify": "11.0.2",
4646
"react-wordcloud": "^1.2.7",
4747
"remark-breaks": "^4.0.0",
4848
"remark-gfm": "^4.0.0",
49-
"stopword": "^3.1.1",
49+
"stopword": "^3.1.4",
5050
"string-to-color": "^2.2.2",
51-
"typescript": "5.6.3"
51+
"typescript": "5.7.2"
5252
},
5353
"scripts": {
5454
"dev": "yarn vite",
@@ -73,49 +73,49 @@
7373
"cov:report": "open ./coverage/lcov-report/index.html"
7474
},
7575
"devDependencies": {
76-
"@commitlint/cli": "19.6.0",
76+
"@commitlint/cli": "19.6.1",
7777
"@commitlint/config-conventional": "19.6.0",
78-
"@cypress/code-coverage": "3.13.4",
79-
"@eslint/compat": "^1.2.0",
80-
"@eslint/eslintrc": "^3.1.0",
81-
"@eslint/js": "^9.12.0",
82-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
78+
"@cypress/code-coverage": "3.13.9",
79+
"@eslint/compat": "^1.2.4",
80+
"@eslint/eslintrc": "^3.2.0",
81+
"@eslint/js": "^9.17.0",
82+
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
8383
"@types/file-saver": "^2.0.7",
8484
"@types/i18n": "0.13.12",
8585
"@types/lodash.countby": "^4.6.9",
8686
"@types/lodash.flatten": "^4.4.9",
8787
"@types/lodash.groupby": "^4.6.9",
8888
"@types/uuid": "10.0.0",
89-
"@typescript-eslint/eslint-plugin": "8.8.1",
90-
"@typescript-eslint/parser": "8.8.1",
91-
"@vitejs/plugin-react": "^4.3.2",
92-
"axios": "1.7.7",
93-
"concurrently": "9.0.1",
94-
"cypress": "13.15.0",
89+
"@typescript-eslint/eslint-plugin": "8.19.0",
90+
"@typescript-eslint/parser": "8.19.0",
91+
"@vitejs/plugin-react": "^4.3.4",
92+
"axios": "1.7.9",
93+
"concurrently": "9.1.2",
94+
"cypress": "13.17.0",
9595
"env-cmd": "10.1.0",
96-
"eslint": "^9.12.0",
96+
"eslint": "^9.17.0",
9797
"eslint-config-airbnb": "19.0.4",
9898
"eslint-config-airbnb-typescript": "^18.0.0",
9999
"eslint-config-prettier": "9.1.0",
100100
"eslint-config-react-app": "7.0.1",
101-
"eslint-import-resolver-typescript": "^3.6.3",
102-
"eslint-plugin-cypress": "4.0.0",
101+
"eslint-import-resolver-typescript": "^3.7.0",
102+
"eslint-plugin-cypress": "4.1.0",
103103
"eslint-plugin-import": "2.31.0",
104-
"eslint-plugin-jsx-a11y": "6.10.0",
104+
"eslint-plugin-jsx-a11y": "6.10.2",
105105
"eslint-plugin-prettier": "5.2.1",
106-
"eslint-plugin-react": "^7.37.1",
107-
"eslint-plugin-react-hooks": "5.0.0",
108-
"globals": "^15.11.0",
109-
"husky": "9.1.6",
106+
"eslint-plugin-react": "^7.37.3",
107+
"eslint-plugin-react-hooks": "5.1.0",
108+
"globals": "^15.14.0",
109+
"husky": "9.1.7",
110110
"miragejs": "^0.1.48",
111-
"nock": "^13.5.5",
111+
"nock": "^13.5.6",
112112
"nyc": "17.1.0",
113-
"prettier": "3.3.3",
114-
"uuid": "10.0.0",
115-
"vite": "^5.4.9",
113+
"prettier": "3.4.2",
114+
"uuid": "11.0.4",
115+
"vite": "^6.0.7",
116116
"vite-plugin-checker": "^0.8.0",
117117
"vite-plugin-istanbul": "^6.0.2",
118-
"vitest": "^2.1.3"
118+
"vitest": "^2.1.8"
119119
},
120120
"browserslist": {
121121
"production": [
@@ -138,7 +138,7 @@
138138
"src/**/*.d.ts"
139139
]
140140
},
141-
"packageManager": "yarn@4.2.2",
141+
"packageManager": "yarn@4.6.0",
142142
"msw": {
143143
"workerDirectory": "public"
144144
},

public/mockServiceWorker.js

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* - Please do NOT serve this file on production.
99
*/
1010

11-
const PACKAGE_VERSION = '2.4.8'
12-
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
11+
const PACKAGE_VERSION = '2.6.5'
12+
const INTEGRITY_CHECKSUM = 'ca7800994cc8bfb5eb961e037c877074'
1313
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1414
const activeClientIds = new Set()
1515

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

6363
sendToClient(client, {
6464
type: 'MOCKING_ENABLED',
65-
payload: true,
65+
payload: {
66+
client: {
67+
id: client.id,
68+
frameType: client.frameType,
69+
},
70+
},
6671
})
6772
break
6873
}
@@ -155,6 +160,10 @@ async function handleRequest(event, requestId) {
155160
async function resolveMainClient(event) {
156161
const client = await self.clients.get(event.clientId)
157162

163+
if (activeClientIds.has(event.clientId)) {
164+
return client
165+
}
166+
158167
if (client?.frameType === 'top-level') {
159168
return client
160169
}
@@ -183,12 +192,14 @@ async function getResponse(event, client, requestId) {
183192
const requestClone = request.clone()
184193

185194
function passthrough() {
186-
const headers = Object.fromEntries(requestClone.headers.entries())
187-
188-
// Remove internal MSW request header so the passthrough request
189-
// complies with any potential CORS preflight checks on the server.
190-
// Some servers forbid unknown request headers.
191-
delete headers['x-msw-intention']
195+
// Cast the request headers to a new Headers instance
196+
// so the headers can be manipulated with.
197+
const headers = new Headers(requestClone.headers)
198+
199+
// Remove the "accept" header value that marked this request as passthrough.
200+
// This prevents request alteration and also keeps it compliant with the
201+
// user-defined CORS policies.
202+
headers.delete('accept', 'msw/passthrough')
192203

193204
return fetch(requestClone, { headers })
194205
}

src/modules/Root.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { FC } from 'react';
22
import { I18nextProvider } from 'react-i18next';
33
import { ToastContainer } from 'react-toastify';
4-
import 'react-toastify/dist/ReactToastify.min.css';
54

65
import { CssBaseline, ThemeProvider, createTheme, styled } from '@mui/material';
76
import { grey, orange, pink } from '@mui/material/colors';

0 commit comments

Comments
 (0)