Skip to content

Upgrade: 0.1.0-beta.26

Quickly update to the latest version by running the following command
Terminal window
npx @studiocms/upgrade
  • 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.
    • Renames:
      • wysiwygCsrfTokeneditorCSRFToken (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;
  • Update to @studiocms/ui 1.0 beta.
  • 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.