Files
archived-camoufox/pythonlib/camoufox/__version__.py
T
Jake WriterandClaude Opus 5 df35ae79d2 chore(release): v152.0.4-beta.30, pythonlib 0.5.6
Raises the browser floor to beta.30 because 0.5.6 permits Playwright >= 1.61,
which sends viewport isMobile/screenSize in Browser.setDefaultViewport. Only
beta.30's Protocol.js schema accepts those; on beta.29 every new_context()
fails with "Protocol error (Browser.setDefaultViewport)". Measured: 1.60 works
on both builds, 1.61 and 1.62 fail on beta.29 and pass on beta.30.

The floor means pythonlib 0.5.6 cannot run until the beta.30 release assets are
published -- it must not reach PyPI first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 15:06:48 -06:00

20 lines
387 B
Python

"""
Camoufox version constants.
"""
class CONSTRAINTS:
"""
The minimum and maximum supported versions of the Camoufox browser.
"""
MIN_VERSION = 'beta.30'
MAX_VERSION = '1'
@staticmethod
def as_range() -> str:
"""
Returns the version range as a string.
"""
return f">={CONSTRAINTS.MIN_VERSION}, <{CONSTRAINTS.MAX_VERSION}"