Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@lexical/history

Latest version: v0.53.1-nightly.20261124.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: acywatson, etrepum, fantactuka, ipavlov001, trueadm, zurfyx
24,040 Stars
2,308 Forks
69 Versions
36.3M Downloads
TypeScript Repo language

Scan summary

@lexical/history was last scanned on 24 Nov 2026 at version 0.53.1-nightly.20261124.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 69 versions; the latest 4 were published within 7 days (18–24 Nov 2026).
  • Findings: No rules fired in version 0.53.1-nightly.20261124.0.
  • Downloads: 36,348,379 downloads.

Versions

69 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.53.1-nightly.20261124.0 LATEST 24 Nov 2026 No rules fired
0.53.1-nightly.20261123.0 23 Nov 2026 No rules fired
0.53.1-nightly.20261120.0 20 Nov 2026 No rules fired
0.53.1-nightly.20261118.0 18 Nov 2026 Not shown
0.53.1-nightly.20261117.0 17 Nov 2026 Not shown

No rules fired in 0.53.1-nightly.20261124.0

Findings

Findings for v0.53.1-nightly.20261124.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.53.1-nightly.20261124.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@lexical/history

This package contains history helpers for Lexical.

Methods
registerHistory

Registers necessary listeners to manage undo/redo history stack and related editor commands. It returns unregister callback that cleans up all listeners and should be called on editor unmount.

function registerHistory(
  editor: LexicalEditor,
  externalHistoryState: HistoryState,
  delay: number,
): () => void
Commands

History package handles UNDO_COMMAND, REDO_COMMAND and CLEAR_HISTORY_COMMAND commands. These commands could be used to work with history state:

import {UNDO_COMMAND, REDO_COMMAND} from 'lexical';

<Toolbar>
  <Button onClick={() => editor.dispatchCommand(UNDO_COMMAND, undefined)}>Undo</Button>
  <Button onClick={() => editor.dispatchCommand(REDO_COMMAND, undefined)}>Redo</Button>
</Toolbar>;
Undo/redo availability

CAN_UNDO_COMMAND and CAN_REDO_COMMAND are deprecated. A command only reports a change, so a listener registered after the editor is initialized never sees the current value, and there is no way to read it.

Use the canUndo and canRedo signals from HistoryExtension instead. They are derived from the history stacks and always hold the current value:

In React, use the useExtensionSignalValue hook:

import {HistoryExtension} from '@lexical/history';
import {useExtensionSignalValue} from '@lexical/react/useExtensionSignalValue';

function UndoButton() {
  const canUndo = useExtensionSignalValue(HistoryExtension, 'canUndo');
  return <Button disabled={!canUndo}>Undo</Button>;
}

Outside React, read the signal directly:

import {getExtensionDependencyFromEditor} from '@lexical/extension';
import {HistoryExtension} from '@lexical/history';

const {output} = getExtensionDependencyFromEditor(editor, HistoryExtension);
output.canUndo.peek();

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @lexical/history

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229