Upgrade: 0.1.0-beta.26
Quickly update to the latest version by running the following command Terminal window Terminal window Terminal window
npx @studiocms/upgrade
pnpx @studiocms/upgrade
yarn dlx @studiocms/upgrade
Breaking Changes
Section titled “Breaking Changes”- Updated Astro DB Table schema (Users will be required to run
astro db push --remote
to 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
,routeMap
userSessionData
,emailVerificationEnabled
,userPermissionLevel
wysiwygCsrfToken
(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/ui
1.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.