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

chore(deps): update dependency bleach to v6 - autoclosed #241

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 23, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bleach ==5.0.1 -> ==6.1.0 age adoption passing confidence

Release Notes

mozilla/bleach (bleach)

v6.1.0

Compare Source

Backwards incompatible changes

  • Dropped support for Python 3.7. (#​709)

Security fixes

None

Bug fixes

  • Add support for Python 3.12. (#​710)
  • Fix linkify with arrays in querystring (#​436)
  • Handle more cases with < followed by character data (#​705)
  • Fix entities inside a tags in linkification (#​704)
  • Update cap for tinycss2 to <1.3 (#​702)
  • Updated Sphinx requirement
  • Add dependabot for github actions and update github actions

v6.0.0

Compare Source

Backwards incompatible changes

  • bleach.clean, bleach.sanitizer.Cleaner,
    bleach.html5lib_shim.BleachHTMLParser: the tags and protocols
    arguments were changed from lists to sets.

    Old pre-6.0.0:

    .. code-block:: python

    bleach.clean(
    "some text",
    tags=["a", "p", "img"],

^ ^ list

     protocols=["http", "https"],

^ ^ list

 )

New 6.0.0 and later:

.. code-block:: python

 bleach.clean(
     "some text",
     tags={"a", "p", "img"},

^ ^ set

     protocols={"http", "https"},

^ ^ set

 )
  • bleach.linkify, bleach.linkifier.Linker: the skip_tags and
    recognized_tags arguments were changed from lists to sets.

    Old pre-6.0.0:

    .. code-block:: python

    bleach.linkify(
    "some text",
    skip_tags=["pre"],

^ ^ list

 )

 linker = Linker(
     skip_tags=["pre"],

^ ^ list

     recognized_tags=html5lib_shim.HTML_TAGS + ["custom-element"],

^ ^ ^ list

|

| list concatenation

 )

New 6.0.0 and later:

.. code-block:: python

 bleach.linkify(
     "some text",
     skip_tags={"pre"},

^ ^ set

 )

 linker = Linker(
     skip_tags={"pre"},

^ ^ set

     recognized_tags=html5lib_shim.HTML_TAGS | {"custom-element"},

^ ^ ^ set

|

| union operator

 )
  • bleach.sanitizer.BleachSanitizerFilter: strip_allowed_elements is now
    strip_allowed_tags. We now use "tags" everywhere rather than a mishmash
    of "tags" in some places and "elements" in others.

Security fixes

None

Bug fixes

  • Add support for Python 3.11. (#​675)

  • Fix API weirness in BleachSanitizerFilter. (#​649)

    We're using "tags" instead of "elements" everywhere--no more weird
    overloading of "elements" anymore.

    Also, it no longer calls the superclass constructor.

  • Add warning when css_sanitizer isn't set, but the style
    attribute is allowed. (#​676)

  • Fix linkify handling of character entities. (#​501)

  • Rework dev dependencies to use requirements-dev.txt and
    requirements-flake8.txt instead of extras.

  • Fix project infrastructure to be tox-based so it's easier to have CI
    run the same things we're running in development and with flake8
    in an isolated environment.

  • Update action versions in CI.

  • Switch to f-strings where possible. Make tests parametrized to be
    easier to read/maintain.


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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovate label Jan 23, 2023
@renovate renovate bot force-pushed the renovate/bleach-6.x branch 8 times, most recently from 3d37b15 to 393a3fc Compare February 24, 2023 15:27
@fuzzylogic2000
Copy link
Contributor

Django-bleach wants the version bleach[css]<6 and >=5

ERROR: Cannot install -r requirements.txt (line 7), bleach[css]==6.0.0 and django-bleach==3.0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested bleach[css]==6.0.0
    django-bleach 3.0.1 depends on bleach[css]<6 and >=5
    The user requested bleach[css]==6.0.0
    django-bleach 3.0.1 depends on bleach[css]<6 and >=5

@renovate renovate bot force-pushed the renovate/bleach-6.x branch 16 times, most recently from a59a9be to 26b761a Compare February 26, 2023 20:59
@renovate renovate bot force-pushed the renovate/bleach-6.x branch from 26b761a to 266e57a Compare March 15, 2023 18:13
@renovate renovate bot force-pushed the renovate/bleach-6.x branch from 266e57a to 7674c94 Compare October 6, 2023 22:59
@renovate renovate bot force-pushed the renovate/bleach-6.x branch 2 times, most recently from e361352 to 4a3d545 Compare July 2, 2024 08:41
@renovate renovate bot force-pushed the renovate/bleach-6.x branch from 4a3d545 to 1552302 Compare July 2, 2024 15:26
@renovate renovate bot changed the title chore(deps): update dependency bleach to v6 chore(deps): update dependency bleach to v6 - autoclosed Jul 10, 2024
@renovate renovate bot closed this Jul 10, 2024
@renovate renovate bot deleted the renovate/bleach-6.x branch July 10, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant