Aktualizacja @chenglou/pretext z 0.x do 1.x
Porównanie publicznego API @chenglou/pretext 0.0.9 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 | 0 |
| Zmienione sygnatury | 10 |
| 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) | 0 |
| Nowe eksporty | 2 |
Usunięte eksporty
Nie wykryto.
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@chenglou/pretext · layoutNextLine | (prepared: PreparedTextWithSegments, start: LayoutCursor, maxWidth: number): LayoutLine | null | (prepared: PreparedTextWithSegments, maxWidth: number, start?: LayoutCursor | undefined): LayoutLine | null |
@chenglou/pretext · walkLineRanges | (prepared: PreparedTextWithSegments, maxWidth: number, onLine: (line: LayoutLineRange) => void): number | (prepared: PreparedText, maxWidth: number, onLine: (line: LayoutLineRange) => void): number |
@chenglou/pretext · measureLineStats | (prepared: PreparedTextWithSegments, maxWidth: number): LineStats | (prepared: PreparedText, maxWidth: number): LineStats |
@chenglou/pretext · layoutNextLineRange | (prepared: PreparedTextWithSegments, start: LayoutCursor, maxWidth: number): LayoutLineRange | null | (prepared: PreparedText, maxWidth: number, start?: LayoutCursor | undefined): LayoutLineRange | null |
@chenglou/pretext · measureNaturalWidth | (prepared: PreparedTextWithSegments): number | (prepared: PreparedText): number |
@chenglou/pretext · PreparedTextWithSegments | PreparedText & PreparedCore & { segments: string[]; } | PreparedText & { readonly segments: readonly string[]; readonly kinds: readonly SegmentBreakKind[]; readonly widths: ArrayLike<number>; } |
@chenglou/pretext/rich-inline · RichInlineItem | { text: string; font: string; letterSpacing?: number | undefined; break?: "normal" | "never" | undefined; extraWidth?: number | undefined; } | { text: string; font: string; letterSpacing?: number | undefined; break?: "normal" | "never" | undefined; extraWidth?: number | undefined; width?: undefined; } |
@chenglou/pretext/rich-inline · prepareRichInline | (items: RichInlineItem[]): PreparedRichInline | (items: (RichInlineItem | RichInlineBox)[], options?: RichInlineOptions | undefined): PreparedRichInline |
@chenglou/pretext/rich-inline · RichInlineFragment | { itemIndex: number; text: string; gapBefore: number; occupiedWidth: number; start: LayoutCursor; end: LayoutCursor; } | { itemIndex: number; text: string; gapBefore: number; gapItemIndex: number; occupiedWidth: number; sourceStart: number; sourceEnd: number; } |
@chenglou/pretext/rich-inline · RichInlineFragmentRange | { itemIndex: number; gapBefore: number; occupiedWidth: number; start: LayoutCursor; end: LayoutCursor; } | { itemIndex: number; gapBefore: number; gapItemIndex: number; occupiedWidth: number; start: LayoutCursor; end: LayoutCursor; } |
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)
Nie wykryto.
Nowe eksporty (2)
| import | export | kind |
|---|---|---|
@chenglou/pretext/rich-inline | RichInlineBox | type |
@chenglou/pretext/rich-inline | RichInlineOptions | type |
Changelog między tymi wersjami
Tekst opublikowany przez autorów pakietu, pokazany bez zmian.
1.0.0
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 @chenglou/pretext z 0 do 1?
Między @chenglou/pretext 0.0.9 a 1.0.0 Vigia znalazła 0 usuniętych eksportów, 10 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w @chenglou/pretext 1?
0 eksportów lub składowych oznaczono w @chenglou/pretext 1.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/@chenglou/pretext/upgrade?from=0.0.9&to=1.0.0