mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-18 19:44:19 +02:00
Change version parameter from str to VersionSpec in enable()/disable() to support range-based version filtering. - Add match_none parameter to VersionSpec.matches() for controlling whether unversioned components match (defaults to True for backward compatibility, False for enable/disable filtering) - Update Enabled transform to use VersionSpec and call matches() with match_none=False so unversioned components don't match version specs - Update enable()/disable() signatures to accept VersionSpec - Add comprehensive tests for version range matching Examples: - disable(version=VersionSpec(eq="v2")) - disable only v2 - disable(version=VersionSpec(gte="v2")) - disable v2 and later - disable(version=VersionSpec(gte="v1", lt="v3")) - disable v1, v2 |
||
|---|---|---|
| .. | ||
| test_enabled.py | ||