Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency org.jsoup:jsoup to v1.18.3 #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 23, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.jsoup:jsoup (source) 1.15.3 -> 1.18.3 age adoption passing confidence

Release Notes

jhy/jsoup (org.jsoup:jsoup)

v1.18.3

Bug Fixes
  • When serializing to XML, attribute names containing -, ., or digits were incorrectly marked as invalid and
    removed. 2235

v1.18.2

Improvements
  • Optimized the throughput and memory use throughout the input read and parse flows, with heap allocations and GC
    down between -6% and -89%, and throughput improved up to +143% for small inputs. Most inputs sizes will see
    throughput increases of ~ 20%. These performance improvements come through recycling the backing byte[] and char[]
    arrays used to read and parse the input. 2186
  • Speed optimized html() and Entities.escape() when the input contains UTF characters in a supplementary plane, by
    around 49%. 2183
  • The form associated elements returned by FormElement.elements() now reflect changes made to the DOM,
    subsequently to the original parse. 2140
  • In the TreeBuilder, the onNodeInserted() and onNodeClosed() events are now also fired for the outermost /
    root Document node. This enables source position tracking on the Document node (which was previously unset). And
    it also enables the node traversor to see the outer Document node. 2182
  • Selected Elements can now be position swapped inline using
    Elements#set(). 2212
Bug Fixes
  • Element.cssSelector() would fail if the element's class contained a *
    character. 2169
  • When tracking source ranges, a text node following an invalid self-closing element may be left
    untracked. 2175
  • When a document has no doctype, or a doctype not named html, it should be parsed in Quirks
    Mode. 2197
  • With a selector like div:has(span + a), the has() component was not working correctly, as the inner combining
    query caused the evaluator to match those against the outer's siblings, not
    children. 2187
  • A selector query that included multiple :has() components in a nested :has() might incorrectly
    execute. 2131
  • When cookie names in a response are duplicated, the simple view of cookies available via
    Connection.Response#cookies() will provide the last one set. Generally it is better to use
    the Jsoup.newSession method to maintain a cookie jar, as that
    applies appropriate path selection on cookies when making requests. 1831
  • When parsing named HTML entities, base entities should resolve if they are a prefix of the input token (and not in an
    attribute). 2207
  • Fixed incorrect tracking of source ranges for attributes merged from late-occurring elements that were implicitly
    created (html or body). 2204
  • Follow the current HTML specification in the tokenizer to allow < as part of a tag name, instead of emitting it as a
    character node. 2230
  • Similarly, allow a < as the start of an attribute name, vs creating a new element. The previous behavior was
    intended to parse closer to what we anticipated the author's intent to be, but that does not align to the spec or to
    how browsers behave. 1483

v1.18.1

Improvements
  • Stream Parser: A StreamParser provides a progressive parse of its input. As each Element is completed, it is
    emitted via a Stream or Iterator interface. Elements returned will be complete with all their children, and an
    (empty) next sibling, if applicable. Elements (or their children) may be removed from the DOM during the parse,
    for e.g. to conserve memory, providing a mechanism to parse an input document that would otherwise be too large to fit
    into memory, yet still providing a DOM interface to the document and its elements. Additionally, the parser provides
    a selectFirst(String query) / selectNext(String query), which will run the parser until a hit is found, at which
    point the parse is suspended. It can be resumed via another select() call, or via the stream() or iterator()
    methods. 2096
  • Download Progress: added a Response Progress event interface, which reports progress and URLs are downloaded (and
    parsed). Supported on both a session and a single connection
    level. 2164, 656
  • Added Path accepting parse methods: Jsoup.parse(Path), Jsoup.parse(path, charsetName, baseUri, parser),
    etc. 2055
  • Updated the button tag configuration to include a space between multiple button elements in the Element.text()
    method. 2105
  • Added support for the ns|* all elements in namespace Selector. 1811
  • When normalising attribute names during serialization, invalid characters are now replaced with _, vs being
    stripped. This should make the process clearer, and generally prevent an invalid attribute name being coerced
    unexpectedly. 2143
Changes
  • Removed previously deprecated internal classes and methods. 2094
  • Build change: the built jar's OSGi manifest no longer imports itself. 2158
