---
title: "@excalidraw/excalidraw 0.18.0 Breaking Changes on npm"
description: "What each @excalidraw/excalidraw release removed, renamed or changed: 42 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@excalidraw/excalidraw
last_updated: 2026-12-04
---

# @excalidraw/excalidraw breaking changes

@excalidraw/excalidraw 0.18.0 (March 10, 2025) is its newest release with breaking changes, 28 of them. The first: Removed ExcalidrawEmbeddableElement.validated. Every breaking API change we have recorded in @excalidraw/excalidraw on npm: 42 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.18.1`, released April 20, 2026. [Source repository](https://github.com/excalidraw/excalidraw)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.17.0](#v-0-17-0) to [0.18.0](#v-0-18-0): 29 breaking changes in 2 versions.

## @excalidraw/excalidraw 0.18.0 breaking changes

@excalidraw/excalidraw 0.18.0, released March 10, 2025: 28 breaking changes.

- **Removed** `ExcalidrawEmbeddableElement.validated`  

The attribute moved to private editor state; code reading it must stop, while props.validateEmbeddable still applies. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Removed** `ExcalidrawTextElement.baseline`  

Vertical text offset is now computed from font metrics; custom fonts need FONT_METRICS extended with related properties. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed**  

The package is built for react@19, so apps on older React versions may need to upgrade. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed**  

The dist folder now contains ESM bundles, so environments must support ES modules; you may need to set "type": "module" in package.json or use a script type="module". [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed**  

Bundlers expecting fully specified import paths need resolve.fullySpecified set to false; Create React App no longer works without ejecting or a workaround. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed**  

Fonts now load from esm.run by default; self-hosting requires copying dist/prod/fonts and setting window.EXCALIDRAW_ASSET_PATH. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed** `LibraryPersistenceAdapter.load`  

The load() source option was changed to priority. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed** `renderCustomStats`  

Custom renderCustomStats output may need style adjustments to keep the same layout. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Behavior changed** `useHandleLibrary`  

Use opts.adapter instead of opts.getInitialLibraryItems for library initialization. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Configuration changed**  

Using "node" or "node10" moduleResolution in tsconfig.json no longer works because they ignore package.json exports; use "bundler", "node16" or "nodenext" instead. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Signature changed** `Button`  

Was const Button: ({type, onSelect, selected, children, className, ...rest}: ButtonProps) => JSX.Element; now const Button: ({type, onSelect, selected, children, className, ...rest}: ButtonProps) => import("react/jsx-runtime").JSX.Element. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `convertToExcalidrawElements`  

Was const convertToExcalidrawElements: (elementsSkeleton: ExcalidrawElementSkeleton\[\] | null, opts?: {regenerateIds: boolean;}) => ExcalidrawElement\[\]; now const convertToExcalidrawElements: (elementsSkeleton: ExcalidrawElementSkeleton\[\] |... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `DefaultSidebar`  

Was const DefaultSidebar: import("react").FC\<Omit\<MarkOptional\<Omit<{name: string; children: import("react").ReactNode; onStateChange?: ((state: {name: string; tab?: string | undefined;} | null) => void) | undefined; onDock?: ((docked... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `DefaultSidebar.Triggers`  

DefaultSidebar.Triggers accepts only children now; other props must be removed. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.18.0)
- **Signature changed** `Excalidraw`  

Was const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => JSX.Element>; now const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => import("react/jsx-runtime").JSX.Element>. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `FONT_FAMILY`  

Was const FONT_FAMILY: {Virgil: number; Helvetica: number; Cascadia: number; Assistant: number;}; now const FONT_FAMILY: {Virgil: number; Helvetica: number; Cascadia: number; Excalifont: number; Nunito: number; "Lilita One": number; "Comic... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `Footer`  

Was const FooterCenter: {({children}: {children?: React.ReactNode;}): JSX.Element; displayName: string;}; now const FooterCenter: {({children}: {children?: React.ReactNode;}): import("react/jsx-runtime").JSX.Element; displayName: string;}. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `getCommonBounds`  

Was const getCommonBounds: (elements: readonly ExcalidrawElement\[\]) => Bounds; now const getCommonBounds: (elements: readonly ExcalidrawElement\[\], elementsMap?: ElementsMap) => Bounds. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `getNonDeletedElements`  

Was const getNonDeletedElements: (elements: readonly ExcalidrawElement\[\]) => readonly NonDeletedExcalidrawElement\[\]; now const getNonDeletedElements: \<T extends ExcalidrawElement>(elements: readonly T\[\]) => readonly NonDeleted\<T>\[\]. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `LiveCollaborationTrigger`  

Was const LiveCollaborationTrigger: {({isCollaborating, onSelect, ...rest}: {isCollaborating: boolean; onSelect: () => void;} & import("react").ButtonHTMLAttributes\<HTMLButtonElement>): JSX.Element; displayName: string;}; now const... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `MainMenu`  

Was const MainMenu: React.FC<{children?: React.ReactNode; onSelect?: ((event: Event) => void) | undefined;} & {\_\_fallback?: boolean | undefined;}> & {Trigger: {({className, children, onToggle, title, ...rest}: {className?: string |... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `MIME_TYPES`  

Was const MIME_TYPES: {readonly svg: "image/svg+xml"; readonly png: "image/png"; readonly jpg: "image/jpeg"; readonly gif: "image/gif"; readonly webp: "image/webp"; readonly bmp: "image/bmp"; readonly ico: "image/x-icon"; readonly avif... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `mutateElement`  

Was const mutateElement: \<TElement extends Mutable\<ExcalidrawElement>>(element: TElement, updates: ElementUpdate\<TElement>, informMutation?: boolean) => TElement; now const mutateElement: \<TElement extends... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `newElementWith`  

Was const newElementWith: \<TElement extends ExcalidrawElement>(element: TElement, updates: ElementUpdate\<TElement>) => TElement; now const newElementWith: \<TElement extends ExcalidrawElement>(element: TElement, updates... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `restoreElements`  

Was const restoreElements: (elements: ImportedDataState\["elements"\], localElements: readonly ExcalidrawElement\[\] | null | undefined, opts?: {refreshDimensions?: boolean; repairBindings?: boolean;} | undefined) => ExcalidrawElement\[\]; now... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `Sidebar`  

Was const Sidebar: React.ForwardRefExoticComponent<{name: string; children: React.ReactNode; onStateChange?: ((state: {name: string; tab?: string | undefined;} | null) => void) | undefined; onDock?: ((docked: boolean) => void) | undefined... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `useHandleLibrary`  

Was const useHandleLibrary: ({excalidrawAPI, getInitialLibraryItems}: {excalidrawAPI: ExcalidrawImperativeAPI | null; getInitialLibraryItems?: (() => LibraryItemsSource) | undefined;}) => void; now const useHandleLibrary: (opts... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)
- **Signature changed** `WelcomeScreen`  

Was const WelcomeScreen: {(props: {children?: React.ReactNode;}): JSX.Element; displayName: string; Center: {({children}: {children?: import("react").ReactNode;}): JSX.Element; displayName: string; Logo: {({children}: {children?... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.18.0)

## @excalidraw/excalidraw 0.17.3 breaking changes

@excalidraw/excalidraw 0.17.3, released February 9, 2024: 1 breaking change.

- **Configuration changed** `process.env.IS_PREACT`  

When building with Vite, process.env.IS_PREACT must be defined as the string "true" rather than a boolean. Vite configs that set it differently need to be updated. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.3)

## @excalidraw/excalidraw 0.17.0 breaking changes

@excalidraw/excalidraw 0.17.0, released November 14, 2023: 13 breaking changes.

- **Removed** `ready`  

The ready API was discontinued as superfluous; stop calling it. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.0)
- **Removed** `readyPromise`  

The readyPromise API was discontinued as superfluous; stop using it. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.0)
- **Removed** `Ref`  

Refs are no longer supported; use the excalidrawAPI prop instead. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.0)
- **Behavior changed** `useDevice`  

The return value now differentiates between editor and viewport breakpoints; update code that reads it. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.0)
- **Configuration changed** `process.env.IS_PREACT`  

Hosts that use Preact must set process.env.IS_PREACT to true and expose it in their build config. [github.com](https://github.com/excalidraw/excalidraw/releases/tag/v0.17.0)
- **Signature changed** `bumpVersion`  

Was const bumpVersion: (element: Mutable\<ExcalidrawElement>, version?: ExcalidrawElement\["version"\]) => Mutable\<ExcalidrawElement>; now const bumpVersion: \<T extends Mutable\<ExcalidrawElement>>(element: T, version?... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.17.0)
- **Signature changed** `convertToExcalidrawElements`  

Was const convertToExcalidrawElements: (elements: ExcalidrawElementSkeleton\[\] | null) => ExcalidrawElement\[\]; now const convertToExcalidrawElements: (elementsSkeleton: ExcalidrawElementSkeleton\[\] | null, opts?: {regenerateIds: boolean;})... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.17.0)
- **Signature changed** `Excalidraw`  

Was const Excalidraw: React.MemoExoticComponent\<React.ForwardRefExoticComponent\<PublicExcalidrawProps & React.RefAttributes\<ExcalidrawAPIRefValue>>>; now const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => JSX.Element>. [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.17.0)
- **Signature changed** `exportToCanvas`  

Was const exportToCanvas: ({elements, appState, files, maxWidthOrHeight, getDimensions, exportPadding}: ExportOpts & {exportPadding?: number | undefined;}) => Promise\<HTMLCanvasElement>; now const exportToCanvas: ({elements, appState... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.17.0)
- **Signature changed** `exportToSvg`  

Was const exportToSvg: ({elements, appState, files, exportPadding, renderEmbeddables}: Omit\<ExportOpts, "getDimensions"> & {exportPadding?: number | undefined; renderEmbeddables?: boolean | undefined;}) => Promise\<SVGSVGElement>; now const... [npmjs.com](https://www.npmjs.com/package/@excalidraw/excalidraw/v/0.17.0)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [@excalidraw/mermaid-to-excalidraw](https://since.dev/packages/npm/@excalidraw/mermaid-to-excalidraw.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
