Skip to content

Commit 1da6f96

Browse files
Merge pull request #716 from ral-facilities/renovate/typescript-5.x
Update dependency typescript to v5.9.2
2 parents 0e8fd1e + 9cf023d commit 1da6f96

File tree

3 files changed

+223
-176
lines changed

3 files changed

+223
-176
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@tanstack/react-query": "5.71.0",
1919
"@tanstack/react-query-devtools": "5.71.0",
2020
"@tanstack/react-table": "8.21.2",
21-
"@types/node": "22.14.0",
21+
"@types/node": "24.2.0",
2222
"@types/plotly.js": "2.35.1",
2323
"@types/react": "18.3.3",
2424
"@types/react-dom": "18.3.0",
@@ -39,7 +39,7 @@
3939
"react-redux": "9.2.0",
4040
"react-router-dom": "7.5.0",
4141
"single-spa-react": "6.0.2",
42-
"typescript": "5.6.2",
42+
"typescript": "5.9.2",
4343
"vite": "6.2.7",
4444
"zod": "^3.23.8"
4545
},
@@ -90,13 +90,13 @@
9090
"@dotenvx/dotenvx": "1.48.4",
9191
"@playwright/test": "1.51.0",
9292
"@tanstack/eslint-plugin-query": "5.71.5",
93-
"@testing-library/cypress": "10.0.1",
93+
"@testing-library/cypress": "10.0.3",
9494
"@testing-library/dom": "10.4.0",
9595
"@testing-library/jest-dom": "6.6.2",
9696
"@testing-library/react": "16.3.0",
9797
"@testing-library/user-event": "14.6.1",
9898
"@types/eslint-plugin-jsx-a11y": "6.10.0",
99-
"@typescript-eslint/typescript-estree": "8.29.0",
99+
"@typescript-eslint/typescript-estree": "8.39.0",
100100
"@vitest/coverage-v8": "3.1.1",
101101
"cross-env": "7.0.3",
102102
"cypress": "14.5.3",
@@ -117,7 +117,7 @@
117117
"prettier": "3.5.0",
118118
"serve": "14.2.0",
119119
"start-server-and-test": "2.0.10",
120-
"typescript-eslint": "8.29.0",
120+
"typescript-eslint": "8.39.0",
121121
"vitest": "3.1.1",
122122
"vitest-canvas-mock": "0.3.3",
123123
"vitest-fail-on-console": "0.7.1"

src/mocks/serverHandlers.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,38 @@ import * as path from 'path';
55
export const serverHandlers = [
66
http.get('/images/:recordId/:channelName', async () => {
77
// Read the image from the file system using the "fs" module.
8-
const imageBuffer = fs.readFileSync(path.resolve(__dirname, './image.png'));
8+
const imageBlob = await fs.openAsBlob(
9+
path.resolve(__dirname, './image.png')
10+
);
911

10-
return new HttpResponse(imageBuffer, {
12+
return new HttpResponse(imageBlob, {
1113
headers: {
12-
'Content-Length': imageBuffer.byteLength.toString(),
1314
'Content-Type': 'image/png',
1415
},
1516
status: 200,
1617
});
1718
}),
1819
http.get('/images/float/:recordId/:channelName', async () => {
1920
// Read the image from the file system using the "fs" module.
20-
const imageBuffer = fs.readFileSync(
21+
const imageBlob = await fs.openAsBlob(
2122
path.resolve(__dirname, './float_image.png')
2223
);
2324

24-
return new HttpResponse(imageBuffer, {
25+
return new HttpResponse(imageBlob, {
2526
headers: {
26-
'Content-Length': imageBuffer.byteLength.toString(),
2727
'Content-Type': 'image/png',
2828
},
2929
status: 200,
3030
});
3131
}),
3232
http.get('/images/colour_bar', async () => {
3333
// Read the image from the file system using the "fs" module.
34-
const imageBuffer = fs.readFileSync(
34+
const imageBlob = await fs.openAsBlob(
3535
path.resolve(__dirname, './colourbar.png')
3636
);
3737

38-
return new HttpResponse(imageBuffer, {
38+
return new HttpResponse(imageBlob, {
3939
headers: {
40-
'Content-Length': imageBuffer.byteLength.toString(),
4140
'Content-Type': 'image/png',
4241
},
4342
status: 200,

0 commit comments

Comments
 (0)