Skip to content

chore(deps): upgrade react 19 and rescript 12 - #1712

Open
LakSHyaMudgal1 wants to merge 3 commits into
juspay:mainfrom
LakSHyaMudgal1:react19-upgrade
Open

chore(deps): upgrade react 19 and rescript 12#1712
LakSHyaMudgal1 wants to merge 3 commits into
juspay:mainfrom
LakSHyaMudgal1:react19-upgrade

Conversation

@LakSHyaMudgal1

@LakSHyaMudgal1 LakSHyaMudgal1 commented Jul 27, 2026

Copy link
Copy Markdown

Closes #1711

Summary

This PR upgrades the HyperSwitch Web SDK build stack to React 19 and ReScript 12 while preserving existing SDK behavior and merchant-facing APIs.

Changes

  • Upgrade React and ReactDOM to React 19
  • Upgrade ReScript to 12.3.0
  • Upgrade @rescript/react to 0.15.0
  • Add @rescript/runtime 12.3.0
  • Remove deprecated -bs-super-errors compiler flag
  • Update Promise exception handling for ReScript 12 compatibility
  • Update callback refs for React 19 compatibility

Testing

  • ReScript compilation succeeds
  • Production build succeeds
  • Demo app builds successfully
  • ESLint passes
  • Dependency tree verified using npm ls

Notes

This change preserves existing merchant-facing APIs and maintains compatibility for both v1 and v2 SDKs.

@semanticdiff-com

semanticdiff-com Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  package.json  53% smaller
  Hyperswitch-React-Demo-App/package.json  31% smaller
  Hyperswitch-React-Demo-App/package-lock.json  27% smaller
  rescript.json  20% smaller
  package-lock.json  19% smaller
  .gitignore Unsupported file format
  src/Components/PortalCapture.res Unsupported file format
  src/libraries/Promise.res Unsupported file format
  src/libraries/Promise.resi Unsupported file format

@LakSHyaMudgal1 LakSHyaMudgal1 changed the title chore(deps): upgrade React 19 and ReScript 12 Closes #1711 chore(deps): upgrade React 19 and ReScript 12 Jul 27, 2026
@LakSHyaMudgal1 LakSHyaMudgal1 changed the title Closes #1711 chore(deps): upgrade React 19 and ReScript 12 chore(deps): upgrade react 19 and rescript 12 Jul 27, 2026
@XyneSpaces

Copy link
Copy Markdown

[blocking] This React 19/ReScript 12 migration needs to be consolidated with #1710 before merge. Both PRs modify the same migration surface (package.json, lockfiles, rescript.json, PortalCapture.res, and Promise.res) with conflicting dependency/config choices, so merging one first will leave the other resolving conflicts by overwriting migration code rather than reviewing a single coherent upgrade.

@LakSHyaMudgal1

Copy link
Copy Markdown
Author

[blocking] This React 19/ReScript 12 migration needs to be consolidated with #1710 before merge. Both PRs modify the same migration surface (package.json, lockfiles, rescript.json, PortalCapture.res, and Promise.res) with conflicting dependency/config choices, so merging one first will leave the other resolving conflicts by overwriting migration code rather than reviewing a single coherent upgrade.

I have consolidated the dependency versions (react 19.2.8), rescript.json key migrations (compiler-flags, dependencies), and Promise.res / Promise.resi exception handling from PR #1710 into PR #1712. ReScript 12 build completes cleanly with zero configuration deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Web SDK to React 19 and ReScript 12

2 participants