Aktualizacja react-highlight-words z 0.x do 1.x
Porównanie publicznego API react-highlight-words 0.21.1 i 1.0.0, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 1 |
| Zmienione sygnatury | 4 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 0 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 1 |
| Nowe eksporty | 1 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
react-highlight-words | default | function | ({ activeClassName, activeIndex, activeStyle, autoEscape, caseSensitive, className, findChunks, highlightClassName, highlightStyle, highlightTag, sanitize, searchWords, textToHighlight, unhighlightClassName, unhighlightStyle, unhighlightTag, ...rest }: HighlighterProps): ReactElement |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
react-highlight-words · Chunk | { end: number; start: number; } | FoundChunk |
react-highlight-words · HighlighterProps | Omit<HTMLAttributes<HTMLSpanElement>, "children"> & { activeClassName?: string | undefined; activeIndex?: number | undefined; activeStyle?: any; autoEscape?: boolean | undefined; caseSensitive?: boolean | undefined; className?: string | undefined; findChunks?: ((options: FindChunksOptions) => Chunk[]) | undefined; highlightClassName?: string | Record<string, string> | undefined; highlightStyle?: any; highlightTag?: any; sanitize?: ((text: string) => string) | undefined; searchWords: (string | RegExp)[]; textToHighlight: string; unhighlightClassName?: string | undefined; unhighlightStyle?: any;… | Omit<HTMLAttributes<HTMLSpanElement>, "children"> & { activeClassName?: string | undefined; activeIndex?: number | undefined; activeStyle?: any; autoEscape?: boolean | undefined; caseSensitive?: boolean | undefined; className?: string | undefined; findChunks?: ((options: FindChunksOptions) => FoundChunk[]) | undefined; highlightClassName?: string | Record<string, string> | undefined; highlightStyle?: any; highlightTag?: any; sanitize?: ((text: string) => string) | undefined; searchWords: readonly (string | RegExp)[]; textToHighlight: string; unhighlightClassName?: string | undefined; unhighlig… |
react-highlight-words · FindChunksOptions | { autoEscape?: boolean | undefined; caseSensitive?: boolean | undefined; sanitize?: ((text: string) => string) | undefined; searchWords: (string | RegExp)[]; textToHighlight: string; } | FindChunksOptions |
react-highlight-words · HighlightTagProps | { children: string; className: string; highlightIndex: number; style: CSSProperties; } | { children: string; className: string; highlightIndex: number; searchIndex: number; style: CSSProperties; } |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
Nie wykryto.
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
peerDependencies.react | ^0.14.0 || ^15.0.0 || ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 | ^16.3.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 |
Nowe eksporty (1)
| import | export | kind |
|---|---|---|
react-highlight-words | FoundChunk | type |
Przekaż te dane swojemu agentowi AI
Vigia to darmowy serwer MCP: Twój agent programistyczny sprawdza wersje, zmiany łamiące zgodność i podatności, zanim napisze kod. Bez rejestracji i klucza API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Dodaj do CursorDodaj do VS Code★ Gwiazdka na GitHubie
Dowolny inny klient MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill dla agentów (SKILL.md): mówi agentowi, kiedy używać Vigii · GitHub Action dla pull requestów
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji react-highlight-words z 0 do 1?
Między react-highlight-words 0.21.1 a 1.0.0 Vigia znalazła 1 usuniętych eksportów, 4 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w react-highlight-words 1?
0 eksportów lub składowych oznaczono w react-highlight-words 1.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/react-highlight-words/upgrade?from=0.21.1&to=1.0.0