Passer de react-highlight-words 0.x à 1.x
Comparaison de l’API publique de react-highlight-words 0.21.1 et 1.0.0, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 0 |
|---|---|
| Exports supprimés | 1 |
| Signatures modifiées | 4 |
| Membres de classes ou d’interfaces supprimés | 0 |
| Membres de classes ou d’interfaces modifiés | 0 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 1 |
| Nouveaux exports | 1 |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
react-highlight-words | default | function | ({ activeClassName, activeIndex, activeStyle, autoEscape, caseSensitive, className, findChunks, highlightClassName, highlightStyle, highlightTag, sanitize, searchWords, textToHighlight, unhighlightClassName, unhighlightStyle, unhighlightTag, ...rest }: HighlighterProps): ReactElement |
Signatures modifiées
| export | Avant | Après |
|---|---|---|
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; } |
Membres de classes ou d’interfaces supprimés
Aucun détecté.
Membres de classes ou d’interfaces modifiés
Aucun détecté.
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Après | |
|---|---|---|
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 |
Nouveaux exports (1)
| import | export | kind |
|---|---|---|
react-highlight-words | FoundChunk | type |
Donnez ces données à votre agent IA
Vigia est un serveur MCP gratuit : votre agent de code vérifie les versions, les changements incompatibles et les vulnérabilités avant d'écrire du code. Sans inscription ni clé d'API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Ajouter à CursorAjouter à VS Code★ Étoile sur GitHub
Tout autre client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill pour agents (SKILL.md) : indique à l'agent quand utiliser Vigia · GitHub Action pour les pull requests
Questions fréquentes
Quels sont les changements incompatibles en passant de react-highlight-words 0 à 1 ?
Entre react-highlight-words 0.21.1 et 1.0.0, Vigia a trouvé 1 exports supprimés, 4 signatures modifiées et 0 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans react-highlight-words 1 ?
0 exports ou membres sont désormais marqués comme dépréciés dans react-highlight-words 1.0.0.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/react-highlight-words/upgrade?from=0.21.1&to=1.0.0