Skip to content

Releases: vtex/faststore

FastStore v3.0.123: Renaming `faststore.config` to `discovery.config`

07 Oct 14:21
Compare
Choose a tag to compare

⚠️ This is part of an ongoing initiative to turn the store's repository into a monorepo, allowing for more customizable modules.

The faststore will manage a module called discovery, so we have renamed all configuration file from faststore.config to discovery.config, while maintaining compatibility with the legacy name.

What needs to be done?

After updating your store's FastStore package to v3.0.123, everything should continue to work as before. To update the package, see the previous release notes for more details.

If you're manually using the configuration file (for example, if you're importing it directly), you might encounter an error like this:

image

To resolve this:

  1. Rename faststore.config.js file to discovery.config.js.
  2. Update any references pointing to faststore.config.js to use discovery.config.js instead.

If you encounter any other errors, please:

Run faststore in the terminal

image
  • If it's outdated, update it using the following command:
yarn upgrade -L --scope @faststore

PRs that is related to this changes:

FastStore v3.0.117: Integration between FastStore and VTEX Ad Network

03 Oct 19:48
Compare
Choose a tag to compare

New integration between FastStore and VTEX Ad Network (#2438)

⚠️ This feature is only available for stores that are active publishers on the VTEX Ad Network.

FastStore now has support for displaying sponsored products when using Intelligent Search, helping retailers who are interested in VTEX Ad Network solution.

What needs to be done?

To benefit from this integration, follow these steps:

  1. Update your store FastStore package to v3.0.117 using @faststore/cli. To update the package, see the previous release notes for further details.

  2. Create a campaign to be delivered to the store with valid products.

  3. Update the showSponsored configuration in the store's settings to enable Intelligent Search to return sponsored products.

  • Open your FastStore project in a code editor and go to faststore.config.js file.

  • In the faststore.config.js file, add the following configuration for api:

      api: {
         ...
         showSponsored: true,
       },
  1. We encourage to indicate in the ProductCard that the product is promoted.

369394602-119baa57-a5b8-4b7f-99c1-954aaae30e07

For more details refer to #2438

FastStore v3.0.97: Package fixes

03 Sep 17:31
Compare
Choose a tag to compare

This release addresses the following issues:

  • ClientManyProductsQuery parameter duplication: We've fixed product data fetching.
  • Product Listing Pages (PLPs) flickering issue: We've fixed the content stability on PLPs.

⚠️ To benefit from these fixes, update your store FastStore package to v3.0.97 using @faststore/cli. Refer to the previous release notes for further details.

πŸ› Fixes

Reduced duplicate data fetching - #2429

Resolved an issue where the ClientManyProductsQuery was fetched twice with nearly identical parameters. This optimization eliminates redundant data fetching and the system can load product information more quickly. The only difference was the hasOnlyDefaultSalesChannel introduced on this PR and used only by the useAuth hook.

Before After
Screenshot 2024-09-02 at 14 00 24 Screenshot 2024-09-02 at 13 58 30

Eliminated PLP content instability - #2427

A recent change introduced a flickering effect on PLPs. In other words, the PLPs had visual instability, where the content of the page appeared to rapidly refresh or change without user interaction. We've rolled back the prior change to ensure a stable browsing experience. The FastStore team is working on alternative approaches to address fuzzy logic usage and operators in Intelligent Search requests, allowing the search engine to decide the best parameters for the search.

Before After
before rollback_blink_plp

Improvements in the Design System

01 Aug 15:51
Compare
Choose a tag to compare

Updates to the Brandless theme, design system, and bug fixes.

Warning

The official documentation is not available with these updates yet.

✨ Enhancements #2390

  • Type Scale: Updated mobile and desktop type scales for a more dynamic reading experience.
Before After
image image
Before After
image image
Global token Value
--fs-text-weight-medium 500
--fs-text-weight-semibold 600

πŸ› Bug fixes #2390

  • InputField: Fixed label centering for inputs with custom heights.
  • Payment Methods:
    • Added Amex and Pix logo options.
    • Improved payment method icon visibility within the store component.
Before After
image image
  • Product Card: Removed gray background for out-of-stock products due to new design pattern.
Before After
image image
  • Quantity Selector: Fixed border-radius declaration, moved to input.

  • ProductGallery: ProductPrice styles are now imported, enabling proper price rendering within the component.

Before After
image image

Reverse the dependency between @faststore/core and @faststore/cli

12 Aug 14:31
Compare
Choose a tag to compare

Reverse the dependency between @faststore/core and @faststore/cli

What has changed?

The new CLI version now depends on the core package, reversing the previous dependency. Therefore, an explicit dependency on @faststore/cli is sufficient, eliminating the need for both dependencies decreasing the possibility of incompatibilities between versions of different packages.

What needs to be done?

In your local FastStore project, go to package.json file and check the dependencies list:

 "dependencies": {
    "@faststore/cli": "^3.0.87",
    "next": "^13.5.6",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },

If @faststore/cli is already listed there, no action is needed. If not, follow the instructions below:

1. Remove the explicit dependency on @faststore/core in favor of depending only on @faststore/cli. The dependency list should look like:

 "dependencies": {
    "@faststore/cli": "^3.0.87",  // it was @faststore/core": "^3.0.xx"
    "next": "^13.5.6",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },

2. Remove @faststore/cli from devDependencies list:

 "devDependencies": {
    "@cypress/code-coverage": "^3.12.1",
    "@lhci/cli": "^0.9.0",
    "@testing-library/cypress": "^10.0.1",
    "cypress": "12.17.4",
    "cypress-axe": "^1.5.0",
    "cypress-wait-until": "^2.0.1",
    "typescript": "^4.9.4"
  },

3. Apply changes:

Run yarn to install the changes. Your yarn.lock file should be modified.

Refer to this PR to see the necessary changes.

Warning

We strongly recommend trying this in your local development environment to ensure compatibility with your existing codebase before changing to production.

These changes should not cause any issues in your project. After verifying that everything is working as expected, create a pull request with these changes to your remote repository.

@faststore/core v3.0.0 Package Updates

31 Jan 19:11
Compare
Choose a tag to compare

This version introduces API extension improvements, error page customization in the Headless CMS, and FastStore v2 users can benefit from Next.js 13 support.

To benefit from the following updates, upgrade your store @faststore/core and @faststore/cli packages to v3.0.0. In your local FastStore project, install the @faststore/core and @faststore/cli up-to-date version by running yarn add @faststore/[email protected] and then yarn add -D @faststore/[email protected]. Run the project locally with yarn dev.

⚠️ We strongly recommend trying this in your local development environment to ensure compatibility with your existing codebase before changing to production.

✨ Improvements to API extension - #2176

@faststore/graphql-utils deprecated in favor of the client-preset plugin, reducing bundle sizes, aligning with community standards, and adopting modern bundling and compilation tools for FastStore API extension users.

To benefit from these improvements, update your store's @faststore/core package to v3.0.0 and follow the Improvements to API extensions guide for more information.

✨ Enhance error page customization in the Headless CMS with new content types and section - #2184

Stores using FastStore v2 now support content customization on the login, 500, and 404 error pages through the EmptyState section via the Headless CMS.

image image

To benefit from the new content types, update your store's @faststore/core package to v3.0.0 and sync the changes:

  • To sync the updated version, open a new terminal and run faststore cms-sync.
  • Access the VTEX Admin and go to Headless CMS > FastStore. You should be able to see the three new content types listed there.
  • Click on one of the content types, and in Add section ( +).
  • Choose the EmptyState section and update its fields according to your store's requirements.

✨ FastStore now supports Next.js 13 - #2198

FastStore now supports Next.js 13 which brings general improvements related to performance and stability that stores can leverage from.

Edit your store's package.json :

  "dependencies": {
  ...
    "next": "^13.5.6",
    ...
  },

Refer to the Upgrading from 12 to 13 official Next.js documentation for more information on how to migrate to version 13.

Adds Newsletter component to @faststore/ui package

17 Jan 19:34
Compare
Choose a tag to compare
  • Newsletter component are now available in the FastStore UI. Refer to Newsletter documentation for further details.

  • Breaking Change: We are deprecating the __experimentalNewsletterAddendum override from Newsletter Section. You should override it using NewsletterAddendum.

image

Release Notes - August 2022

13 Sep 14:33
db53e4f
Compare
Choose a tag to compare

Gift, OrderSummary, SkuSelector, and CartItem components are now available in the FastStore UI. Also, updates to the FastStore API improve the shopping cart UX and allow adding user's session information to the orderForm.

FastStore UI

Gift

  • πŸŽ‰ New component - #1443

    Use the Gift component to display promotional gift items.

    Gift component

OrderSummary

  • πŸŽ‰ New component - #1456

    Use the OrderSummary component to provide a summary of the items in the cart, including the total price, related shipping tax, and discounts.

    OrderSummary component

SkuSelector

  • πŸŽ‰ New component - #1462

    Use the SkuSelector component on Product Details Pages (PDPs) to display all SKUs available for a given product.

    SkuSelector component

CartItem

  • πŸŽ‰ New component - #1461

    Use the CartItem component to display summarized data about an item placed in the shopping cart.

    CartItem component

FastStore API

  • πŸ› Fixed "Buy 2 get 3" promotions - #1434

    Cart UX issues related to promotions, such as "Buy 2 get 3," have been fixed. Now, items and gifts are correctly combined when necessary.

    Cart discount

  • ✨ Product releaseDate now available - #1438

    The StoreProduct entity can now return the releaseDate of an item.

  • ✨ Session info now available as an argument of validateCart - #1444

    The validateCart mutation now accepts the session argument. This allows adding the user's session information to the orderForm, making the shopping flow consistent between storefront and checkout, and allowing for regionalized prices.

Documentation

  • πŸŽ‰ New documentation feedback feature - #1448

    Documentation Feedback

New and improved docs

Release Notes - July 2022

05 Aug 21:32
742efd7
Compare
Choose a tag to compare

The search query has been enhanced to allow cross-selling and upselling of products. Also, the new subscribeToNewsletter mutation is now available in the FastStore API. In the FastStore UI, the Slider and PriceRange components now allow ref forwarding.

FastStore UI

ProductTitle

  • πŸŽ‰ New component - #1418

    Use the ProductTitle component to display a header with product details, such as its name, reference number, and labels.

    Product Title component

  • ✨ ProductTitle now uses ref forwarding - #1427

    The ProductTitle component allows passing a previously received ref further down to a child.

PriceRange

  • ✨ PriceRange now uses ref forwarding for min and max inputs - #1380

    The PriceRange component now accepts receiving refs for both min and max inputs. With the ref forwarding technique, other components using the PriceRange can trigger input functions and control the min and max values of PriceRange.

  • ✨ New PriceRange look and feel - #1400

    The PriceRange component now displays the min/max values centered above the Slider's thumbs and allows for more customizations.

  • πŸ› PriceRange track position fixed - #1404

    The track position of the PriceRange component has been adjusted for maximum absolute values greater than a hundred.

Slider

  • ✨ Slider now uses ref forwarding for min and max inputs - #1380

    The Slider component now accepts receiving refs for both min and max inputs. With the ref forwarding technique, other components using the Slider can trigger input functions and control the min and max values of Slider.

  • ✨ New prop added to Slider - #1415

    The Slider component now includes the step prop that allows specifying the interval between the input values.

  • πŸ› Slider values are now rounded - #1417
    The Slider component now displays only rounded values.

  • πŸ› Slider thumb elements repositioned - #1423

    The Slider thumb elements' have been repositioned in the DOM so they can have customized behavior states.

FastStore API

  • 🧹 Generated schema types updated - #1413/#1431

    The generated TS types from the GraphQL schema have been updated.

VTEX Platform

  • πŸŽ‰ Support for Cross Selling now available - #1396

    The following facets have been added to the existing Search query in order to allow cross-selling and upselling products:

    • buy
    • view
    • similars
    • viewAndBought
    • accessories
    • suggestions
  • πŸŽ‰ New subscribeToNewsletter mutation available - #1385

    The new subscribeToNewsletter mutation allows stores to save data to their MasterData newsletter list.

  • πŸŽ‰ New skuSelector-related properties added to ProductGroup - #1407

    The ProductGroup type now includes the skuVariations attribute, which brings with it four new properties:

    • allVariantsByName - Returns all available options for each SKU variant property, indexed by their name.
    • slugsMap - Returns the slug for the SKU that matches the currently selected product variations.
    • activeVariations - Returns the property values for the current SKU.
    • availableVariations - Returns the available options for each varying SKU property, considering the dominantVariantName property.

    These new properties allow users to query data about SKU specification variants more quickly and are especially handy for implementing SKU Selector components.

  • πŸ› StoreOffer resolver fixed - #1399

    The priceCurrency field from StoreOffer now grabs the same info from the current context's sales channel and fetches the correct price currency value.

  • πŸ› Missing Catalog page types now available - #1411

    The FastStore API now supports the following page types: SubCategory, Collection, Cluster. This should enable stores to render pages that match those types without issues.

  • πŸ› Issues related to Collection pages fixed - #1429

    Issues when trying to fetch the StoreCollection.breadcrumbList field for Collection pages have been fixed. Before detecting the page type of a certain route, the slufigyRoot function now checks if the page is a Collection one.

FastStore SDK

  • 🧹 Refactored SDKs' code - #1392

    The FastStore SDK package has been refactored in order to remove all React dependencies.

Documentation

πŸŽ‰ New

Analytics SDK

UI

API

VTEX Headless CMS

✨ Improved

Internal

  • πŸ› @faststore/graphql-utils now uses the commonjs module - #1394

  • 🧹 Improved Git blame view - #1409

  • 🧹 @store-framework removed from CODEOWNERS - #1410

  • 🧹 Wrong references to package names fixed - #1414

  • 🧹 Auto-generated changelog fixed - #1425

  • 🧹 Broken documentation links fixed - #1424/#1430

  • 🧹 Changelog configs fixed - #1426

Release Notes - June 2022

01 Jul 12:06
03d5644
Compare
Choose a tag to compare

The FastStore UI now includes the Hero and Dropdown components. Also, the FastStore API was enhanced to better support page error handling. Global changes were also implemented to enable price range filtering on PLPs.

FastStore UI

Hero

  • πŸŽ‰ New Hero component - #1336

    The Hero component is a full-width banner presented on the above-the-fold section of a web page. It serves as the first glimpse of your brand's identity and messaging.

    Hero component

AggregateRating

  • πŸŽ‰ New AggregateRating component - #1386

OutOfStock

  • ✨ OutOfStock's nested components now accept otherProps - #1341

    The OutOfStockTitle and OutOfStockMessage components now accept additional data attributes through the otherProps attribute.

Slider

  • ✨ Slider component enhanced - #1364

    The Slider component now accepts an initial state out of the min/max domain. Also, the onEnd callback function was added to enable triggering effects after user interaction.

FastStore API

VTEX Platform

  • πŸŽ‰ Request error handling functionality added - #1361

    The FastStore API now returns the proper page error code (400 or 404), allowing FastStore websites to respond to these errors accordingly.

  • πŸŽ‰ Canonical PDP slugs added - #1338

    So that VTEX stores migrating to FastStore can work seamlessly, a 301 redirect between vtexSlug and fastStoreSlug was created, where:

    • vtexSlug: /{slug}/p
    • fastStoreSlug: ${slug}-${skuId}/p
  • ✨ Resolvers and types updated to allow price range filtering on PLPs - #1364

    The search query now receives price. Also, the StoreFacetRange, StoreFacetBoolean, StoreFacetValueRange, and StoreFacetValueBoolean types were created to allow price range filtering on PLPs.

  • πŸ› validateCart error for additionalProperties fixed - #1325

    The following error Field "propertyID" is not defined by type IStorePropertyValue., related to products with additionalProperties added to the cart, was fixed.

  • πŸ› AggregateOffer resolver fixed for selecting the best seller - #1350

    For SKUs sold by multiple sellers, the AggregateOffer resolver was not able to detect the best seller consistently. This issue was solved by making the AggregateOffer resolver return the lowest and highest prices according to the bestOfferFirst function.

  • πŸ› Test inconsistencies fixed - #1360

    Test inconsistencies were resolved to provide a development environment more similar to the production one.

  • 🧹 FastStore API mocks updated to use auto fuzzy - #1359

FastStore SDK

  • πŸŽ‰ Full support to Trade Policies now available - #1319

    The Session context provider now accepts a new function called onValidateSession, which calls the backend to validate the session. On any modification to the channel, such as logging in to the store, the session values (e.g., channel, person, language) are updated accordingly so the user can start browsing on the new session.

  • ✨ useSearchState updated to allow price range filtering on PLPs - #1364

    The new setState function was added to the useSearchState context. All other useSearchState functions were removed and exported as helper functions.

Documentation

πŸŽ‰ New

✨ Improved

Internal

  • πŸŽ‰ FastStore repository now uses Turborepo cache - #1330

  • πŸŽ‰ FastStore repository now uses CodeQL analysis - #1331

  • ✨ Codesandbox CI improved - #1357

  • 🧹 Docs package removed from Codesandbox build - #1334

  • 🧹 Circular dependencies removed from FastStore SDK - #1333

  • 🧹 Purged unused CSS from the docs package - #1345

  • 🧹 Typescript errors fixed - #1352

  • 🧹 tsconfig package replaced by shared - #1379

  • 🧹 Eslint configs improved - #1368

  • 🧹 build script updated - #1362

  • 🧹 Prettier configured - #1369

  • 🧹 outdir added to all tsconfig - #1372

  • 🧹 Packages' module field updated - #1374