-
Notifications
You must be signed in to change notification settings - Fork 48
package upgrades #3544
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
base: master
Are you sure you want to change the base?
package upgrades #3544
Changes from all commits
d66f548
8a20034
ec620b2
342f937
176408d
4dde984
e429758
6906d37
286c5ba
9be277c
04c0cfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,69 +8,69 @@ | |||||
| "url": "https://github.com/glific/glific-frontend?tab=AGPL-3.0-1-ov-file#readme" | ||||||
| }, | ||||||
| "dependencies": { | ||||||
| "@apollo/client": "^3.13.8", | ||||||
| "@apollo/client": "3.14.0", | ||||||
| "@apollo/link-context": "^2.0.0-beta.3", | ||||||
| "@apollo/link-error": "^2.0.0-beta.3", | ||||||
| "@appsignal/javascript": "^1.5.0", | ||||||
| "@appsignal/plugin-breadcrumbs-network": "^1.1.22", | ||||||
| "@appsignal/plugin-path-decorator": "^1.0.16", | ||||||
| "@appsignal/plugin-window-events": "^1.0.24", | ||||||
| "@appsignal/react": "^1.0.29", | ||||||
| "@appsignal/javascript": "^1.6.1", | ||||||
| "@appsignal/plugin-breadcrumbs-network": "^1.1.24", | ||||||
| "@appsignal/plugin-path-decorator": "^1.0.18", | ||||||
| "@appsignal/plugin-window-events": "^1.0.26", | ||||||
| "@appsignal/react": "^1.0.31", | ||||||
| "@date-io/dayjs": "^3.2.0", | ||||||
| "@emoji-mart/data": "^1.2.1", | ||||||
| "@emoji-mart/react": "^1.1.1", | ||||||
| "@emotion/react": "^11.14.0", | ||||||
| "@emotion/styled": "^11.14.1", | ||||||
| "@glific/flow-editor": "^1.43.0-2", | ||||||
| "@lexical/react": "^0.33.0", | ||||||
| "@mui/icons-material": "^7.2.0", | ||||||
| "@mui/material": "^7.2.0", | ||||||
| "@mui/x-date-pickers": "^8.7.0", | ||||||
| "@nyaruka/temba-components": "^0.113.0", | ||||||
| "@lexical/react": "^0.37.0", | ||||||
| "@mui/icons-material": "^7.3.4", | ||||||
| "@mui/material": "^7.3.4", | ||||||
| "@mui/x-date-pickers": "^8.14.0", | ||||||
| "@nyaruka/temba-components": "0.113.0", | ||||||
| "@sentry/integrations": "^7.114.0", | ||||||
| "@sentry/react": "^9.35.0", | ||||||
| "@sentry/vite-plugin": "^3.5.0", | ||||||
| "@stripe/react-stripe-js": "^3.7.0", | ||||||
| "@stripe/stripe-js": "^7.4.0", | ||||||
| "@vitejs/plugin-react": "^4.6.0", | ||||||
| "@sentry/react": "^10.19.0", | ||||||
| "@sentry/vite-plugin": "^4.4.0", | ||||||
| "@stripe/react-stripe-js": "^5.2.0", | ||||||
| "@stripe/stripe-js": "^8.0.0", | ||||||
| "@vitejs/plugin-react": "^5.0.4", | ||||||
| "apollo-absinthe-upload-link": "^1.7.0", | ||||||
| "apollo-link-token-refresh": "^0.7.0", | ||||||
| "axios": "^1.10.0", | ||||||
| "axios": "^1.12.2", | ||||||
| "buffer": "^6.0.3", | ||||||
| "dayjs": "^1.11.13", | ||||||
| "dayjs": "^1.11.18", | ||||||
| "emoji-mart": "^5.6.0", | ||||||
| "formik": "^2.4.6", | ||||||
| "graphql": "^16.11.0", | ||||||
| "graphql-ws": "^6.0.5", | ||||||
| "i18next": "^25.3.1", | ||||||
| "graphql-ws": "^6.0.6", | ||||||
| "i18next": "^25.6.0", | ||||||
| "i18next-browser-languagedetector": "^8.2.0", | ||||||
| "interweave": "^13.1.1", | ||||||
| "interweave-autolink": "^5.1.2", | ||||||
| "lexical": "^0.33.0", | ||||||
| "lexical-beautiful-mentions": "^0.1.47", | ||||||
| "react": "^19.1.0", | ||||||
| "react-dom": "^19.1.0", | ||||||
| "lexical": "^0.37.0", | ||||||
| "lexical-beautiful-mentions": "^0.1.48", | ||||||
| "react": "^19.2.0", | ||||||
| "react-dom": "^19.2.0", | ||||||
| "react-draggable": "^4.5.0", | ||||||
| "react-google-recaptcha-v3": "^1.11.0", | ||||||
| "react-i18next": "^15.6.0", | ||||||
| "react-i18next": "^16.0.1", | ||||||
| "react-image": "^4.1.0", | ||||||
| "react-markdown": "^10.1.0", | ||||||
| "react-media-recorder": "^1.7.1", | ||||||
| "react-media-recorder": "^1.7.2", | ||||||
| "react-phone-input-2": "^2.15.1", | ||||||
| "react-player": "^3.1.0", | ||||||
| "react-player": "^3.3.3", | ||||||
| "react-qr-code": "^2.0.18", | ||||||
| "react-resize-detector": "^12.1.0", | ||||||
| "react-router": "^7.6.3", | ||||||
| "react-resize-detector": "^12.3.0", | ||||||
| "react-router": "^7.9.4", | ||||||
| "react-tiny-link": "^3.6.1", | ||||||
| "react-viewer": "^3.2.2", | ||||||
| "stream-browserify": "^3.0.0", | ||||||
| "util": "^0.12.5", | ||||||
| "uuid": "^11.1.0", | ||||||
| "vite": "^7.0.2", | ||||||
| "vite-plugin-checker": "^0.9.3", | ||||||
| "vite-plugin-svgr": "^4.3.0", | ||||||
| "uuid": "^13.0.0", | ||||||
| "vite": "^7.1.9", | ||||||
| "vite-plugin-checker": "^0.11.0", | ||||||
| "vite-plugin-svgr": "^4.5.0", | ||||||
| "vite-tsconfig-paths": "^5.1.4", | ||||||
| "yup": "^1.6.1" | ||||||
| "yup": "^1.7.1" | ||||||
| }, | ||||||
| "scripts": { | ||||||
| "setup": "yarn install --force && yarn run floweditor", | ||||||
|
|
@@ -104,33 +104,33 @@ | |||||
| ] | ||||||
| }, | ||||||
| "devDependencies": { | ||||||
| "@testing-library/dom": "^10.4.0", | ||||||
| "@testing-library/jest-dom": "^6.6.3", | ||||||
| "@testing-library/dom": "^10.4.1", | ||||||
| "@testing-library/jest-dom": "^6.9.1", | ||||||
| "@testing-library/react": "^16.3.0", | ||||||
| "@testing-library/user-event": "^14.6.1", | ||||||
| "@types/emoji-mart": "^5.3.0", | ||||||
| "@types/node": "^24.0.10", | ||||||
| "@types/react": "^19.1.8", | ||||||
| "@types/react-dom": "^19.1.6", | ||||||
| "@types/node": "^24.7.2", | ||||||
| "@types/react": "^19.2.2", | ||||||
| "@types/react-dom": "^19.2.2", | ||||||
| "@types/react-google-recaptcha": "^2.1.9", | ||||||
| "@types/react-router": "^5.1.20", | ||||||
| "@types/react-router-dom": "^5.3.3", | ||||||
|
Comment on lines
116
to
117
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainRemove legacy React Router v5 type packages React Router v7 ships its own types. Keeping @types/react-router(-dom) v5 can conflict with the v7 API. Remove both: - "@types/react-router": "^5.1.20",
- "@types/react-router-dom": "^5.3.3",🏁 Script executed: #!/bin/bash
# Sanity check for legacy v5 APIs that would block v7 (Switch, withRouter, useHistory, Redirect).
rg -n -C2 --type=ts --type=tsx '\b(Switch|withRouter|useHistory|Redirect)\b' || true
# Confirm v6/v7 APIs are used (Routes, useNavigate, createBrowserRouter, RouterProvider).
rg -n -C2 --type=ts --type=tsx '\b(Routes|useNavigate|createBrowserRouter|RouterProvider)\b' || trueLength of output: 55 🏁 Script executed: #!/bin/bash
# Check for legacy v5 APIs in TS/TSX files
rg -n -C2 '\b(Switch|withRouter|useHistory|Redirect)\b' -g '*.ts' -g '*.tsx' --no-ignore || true
# Check for v6/v7 APIs in TS/TSX files
rg -n -C2 '\b(Routes|useNavigate|createBrowserRouter|RouterProvider)\b' -g '*.ts' -g '*.tsx' --no-ignore || trueLength of output: 75817 Remove legacy React Router v5 type packages Verified no v5 APIs ( - "@types/react-router": "^5.1.20",
- "@types/react-router-dom": "^5.3.3",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "@types/react-test-renderer": "^19.1.0", | ||||||
| "@types/uuid": "^10.0.0", | ||||||
| "@types/uuid": "^11.0.0", | ||||||
| "@vitest/coverage-istanbul": "^3.2.4", | ||||||
| "@vitest/ui": "^3.2.4", | ||||||
| "eslint-config-airbnb": "^19.0.4", | ||||||
| "eslint-config-prettier": "^10.1.5", | ||||||
| "eslint-config-prettier": "^10.1.8", | ||||||
| "eslint-plugin-import": "^2.32.0", | ||||||
| "eslint-plugin-jsx-a11y": "^6.10.2", | ||||||
| "eslint-plugin-prettier": "^5.5.1", | ||||||
| "eslint-plugin-prettier": "^5.5.4", | ||||||
| "eslint-plugin-react": "^7.37.5", | ||||||
| "eslint-plugin-react-hooks": "^5.2.0", | ||||||
| "eslint-plugin-react-hooks": "^7.0.0", | ||||||
| "i18next-parser": "^9.3.0", | ||||||
| "jsdom": "^26.1.0", | ||||||
| "jsdom": "^27.0.0", | ||||||
| "prettier": "^3.6.2", | ||||||
| "react-test-renderer": "^19.1.0", | ||||||
| "typescript": "^5.8.3", | ||||||
| "react-test-renderer": "^19.2.0", | ||||||
| "typescript": "^5.9.3", | ||||||
| "vitest": "^3.2.4", | ||||||
| "yarn-upgrade-all": "^0.7.5" | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify Sentry v10 migration is complete.
@sentry/reactis upgraded from v9.x to v10.19.0, a major version bump with potential breaking changes (e.g., API removals, configuration changes). Ensure the migration guide has been followed and that initialization code in the codebase has been updated accordingly.🌐 Web query:
💡 Result:
Key breaking changes in Sentry JavaScript SDK v10 (summary):
Sources: Sentry migration/changelog and package release notes. [1] Sentry docs — Migrate v9→v10 (breaking changes & details). [2] Package/changelog summaries for v10.0.0.
I'll now search the codebase to verify whether the Sentry v10 migration has been properly implemented.
🏁 Script executed:
Length of output: 20
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 113
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 103
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 230
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 170
🏁 Script executed:
Length of output: 198
🏁 Script executed:
Length of output: 1433
🏁 Script executed:
Length of output: 217
🏁 Script executed:
Length of output: 170
🏁 Script executed:
Length of output: 579
🏁 Script executed:
Length of output: 4967
🏁 Script executed:
Length of output: 2281
🏁 Script executed:
Length of output: 659
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 611
🏁 Script executed:
Length of output: 952
🏁 Script executed:
Length of output: 60
🏁 Script executed:
Length of output: 166
🏁 Script executed:
Length of output: 1737
🏁 Script executed:
Length of output: 785
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 35
🏁 Script executed:
Length of output: 2847
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 106
Update @sentry/integrations to v10 to complete the migration.
The codebase correctly uses Sentry v10 APIs in initialization and throughout (browserTracingIntegration, browserSessionIntegration, httpClientIntegration, captureConsoleIntegration). However,
@sentry/integrationsremains at v7.114.0 while@sentry/reactis at v10.19.0. This package is unused in the codebase and creates a version mismatch that could cause compatibility issues. It should be updated to v10 or removed entirely.🤖 Prompt for AI Agents