# @wordpress/undo-manager

> A small package to manage undo/redo.

Latest version **1.55.0** (published 2026-09-10) · GPL-2.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @wordpress/undo-manager
pnpm add @wordpress/undo-manager
yarn add @wordpress/undo-manager
bun add @wordpress/undo-manager
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.55.0 |
| Published | 2026-09-10 |
| First published | 2023-09-20 |
| Weekly downloads | 0 |
| License | GPL-2.0-or-later |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12.0 |
| Dependencies | 1 |
| Unpacked size | 80.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11753 |
| Author | The WordPress Contributors |
| Maintainers | garypendergast, adamsilverstein, gziolo, ntwb, riad, noisysocks, kadamwhite, gutenbergplugin, jorgefilipecosta, ellatrix, iandunn206, whyisjake, ockham, sirreal, nosolosw, wpisabel, ntsekouras, nerrad, desrosj, talldanwp, peterwilsoncc, ryanwelcher, mamaduka, aduth, johnbillion |
| Keywords | wordpress, gutenberg, undo, history |

## Links

- npm: https://www.npmjs.com/package/@wordpress/undo-manager
- Repository: https://github.com/WordPress/gutenberg
- Homepage: https://github.com/WordPress/gutenberg/tree/HEAD/packages/undo-manager/README.md
- Issues: https://github.com/WordPress/gutenberg/issues
- npm.io page: https://npm.io/package/@wordpress/undo-manager

## Dependencies (1)

- [@wordpress/is-shallow-equal](https://npm.io/package/@wordpress/is-shallow-equal.md) ^5.55.0

## Recent versions

- 1.55.0 (latest) — 2026-09-10
- 1.54.1-next.v.202609031004.0 (next) — 2026-09-03
- 1.40.1 (wp-7.0) — 2026-06-30
- 1.33.1 (wp-6.9) — 2025-10-28
- 1.19.1 (wp-6.8) — 2025-03-10
- 1.8.1 (wp-6.7) — 2024-09-19
- 1.0.1 (wp-6.6) — 2024-06-11
- 0.11.1 (wp-6.5) — 2024-02-20
- 0.2.13 (wp-6.4) — 2023-11-13
- 1.54.1-next.v.202608281122.0 — 2026-08-28
- 1.54.0 — 2026-08-26
- 1.53.0 — 2026-08-12
- 1.52.0 — 2026-07-29
- 1.51.0 — 2026-07-14
- 1.50.1-next.v.202607070741.0 — 2026-07-07
- … 132 more at https://npm.io/package/@wordpress/undo-manager/versions

## README

# Undo Manager

A simple undo manager.

## Installation

Install the module

```bash
npm install @wordpress/undo-manager --save
```

## API

<!-- START TOKEN(Autogenerated API docs) -->

### createUndoManager

Creates an undo manager.

_Returns_

-   `UndoManager< T >`: Undo manager.

<!-- END TOKEN(Autogenerated API docs) -->

## Contributing to this package

This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects.

To find out more about contributing to this package or Gutenberg as a whole, please read the project's main [contributor guide](https://github.com/WordPress/gutenberg/tree/HEAD/CONTRIBUTING.md).

<br /><br /><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>

---
_Source: https://npm.io/package/@wordpress/undo-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
