The FastStore API now includes an Express GraphQL Server, and the FastStore UI now has a new Dropdown component. Also, the performance of the useStorage hook has been improved.
FastStore UIโ
Dropdownโ
- ๐ New Dropdownmolecule - #1178 Use theDropdowncomponent as an options menu or a dropdown select. 
FastStore SDKโ
setSession functionโ
- ๐ Fixed setSessionfunction type - #1172 Now theContextValueof thesetSessionfunction receives asession: Partial<Session>argument. With the fix, it's possible to pass partial information of a session. For example:
const { setSession } = useSession()
setSession({ postalCode: 'foo' })
- โจ Improve the performance of - useStoragehook - #1186 The- setTimeoutfunction was created to prevent the creation of tasks that take longer than 50ms to process. The function improves the performance of the- useStoragehook by wrapping two of its tasks: the async promise and the set state of an item.
- โจ Add - setFacetsfunction to the search context - #1189 The- setFacetsfunction sets all selected facets without any processing, allowing full control of the selected facets.
FastStore APIโ
VTEX Platformโ
- ๐ Added missing - totalCountfield to- pageInfoin- allCollectionsquery - #1173 Now the resolver for the- allCollectionsquery returns the number of valid collections in the store when a user asks for- pageInfo.totalCountfield.
- ๐ New - Sessionquery - #1176 The- Sessionquery returns only the channel and country values. The addition of this query enables VTEX regionalization, which requires the- regionIdlocated within the channel.
- ๐ Add local server and GraphQL tests - #1179 The - @faststore/apipackage now comes with an Express GraphQL Server setup allowing you to test the API without having to link the package to a store.
- โจ - hideUnavaibleitemsparameter in the search API - #1180 The Search API now has a parameter called- hideUnavailableItems. This parameter either hides (true) or displays (false) an out-of-stock product.
- ๐ Removed frontend computation to the backend - #1184 Offers are now sorted according to the order of the - offersarray.
- โจ Returning null as profile - #1190 Now the API returns - nullfor the- personquery when executed by an anonymous user, avoiding a mismatch with the default user session values, preventing the session of the anonymous user from being reset, and lowering the Total Blocking Time (TBT) metric.
Documentationโ
- ๐ Added VTEX Headless CMS API Reference - #1194
The vtex.admin-releases@0.xapp was added to Step 2 - Installing the Headless CMS app on your VTEX account. The app is one of the VTEX Headless CMS's required apps.
Internalโ
- ๐ Fixed codebase typos - #1183