Aktualizacja @blazediff/core z 1.x do 2.x
Porównanie publicznego API @blazediff/core 1.10.0 i 2.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 | 8 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 1 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 0 |
| Nowe eksporty | 14 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
@blazediff/core | CoreOptions | interface | interface |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@blazediff/core · diff | (image1: any, image2: any, output: any, width: number, height: number, { threshold, alpha, aaColor, diffColor, includeAA, diffColorAlt, diffMask, fastBufferCheck, }?: CoreOptions | undefined): number | (a: Image, b: Image, options?: DiffOptions | undefined): DiffResult |
@blazediff/core · default | (image1: any, image2: any, output: any, width: number, height: number, { threshold, alpha, aaColor, diffColor, includeAA, diffColorAlt, diffMask, fastBufferCheck, }?: CoreOptions | undefined): number | (a: Image, b: Image, options?: DiffOptions | undefined): DiffResult |
@blazediff/core · drawPixel | (output: any, position: number, r: number, g: number, b: number): void | (output: PixelData, position: number, r: number, g: number, b: number): void |
@blazediff/core · colorDelta | (image1: any, image2: any, k: number, m: number): number | (image1: PixelData, image2: PixelData, k: number, m: number): number |
@blazediff/core · antialiased | (image: any, x1: number, y1: number, width: number, height: number, a32: Uint32Array<ArrayBufferLike>, b32: Uint32Array<ArrayBufferLike>): boolean | (image: PixelData, x1: number, y1: number, width: number, height: number, a32: Uint32Array<ArrayBufferLike>, b32: Uint32Array<ArrayBufferLike>, overWhite?: boolean | undefined): boolean |
@blazediff/core · isValidImage | (arr: unknown): arr is any | (arr: unknown): arr is PixelData |
@blazediff/core · drawGrayPixel | (image: any, index: number, alpha: number, output: any): void | (image: PixelData, index: number, alpha: number, output: PixelData): void |
@blazediff/core · brightnessDelta | (image1: any, image2: any, k: number, m: number): number | (image1: PixelData, image2: PixelData, k: number, m: number): number |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
Image.data | any | PixelData |
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
Nie wykryto.
Nowe eksporty (14)
| import | export | kind |
|---|---|---|
@blazediff/core | Rgb | type |
@blazediff/core | Size | interface |
@blazediff/core | Metric | type |
@blazediff/core | PixelData | type |
@blazediff/core | WindowHit | interface |
@blazediff/core | DiffResult | type |
@blazediff/core | windowSide | function |
@blazediff/core | DiffOptions | interface |
@blazediff/core | assertImage | function |
@blazediff/core | RenderOptions | interface |
@blazediff/core | assertOptions | function |
@blazediff/core | assertTargets | function |
@blazediff/core | BlazeDiffError | class |
@blazediff/core | BlazeDiffErrorCode | 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 @blazediff/core z 1 do 2?
Między @blazediff/core 1.10.0 a 2.0.0 Vigia znalazła 1 usuniętych eksportów, 8 zmienionych sygnatur i 1 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w @blazediff/core 2?
0 eksportów lub składowych oznaczono w @blazediff/core 2.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/@blazediff/core/upgrade?from=1.10.0&to=2.0.0