Skip to content

Update react builder to 3.x (VSC-1432670) - #229

Open
lucvysk wants to merge 1 commit into
mainfrom
chore/react-builder-3x
Open

lucvysk wants to merge 1 commit into
mainfrom
chore/react-builder-3x

Conversation

@lucvysk

@lucvysk lucvysk commented Nov 25, 2026 •

Copy link
Copy Markdown

What is the purpose of this pull request?

Moves the react builder from 2.x to 3.x so vtex.pickup-points-modal@3.x no longer resolves vtex.render-runtime@7.x / vtex.pages-graphql@1.x (VSC-1432670, parent VSC-1308691). The messages builder is already 1.x, which react@3.x requires.

Only manifest.json and CHANGELOG.md change. A minor release of the current 3.x major: no new major, no dependency-range changes (country-codes 1.x, shipping-estimate-translator 1.x, address-form 3.x stay), no change to react/ source, message files or the public API. Part of the render-runtime 8.x migration; related: vtex/country-codes#7, vtex/lean-shipping-calculator#86, vtex/cartman#29, vtex-apps/shipping-estimate-translator#60, vtex/address-form#713.

Draft: this is a checkout-critical component (Golden Path "Full"), and the react 3 build prints two warnings the react 2 build does not (see below).

What problem is this solving?

react@2.x pulls render-runtime@7.x -> pages-graphql@1.x. The old feature/render8 branch (2021) also moved to address-form 4.x / country-codes 2.x / translator 2.x as a new 4.0.0; that is not done here, because the team decision is minor releases only, so the dependencies are migrated in their own current majors instead (PRs linked above). Release order matters only for verification: release country-codes, shipping-estimate-translator and address-form first.

How should this be manually tested?

Done:

  • yarn test: 16 suites, 167 tests, 12 snapshots passing (Node 24 locally).
  • vtex link --no-watch in a dev workspace (with the react 3 builds of country-codes, shipping-estimate-translator and address-form linked too): exit 0. vtex deps list: the linked build resolves render-runtime@8.136.3, render-server@8.182.0, messages@1.72.0 and the three linked react 3 dependencies; no render-runtime@7.x / pages-graphql@1.x from this app.
  • Compared with linking unchanged main (react 2.x) in the same workspace: bundle 50 files / 2.06 MB (react 2.x) vs 55 files / 2.11 MB (react 3.x), about +2%.

New with react 3.x (not on react 2.x):

  1. React builder could not extract messages ... pages containing this app may run MUCH SLOWER. Cause: dynamic ids pickupPointsModal.${id} (react/utils/translate) and country.${countryCode} (addCountryLabel). Fix option if it matters: declare ids with defineMessages.
  2. Error reading react typings path. Unable to generate typings entry point. Probable cause: the react 3 builder sets allowJs to undefined (logged), and this app is mostly .js. Consumers omnishipping and shipping-preview keep their own react/typings/vtex.pickup-points-modal.d.ts, so they should be unaffected, but newly published typings URLs for this app may not exist.

Same on both builders (not caused by this PR): en-GB/en-LB/en-MM/en-US miss keys compared with en; webpack warns about jest-environment-enzyme being pulled in through react/setupTestsAfterEnv.js.

Not caused by this PR (the diff touches only the manifest): yarn lint:ts reports TS2307 for the .svg imports in ZoomControls.tsx, and intl-equalizer was not installed in my checkout, so lint:locales was not run.

Not tested (please check before releasing): rendering of the modal in the checkout shipping step (omnishipping) and the cart shipping preview (shipping-preview), its only consumers I found; pickup-point selection and the Google Maps view.

Per AGENTS.md, changes to manifest.json builders need confirmation; the change was requested explicitly for the migration. Nothing was published, no hooks were skipped, and the version is not bumped: after merge, release with vtex release minor stable.

Screenshots or example usage

N/A (no UI change intended).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Chore (builder upgrade). Intended to be non-breaking; see "Not tested".

Validation record (answers the DK review RESTRICT finding and its documentation suggestion)

The PR changes only manifest.json (react 2.x to 3.x) and CHANGELOG.md; react/ source is identical to main. What was run, on 2026-12-01 unless noted:

