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

⬆️ Update htmltools to v0.6.0 #1093

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 5, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
htmltools ==0.5.1 -> ==0.6.0 age adoption passing confidence

Release Notes

rstudio/py-htmltools (htmltools)

v0.6.0

Compare Source

Breaking changes
  • HTML no longer inherits from str. It now inherits from collections.UserString. This was done to avoid confusion between str and HTML objects. (#​86)

  • TagList no longer inherits from list. It now inherits from collections.UserList. This was done to avoid confusion between list and TagList objects. (#​97)

  • Tag and TagList's method .get_html_string() now both return str instead of HTML. (#​86)

  • Strings added to HTML objects, now return HTML objects. E.g. HTML_value + str_value and str_value + HTML_value both return HTML objects. To maintain a str result, call str() on your HTML objects before adding them to other strings values. (#​86)

  • Items added to TagList objects, now return TagList objects. E.g. TagList_value + arr_value and arr_value + TagList_value both return new TagList objects. To maintain a list result, call list() on your TagList objects before combining them to other list objects. (#​97)

New features
  • Exported ReprHtml protocol class. If an object has a _repr_html_ method, then it is of instance ReprHtml. (#​86)

  • Exported is_tag_node() and is_tag_child() functions that utilize typing.TypeIs to narrow TagNode and TagChild type variables, respectively. (#​86)

  • Exported consolidate_attrs(*args, **kwargs) function. This function will combine the TagAttrs (supplied in *args) with TagAttrValues (supplied in **kwargs) into a single TagAttrs object. In addition, it will also return all *args that are not dictionary as a list of unaltered TagChild objects. (#​86)

  • The Tag method .add_style(style=) added support for HTML objects in addition to str values. (#​86)

Bug fixes
  • Fixed an issue with HTMLTextDocument() returning extracted HTMLDependency()s in a non-determistic order. (#​95)

v0.5.3

Compare Source

  • HTML tags in docstrings are now escaped. (#​90)

v0.5.2

Compare Source

  • The HTMLDependency.copy() method can now correctly copy folders in depenendencies that both include directories and have all_files=True. (#​87)

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 is behind base branch, 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 requested a review from basnijholt as a code owner December 5, 2024 19:27
@renovate renovate bot force-pushed the renovate/htmltools-0.x branch 4 times, most recently from b2e5b45 to dbcd1a1 Compare December 5, 2024 19:43
@renovate renovate bot force-pushed the renovate/htmltools-0.x branch from dbcd1a1 to 588a4b1 Compare December 5, 2024 19:45
@basnijholt basnijholt merged commit af09a6f into main Dec 5, 2024
1 check was pending
@basnijholt basnijholt deleted the renovate/htmltools-0.x branch December 5, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant