Skip to content

Commit 530299f

Browse files
authored
Merge pull request #239 from Staffbase/copilot/chore-bump-dependencies-in-weather-forecast
chore(deps): consolidate dependency bumps + fix webpack SSRF in samples/weather-forecast
2 parents 7dd22dd + 61a1b77 commit 530299f

5 files changed

Lines changed: 964 additions & 401 deletions

File tree

samples/weather-forecast/dev/widget-api-mock/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const apiMock: WidgetApi = {
3131
return {
3232
slug: "test-branch",
3333
branchId: "test-branch-id",
34-
webUrl: "https://test.staffbase.com"
34+
webUrl: "https://test.staffbase.com",
35+
flags: []
3536
};
3637
}
3738
};

samples/weather-forecast/package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@
1717
"author": "",
1818
"license": "ISC",
1919
"dependencies": {
20-
"@staffbase/widget-sdk": "^3.15.5",
21-
"acorn": "^8.15.0",
22-
"axios": "^1.13.5",
20+
"@staffbase/widget-sdk": "^3.17.0",
21+
"acorn": "^8.16.0",
22+
"axios": "^1.15.0",
2323
"date-fns": "^2.30.0",
24-
"dayjs": "1.11.18",
24+
"dayjs": "1.11.20",
2525
"react": "^18.3.1",
2626
"react-cool-dimensions": "^3.0.1",
2727
"react-dom": "^18.3.1",
2828
"react-query": "3.39.3",
2929
"regenerator-runtime": "0.14.1"
3030
},
3131
"devDependencies": {
32-
"@babel/core": "^7.28.4",
32+
"@babel/core": "^7.29.0",
3333
"@babel/plugin-proposal-class-properties": "^7.18.6",
3434
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
3535
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
36-
"@babel/preset-env": "^7.28.3",
37-
"@babel/preset-react": "^7.27.1",
38-
"@babel/preset-typescript": "^7.27.1",
36+
"@babel/preset-env": "^7.29.2",
37+
"@babel/preset-react": "^7.28.5",
38+
"@babel/preset-typescript": "^7.28.5",
3939
"@emotion/react": "^11.14.0",
4040
"@emotion/styled": "^11.14.1",
4141
"@mui/icons-material": "^6.5.0",
@@ -47,11 +47,11 @@
4747
"@rjsf/validator-ajv8": "5.24.13",
4848
"@svgr/webpack": "8.1.0",
4949
"@testing-library/dom": "^10.4.1",
50-
"@testing-library/jest-dom": "^6.8.0",
51-
"@testing-library/react": "^16.3.0",
50+
"@testing-library/jest-dom": "^6.9.1",
51+
"@testing-library/react": "^16.3.2",
5252
"@types/jest": "^30.0.0",
5353
"@types/json-schema": "^7.0.15",
54-
"@types/node": "24.5.2",
54+
"@types/node": "25.5.2",
5555
"@types/react": "^18.3.24",
5656
"@types/react-dom": "^18.3.7",
5757
"@types/webpack": "5.28.5",
@@ -60,26 +60,27 @@
6060
"@ungap/custom-elements": "1.3.0",
6161
"babel-eslint": "10.1.0",
6262
"babel-loader": "^10.0.0",
63-
"copy-webpack-plugin": "^13.0.1",
64-
"core-js": "3.45.1",
63+
"copy-webpack-plugin": "^14.0.0",
64+
"core-js": "3.49.0",
6565
"eslint": "^8.57.1",
6666
"eslint-config-prettier": "10.1.8",
6767
"file-loader": "^6.2.0",
6868
"jest": "^30.1.3",
69-
"jest-environment-jsdom": "^30.1.2",
69+
"jest-environment-jsdom": "^30.3.0",
7070
"jest-json-schema": "^6.1.0",
7171
"js-base64": "3.7.8",
7272
"minimal-polyfills": "2.2.3",
73-
"prettier": "3.6.2",
74-
"ts-loader": "^9.5.4",
73+
"prettier": "3.8.1",
74+
"ts-loader": "^9.5.7",
7575
"ts-node": "10.9.2",
76-
"typescript": "5.9.2",
76+
"typescript": "6.0.2",
7777
"webpack": "^5.104.1",
7878
"webpack-cli": "^6.0.1",
79-
"webpack-dev-server": "^5.2.2",
79+
"webpack-dev-server": "^5.2.3",
8080
"webpack-merge": "^6.0.1"
8181
},
8282
"resolutions": {
83+
"webpack": "5.105.4",
8384
"nth-check": ">=2.0.1",
8485
"flatted": "3.4.2",
8586
"minimatch": "3.1.4",

samples/weather-forecast/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"skipDefaultLibCheck": true,
1111
"skipLibCheck": true,
1212
"moduleResolution": "node",
13+
"ignoreDeprecations": "6.0",
1314
"esModuleInterop": true,
1415
"resolveJsonModule": true,
1516
"baseUrl": "src",

samples/weather-forecast/webpack.common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
*/
1313

1414
import * as webpack from "webpack";
15-
// eslint-disable-next-line
16-
const CopyPlugin = require("copy-webpack-plugin");
15+
import CopyPlugin from "copy-webpack-plugin";
1716

1817
const config: webpack.Configuration = {
1918
entry: {

0 commit comments

Comments
 (0)