Upgrading highlight-words-core from 1.x to 2.x
Comparison of the public API of highlight-words-core 1.2.3 and 2.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 2 |
| Changed signatures | 2 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 0 |
| New exports | 7 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
highlight-words-core | FindAllArgs | interface | interface |
highlight-words-core | FindChunksArgs | interface | interface |
Changed signatures
| export | Before | After |
|---|---|---|
highlight-words-core · Chunk | interface | HighlightedChunk | NonHighlightedChunk |
highlight-words-core · findAll | (args: FindAllArgs): Chunk[] | ({ autoEscape, caseSensitive, findChunks, sanitize, searchWords, textToHighlight }: FindChunksOptions & { findChunks?: ((options: Required<FindChunksOptions>) => FoundChunk[]) | undefined; }): Chunk[] |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
None detected.
New exports (7)
| import | export | kind |
|---|---|---|
highlight-words-core | FoundChunk | type |
highlight-words-core | findChunks | function |
highlight-words-core | fillInChunks | function |
highlight-words-core | combineChunks | variable |
highlight-words-core | HighlightedChunk | type |
highlight-words-core | FindChunksOptions | type |
highlight-words-core | NonHighlightedChunk | type |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading highlight-words-core from 1 to 2?
Between highlight-words-core 1.2.3 and 2.0.0, Vigia found 2 removed exports, 2 changed signatures and 0 removed or changed class or interface members.
What became deprecated in highlight-words-core 2?
0 exports or members are newly marked as deprecated in highlight-words-core 2.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/highlight-words-core/upgrade?from=1.2.3&to=2.0.0