Releases: Widen/urlbuilder
Releases · Widen/urlbuilder
2.1.2
What's Changed
- Replace Bintray with Maven Central by @sagebind in #14
- Remove internal Base64 class in favor of stdlib by @sagebind in #15
- bump bouncycastle to 1.80 to fix multiple CVEs by @uriahcarpenter in #17
- add new sonatype repo config by @uriahcarpenter in #18
New Contributors
- @uriahcarpenter made their first contribution in #17
Full Changelog: 2.1.1...2.1.2
Content-Disposition fixes
Get path segments
Added
- Add ability to get all path segments in a URL via
getPathSegments(). This is computationally cheaper and easier to use than splitting on/fromgetPath()if you need to inspect the path more closely.
Package change, new features
Breaking Changes
- All classes have been moved from the
com.widen.utilpackage to the more specificcom.widen.urlbuilderpackage. - Java 8+ is now the minimum required Java version.
Added
- Accessing existing query parameters is now easier with the new
getQueryParameters()method, which returns a map of parameter values for each parameter name. Parameters without an explicit value are represented by the empty string"". - You can now easily convert a
UrlBuilderto anURIorURLusing the newtoURI()andtoURL()methods respectively.
Fixed
- Fixed an issue where "value-less" query parameters (e.g.
/foo/bar?valueless) parsed from a string were not being preserved and were being lost when converting back into a string.
Gradle and publishing changes
This release only changes publishing and build configuration.
Changed
- Gradle has been upgraded to 5.x.
- Releases are now published publicly to Bintray.
Gradle and publishing changes
This release only changes publishing and build configuration.
Changed
- Gradle has been upgraded to 5.x.
- Releases are now published publicly to Bintray.
Added: Better UTF-8 attachment handling
Added
- There is now a
HttpUtilspublic class with acreateContentDispositionHeader()static method for generating proper UTF-8 encodedContent-Dispositionheader values supporting both ASCII and UTF-8 for browsers implementing RFC 5987. This is used by the url builders themselves, but is also part of the public API and can be used independently. (#4)
Fixed
- Both
CloudFrontUrlBuilderandS3UrlBuildersupport full UTF-8 attachment filenames by using the above method. (#4)
1.0.0
First stable release of UrlBuilder! Only one important change since the latest unstable version (0.10.6), but this release marks the library's stabilization.
Fixed
- Normalize and convert attachment filenames to ASCII for
S3UrlBuilderandCloudfrontUrlBuilderto fix issues with special characters (#2).