react-highlight-words breaking changes
react-highlight-words 1.0.0 (October 11, 2026) is its newest release with breaking changes, 18 of them. The first: Drops support for React 0.14, 15 and 16.0 to 16.2 in react-highlight-words 1.0.0. Every breaking API change we have recorded in react-highlight-words on npm: 18 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.0.0, released October 11, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
react-highlight-words 1.0.0 breaking changes
- Removed
React 16.3 or newer is now required for forwardRef. Upgrade React before using this version. github.com - Removed
Chunk.end
Chunk.end was removed in react-highlight-words 1.0.0 npmjs.com - Removed
Chunk.start
Chunk.start was removed in react-highlight-words 1.0.0 npmjs.com - Removed
FindChunksOptions.autoEscape
FindChunksOptions.autoEscape was removed in react-highlight-words 1.0.0 npmjs.com - Removed
FindChunksOptions.caseSensitive
FindChunksOptions.caseSensitive was removed in react-highlight-words 1.0.0 npmjs.com - Removed
FindChunksOptions.sanitize
FindChunksOptions.sanitize was removed in react-highlight-words 1.0.0 npmjs.com - Removed
FindChunksOptions.searchWords
FindChunksOptions.searchWords was removed in react-highlight-words 1.0.0 npmjs.com - Removed
FindChunksOptions.textToHighlight
FindChunksOptions.textToHighlight was removed in react-highlight-words 1.0.0 npmjs.com - Removed
react-highlight-words.dist.react-highlight-words.js
The package now defines exports, so only the package root can be imported. Import from react-highlight-words instead. github.com - Behavior changed
autoEscape
With autoEscape false, string search words that are not valid regular expressions are now matched literally instead of throwing. github.com - Behavior changed
sanitize
When sanitize changes the text, it is applied per character. Context-dependent sanitizers will give different results. github.com - Default changed
autoEscape
autoEscape now defaults to true, so characters like ( . and $ match themselves. Pass RegExp search words to match patterns, or set autoEscape={false} for trusted input only. github.com - Signature changed
Chunk
Was type Chunk = {end: number; start: number;}; now type Chunk = FoundChunk. npmjs.com - Signature changed
default
Was function Highlighter({activeClassName, activeIndex, activeStyle, autoEscape, caseSensitive, className, findChunks, highlightClassName, highlightStyle, highlightTag, sanitize, searchWords, textToHighlight, unhighlightClassName... npmjs.com - Signature changed
HighlighterProps
Was type HighlighterProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {activeClassName?: string | undefined; activeIndex?: number | undefined; activeStyle?: CSSProperties | undefined; autoEscape?: boolean | undefined... npmjs.com - Signature changed
HighlighterProps.findChunks
Each returned chunk must include searchIndex, and searchWords is now a ReadonlyArray. Update custom findChunks functions and their TypeScript parameter types. npmjs.com - Signature changed
HighlighterProps.searchWords
Was searchWords: Array<string | RegExp>; now searchWords: ReadonlyArray<string | RegExp>. npmjs.com - Signature changed
HighlightTagProps
Was type HighlightTagProps = {children: string; className: string; highlightIndex: number; style: CSSProperties;}; now type HighlightTagProps = {children: string; className: string; highlightIndex: number; searchIndex: number; style... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.