Skip to content

Bump parsel from 1.11.0 to 1.12.1 - #538

Merged
Tsingis merged 1 commit into
mainfrom
dependabot/pip/parsel-1.12.1
Sep 30, 2026
Merged

Tsingis merged 1 commit into
mainfrom
dependabot/pip/parsel-1.12.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Bumps parsel from 1.11.0 to 1.12.1.

Changelog

Sourced from parsel's changelog.

1.12.1 (2026-09-28)


* Fixed memory usage growing with every ``xpath()`` and ``css()`` call when
  using lxml 5.4.0 or later.

1.12.0 (2026-09-25)

  • Added support for Python 3.15.
  • When type is not specified, Selector now detects input as JSON only if it is a JSON object or array. Other valid JSON, such as 123 or "foo", is now handled as HTML. Pass type="json" to get the old behavior.
  • An explicit type is now respected when the input or root is valid JSON. Before, type was ignored and the input was handled as JSON. As a result, selectors for text nodes and attribute values whose content is valid JSON, e.g. "1", now keep the type of their parent selector instead of "json".
  • When type is not specified, body is now detected as JSON for any spelling of the UTF-8 encoding name, e.g. "UTF-8" or "utf8".
  • When type is not specified, Selector now handles input that starts with an XML declaration (<?xml ...?>) as XML instead of HTML. Pass type="html" to get the old behavior.
  • Fixed body handling for UTF-16 and other encodings that are not UTF-8: multi-byte characters are no longer garbled, and bytes that the encoding cannot decode are now replaced with U+FFFD instead of truncating the document.
  • Fixed Selector raising XMLSyntaxError for an XML body that is empty after stripping whitespace and null bytes. It now gets the same empty root as the equivalent text.
  • Improved performance by caching compiled XPath expressions.
  • Additional keyword arguments of xpath() are now always used as XPath variables. Before, extensions and regexp were passed to lxml as evaluation options. To use custom XPath functions, register them with parsel.xpathfuncs.set_xpathfunc() instead.
  • Fixed CSS-to-XPath translator instances being kept alive by a translation cache shared by all instances.
  • xpath(".") now works on selectors for text nodes and attribute values, returning the selector itself instead of an empty list.
  • jmespath() now works on selectors of type "text" and on selectors for text nodes and attribute values.
  • Fixed the CSS ::attr() pseudo-element producing an invalid XPath expression for attribute names that are not valid XPath names, e.g. ::attr(foo\:bar).
  • Fixed drop() on an XML selector also removing the tail text of the dropped element.
  • Fixed drop() raising ValueError instead of CannotDropElementWithoutParent for the root element of an XML selector.
  • Removed the lxml_version, lxml_huge_tree_version and

... (truncated)

Commits
  • dcbecf6 Bump version: 1.12.0 → 1.12.1
  • c8976aa Merge pull request #379 from AdrianAtZyte/exslt-leak
  • f103e73 Don’t test on PyPy
  • 812222d Fix memory leak from cached XPath evaluators with EXSLT namespaces
  • 9f353b9 Bump version: 1.11.0 → 1.12.0
  • 292845c Release notes for 1.12.0 (#377)
  • eba3523 Merge pull request #376 from AdrianAtZyte/coverage
  • d8fd4b8 Require 100% Codecov project coverage, drop patch check
  • e7767a2 Bring test coverage to 100%
  • e5ebcdf Merge pull request #374 from agammann/fix-lazy-nested-flattening
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 30, 2026
Bumps [parsel](https://github.com/scrapy/parsel) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/scrapy/parsel/releases)
- [Changelog](https://github.com/scrapy/parsel/blob/master/NEWS)
- [Commits](scrapy/parsel@v1.11.0...v1.12.1)

---
updated-dependencies:
- dependency-name: parsel
  dependency-version: 1.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/parsel-1.12.1 branch from 8455a6b to 83346f6 Compare September 30, 2026 18:19
@sonarqubecloud

Copy link
Copy Markdown

@Tsingis
Tsingis merged commit 0c6cf90 into main Sep 30, 2026
6 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/parsel-1.12.1 branch September 30, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant