Skip to content

Update @shopify/shopify-app-react-router to v4 and @shopify/polaris-types to v2 - #303

Merged
jas7457 merged 1 commit into
main-clifrom
jas7457-polaris-2-main-cli
Oct 21, 2026
Merged

jas7457 merged 1 commit into
main-clifrom
jas7457-polaris-2-main-cli

Conversation

@jas7457

@jas7457 jas7457 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

@shopify/shopify-app-react-router 4.0.0 loads Polaris web components 2.x (polaris-2.js) by default instead of polaris.js, which stays on 1.x. Apps from shopify app init are on ^3.0.0, which never resolves to 4.x, so new apps keep loading Polaris 1.x until the template moves.

WHAT is this pull request doing?

  • Updates @shopify/shopify-app-react-router to ^4.0.0. The only change in 4.0.0 is the default Polaris URL. It was released as a major because new apps will now render with the Admin Next look. No template code changes are needed.
  • Updates @shopify/polaris-types to ^2.0.0. Otherwise new apps would load 2.x at runtime but typecheck against 1.x.

This is the branch shopify app init clones for TypeScript. Merging it triggers the conversion workflow, which updates javascript-cli_updates. #288 is the PR from that branch into javascript-cli.

Test this PR

shopify app init --template=https://github.com/Shopify/shopify-app-template-react-router#jas7457-polaris-2-main-cli
  • Locally against public npm: pnpm install resolves @shopify/shopify-app-react-router@4.0.0 and @shopify/polaris-types@2.0.0. typecheck, lint and build pass, and npm install hits no dependency conflicts.
  • In the running app, the page should load https://cdn.shopify.com/shopifycloud/polaris-2.js.

Checklist

  • I have made changes to the README.md file and other related documentation, if applicable
  • I have added an entry to CHANGELOG.md
  • I'm aware I need to create a new release when this PR is merged

@jas7457
jas7457 requested a review from a team as a code owner October 21, 2026 22:05
@github-actions github-actions Bot added the devtools-gardener Post the issue or PR to Slack for the gardener label Oct 21, 2026

@lizkenyon lizkenyon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

TY

@jas7457
jas7457 merged commit 1a03309 into main-cli Oct 21, 2026
20 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devtools-gardener Post the issue or PR to Slack for the gardener

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants