Skip to content

fix: preview pnpm pack - #3367

Merged
hellofanny merged 2 commits into
mainfrom
fix/preview-pnpm-pack
Jun 1, 2026
Merged

hellofanny merged 2 commits into
mainfrom
fix/preview-pnpm-pack

Conversation

@ommeirelles

@ommeirelles ommeirelles commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Release Notes – v4.1.2

  • Bug Fixes
    • Improved locale validation handling when localization is disabled in store configuration
    • Fixed locale validation to correctly bypass validation for private route paths

@ommeirelles
ommeirelles requested a review from a team as a code owner June 1, 2026 18:40
@ommeirelles
ommeirelles requested review from eduardoformiga and lariciamota and removed request for a team June 1, 2026 18:40
@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Version 4.1.2 hotfix for @faststore/cli and @faststore/core. Locale validation now respects disabled localization configuration and exempts private routes (/pvt/*) from hostname/locale binding checks. Package versions and changelog entries updated.

Changes

Locale Validation and Release

Layer / File(s) Summary
Locale validation logic fixes
packages/core/src/utils/localization/validateLocaleForHostname.ts, packages/core/src/utils/localization/withLocaleValidation.ts
Import source switched from discovery.config.default.js to discovery.config. Early return added when storeConfig.localization?.enabled is falsy, bypassing hostname/locale binding validation. Private route check (/pvt/*) added to withLocaleValidationSSR to skip validation entirely for those requests.
Version bump and release documentation
packages/cli/package.json, packages/cli/CHANGELOG.md, packages/core/package.json, packages/core/CHANGELOG.md
Both @faststore/cli and @faststore/core version incremented from 4.1.1 to 4.1.2. Changelogs updated with release section documenting version bump (CLI) and locale validation bug fix (Core).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~18 minutes

Possibly related PRs

  • vtex/faststore#3358: Applies the same locale validation fixes, updating validateLocaleForHostname to short-circuit when localization is disabled and withLocaleValidationSSR to bypass validation for /pvt/ routes.
  • vtex/faststore#3269: Earlier PR modifying validateLocaleForHostname.ts for locale/hostname validation behavior changes.

Suggested labels

hotfix

Suggested reviewers

  • lariciamota
  • renatomaurovtex
  • hellofanny

Poem

🌍 Locales at rest when they're not in use,
Private routes freed from validation's noose,
Four point one point two takes flight today,
Simpler configs light the TypeScript way. 🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'fix: preview pnpm pack' does not clearly relate to the actual changes, which are version bumps (4.1.1→4.1.2) and bug fixes for locale validation in disabled localization and pvt routes. Update the title to accurately reflect the main changes, such as 'chore: bump version to 4.1.2 and fix locale validation for disabled localization' or similar.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/preview-pnpm-pack

Comment @coderabbitai help to get the list of available commands and usage tips.

@ommeirelles
ommeirelles changed the base branch from dev to main June 1, 2026 18:40
@codesandbox-ci

codesandbox-ci Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new

pkg-pr-new Bot commented Jun 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@faststore/api

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/api@d58db36

@faststore/cli

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/cli@d58db36

@faststore/components

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/components@d58db36

@faststore/core

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/core@d58db36

@faststore/diagnostics

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/diagnostics@d58db36

@faststore/lighthouse

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/lighthouse@d58db36

@faststore/sdk

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/sdk@d58db36

@faststore/ui

pnpm add https://pkg.pr.new/vtex/faststore/@faststore/ui@d58db36

commit: d58db36

@sonar-workflows

Copy link
Copy Markdown

@hellofanny hellofanny changed the title Fix/preview pnpm pack fix: preview pnpm pack Jun 1, 2026
@hellofanny
hellofanny merged commit 48c36c5 into main Jun 1, 2026
12 of 13 checks passed
@hellofanny
hellofanny deleted the fix/preview-pnpm-pack branch June 1, 2026 19:09
@coderabbitai coderabbitai Bot mentioned this pull request Jun 1, 2026
5 tasks
hellofanny pushed a commit that referenced this pull request Jun 1, 2026
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes – v4.1.2

* **Bug Fixes**
* Improved locale validation handling when localization is disabled in
store configuration
* Fixed locale validation to correctly bypass validation for private
route paths

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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