Bug Fixes
  • When tracking source positions, if the first node was a TextNode, its position was incorrectly set
    to -1. 2106
  • When connecting (or redirecting) to URLs with characters such as {, } in the path, a Malformed URL exception would
    be thrown (if in development), or the URL might otherwise not be escaped correctly (if in
    production). The URL encoding process has been improved to handle these characters
    correctly. 2142
  • When using W3CDom with a custom output Document, a Null Pointer Exception would be
    thrown. 2114
  • The :has() selector did not match correctly when using sibling combinators (like
    e.g.: h1:has(+h2)). 2137
  • The :empty selector incorrectly matched elements that started with a blank text node and were followed by
    non-empty nodes, due to an incorrect short-circuit. 2130
  • Element.cssSelector() would fail with "Did not find balanced marker" when building a selector for elements that had
    a ( or [ in their class names. And selectors with those characters escaped would not match as
    expected. 2146
  • Updated Entities.escape(string) to make the escaped text suitable for both text nodes and attributes (previously was
    only for text nodes). This does not impact the output of Element.html() which correctly applies a minimal escape
    depending on if the use will be for text data or in a quoted
    attribute. 1278
  • Fuzz: a Stack Overflow exception could occur when resolving a crafted <base href> URL, in the normalizing regex.
    2165

v1.17.2

Improvements
  • Attribute object accessors: Added Element.attribute(String) and Attributes.attribute(String) to more simply
    obtain an Attribute object. 2069
  • Attribute source tracking: If source tracking is on, and an Attribute's key is changed (
    via Attribute.setKey(String)), the source range is now still tracked
    in Attribute.sourceRange(). 2070
  • Wildcard attribute selector: Added support for the [*] element with any attribute selector. And also restored
    support for selecting by an empty attribute name prefix ([^]). 2079
Bug Fixes
  • Mixed-cased source position: When tracking the source position of attributes, if the source attribute name was
    mix-cased but the parser was lower-case normalizing attribute names, the source position for that attribute was not
    tracked correctly. 2067
  • Source position NPE: When tracking the source position of a body fragment parse, a null pointer
    exception was thrown. 2068
  • Multi-point emoji entity: A multi-point encoded emoji entity may be incorrectly decoded to the replacement
    character. 2074
  • Selector sub-expressions: (Regression) in a selector like parent [attr=va], other, the , OR was binding
    to [attr=va] instead of parent [attr=va], causing incorrect selections. The fix includes a EvaluatorDebug class
    that generates a sexpr to represent the query, allowing simpler and more thorough query parse
    tests. 2073
  • XML CData output: When generating XML-syntax output from parsed HTML, script nodes containing (pseudo) CData
    sections would have an extraneous CData section added, causing script execution errors. Now, the data content is
    emitted in a HTML/XML/XHTML polyglot format, if the data is not already within a CData
    section. 2078
  • Thread safety: The :has evaluator held a non-thread-safe Iterator, and so if an Evaluator object was
    shared across multiple concurrent threads, a NoSuchElement exception may be thrown, and the selected results may be
    incorrect. Now, the iterator object is a thread-local. 2088

Older changes for versions 0.1.1 (2010-Jan-31) through 1.17.1 (2023-Nov-27) may be found in
change-archive.txt.


Configuration

📅 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.15.4 fix(deps): update dependency org.jsoup:jsoup to v1.15.4 - autoclosed Apr 20, 2023
@renovate renovate bot closed this Apr 20, 2023
@renovate renovate bot deleted the renovate/org.jsoup-jsoup-1.x branch April 20, 2023 02:54
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.15.4 - autoclosed fix(deps): update dependency org.jsoup:jsoup to v1.15.4 Apr 20, 2023
@renovate renovate bot reopened this Apr 20, 2023
@renovate renovate bot restored the renovate/org.jsoup-jsoup-1.x branch April 20, 2023 08:33
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 1303e23 to 21c7d54 Compare April 29, 2023 06:48
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.15.4 fix(deps): update dependency org.jsoup:jsoup to v1.16.1 Apr 29, 2023
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.16.1 fix(deps): update dependency org.jsoup:jsoup to v1.16.2 Oct 20, 2023
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 21c7d54 to 33a554e Compare October 20, 2023 06:59
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 33a554e to f575691 Compare October 27, 2023 18:45
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.16.2 fix(deps): update dependency org.jsoup:jsoup to v1.17.1 Nov 27, 2023
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from f575691 to 6cd1c7a Compare November 27, 2023 04:03
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 6cd1c7a to c1d86ab Compare December 29, 2023 03:20
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.17.1 fix(deps): update dependency org.jsoup:jsoup to v1.17.2 Dec 29, 2023
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from c1d86ab to 861259a Compare July 10, 2024 07:34
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.17.2 fix(deps): update dependency org.jsoup:jsoup to v1.18.1 Jul 10, 2024
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 861259a to 96722b3 Compare September 20, 2024 08:17
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.18.1 fix(deps): update dependency org.jsoup:jsoup to v1.18.2 Nov 27, 2024
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 96722b3 to 163dc25 Compare November 27, 2024 04:33
@renovate renovate bot force-pushed the renovate/org.jsoup-jsoup-1.x branch from 163dc25 to 02597c4 Compare December 2, 2024 04:53
@renovate renovate bot changed the title fix(deps): update dependency org.jsoup:jsoup to v1.18.2 fix(deps): update dependency org.jsoup:jsoup to v1.18.3 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants