Skip to content

Commit c1c3387

Browse files
CopilotmaximizeIT
andauthored
chore(deps): bump all dependencies in /samples/weather-forecast
Consolidates all dependency bumps from PRs #233-#238: - follow-redirects: 1.15.9 → 1.16.0 (via yarn.lock, PR #238) - typescript: 5.9.2 → 6.0.2 (PR #237) - @types/node: 24.5.2 → 25.5.2 (PR #236) - copy-webpack-plugin: ^13.0.1 → ^14.0.0 (PR #235) - axios: ^1.13.5 → ^1.15.0 (PR #233) - @staffbase/widget-sdk: ^3.15.5 → ^3.17.0 (PR #234) - acorn: ^8.15.0 → ^8.16.0 (PR #234) - dayjs: 1.11.18 → 1.11.20 (PR #234) - @babel/core: ^7.28.4 → ^7.29.0 (PR #234) - @babel/preset-env: ^7.28.3 → ^7.29.2 (PR #234) - @babel/preset-react: ^7.27.1 → ^7.28.5 (PR #234) - @babel/preset-typescript: ^7.27.1 → ^7.28.5 (PR #234) - @testing-library/jest-dom: ^6.8.0 → ^6.9.1 (PR #234) - @testing-library/react: ^16.3.0 → ^16.3.2 (PR #234) - core-js: 3.45.1 → 3.49.0 (PR #234) - jest-environment-jsdom: ^30.1.2 → ^30.3.0 (PR #234) - prettier: 3.6.2 → 3.8.1 (PR #234) - ts-loader: ^9.5.4 → ^9.5.7 (PR #234) - webpack-dev-server: ^5.2.2 → ^5.2.3 (PR #234) Fixes for TypeScript 6.0 breaking changes: - Add ignoreDeprecations: "6.0" to tsconfig.json (moduleResolution/baseUrl deprecation) - Convert require() to ES import in webpack.common.ts (TS2591 error) - Add missing flags property to BranchInformation mock (new required field in @staffbase/widget-sdk 3.17) Co-authored-by: GitHub Copilot <copilot@noreply.github.com> Agent-Logs-Url: https://github.com/Staffbase/custom-widgets-examples/sessions/adca9c8d-9484-48fd-83f8-160d37a1a170 Co-authored-by: maximizeIT <8626039+maximizeIT@users.noreply.github.com>
1 parent 7dd22dd commit c1c3387

5 files changed

Lines changed: 958 additions & 331 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: 18 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,23 +60,23 @@
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": {

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)