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 ua-parser to v1.0.1 #192

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 1, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ua-parser 1.0.0 -> 1.0.1 age adoption passing confidence

Release Notes

ua-parser/uap-python (ua-parser)

v1.0.1: : global parser is re-created on every access (/ parse)

Compare Source

This led to the parser having to be re-created on every access, which is quite expensive for the re2 and regex-based parser and completely negates their purpose.

This can be worked around by using a from-import (as Python will do the memoizing in that case, although every such from-import would create its own parser still)

from ua_parser import parser

and only parsing through that parser (without using the top-level utilities), or by setting the global parser "by hand" e.g.

ua_parser.parser = ua_parser.parser 

but obviously that requires knowing about the issue.

Major thanks to @​Rafiot for the report.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 added the dependencies Pull requests that update a dependency file label Feb 1, 2025
@renovate renovate bot enabled auto-merge (squash) February 1, 2025 20:58
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved automated PR

@renovate renovate bot merged commit cf47364 into develop Feb 1, 2025
8 checks passed
@renovate renovate bot deleted the dependencies/ua-parser-1.x branch February 1, 2025 20:59
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants