fix(deps): update dependency org.jsoup:jsoup to v1.21.1 #4914
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.20.1
->1.21.1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
jhy/jsoup (org.jsoup:jsoup)
v1.21.1
Changes
:matchText
pseduo-selector due to its side effects on the DOM; use the new::textnode
selector and theElement#selectNodes(String css, Class type)
method instead. #2343Connection.Response#bufferUp()
in lieu ofConnection.Response#readFully()
which can throw a checked IOException.Validate#ensureNotNull
(replaced by typedValidate#expectNotNull
); protected HTML appenders from Attribute and Node.Improvements
Selector
to support direct matching against nodes such as comments and text nodes. For example, you can now find an element that follows a specific comment:::comment:contains(prices) + p
will selectp
elements immediately after a<!-- prices: -->
comment. Supported types include::node
,::leafnode
,::comment
,::text
,::data
, and::cdata
. Node contextual selectors like::node:contains(text)
,:matches(regex)
, and:blank
are also supported. IntroducedElement#selectNodes(String css)
andElement#selectNodes(String css, Class nodeType)
for direct node selection. #2324TagSet#onNewTag(Consumer<Tag> customizer)
: register a callback that’s invoked for each new or cloned Tag when it’s inserted into the set. Enables dynamic tweaks of tag options (for example, marking all custom tags as self-closing, or everything in a given namespace as preserving whitespace).TokenQueue
andCharacterReader
autocloseable, to ensure that they will release their buffers back to the buffer pool, for later reuse.Selector#evaluatorOf(String css)
, as a clearer way to obtain an Evaluator from a CSS query. An alias ofQueryParser.parse(String css)
.TagSet
) in a foreign namespace (e.g. SVG) can be configured to parse as data tags.NodeVisitor#traverse(Node)
to simplify node traversal calls (vs. importingNodeTraversor
).Connection#readFully()
as a replacement forConnection#bufferUp()
with an explicit IOException. Similarly, addedConnection#readBody()
overConnection#body()
. DeprecatedConnection#bufferUp()
. #2327<
and>
characters are now escaped in attributes. This helps prevent a class of mutation XSS attacks. #2337Connection
to prefer using the JDK's HttpClient over HttpUrlConnection, if available, to enable HTTP/2 support by default. Users can disable via-Djsoup.useHttpClient=false
. #2340Bug Fixes
script
in asvg
foreign context should be parsed as script data, not text. #2320Tag#isFormSubmittable()
was updating the Tag's options. #2323Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.