Shogun Frontend Release 2022-12-07
7 months ago by Luba Gurevich
Hello everyone! We have some great updates for you - check out what's included in our latest release!
🚀 What's New
### New shogun CLI(beta) version (1.3.3)
- Added support for defining section
schema
TypeScript or JavaScript files - https://docs.getshogun.com/shogun-frontend-guides/docs/local-development-environment-beta#work-with-section-variables - Added the
shogun:version
command to check the current version of theshogun
package - Added ability to pull a single page in shogun CLI - https://docs.getshogun.com/shogun-frontend-guides/docs/local-development-environment-beta#create-a-new-section
- Augmented
create-section
command to emit emptyschema.json
- Prettified logs
- Set local
shogun
dependencies which will be used by default, rather than global
📈 Improvements
- Speed-up slow
ContentGroupEntries
GQL calls - Bumped Shopify API version on the backend for legacy and PDS importers from
2022-01
to2022-04
- Performance and bug fixes for data syncing
- Set robots.txt for all development, sandbox and staging stores to User-agent: * Disallow: / in order to tell search engine crawlers not to crawl the site
🛠️ Fixes
- Do not return current site publications as purged even if they are older than 7 days
- Improved sync logic between
src
and.shogun
folders to work for sites withregular
CSS - Fixed 500 error when fetching page data
- Fixed incorrect environment variables being used
- Fixed the
create-section
command to produce the correct CSS import statement - Fixed error when using the
useStore
hook - Fixed a bug where the
shogun
tool didn’t exit running command - Update system requirements so Node and NPM versions align
To use the new shogun
CLI version use npx [email protected] <command>
and see updated docs https://docs.getshogun.com/shogun-frontend-guides/docs/local-development-environment-beta