@faststore/core v3.0.0 Package Updates
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/core@3.0.0
and then yarn add -D @faststore/cli@3.0.0
. 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](https://private-user-images.githubusercontent.com/3356699/301247198-25a7ce78-b334-4e90-b055-8f564023cc58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzM4MTcsIm5iZiI6MTcyNDI3MzUxNywicGF0aCI6Ii8zMzU2Njk5LzMwMTI0NzE5OC0yNWE3Y2U3OC1iMzM0LTRlOTAtYjA1NS04ZjU2NDAyM2NjNTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjFUMjA1MTU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjE4NjdlYWNhYWQwMTZhZjllNTZlNTVjZDczN2Y3YWE3YzM1YTY3ZTVkYzIyYTgyZDM2NDBhNjA1YWJkYzM5OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TrNU3iMEpVOgg_dcqj53gzZUzluM6wV-2nmjbWQl-b4)
![image](https://private-user-images.githubusercontent.com/3356699/301246029-60368341-1187-4593-802d-a6c91d77f27e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzM4MTcsIm5iZiI6MTcyNDI3MzUxNywicGF0aCI6Ii8zMzU2Njk5LzMwMTI0NjAyOS02MDM2ODM0MS0xMTg3LTQ1OTMtODAyZC1hNmM5MWQ3N2YyN2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjFUMjA1MTU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWI4Yzk0ZTU2MTQxOGQyMTI4YWNlN2VmMjZiNWNhYWE2OWUxNDMxZjg0YjJiNzBhZTQwMDk0OWEwN2JhN2RkNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.cWVbWEfILKOXN0C0Jzk8ZaI1JtcxUpwaCJ71ZIbrfNw)
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.