Upgrading to Astlide 3
Upgrade an Astro project
Section titled “Upgrade an Astro project”-
Swap the package.
@astlide/astroinstalls@astlide/coreand theastlidecommand with it:Terminal window bun remove @astlide/corebun add @astlide/astro -
Import the integration from
@astlide/astro:astro.config.mjs import astlide from "@astlide/astro"; // was "@astlide/core" -
Import the loader and schema from
@astlide/astroas well:src/content.config.ts import { astlideDeckLoader, slideSchema } from "@astlide/astro"; // was "@astlide/core" -
If you import Astlide’s components or other entry points directly, change the paths in this table:
Astlide 2 Astlide 3 @astlide/core(the integration,astlideDeckLoader)@astlide/astro@astlide/core/loader@astlide/astro/loader@astlide/core/components/*.astro@astlide/astro/components/*.astro@astlide/core/internal/diagrams@astlide/core/runtime/diagrams@astlide/core/internal/recording@astlide/core/runtime/media@astlide/core/internal/pdf-export@astlide/core/runtime/pdf-exportImports ending in .ts(@astlide/core/utils/network.ts)The same path without .tsYou can no longer import the other
@astlide/core/internal/*modules, orutils/csp,utils/favicon,utils/pptx-templatesandutils/slide-mark. These were undocumented internal modules. If you use one, tell us what for in an issue.
These stay where they were: @astlide/core/schema, /plugin, /context, /embed, /pptx, /templates, /mcp, /styles/*, and the documented helpers utils/base-path, utils/code-highlight and utils/mermaid. @astlide/core itself still exports the schemas, defineAstlidePlugin and getDeckContext / getClientDeckContext.
Plugins
Section titled “Plugins”Plugins keep importing defineAstlidePlugin from @astlide/core/plugin. Change a plugin’s peer dependency to @astlide/core 3, or to @astlide/astro 3 if its layouts are .astro components.