mystamps
mystamps copied to clipboard
chore: bump org.jsoup:jsoup from 1.18.3 to 1.19.1
Bumps org.jsoup:jsoup from 1.18.3 to 1.19.1.
Release notes
Sourced from org.jsoup:jsoup's releases.
jsoup 1.19.1
Changes
- Added support for http/2 requests in
Jsoup.connect(), when running on Java 11+, via the Java HttpClient implementation. #2257.
- In this version of jsoup, the default is to make requests via the HttpUrlConnection implementation: use
System.setProperty("jsoup.useHttpClient", "true");to enable making requests via the HttpClient instead , which will enable http/2 support, if available. This will become the default in a later version of jsoup, so now is a good time to validate it.- If you are repackaging the jsoup jar in your deployment (i.e. creating a shaded- or a fat-jar), make sure to specify that as a Multi-Release JAR.
- If the
HttpClientimpl is not available in your JRE, requests will continue to be made viaHttpURLConnection(inhttp/1.1mode).- Updated the minimum Android API Level validation from 10 to 21. As with previous jsoup versions, Android developers need to enable core library desugaring. The minimum Java version remains Java 8. #2173
- Removed previously deprecated class:
org.jsoup.UncheckedIOException(replace withjava.io.UncheckedIOException); moved previously deprecated methodElement Element#forEach(Consumer)tovoid Element#forEach(Consumer()). #2246- Deprecated the methods
Document#updateMetaCharsetElement(bool)and#Document#updateMetaCharsetElement(), as the setting had no effect. WhenDocument#charset(Charset)is called, the document's meta charset or XML encoding instruction is always set. #2247Improvements
- When cleaning HTML with a
Safelistthat preserves relative links, theisValid()method will now consider these links valid. Additionally, the enforced attributerel=nofollowwill only be added to external links when configured in the safelist. #2245- Added
Element#selectStream(String query)andElement#selectStream(Evaluator)methods, that return aStreamof matching elements. Elements are evaluated and returned as they are found, and the stream can be terminated early. #2092Elementobjects now implementIterable, enabling them to be used in enhanced for loops.- Added support for fragment parsing from a
ReaderviaParser#parseFragmentInput(Reader, Element, String). #1177- Reintroduced CLI executable examples, in
jsoup-examples.jar. #1702- Optimized performance of selectors like
#id .class(and other similar descendant queries) by around 4.6x, by better balancing the Ancestor evaluator's cost function in the query planner. #2254- Removed the legacy parsing rules for
<isindex>tags, which would autovivify aformelement with labels. This is no longer in the spec.- Added
Elements.selectFirst(String cssQuery)andElements.expectFirst(String cssQuery), to select the first matching element from anElementslist. #2263- When parsing with the XML parser, XML Declarations and Processing Instructions are directly handled, vs bouncing through the HTML parser's bogus comment handler. Serialization for non-doctype declarations no longer end with a spurious
!. #2275- When converting parsed HTML to XML or the W3C DOM, element names containing
<are normalized to_to ensure valid XML. For example,<foo<bar>becomes<foo_bar>, as XML does not allow<in element names, but HTML5 does. #2276- Reimplemented the HTML5 Adoption Agency Algorithm to the current spec. This handles mis-nested formating / structural elements. #2278
... (truncated)
Changelog
Sourced from org.jsoup:jsoup's changelog.
1.19.1 (2025-03-04)
Changes
- Added support for http/2 requests in
Jsoup.connect(), when running on Java 11+, via the Java HttpClient implementation. #2257.
- In this version of jsoup, the default is to make requests via the HttpUrlConnection implementation: use
System.setProperty("jsoup.useHttpClient", "true");to enable making requests via the HttpClient instead , which will enable http/2 support, if available. This will become the default in a later version of jsoup, so now is a good time to validate it.- If you are repackaging the jsoup jar in your deployment (i.e. creating a shaded- or a fat-jar), make sure to specify that as a Multi-Release JAR.
- If the
HttpClientimpl is not available in your JRE, requests will continue to be made viaHttpURLConnection(inhttp/1.1mode).- Updated the minimum Android API Level validation from 10 to 21. As with previous jsoup versions, Android developers need to enable core library desugaring. The minimum Java version remains Java 8. #2173
- Removed previously deprecated class:
org.jsoup.UncheckedIOException(replace withjava.io.UncheckedIOException); moved previously deprecated methodElement Element#forEach(Consumer)tovoid Element#forEach(Consumer()). #2246- Deprecated the methods
Document#updateMetaCharsetElement(boolean)andDocument#updateMetaCharsetElement(), as the setting had no effect. WhenDocument#charset(Charset)is called, the document's meta charset or XML encoding instruction is always set. #2247Improvements
- When cleaning HTML with a
Safelistthat preserves relative links, theisValid()method will now consider these links valid. Additionally, the enforced attributerel=nofollowwill only be added to external links when configured in the safelist. #2245- Added
Element#selectStream(String query)andElement#selectStream(Evaluator)methods, that return aStreamof matching elements. Elements are evaluated and returned as they are found, and the stream can be terminated early. #2092Elementobjects now implementIterable, enabling them to be used in enhanced for loops.- Added support for fragment parsing from a
ReaderviaParser#parseFragmentInput(Reader, Element, String). #1177- Reintroduced CLI executable examples, in
jsoup-examples.jar. #1702- Optimized performance of selectors like
#id .class(and other similar descendant queries) by around 4.6x, by better balancing the Ancestor evaluator's cost function in the query planner. #2254- Removed the legacy parsing rules for
<isindex>tags, which would autovivify aformelement with labels. This is no longer in the spec.- Added
Elements.selectFirst(String cssQuery)andElements.expectFirst(String cssQuery), to select the first matching element from anElementslist. #2263- When parsing with the XML parser, XML Declarations and Processing Instructions are directly handled, vs bouncing through the HTML parser's bogus comment handler. Serialization for non-doctype declarations no longer end with a spurious
!. #2275- When converting parsed HTML to XML or the W3C DOM, element names containing
<are normalized to_to ensure valid XML. For example,<foo<bar>becomes<foo_bar>, as XML does not allow<in element names, but HTML5 does. #2276
... (truncated)
Commits
5c4c09a[maven-release-plugin] prepare release jsoup-1.19.17de25beUpdated changelog in preparation of release6d7a058Use 'el' instead of 'node' in adoption agency0679befPerf: removed redundant lowercase normalizationd80275ePerformance tweak when appending tag names4b733b1Updated InScope search basetypes to be namespace awared89d757Changelog tidy5fde3d9Changelog for #2281d55469aClone the Parser when cloning a Document11a0334Concurrency note- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)