Vigia

Aktualizacja path-to-regexp z 7.x do 8.x

Porównanie publicznego API path-to-regexp 7.2.0 i 8.4.2, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu0
Usunięte eksporty0
Zmienione sygnatury5
Usunięte składowe klas lub interfejsów16
Zmienione składowe klas lub interfejsów1
Nowo wycofane0
Zmiany wymagań (engines, zależności peer)1
Nowe eksporty7

Usunięte eksporty

Nie wykryto.

Zmienione sygnatury

exportPrzedPo
path-to-regexp · KeyinterfaceParameter | Wildcard
path-to-regexp · Tokenstring | KeyText | Parameter | Wildcard | Group
path-to-regexp · match<P extends ParamData>(path: Path | Path[], options?: MatchOptions | undefined): MatchFunction<P><P extends ParamData>(path: Path | Path[], options?: (MatchOptions & ParseOptions) | undefined): MatchFunction<P>
path-to-regexp · compile<P extends ParamData = Partial<Record<string, string | string[]>>>(path: Path, options?: CompileOptions | undefined): PathFunction<P><P extends ParamData = Partial<Record<string, string | string[]>>>(path: Path, options?: (CompileOptions & ParseOptions) | undefined): (params?: P | undefined) => string
path-to-regexp · pathToRegexp(path: Path | Path[], options?: PathToRegexpOptions | undefined): RegExp & { keys: Key[]; }(path: Path | Path[], options?: (PathToRegexpOptions & ParseOptions) | undefined): { regexp: RegExp; keys: Keys; }

Usunięte składowe klas lub interfejsów

memberimportPrzed
TokenData.delimiterpath-to-regexpstring
MatchResult.indexpath-to-regexpnumber
MatchOptions.loosepath-to-regexpboolean | undefined
MatchOptions.startpath-to-regexpboolean | undefined
MatchOptions.strictpath-to-regexpboolean | undefined
MatchOptions.encodePathpath-to-regexpEncode | undefined
ParseOptions.delimiterpath-to-regexpstring | undefined
CompileOptions.loosepath-to-regexpboolean | undefined
CompileOptions.strictpath-to-regexpboolean | undefined
CompileOptions.validatepath-to-regexpboolean | undefined
CompileOptions.sensitivepath-to-regexpboolean | undefined
CompileOptions.encodePathpath-to-regexpEncode | undefined
PathToRegexpOptions.loosepath-to-regexpboolean | undefined
PathToRegexpOptions.startpath-to-regexpboolean | undefined
PathToRegexpOptions.strictpath-to-regexpboolean | undefined
PathToRegexpOptions.encodePathpath-to-regexpEncode | undefined

Zmienione składowe klas lub interfejsów

memberPrzedPo
TokenData.constructor(tokens: Token[], delimiter: string): TokenData(tokens: Token[], originalPath?: string | undefined): TokenData

Nowo wycofane

Nie wykryto.

Zmiany wymagań (engines, zależności peer)

PrzedPo
engines.node>=16—
Nowe eksporty (7)
importexportkind
path-to-regexpKeystype
path-to-regexpTextinterface
path-to-regexpGroupinterface
path-to-regexpWildcardinterface
path-to-regexpParameterinterface
path-to-regexpPathErrorclass
path-to-regexpstringifyfunction

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji path-to-regexp z 7 do 8?

Między path-to-regexp 7.2.0 a 8.4.2 Vigia znalazła 0 usuniętych eksportów, 5 zmienionych sygnatur i 17 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w path-to-regexp 8?

0 eksportów lub składowych oznaczono w path-to-regexp 8.4.2 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/path-to-regexp/upgrade?from=7.2.0&to=8.4.2