Skip to content

feat: FastStore v4 - #3302

Merged
eduardoformiga merged 171 commits into
mainfrom
feat/faststore-v4
May 7, 2026
Merged

eduardoformiga merged 171 commits into
mainfrom
feat/faststore-v4

Conversation

@eduardoformiga

Copy link
Copy Markdown
Member

What's the purpose of this pull request?

Publish v4.

lariciamota and others added 30 commits October 30, 2025 09:26
## What's the purpose of this pull request?

Build our default image loader.

## How it works?

- When the FastStore image component is used, the `faststoreLoader` is
used.
- When the Next image component is used directly, the
`customImageLoader` is used.
- Both have the same behavior when handling images from VTEX (from the
file manager/cms and product images) -- they add to the URL the info
regarding size, quality and aspect, since those VTEX services already
handles optimizations.
- The difference between those loaders is regarding external images --
the one used for Next images uses the Next optimizations, and the
FastStore one doesn't.

It won't be necessary to use a feature flag like
`enableVtexAssetsLoader`.

## How to test it?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

PR: vtex-sites/faststoreqa.store#881

## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2878)
- [Slack
thread](https://vtex.slack.com/archives/C03L3CRCDC4/p1761334946034969)
## What's the purpose of this pull request?

Atts.
## What's the purpose of this pull request?

This PR fixes a visual bug in the TextareaField component where long
text would appear underneath the floating label during scroll, making it
difficult to read. The issue was identified during the review of [PR
#2705](#2705 (review)).

Additionally, comprehensive Storybook documentation was added to
showcase all TextareaField variations and use cases.


https://github.com/user-attachments/assets/a86cd4df-e286-40f4-82b0-271a8bc66a26




## How it works?

**Bug Fix:**
- Added `--fs-textarea-field-label-background-color` CSS variable to
`packages/ui/src/components/molecules/TextareaField/styles.scss`
- Set default value to neutral-0 (white) to prevent text from showing
through the label
- When the textarea content is long and the user scrolls, the label now
has an opaque background, preventing text overlap

## How to test it?

**Test the scroll bug fix:**

From the project root:
```bash
pnpm --filter "@faststore/storybook" dev
```

Or navigate to the storybook package:
```bash
cd packages/storybook
pnpm dev
```

Then:
1. Open http://localhost:6006 in your browser
2. Navigate to **"TextareaField"** → **"LargeText"** story
3. Scroll inside the textarea content
4. Verify that the text no longer appears underneath the label

## References
- **Related Issue:** [PR #2705 - TextareaField label overlap issue
identified](#2705 (review))
- **Task:** [SFS-2385 ](https://vtex-dev.atlassian.net/browse/SFS-2385)
## What's the purpose of this pull request?

Revert changes from 
- #2988
since the approach to filter shopper changes to use text field instead
of selected filter in the drawer.

## details

remove purchaseAgentId filter and related components from
`MyAccountListOrders`.

This update removes the purchaseAgentId filter and its associated
components from the MyAccountListOrders section. The changes include:
- Deleting the MyAccountFilterFacetPlacedBy component and its styles.
- Adjusting the MyAccountListOrders and MyAccountSelectedTags components
to eliminate references to purchaseAgentId.
- Cleaning up related styles and imports to streamline the codebase.

These modifications aim to simplify the order filtering process and
improve overall maintainability.
## What's the purpose of this pull request?

From a current Next.js's known issue
([discussion#44013](vercel/next.js#44013)),
these changes aim to add an experimental custom hook to handle scroll
restoration when navigating back from PDPs to PLPs.


https://github.com/user-attachments/assets/9a452081-4c65-4a83-8c16-9775f97d226d

Along with this experimental hook, some adjustments needed to be made to
correct the behavior of related components, such as `Sentinel`.

While the Next.js experimental `scrollRestoration` flag is not working
as it should, we are proposing this FastStore's experimental scroll
restoration alternative.

## How it works?

While navigating through PLPs and loading more pages, when users
navigate to a PDP and navigate back the scroll should be restored to the
last position before the navigation.

### Starters Deploy Preview

vtex-sites/faststoreqa.store#878

## References

#2054
## What's the purpose of this pull request?

Merge the changes from main
## What's the purpose of this pull request?

By using the direction property users will be able to use RTL or LTR
layouts.
## What's the purpose of this pull request?

With these changes, if merchants remove the footer logo the entire
footer component will not be hid anymore, it will throw a console error
but the component should be displayed with no logo.
#3077)

## What's the purpose of this pull request?

This PR fixes the `border-radius` of the Slider thumb in Firefox. The
current CSS rule for Mozilla uses an inexistent variable, making the
browser render a square instead of a circle:

<img width="1028" height="181" alt="image"
src="https://github.com/user-attachments/assets/50c08d79-a6a9-4d31-b2e7-5ef9e287080f"
/>

## How it works?

The `--fs-slider-thumb-radius` variable is replaced by
`--fs-slider-thumb-border-radius`, the one that is defined in the
default thumb variables.

## How to test it?

- Use the `Local Install Instructions` from the [CodeSandbox
CI](https://ci.codesandbox.io/status/vtex/faststore/pr/3077) to add this
version in the `package.json` of a store.
- Import the `Slider` atom (and styles) in a component following the
docs: https://developers.vtex.com/docs/guides/faststore/atoms-slider
- Run the store in development mode and browse it in Mozilla Firefox.

### Starters Deploy Preview

I'm unable to generate a preview link but here's a screenshot from
localhost:

<img width="1287" height="617" alt="image"
src="https://github.com/user-attachments/assets/f0a5a5e9-d657-41db-9415-303b5d17fefd"
/>

## Checklist

**PR Title and Commit Messages**

- [x] PR title and commit messages follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification
- Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`,
`refactor`, `ci` and `test`

**PR Description**

- [ ] Added a label according to the PR goal - `breaking change`, `bug`,
`contributing`, `performance`, `documentation`..
_(No permissions. It's a bug though.)_

**Dependencies**

- [N/A] Committed the `pnpm-lock.yaml` file when there were changes to
the packages

**Documentation**

- [x] PR description
- [N/A] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)
)

## What's the purpose of this pull request?

Adds a new "Pending Approval" filter to the MyAccount orders page,
allowing users to quickly filter orders that require their approval.

## How it works?

- New toggle filter: Added "Pending Approval" as the first filter option
in the orders filter slider
- Toggle switch: Users can turn on/off the filter to show only pending
approval orders
- URL integration: Filter state is reflected in the URL
(?pendingApproval=true)
- Selected tag: When active, shows "Pending my approval" tag below the
search bar

## How to test it?

- Go to /account/orders
- Open filter slider and verify "Pending Approval" is the first option
- Toggle the switch and click "Apply"
- Check URL - should include ?pendingApproval=true
- Verify tag appears - "Pending my approval" tag should show below
search bar
- Test removal - click "×" on tag or "Clear All" to remove filter
- Test direct URL - navigate to /account/orders?pendingApproval=true and
verify filter is active

## Starter deploy preview

vtex-sites/b2bfaststoredev.store#358

## References

[SFS-2618](https://vtex-dev.atlassian.net/browse/SFS-2618)

| List | Filter |
| - | - |
|
![image](https://github.com/user-attachments/assets/70a02298-4461-4b21-926d-8d6b754a78bc)
|
![image](https://github.com/user-attachments/assets/2d6afc76-7153-473a-b839-c141e4f0ca1f)
|

[SFS-2618]:

https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

[SFS-2618]:
https://vtex-dev.atlassian.net/browse/SFS-2618?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Artur Santiago <[email protected]>
)

## What's the purpose of this pull request?

Fix a bug that occurs when regionalized and `isSessionReady` is sent in
the' validateSession' and' validateCart' mutations.

## How does it work?

It removes the `isSessionReady` from the session sent to the `setRegion`
method.

<img width="1909" height="916" alt="Screenshot 2025-11-11 at 16 22 55"
src="https://github.com/user-attachments/assets/468cc987-a2ee-432f-b306-399bfd32e891"
/>
## What's the purpose of this pull request?

This PR aims to fix the build in the dev branch.
## What's the purpose of this pull request?

With these changes, a loading skeleton will be displayed when product
price is still being validated, preventing product price flickering on
PDP.

## How to test it?

### Starters Deploy Preview
## What's the purpose of this pull request?

Allow svg files in public folder, avoid it getting deleted/overwritten
when generating .faststore

## How it works?

Add it to the allow list.

## How to test it?

Create a svg file or modify an existing svg file, it should be copied
correctly to the `/.faststore/public` when running the build command.
You can use this PR to test:
vtex-sites/faststoreqa.store#887, I've added a
new svg file and changed an existing one, before it was being
deleted/overwritten.
<img width="287" height="420" alt="Screenshot 2025-11-20 at 09 57 19"
src="https://github.com/user-attachments/assets/7b01d806-bdf9-4c3b-a385-32ea11ab2518"
/>

Nothing else should change.

### Starters Deploy Preview

- https://storeframework-cm652ufll028lmgv665a6xv0g-h0max2o2h.b.vtex.app/

## References
- [Jira task](https://vtex-dev.atlassian.net/browse/SO-559)
## What's the purpose of this pull request?

This PR considers the session when deducing the changes to the orderForm
done externally.

## What it aims to solve

The current FastStore shows a competing nature when dealing with the
same cart on two different devices (E.g. 2 browsers, Chrome and
Firefox).

### How to reproduce the problem

- Open your store in Chrome and Firefox
- Make note of the checkout.vtex.com cookie value of Chrome and view the
content of the orderForm using a client like Postman
- Paste the value of the cookie to the checkout cookie of Firefox
- Now you should have the same orderForm in Chrome, Firefox and Postman
- Add an item to the cart from Chrome
- Without going to Firefox, verify that the item is present in the
orderForm using Postman
- Now go to Firefox, but you will not see the item (Expected: the item
should be present in the cart, Actual: the browser cart in Firefox will
override the items of the real orderForm object)
- Open Postman, and you will notice that the item is not present in the
orderForm
- Now go back to Chrome, and it will add back the item to the orderForm
- Open Postman, and you will notice that the item is present in the
orderForm

## How it works?

We include the session ID to the MD5 hash, so that when the store is
used in a different browser with the same orderForm, the two hashes are
different. The two browsers should respect the changes performed by each
other.

## How to test it?

- First verify that the existing behavior of the mutation `validateCart`
is as expected.
- Follow the steps under **How to reproduce the problem**, and verify
that the expected behavior is observed.

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->

## References

<!--- Spread the knowledge: is there any content you used to create this
PR that is worth sharing? --->

<!--- Extra tip: adding references to related issues or mentioning
people important to this PR may be good for the documentation and
reviewing process --->

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Title and Commit Messages**

- [ ] PR title and commit messages follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification
- Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`,
`refactor`, `ci` and `test`

**PR Description**

- [ ] Added a label according to the PR goal - `breaking change`, `bug`,
`contributing`, `performance`, `documentation`..

**Dependencies**

- [ ] Committed the `pnpm-lock.yaml` file when there were changes to the
packages

**Documentation**

- [ ] PR description
- [ ] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)
## What's the purpose of this pull request?

This PR aims to fix the source code to show `undefined` `searchTerm`.
<img width="916" height="811" alt="Screenshot 2025-11-20 at 19 01 42"
src="https://github.com/user-attachments/assets/b07e44a4-9e37-45e3-9712-6ab19b1af758"
/>


## How it works?

1. The source code can't access the searchTerm from the build time;
thus, this page uses the default
<img width="1899" height="656" alt="Screenshot 2025-11-20 at 18 42 43"
src="https://github.com/user-attachments/assets/697d1b4a-e5cb-4325-a5a1-3ba5d429b7b3"
/>

2. The final code (runtime code after hydration, you can see the element
tab in the devtools), can access the dynamic search term and uses it.
<img width="1570" height="1049" alt="Screenshot 2025-11-20 at 18 42 05"
src="https://github.com/user-attachments/assets/04e0a613-950f-4416-9200-dcc239326b41"
/>

## How to test it?

You can run `pnpm build && pnpm serve` and view the source code
(right-click> Source Code). Additionally, you can view the final code
using the Element tab in the DevTools.
eduardoformiga and others added 17 commits May 4, 2026 16:51
New canary branch with reduced v4 scope

---------

Co-authored-by: Matheus P. Silva <[email protected]>
Co-authored-by: vtexgithubbot <[email protected]>
Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Luiz Falcão <[email protected]>
Co-authored-by: Larícia Mota <[email protected]>
Co-authored-by: Leandro Rodrigues <[email protected]>
Co-authored-by: Eduardo Formiga <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Leandro Rodrigues <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: renatomaurovtex <[email protected]>
Co-authored-by: CodeRabbit <[email protected]>
Co-authored-by: Marco Cardoso <[email protected]>
## What's the purpose of this pull request?

This PR aims to:
- force v4 version using `!`.
- fix release publish in CI.
- remove `release-dev.yml` file.

The CI's `pnpm build` ran `cache-graphql`, which rewrote the versioned
`discovery.config.default.js` (Biome formatting mismatch broke lint, and
the dirty working tree broke `lerna publish`).

The fix was to extract `cachedOperations` into a generated file under
`@generated/` (gitignored), so the build no longer touches versioned
files.

## How does it work

This pull request refactors how cached GraphQL operations are managed
and consumed in the codebase. Instead of embedding cached operations in
the `discovery.config` file, the process now outputs them to a dedicated
`cached-operations.json` file, which is then imported at runtime. This
streamlines the workflow and decouples cached operations from
configuration, making the system more modular and maintainable.

**Refactoring cached GraphQL operations handling:**

* The CLI command in `cache-graphql.ts` now writes cached operations to
a new `cached-operations.json` file instead of modifying the
`discovery.config` file. This file is generated alongside persisted
documents and contains only the cached operation names.
[[1]](diffhunk://#diff-8feffbe957c28cb9ccd705f17e2fc5043fe8391c126702f3c64eabee07171764R14)
[[2]](diffhunk://#diff-8feffbe957c28cb9ccd705f17e2fc5043fe8391c126702f3c64eabee07171764L65-R69)
[[3]](diffhunk://#diff-8feffbe957c28cb9ccd705f17e2fc5043fe8391c126702f3c64eabee07171764R78-R90)
* The runtime logic in `request.ts` is updated to import and use the new
`cached-operations.json` file to determine whether an operation should
use the GET or POST HTTP method, improving separation of concerns and
error handling.

**Minor cleanup:**

* The unused `prettier` import was removed from `cache-graphql.ts`,
reflecting the fact that formatting is no longer needed for the new JSON
output.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Restructured GraphQL cached operations handling to generate a
dedicated file format, replacing the previous configuration-based
approach. This improves code organization and simplifies how cached
operations are resolved during request processing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@eduardoformiga
eduardoformiga requested a review from a team as a code owner May 7, 2026 16:16
@eduardoformiga
eduardoformiga requested review from emersonlaurentino and lariciamota and removed request for a team May 7, 2026 16:16
@coderabbitai

coderabbitai Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 279 files, which is 129 over the limit of 150.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d057a92a-548a-4160-af9a-6c8c3df1f9d5

📥 Commits

Reviewing files that changed from the base of the PR and between 1af5815 and 1d11c91.

⛔ Files ignored due to path filters (21)
  • .codesandbox/ci.json is excluded by none and included by none
  • .github/workflows/ci.yml is excluded by none and included by none
  • .github/workflows/packages-preview.yml is excluded by none and included by none
  • .github/workflows/release.yml is excluded by none and included by none
  • .gitignore is excluded by none and included by none
  • .vscode/settings.json is excluded by none and included by none
  • AGENTS.md is excluded by none and included by none
  • CHANGELOG.md is excluded by none and included by none
  • README.md is excluded by none and included by none
  • lerna.json is excluded by none and included by none
  • makefile is excluded by none and included by none
  • package.json is excluded by none and included by none
  • packages/api/src/__generated__/schema.ts is excluded by !**/__generated__/** and included by packages/**
  • packages/api/test/integration/__snapshots__/mutations.test.ts.snap is excluded by !**/*.snap and included by packages/**
  • packages/api/test/integration/__snapshots__/queries.test.ts.snap is excluded by !**/*.snap and included by packages/**
  • packages/cli/src/__mocks__/monorepo/node_modules/@vtex/faststore-core/.gitkeep is excluded by !**/node_modules/**, !**/node_modules/** and included by packages/**
  • packages/cli/src/__mocks__/store/node_modules/@vtex/faststore-core/.gitkeep is excluded by !**/node_modules/**, !**/node_modules/** and included by packages/**
  • packages/core/@generated/gql.ts is excluded by !**/@generated/**, !**/@generated/** and included by packages/**
  • packages/core/@generated/graphql.ts is excluded by !**/@generated/**, !**/@generated/** and included by packages/**
  • packages/core/@generated/index.ts is excluded by !**/@generated/**, !**/@generated/** and included by packages/**
  • packages/core/public/icons.svg is excluded by !**/*.svg and included by packages/**
📒 Files selected for processing (279)
  • packages/api/CHANGELOG.md
  • packages/api/jest.int.config.js
  • packages/api/jest.unit.config.js
  • packages/api/local/server.mjs
  • packages/api/local/server.ts
  • packages/api/package.json
  • packages/api/src/directives/index.ts
  • packages/api/src/index.ts
  • packages/api/src/observability/telemetry.ts
  • packages/api/src/platforms/vtex/clients/commerce/index.ts
  • packages/api/src/platforms/vtex/clients/commerce/types/OrderForm.ts
  • packages/api/src/platforms/vtex/clients/fetch.ts
  • packages/api/src/platforms/vtex/clients/index.ts
  • packages/api/src/platforms/vtex/clients/search/index.ts
  • packages/api/src/platforms/vtex/index.ts
  • packages/api/src/platforms/vtex/loaders/collection.ts
  • packages/api/src/platforms/vtex/loaders/index.ts
  • packages/api/src/platforms/vtex/loaders/salesChannel.ts
  • packages/api/src/platforms/vtex/loaders/simulation.ts
  • packages/api/src/platforms/vtex/loaders/sku.ts
  • packages/api/src/platforms/vtex/resolvers/aggregateOffer.ts
  • packages/api/src/platforms/vtex/resolvers/aggregateRating.ts
  • packages/api/src/platforms/vtex/resolvers/cancelOrder.ts
  • packages/api/src/platforms/vtex/resolvers/collection.ts
  • packages/api/src/platforms/vtex/resolvers/faceValue.ts
  • packages/api/src/platforms/vtex/resolvers/facet.ts
  • packages/api/src/platforms/vtex/resolvers/index.ts
  • packages/api/src/platforms/vtex/resolvers/objectOrString.ts
  • packages/api/src/platforms/vtex/resolvers/offer.ts
  • packages/api/src/platforms/vtex/resolvers/organization.ts
  • packages/api/src/platforms/vtex/resolvers/processOrderAuthorization.ts
  • packages/api/src/platforms/vtex/resolvers/product.ts
  • packages/api/src/platforms/vtex/resolvers/productGroup.ts
  • packages/api/src/platforms/vtex/resolvers/propertyValue.ts
  • packages/api/src/platforms/vtex/resolvers/query.ts
  • packages/api/src/platforms/vtex/resolvers/review.ts
  • packages/api/src/platforms/vtex/resolvers/searchResult.ts
  • packages/api/src/platforms/vtex/resolvers/seo.ts
  • packages/api/src/platforms/vtex/resolvers/shippingSLA.ts
  • packages/api/src/platforms/vtex/resolvers/skuVariations.ts
  • packages/api/src/platforms/vtex/resolvers/subscribeToNewsletter.ts
  • packages/api/src/platforms/vtex/resolvers/userOrder.ts
  • packages/api/src/platforms/vtex/resolvers/validateCart.ts
  • packages/api/src/platforms/vtex/resolvers/validateSession.ts
  • packages/api/src/platforms/vtex/typeDefs/address.graphql
  • packages/api/src/platforms/vtex/typeDefs/advertisement.graphql
  • packages/api/src/platforms/vtex/typeDefs/aggregateOffer.graphql
  • packages/api/src/platforms/vtex/typeDefs/aggregateRating.graphql
  • packages/api/src/platforms/vtex/typeDefs/author.graphql
  • packages/api/src/platforms/vtex/typeDefs/brand.graphql
  • packages/api/src/platforms/vtex/typeDefs/breadcrumb.graphql
  • packages/api/src/platforms/vtex/typeDefs/cart.graphql
  • packages/api/src/platforms/vtex/typeDefs/collection.graphql
  • packages/api/src/platforms/vtex/typeDefs/deliveryPromisesBadge.graphql
  • packages/api/src/platforms/vtex/typeDefs/facet.graphql
  • packages/api/src/platforms/vtex/typeDefs/image.graphql
  • packages/api/src/platforms/vtex/typeDefs/index.ts
  • packages/api/src/platforms/vtex/typeDefs/mutation.graphql
  • packages/api/src/platforms/vtex/typeDefs/newsletter.graphql
  • packages/api/src/platforms/vtex/typeDefs/objectOrString.graphql
  • packages/api/src/platforms/vtex/typeDefs/offer.graphql
  • packages/api/src/platforms/vtex/typeDefs/order.graphql
  • packages/api/src/platforms/vtex/typeDefs/orderCommercialAuthorizaton.graphql
  • packages/api/src/platforms/vtex/typeDefs/organization.graphql
  • packages/api/src/platforms/vtex/typeDefs/pageInfo.graphql
  • packages/api/src/platforms/vtex/typeDefs/password.graphql
  • packages/api/src/platforms/vtex/typeDefs/person.graphql
  • packages/api/src/platforms/vtex/typeDefs/pickupPoints.graphql
  • packages/api/src/platforms/vtex/typeDefs/product.graphql
  • packages/api/src/platforms/vtex/typeDefs/productGroup.graphql
  • packages/api/src/platforms/vtex/typeDefs/profile.graphql
  • packages/api/src/platforms/vtex/typeDefs/propertyValue.graphql
  • packages/api/src/platforms/vtex/typeDefs/query.graphql
  • packages/api/src/platforms/vtex/typeDefs/review.graphql
  • packages/api/src/platforms/vtex/typeDefs/seo.graphql
  • packages/api/src/platforms/vtex/typeDefs/session.graphql
  • packages/api/src/platforms/vtex/typeDefs/shipping.graphql
  • packages/api/src/platforms/vtex/typeDefs/skuVariants.graphql
  • packages/api/src/platforms/vtex/typeDefs/status.graphql
  • packages/api/src/platforms/vtex/typeDefs/userOrder.graphql
  • packages/api/src/platforms/vtex/utils/auth.ts
  • packages/api/src/platforms/vtex/utils/contex.ts
  • packages/api/src/platforms/vtex/utils/cookies.ts
  • packages/api/src/platforms/vtex/utils/md5.ts
  • packages/api/src/typeDefs/index.ts
  • packages/api/src/typings/globals.ts
  • packages/api/src/typings/index.ts
  • packages/api/test/integration/mutations.test.ts
  • packages/api/test/integration/queries.test.ts
  • packages/api/test/integration/schema.test.ts
  • packages/api/test/integration/vtex.aggregateOffer.test.ts
  • packages/api/test/integration/vtex.cookies.test.ts
  • packages/api/test/integration/vtex.shouldUpdateShippingData.test.ts
  • packages/api/test/integration/vtex.skuVariants.test.ts
  • packages/api/test/mocks/AllCollectionsQuery.ts
  • packages/api/test/mocks/CollectionQuery.ts
  • packages/api/test/mocks/SellersQuery.ts
  • packages/api/test/mocks/ShippingQuery.ts
  • packages/api/test/mocks/ValidateCartMutation.ts
  • packages/api/test/mocks/salesChannel.ts
  • packages/api/test/unit/platforms/vtex/clients/commerce.test.ts
  • packages/api/test/unit/platforms/vtex/utils/canonical.test.ts
  • packages/api/vite.config.mts
  • packages/api/vitest.config.ts
  • packages/cli/CHANGELOG.md
  • packages/cli/README.md
  • packages/cli/bin/dev
  • packages/cli/bin/dev.cmd
  • packages/cli/bin/dev.js
  • packages/cli/bin/run
  • packages/cli/bin/run.js
  • packages/cli/jest.config.js
  • packages/cli/package.json
  • packages/cli/src/commands/build.ts
  • packages/cli/src/commands/cache-graphql.ts
  • packages/cli/src/commands/cms-sync.ts
  • packages/cli/src/commands/create.ts
  • packages/cli/src/commands/dev.ts
  • packages/cli/src/commands/generate-graphql.ts
  • packages/cli/src/commands/generate-i18n.test.ts
  • packages/cli/src/commands/generate-i18n.ts
  • packages/cli/src/commands/generate-types.ts
  • packages/cli/src/commands/generate.ts
  • packages/cli/src/commands/prepare.ts
  • packages/cli/src/commands/start.ts
  • packages/cli/src/commands/test.ts
  • packages/cli/src/index.ts
  • packages/cli/src/utils/commands.ts
  • packages/cli/src/utils/config.ts
  • packages/cli/src/utils/dependencies.ts
  • packages/cli/src/utils/directory.test.ts
  • packages/cli/src/utils/directory.ts
  • packages/cli/src/utils/file.ts
  • packages/cli/src/utils/generate-types.ts
  • packages/cli/src/utils/generate.ts
  • packages/cli/src/utils/hcms.test.ts
  • packages/cli/src/utils/hcms.ts
  • packages/cli/src/utils/plugins.ts
  • packages/cli/src/utils/runCommandSync.ts
  • packages/cli/tsconfig.json
  • packages/cli/tsup.config.ts
  • packages/cli/vitest.config.ts
  • packages/components/CHANGELOG.md
  • packages/components/jest.config.js
  • packages/components/jest.setup.ts
  • packages/components/package.json
  • packages/components/src/atoms/Link/Link.tsx
  • packages/components/src/atoms/List/List.tsx
  • packages/components/src/hooks/index.ts
  • packages/components/src/index.ts
  • packages/components/src/molecules/Accordion/Accordion.tsx
  • packages/components/src/molecules/Accordion/AccordionItem.tsx
  • packages/components/src/molecules/Popover/Popover.tsx
  • packages/components/src/molecules/ProductCard/ProductCardContent.tsx
  • packages/components/src/molecules/SearchDropdown/SearchDropdown.tsx
  • packages/components/src/molecules/SearchInputField/SearchInputField.tsx
  • packages/components/src/molecules/Toast/Toast.tsx
  • packages/components/src/organisms/Filter/FilterFacetRange.tsx
  • packages/components/src/organisms/OutOfStock/OutOfStock.tsx
  • packages/components/src/organisms/PriceRange/PriceRange.tsx
  • packages/components/src/organisms/ProductComparison/ProductComparisonSidebar.tsx
  • packages/components/src/organisms/SKUMatrix/SKUMatrixSidebar.tsx
  • packages/components/src/organisms/SlideOver/SlideOver.tsx
  • packages/components/test/molecules/Card/Card.test.tsx
  • packages/components/test/molecules/CheckboxField/CheckboxField.test.tsx
  • packages/components/tsconfig.json
  • packages/components/vite.config.mts
  • packages/components/vitest.config.mts
  • packages/components/vitest.setup.ts
  • packages/core/CHANGELOG.md
  • packages/core/README.md
  • packages/core/api/index.ts
  • packages/core/cms/faststore/base.jsonc
  • packages/core/cms/faststore/components/cms_component__alert.jsonc
  • packages/core/cms/faststore/components/cms_component__bannernewsletter.jsonc
  • packages/core/cms/faststore/components/cms_component__bannertext.jsonc
  • packages/core/cms/faststore/components/cms_component__breadcrumb.jsonc
  • packages/core/cms/faststore/components/cms_component__cartsidebar.jsonc
  • packages/core/cms/faststore/components/cms_component__children.jsonc
  • packages/core/cms/faststore/components/cms_component__crosssellingshelf.jsonc
  • packages/core/cms/faststore/components/cms_component__emptystate.jsonc
  • packages/core/cms/faststore/components/cms_component__footer.jsonc
  • packages/core/cms/faststore/components/cms_component__hero.jsonc
  • packages/core/cms/faststore/components/cms_component__incentives.jsonc
  • packages/core/cms/faststore/components/cms_component__navbar.jsonc
  • packages/core/cms/faststore/components/cms_component__newsletter.jsonc
  • packages/core/cms/faststore/components/cms_component__productdetails.jsonc
  • packages/core/cms/faststore/components/cms_component__productgallery.jsonc
  • packages/core/cms/faststore/components/cms_component__productshelf.jsonc
  • packages/core/cms/faststore/components/cms_component__producttiles.jsonc
  • packages/core/cms/faststore/components/cms_component__regionbar.jsonc
  • packages/core/cms/faststore/components/cms_component__regionmodal.jsonc
  • packages/core/cms/faststore/components/cms_component__regionpopover.jsonc
  • packages/core/cms/faststore/components/cms_component__scrolltotopbutton.jsonc
  • packages/core/cms/faststore/components/cms_component__search.jsonc
  • packages/core/cms/faststore/content-types.json
  • packages/core/cms/faststore/pages/cms_content_type__globalsections.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__home.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__landingpage.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__pdp.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__plp.jsonc
  • packages/core/cms/faststore/pages/cms_content_type__search.jsonc
  • packages/core/cms/faststore/schema.json
  • packages/core/cms/faststore/sections.json
  • packages/core/discovery.config.default.js
  • packages/core/jest.config.js
  • packages/core/next-env.d.ts
  • packages/core/next.config.js
  • packages/core/package.json
  • packages/core/scripts/i18n.js
  • packages/core/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx
  • packages/core/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss
  • packages/core/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss
  • packages/core/src/components/account/MyAccountLayout/styles.scss
  • packages/core/src/components/account/MyAccountMenu/styles.scss
  • packages/core/src/components/account/MyAccountUserDetails/styles.module.scss
  • packages/core/src/components/account/components/MyAccountAccordion/styles.scss
  • packages/core/src/components/account/components/MyAccountHeader/styles.scss
  • packages/core/src/components/account/components/MyAccountTable/styles.scss
  • packages/core/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss
  • packages/core/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx
  • packages/core/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss
  • packages/core/src/components/account/orders/MyAccountListOrders/styles.module.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountBudgetsCard/styles.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss
  • packages/core/src/components/account/orders/MyAccountOrderDetails/section.module.scss
  • packages/core/src/components/account/profile/profile.module.scss
  • packages/core/src/components/account/section.module.scss
  • packages/core/src/components/account/security/styles.module.scss
  • packages/core/src/components/cart/CartSidebar/CartSidebar.tsx
  • packages/core/src/components/cart/CartSidebar/section.module.scss
  • packages/core/src/components/cart/EmptyCart/EmptyCart.tsx
  • packages/core/src/components/cms/GlobalSections.tsx
  • packages/core/src/components/cms/RenderSections.tsx
  • packages/core/src/components/cms/plp/Components.ts
  • packages/core/src/components/common/Alert/section.module.scss
  • packages/core/src/components/common/PreviewTag/section.module.scss
  • packages/core/src/components/common/Toast/section.module.scss
  • packages/core/src/components/localization/LocalizationSelector/LocalizationSelector.tsx
  • packages/core/src/components/localization/LocalizationSelector/index.ts
  • packages/core/src/components/localization/LocalizationSelector/section.module.scss
  • packages/core/src/components/localization/index.ts
  • packages/core/src/components/navigation/Navbar/Navbar.tsx
  • packages/core/src/components/navigation/NavbarSlider/NavbarSlider.tsx
  • packages/core/src/components/navigation/NavbarSlider/section.module.scss
  • packages/core/src/components/product/OutOfStock/OutOfStock.tsx
  • packages/core/src/components/product/ProductCard/ProductCard.tsx
  • packages/core/src/components/region/RegionModal/RegionModal.tsx
  • packages/core/src/components/region/RegionModal/section.module.scss
  • packages/core/src/components/region/RegionPopover/RegionPopover.tsx
  • packages/core/src/components/region/RegionPopover/section.module.scss
  • packages/core/src/components/region/RegionSlider/RegionSlider.tsx
  • packages/core/src/components/region/RegionSlider/section.module.scss
  • packages/core/src/components/search/Filter/FilterDeliveryMethodFacet.tsx
  • packages/core/src/components/search/Filter/FilterDesktop.tsx
  • packages/core/src/components/search/Filter/FilterSlider.tsx
  • packages/core/src/components/search/Filter/section.module.scss
  • packages/core/src/components/search/SearchDropdown/SearchDropdown.tsx
  • packages/core/src/components/search/SearchHistory/SearchHistory.tsx
  • packages/core/src/components/search/SearchInput/SearchInput.tsx
  • packages/core/src/components/search/SearchProductItem/SearchProductItem.tsx
  • packages/core/src/components/search/SearchTop/SearchTop.tsx
  • packages/core/src/components/search/Sort/Sort.tsx
  • packages/core/src/components/sections/Alert/Alert.tsx
  • packages/core/src/components/sections/BannerNewsletter/section.module.scss
  • packages/core/src/components/sections/BannerText/section.module.scss
  • packages/core/src/components/sections/Breadcrumb/Breadcrumb.tsx
  • packages/core/src/components/sections/Breadcrumb/section.module.scss
  • packages/core/src/components/sections/EmptyState/section.module.scss
  • packages/core/src/components/sections/Footer/Footer.tsx
  • packages/core/src/components/sections/Footer/section.module.scss
  • packages/core/src/components/sections/Hero/Hero.tsx
  • packages/core/src/components/sections/Hero/section.module.scss
  • packages/core/src/components/sections/Incentives/section.module.scss
  • packages/core/src/components/sections/Navbar/Navbar.tsx

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/faststore-v4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codesandbox-ci

codesandbox-ci Bot commented May 7, 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 May 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

@faststore/api

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/cli

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/components

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/core

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/diagnostics

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/lighthouse

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/sdk

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

@faststore/ui

yarn add https://pkg.pr.new/vtex/faststore/@faststore/[email protected]

commit: 1d11c91

return setPreviewAndRedirect(
res,
locator,
redirects[locator.contentType],
@eduardoformiga
eduardoformiga merged commit c7ca1a2 into main May 7, 2026
7 checks passed
@eduardoformiga
eduardoformiga deleted the feat/faststore-v4 branch May 7, 2026 16:40
eduardoformiga added a commit that referenced this pull request May 11, 2026
…ocols (#3309)

## Summary

- Replaces `lerna publish from-git` with `pnpm -r publish` in the
release scripts so pnpm rewrites `workspace:*` and `catalog:` specifiers
to concrete versions before uploading the tarballs to npm. `lerna
version` is kept for bump, tag and changelog generation.
- Adds `pnpm release:verify`, a smoke test that packs every public
`packages/*` with `pnpm pack` and inspects each tarball's `package.json`
for unresolved `workspace:` or `catalog:` literals. Wired into
`release.yml` before any publish step.

Closes #3307.

## Why

`@faststore/{cli,core,api,ui,components}@4.0.0` were published with
literal `workspace:*` and `catalog:` in their dependencies, breaking
installs outside the monorepo. Confirmed against the registry:

- `@faststore/[email protected]` — `@faststore/api: workspace:*`,
`@faststore/core: workspace:*`, plus 9+ `catalog:` entries.
- `@faststore/[email protected]` — 18 `catalog:` entries (`react`, `react-dom`,
`next`, `graphql`, …).
- `@faststore/[email protected]` — 7 `catalog:` entries +
`@faststore/diagnostics: workspace:*`.
- `@faststore/[email protected]`, `@faststore/[email protected]` — `catalog:` for
shared deps.

Root cause: `lerna publish` (regardless of `npmClient: "pnpm"` in
`lerna.json`, which only affects install) delegates the actual upload to
`npm publish`. `npm publish` does not know about pnpm's `catalog:`
protocol and only rewrites `workspace:*` when the monorepo is declared
via `workspaces` in the root `package.json` (which this repo does not —
it uses `pnpm-workspace.yaml`). The regression was introduced in #3302
(v4) when the catalog migration landed without updating the publish
pipeline.

## Changes

### `package.json`

```diff
-"release": "lerna version --conventional-commits --conventional-graduate --yes && lerna publish from-git --yes",
-"release:dev": "lerna version --conventional-commits --conventional-prerelease --preid=dev --force-publish --yes && lerna publish from-git --dist-tag=dev --yes",
-"release:v3": "lerna version --conventional-commits --yes && lerna publish from-git --dist-tag=v3-latest --yes",
+"release": "lerna version --conventional-commits --conventional-graduate --yes && pnpm -r publish --access public --no-git-checks",
+"release:dev": "lerna version --conventional-commits --conventional-prerelease --preid=dev --force-publish --yes && pnpm -r publish --access public --tag dev --no-git-checks",
+"release:v3": "lerna version --conventional-commits --yes && pnpm -r publish --access public --tag v3-latest --no-git-checks",
+"release:verify": "node ./scripts/verify-publish-manifests.mjs",
```

`pnpm -r publish` walks `packages/*`, skips private packages, runs the
same `prepack` lifecycle that the previous flow did (so `oclif readme`
etc. still execute), and rewrites `workspace:*` / `catalog:` while
building each tarball. `--no-git-checks` is needed because `lerna
version` already created the tag commit.

### `scripts/verify-publish-manifests.mjs`

Standalone Node script (no extra deps) that:

1. Iterates every non-private `packages/*/package.json`.
2. Runs `pnpm pack` per package into a temp dir.
3. Extracts `package/package.json` from each `.tgz` and walks
`dependencies`, `devDependencies`, `peerDependencies`,
`optionalDependencies`.
4. Fails with a clear, per-package report if any value starts with
`workspace:` or `catalog:`.

### `.github/workflows/release.yml`

Added a `Verify publish manifests` step (running `pnpm release:verify`)
right before the per-branch publish steps, so a regression to a
non-resolving publish tool is caught before anything reaches npm.

## Test plan

- [x] `pnpm lint` — clean.
- [x] `pnpm release:verify` locally — passes for all 8 public packages
on this branch.
- [x] Synthetic negative test of `findUnresolvedProtocols`: detects
`workspace:*` and `catalog:` (named or bare) across all four dep fields.
- [ ] CD pipeline runs `Verify publish manifests` before publish on a
future release.
- [ ] Once merged, cut a `4.0.1` (or `4.1.0-dev.x`) and confirm via `npm
view @faststore/cli@<new> dependencies` that no `workspace:` /
`catalog:` strings appear.
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.