Check Result
yarn test 16 suites, 167 tests, 12 snapshots pass
yarn lint:ts 2 errors, both TS2307 for the .svg imports in react/components/ZoomControls.tsx. tsc does not read manifest.json, so these are the same errors main has; they are not caused by this PR
yarn build (npm package, nwb) Fails locally with Unknown plugin "add-react-displayname" from .babelrc: a Babel plugin missing from the local node_modules, unrelated to the manifest. Not verified on a clean install
IO build (vtex link, builder-hub 0.321.1) Builds and links; render-runtime@8.136.3 and messages@1.72.0 resolved (details above)
Manual QA of the modal in checkout Not done: the test workspace needs a login. Checklist to run before release: open the pickup modal from the checkout shipping step; list loads; map renders (Google Maps key); search by address; select a point; back to the list; confirm no console errors

The CHANGELOG line ("No change to the public API...") describes the diff, not a behaviour test; the QA row above is the open item. The rollout plan keeps this release gated on that QA.

🤖 Generated with Claude Code

Move the react builder from 2.x to 3.x so the app no longer resolves
vtex.render-runtime@7.x / vtex.pages-graphql@1.x (VSC-1432670). The
messages builder is already 1.x, which react@3.x requires.

No change to react/ source, message files, the public API or
dependency ranges. Released as a minor with `vtex release minor stable`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@orca-security-us orca-security-us Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Malicious Packages high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Comment thread manifest.json
"builders": {
"react": "2.x",
"react": "3.x",
"messages": "1.x"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Functional.Support] 🟡 RESTRICT

Bumping the react builder from 2.x to 3.x pulls in render-runtime 8.x, a major version of VTEX IO's React build/runtime toolchain. Major render-runtime bumps have historically changed the underlying React version and rendering semantics (e.g. concurrent rendering/effect timing), which can alter behavior of PickupPointsModal even with zero source changes in react/. This is a stable, production checkout component per AGENTS.md, so the change warrants explicit compatibility verification rather than a one-line manifest edit.

Action: Run yarn lint:ts, yarn test, and yarn build against the new builder, and do a manual QA pass of the modal (checkout flow) before merging; capture the verification steps in the PR description.

To contest this finding, reply in this thread

@dk-pr-review

dk-pr-review Bot commented Nov 25, 2026

Copy link
Copy Markdown

DK Review — Audit Summary

Verdict: ⚠️ RESTRICTED

Severity Count
BLOCK 0
RESTRICT 1
SUGGEST 1

Only BLOCK and RESTRICT findings anchored to a changed line are commented inline on the diff. The other finding below opens no review thread.

Scenarios evaluated: general-review
Scenarios skipped: dependency-governance (no matching files), pipeline-config (no matching files), feature-flags (no matching files), agent-skills-review (no matching files), quality-ratchet (no matching files)


📋 Findings (2)

RESTRICT

  1. [Functional.Support] manifest.json:20 — Bumping the react builder from 2.x to 3.x pulls in render-runtime 8.x, a major version of VTEX IO's React build/runtime toolchain. Major render-runtime bumps have historically changed the underlying React version and rendering semantics (e.g. concurrent rendering/effect timing), which can alter behavior of PickupPointsModal even with zero source changes in react/. This is a stable, production checkout component per AGENTS.md, so the change warrants explicit compatibility verification rather than a one-line manifest edit.
    → Run yarn lint:ts, yarn test, and yarn build against the new builder, and do a manual QA pass of the modal (checkout flow) before merging; capture the verification steps in the PR description.

SUGGEST

  1. [general.documentation-gap] CHANGELOG.md:11 — The changelog asserts 'No change to the public API, react/ source or dependency ranges' for a major builder/runtime bump but cites no verification (tests run, build output checked, manual QA) to support that claim, which is risky for a critical production checkout component.
    → Extend the changelog entry (or PR description) to note what was validated — e.g. 'verified via yarn test/build and manual QA against render-runtime 8.x' — so reviewers and future readers can trust the no-behavior-change claim.

DK Review v1.0.0 | To contest a finding, reply in its thread

@lucvysk
lucvysk marked this pull request as ready for review November 25, 2026 16:49
@lucvysk
lucvysk requested a review from a team as a code owner November 25, 2026 16:49
@sonar-workflows

Copy link
Copy Markdown

@vsseixaso

Copy link
Copy Markdown

The modal has not been exercised on react 3 or render-runtime 8. Before vtex release minor stable, release country-codes, translator and address-form first, otherwise render-runtime 7.x stays in this app's graph.

@lucvysk

lucvysk commented Dec 4, 2026

Copy link
Copy Markdown
Author

@vsseixaso Agreed. Holding the merge until country-codes, shipping-estimate-translator and address-form are released. So far the modal has only had unit tests and lint; the manual QA on react 3 / render-runtime 8 is still open (checklist in the description).

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.

2 participants