Minor Changes
-
#15778
4ebc1e3Thanks @ematipico! - Added a new entry point called/request, which exposes utilities to work with theRequesttype:getFirstForwardedValue: retrieves the first value of a multi-value header.isValidIpAddress: checks whether a string contains only characters valid in IPv4/IPv6 addresses.getValidatedIpFromHeader: extracts the first value from a header and validates it as an IP address.getClientIpAddress: retrieves and validates the first IP from thex-forwarded-forheader.
-
#15077
a164c77Thanks @matthewp! - AddsnormalizePathname()utility function for normalizing URL pathnames to match the canonical form used by route generation. -
#15419
a18d727Thanks @ematipico! - Adds a new/clispecifier and the utilityNPM_PACKAGE_NAME_REGEX. -
#15369
240c317Thanks @florian-lefebvre! - BREAKING CHANGERemoves
collapseDuplicateSlashes(),startsWithForwardSlash(),startsWithDotDotSlash(),startsWithDotSlash()andisAbsolutePath()from the/pathexport -
#15771
745e632Thanks @rururux! - Adds the new utilitiesMANY_LEADING_SLASHESandcollapseDuplicateLeadingSlashes.