Upgrade: 0.1.0-beta.26
Esta página aún no está disponible en tu idioma.
 Rápidamente actualiza a la última versión ejecutando el siguiente comando    Ventana de terminal    Ventana de terminal    Ventana de terminal         
   npx @studiocms/upgradepnpx @studiocms/upgradeyarn dlx @studiocms/upgradeBreaking Changes
Section titled “Breaking Changes”- Updated Astro DB Table schema (Users will be required to run 
astro db push --remoteto update their table schema)- Implements new DB table for dynamic config storage in unified table.
 - Updated AstroDB table config to utilize enums for permissions.
 
 - Remove deprecated locals from middleware in favor of a joined StudioCMS locals object.
- Removed top-level Astro.Locals keys:
SCMSGenerator,SCMSUiGenerator,latestVersion,siteConfig,defaultLang,routeMapuserSessionData,emailVerificationEnabled,userPermissionLevelwysiwygCsrfToken(renamed)
 - New location:
- Access these under 
Astro.locals.StudioCMS. 
 - Access these under 
 - Renames:
wysiwygCsrfToken→editorCSRFToken(under StudioCMS)
 - Migration examples:
- 
Before:
const { siteConfig, defaultLang } = Astro.locals; - 
After:
const { siteConfig, defaultLang } = Astro.locals.StudioCMS; - 
Before:
const token = Astro.locals.wysiwygCsrfToken; - 
After:
const token = Astro.locals.StudioCMS.editorCSRFToken; 
 - 
 
 - Removed top-level Astro.Locals keys:
 
Features
Section titled “Features”- Update to 
@studiocms/ui1.0 beta. 
Bug fixes
Section titled “Bug fixes”- Adjust SDK page lookup to return undefined when a page is not found, eliminating noisy Astro errors in development.
 - Fix form data conversion on first time setup.