fastapi-router-versioning 1.2.1__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/build-docs.yml +2 -2
  2. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/bump-pre-commit-hooks.yml +1 -1
  3. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/create-draft-release.yml +1 -1
  4. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/deploy-docs.yml +1 -1
  5. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/pre-commit.yml +1 -1
  6. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/prepare-release.yml +1 -1
  7. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/publish.yml +1 -1
  8. fastapi_router_versioning-1.2.2/.github/workflows/test-fastapi-main.yml +52 -0
  9. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/test.yml +14 -6
  10. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/zizmor.yml +1 -1
  11. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/PKG-INFO +1 -1
  12. fastapi_router_versioning-1.2.2/docs/release-notes.md +280 -0
  13. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/__init__.py +1 -1
  14. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_compat.py +7 -6
  15. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/pyproject.toml +2 -1
  16. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner.py +111 -2
  17. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/uv.lock +434 -358
  18. fastapi_router_versioning-1.2.1/docs/release-notes.md +0 -256
  19. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/dependabot.yml +0 -0
  20. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/latest-changes.yml +0 -0
  21. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/detect-conflicts.yml +0 -0
  22. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/guard-dependencies.yml +0 -0
  23. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.github/workflows/test-redistribute.yml +0 -0
  24. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.gitignore +0 -0
  25. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.pre-commit-config.yaml +0 -0
  26. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/.python-version +0 -0
  27. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/LICENSE +0 -0
  28. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/README.md +0 -0
  29. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/callback-hook.md +0 -0
  30. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/callbacks-and-webhooks.md +0 -0
  31. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/custom-url-format.md +0 -0
  32. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/deprecation-headers.md +0 -0
  33. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/index.md +0 -0
  34. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/latest-alias.md +0 -0
  35. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/multiple-routers.md +0 -0
  36. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/openapi-hook.md +0 -0
  37. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/reverse-proxy-and-sub-apps.md +0 -0
  38. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/self-hosted-assets.md +0 -0
  39. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/validation-error-status-code.md +0 -0
  40. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/advanced/version-discovery.md +0 -0
  41. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/apple-touch-icon.png +0 -0
  42. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/favicon.ico +0 -0
  43. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/favicon.png +0 -0
  44. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/favicon.svg +0 -0
  45. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/logo-header.svg +0 -0
  46. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/logo.svg +0 -0
  47. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/images/wordmark.png +0 -0
  48. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/latest-alias.jpg +0 -0
  49. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/migration-root.jpg +0 -0
  50. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/quickstart-calver.jpg +0 -0
  51. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/quickstart-semver-v1.jpg +0 -0
  52. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/quickstart-semver-v2.jpg +0 -0
  53. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/redoc-v2.jpg +0 -0
  54. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/swagger-v1.jpg +0 -0
  55. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/swagger-v2.jpg +0 -0
  56. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/swagger-v3.jpg +0 -0
  57. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/url-format-latest.jpg +0 -0
  58. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/url-format-v1.jpg +0 -0
  59. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/versions-dashboard.jpg +0 -0
  60. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/webhooks-v1.jpg +0 -0
  61. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/assets/screenshots/webhooks-v2.jpg +0 -0
  62. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/examples.md +0 -0
  63. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/how-it-works.md +0 -0
  64. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/index.md +0 -0
  65. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/lifecycle.md +0 -0
  66. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/migrating.md +0 -0
  67. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/quickstart.md +0 -0
  68. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/reference.md +0 -0
  69. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs/stylesheets/extra.css +0 -0
  70. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/callback_hook.py +0 -0
  71. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/callbacks.py +0 -0
  72. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/custom_url_format.py +0 -0
  73. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/deprecation_headers.py +0 -0
  74. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/latest_alias.py +0 -0
  75. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/multiple_routers.py +0 -0
  76. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/openapi_hook.py +0 -0
  77. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/reverse_proxy.py +0 -0
  78. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/self_hosted_assets.py +0 -0
  79. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/validation_error_status_code.py +0 -0
  80. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/version_discovery.py +0 -0
  81. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/advanced/webhooks.py +0 -0
  82. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/lifecycle/legacy_route.py +0 -0
  83. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/migration/adopt.py +0 -0
  84. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/migration/change_endpoint.py +0 -0
  85. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/migration/retire_unversioned.py +0 -0
  86. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/quickstart/calver.py +0 -0
  87. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/docs_src/quickstart/semver.py +0 -0
  88. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/calver_app.py +0 -0
  89. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/dashboard_assets/versions_dashboard.css +0 -0
  90. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/dashboard_assets/versions_dashboard.html +0 -0
  91. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/deprecation_headers_app.py +0 -0
  92. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/download_static_assets.py +0 -0
  93. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/mounted_subapps_app.py +0 -0
  94. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/multi_router_app.py +0 -0
  95. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/openapi_hook_app.py +0 -0
  96. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/self_hosted_docs_app.py +0 -0
  97. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/semver_app.py +0 -0
  98. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/semver_major_only_app.py +0 -0
  99. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/validation_override_integration_app.py +0 -0
  100. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/versions_dashboard_app.py +0 -0
  101. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/versions_dashboard_hook_app.py +0 -0
  102. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/examples/webhook_versioning_app.py +0 -0
  103. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_builder.py +0 -0
  104. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_dashboard.py +0 -0
  105. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_deprecation.py +0 -0
  106. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_docs.py +0 -0
  107. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_lifecycle.py +0 -0
  108. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_registry.py +0 -0
  109. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_scheme.py +0 -0
  110. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/_versions.py +0 -0
  111. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/py.typed +0 -0
  112. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/fastapi_router_versioning/versioner.py +0 -0
  113. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/mkdocs.yml +0 -0
  114. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/overrides/main.html +0 -0
  115. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/build_icons.py +0 -0
  116. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/docs-build.sh +0 -0
  117. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/docs.sh +0 -0
  118. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/docs_screenshots.py +0 -0
  119. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/format.sh +0 -0
  120. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/generate_readme.py +0 -0
  121. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/lint.sh +0 -0
  122. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/prepare_release.py +0 -0
  123. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/test-cov-html.sh +0 -0
  124. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/test-cov.sh +0 -0
  125. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/scripts/test.sh +0 -0
  126. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/__init__.py +0 -0
  127. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_calver.py +0 -0
  128. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_docs_src.py +0 -0
  129. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_docs_src_behavior.py +0 -0
  130. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_examples.py +0 -0
  131. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_fastapi_integration.py +0 -0
  132. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_prepare_release.py +0 -0
  133. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_public_signature_docs.py +0 -0
  134. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_readme.py +0 -0
  135. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_semver.py +0 -0
  136. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_deprecation_headers.py +0 -0
  137. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_docs.py +0 -0
  138. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_errors.py +0 -0
  139. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_lifecycle.py +0 -0
  140. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_versions_dashboard.py +0 -0
  141. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_versions_route.py +0 -0
  142. {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.2}/tests/test_versioner_webhooks.py +0 -0
@@ -61,7 +61,7 @@ jobs:
61
61
  python-version-file: .python-version
62
62
 
63
63
  - name: Setup uv
64
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv-4
64
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv-4
65
65
  with:
66
66
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
67
67
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -76,7 +76,7 @@ jobs:
76
76
  run: uv run --no-sync bash scripts/docs-build.sh
77
77
 
78
78
  # The site is deployed by Deploy Docs, which runs once this workflow has finished
79
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 #sync-pin:upload-artifact-3
79
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.1 #sync-pin:upload-artifact-3
80
80
  with:
81
81
  name: docs-site
82
82
  path: ./site
@@ -25,7 +25,7 @@ jobs:
25
25
  with:
26
26
  python-version-file: ".python-version"
27
27
  - name: Setup uv
28
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
28
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
29
29
  with:
30
30
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
31
31
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -31,7 +31,7 @@ jobs:
31
31
  with:
32
32
  python-version-file: ".python-version"
33
33
  - name: Install uv
34
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
34
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
35
35
  with:
36
36
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
37
37
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -39,7 +39,7 @@ jobs:
39
39
  mkdir ./site
40
40
  # Build Docs is skipped when nothing that goes into the site changed: it uploads no artifact,
41
41
  # the download below finds nothing, and the steps that need ./site/ are skipped
42
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 #sync-pin:download-artifact-2
42
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.1 #sync-pin:download-artifact-2
43
43
  with:
44
44
  path: ./site/
45
45
  pattern: docs-site
@@ -30,7 +30,7 @@ jobs:
30
30
  python-version-file: ".python-version"
31
31
 
32
32
  - name: Setup uv
33
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
33
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
34
34
  with:
35
35
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
36
36
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -42,7 +42,7 @@ jobs:
42
42
  with:
43
43
  python-version-file: ".python-version"
44
44
  - name: Install uv
45
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
45
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
46
46
  with:
47
47
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
48
48
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -28,7 +28,7 @@ jobs:
28
28
  with:
29
29
  python-version-file: ".python-version"
30
30
  - name: Install uv
31
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
31
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
32
32
  with:
33
33
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
34
34
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -0,0 +1,52 @@
1
+ name: Test FastAPI main
2
+
3
+ # Early warning, not a gate: runs the suite against FastAPI's development branch so that
4
+ # routing changes show up before they are released. Never runs on pull requests and is not
5
+ # part of any required check.
6
+ on:
7
+ schedule:
8
+ # cron every week on monday
9
+ - cron: "0 0 * * 1"
10
+ workflow_dispatch:
11
+
12
+ permissions: {}
13
+
14
+ env:
15
+ UV_NO_SYNC: true
16
+
17
+ jobs:
18
+ test-fastapi-main:
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 15
21
+ env:
22
+ UV_PYTHON: "3.14"
23
+
24
+ steps:
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 #sync-pin:checkout
26
+ with:
27
+ persist-credentials: false
28
+
29
+ - name: Set up Python
30
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 #sync-pin:setup-python
31
+ with:
32
+ python-version: "3.14"
33
+
34
+ - name: Setup uv
35
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
36
+ with:
37
+ # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
38
+ # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
39
+ version: "0.11.18"
40
+ enable-cache: true
41
+ cache-dependency-glob: |
42
+ pyproject.toml
43
+ uv.lock
44
+
45
+ - name: Install Dependencies
46
+ run: uv sync
47
+
48
+ - name: Install FastAPI from source
49
+ run: uv pip install -U "git+https://github.com/fastapi/fastapi@master"
50
+
51
+ - name: Test
52
+ run: uv run --no-sync bash scripts/test.sh
@@ -60,6 +60,9 @@ jobs:
60
60
  - python-version: "3.14"
61
61
  fastapi-version: "latest"
62
62
  coverage: "coverage"
63
+ # Covers the 0.137.2-0.143.0 band, which takes its own branch in _compat.py.
64
+ - python-version: "3.14"
65
+ fastapi-version: "0.143.0"
63
66
 
64
67
  runs-on: ubuntu-latest
65
68
  env:
@@ -81,7 +84,7 @@ jobs:
81
84
  python-version: ${{ matrix.python-version }}
82
85
 
83
86
  - name: Setup uv
84
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv
87
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv
85
88
  with:
86
89
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
87
90
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -99,6 +102,11 @@ jobs:
99
102
  if: matrix.fastapi-version != 'latest'
100
103
  run: uv pip install "fastapi==${{ matrix.fastapi-version }}"
101
104
 
105
+ # Without this, "latest" is whatever uv.lock pins, and only moves when Dependabot does.
106
+ - name: Upgrade to the latest FastAPI
107
+ if: matrix.fastapi-version == 'latest'
108
+ run: uv pip install -U fastapi
109
+
102
110
  - name: Prepare coverage dir
103
111
  run: mkdir coverage
104
112
 
@@ -111,7 +119,7 @@ jobs:
111
119
 
112
120
  - name: Store coverage files
113
121
  if: matrix.coverage == 'coverage'
114
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 #sync-pin:upload-artifact
122
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.1 #sync-pin:upload-artifact
115
123
  with:
116
124
  name: coverage-${{ matrix.python-version }}-${{ matrix.fastapi-version }}
117
125
  path: coverage
@@ -169,7 +177,7 @@ jobs:
169
177
 
170
178
  - name: Setup uv
171
179
  if: steps.changed-tests.outputs.found == 'true'
172
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv-2
180
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv-2
173
181
  with:
174
182
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
175
183
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -211,7 +219,7 @@ jobs:
211
219
  persist-credentials: false
212
220
 
213
221
  - name: Setup uv
214
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v9.0.0 #sync-pin:setup-uv-3
222
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v9.0.0 #sync-pin:setup-uv-3
215
223
  with:
216
224
  # Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
217
225
  # See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
@@ -225,7 +233,7 @@ jobs:
225
233
  run: uv sync --locked
226
234
 
227
235
  - name: Get coverage files
228
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 #sync-pin:download-artifact
236
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.1 #sync-pin:download-artifact
229
237
  with:
230
238
  pattern: coverage-*
231
239
  path: coverage
@@ -237,7 +245,7 @@ jobs:
237
245
  - run: uv run coverage xml
238
246
 
239
247
  - name: Store coverage HTML
240
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 #sync-pin:upload-artifact-2
248
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.1 #sync-pin:upload-artifact-2
241
249
  with:
242
250
  name: coverage-html
243
251
  path: htmlcov
@@ -22,4 +22,4 @@ jobs:
22
22
  with:
23
23
  persist-credentials: false
24
24
  - name: Run zizmor
25
- uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.2 #sync-pin:zizmor-action
25
+ uses: zizmorcore/zizmor-action@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.6.2 #sync-pin:zizmor-action
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: fastapi-router-versioning
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Router-based API versioning for FastAPI, with per-version docs and a declarative route lifecycle.
5
5
  Project-URL: Homepage, https://fastapi-router-versioning.matblack81.com/
6
6
  Project-URL: Repository, https://github.com/matblack81/fastapi-router-versioning
@@ -0,0 +1,280 @@
1
+ # Release Notes
2
+
3
+ ## Latest Changes
4
+
5
+ ## 1.2.2 (2026-10-25)
6
+
7
+ ### Refactors
8
+
9
+ * ♻️ Use FastAPI's public route context for nested WebSockets. PR [#128](https://github.com/matblack81/fastapi-router-versioning/pull/128) by [@matblack81](https://github.com/matblack81).
10
+
11
+ ### Docs
12
+
13
+ * 🔧 Replace old GitHub username in release notes links. PR [#120](https://github.com/matblack81/fastapi-router-versioning/pull/120) by [@matblack81](https://github.com/matblack81).
14
+
15
+ ### Internal
16
+
17
+ * 🔧 Allow the certifi package name in typos. PR [#133](https://github.com/matblack81/fastapi-router-versioning/pull/133) by [@matblack81](https://github.com/matblack81).
18
+ * ✅ Test that nested WebSocket dependencies survive the remount. PR [#131](https://github.com/matblack81/fastapi-router-versioning/pull/131) by [@matblack81](https://github.com/matblack81).
19
+ * 💡 Trim the legacy WebSocket context test docstring. PR [#130](https://github.com/matblack81/fastapi-router-versioning/pull/130) by [@matblack81](https://github.com/matblack81).
20
+ * 👷 Test FastAPI 0.143.0 in CI. PR [#129](https://github.com/matblack81/fastapi-router-versioning/pull/129) by [@matblack81](https://github.com/matblack81).
21
+ * 👷 Add a weekly CI run against FastAPI master. PR [#127](https://github.com/matblack81/fastapi-router-versioning/pull/127) by [@matblack81](https://github.com/matblack81).
22
+ * 👷 Test against the latest FastAPI release in CI. PR [#126](https://github.com/matblack81/fastapi-router-versioning/pull/126) by [@matblack81](https://github.com/matblack81).
23
+ * ⬆ Bump pillow to 13.0.0 and certifi to 2026.10.23. PR [#125](https://github.com/matblack81/fastapi-router-versioning/pull/125) by [@matblack81](https://github.com/matblack81).
24
+ * ⬆ Bump fastapi from 0.141.1 to 0.143.3. PR [#124](https://github.com/matblack81/fastapi-router-versioning/pull/124) by [@dependabot[bot]](https://github.com/apps/dependabot).
25
+ * ⬆ Bump the python-packages group with 9 updates. PR [#123](https://github.com/matblack81/fastapi-router-versioning/pull/123) by [@dependabot[bot]](https://github.com/apps/dependabot).
26
+ * ⬆ Bump the github-actions group with 4 updates. PR [#122](https://github.com/matblack81/fastapi-router-versioning/pull/122) by [@dependabot[bot]](https://github.com/apps/dependabot).
27
+ * ⬆ Bump certifi from 2026.6.17 to 2026.10.19. PR [#121](https://github.com/matblack81/fastapi-router-versioning/pull/121) by [@dependabot[bot]](https://github.com/apps/dependabot).
28
+
29
+ ## 1.2.1 (2026-10-15)
30
+
31
+ ### Docs
32
+
33
+ * 🖼️ Adjust logo dimensions in README and script by removing height attribute. PR [#118](https://github.com/matblack81/fastapi-router-versioning/pull/118) by [@matblack81](https://github.com/matblack81).
34
+ * 📝 Add a guide to adopting versioning in an existing app. PR [#116](https://github.com/matblack81/fastapi-router-versioning/pull/116) by [@matblack81](https://github.com/matblack81).
35
+ * 📝 Add v1.0, v2.0 and v3.0 Swagger screenshots to the route lifecycle page. PR [#115](https://github.com/matblack81/fastapi-router-versioning/pull/115) by [@matblack81](https://github.com/matblack81).
36
+
37
+ ### Internal
38
+
39
+ * 📝 Point documentation links to the new domain. PR [#117](https://github.com/matblack81/fastapi-router-versioning/pull/117) by [@matblack81](https://github.com/matblack81).
40
+ * ⬆ Bump annotated-doc from 0.0.4 to 0.0.5. PR [#114](https://github.com/matblack81/fastapi-router-versioning/pull/114) by [@dependabot[bot]](https://github.com/apps/dependabot).
41
+ * ⬆ Bump the python-packages group with 2 updates. PR [#113](https://github.com/matblack81/fastapi-router-versioning/pull/113) by [@dependabot[bot]](https://github.com/apps/dependabot).
42
+
43
+ ## 1.2.0 (2026-10-04)
44
+
45
+ ### Docs
46
+
47
+ * 📝 Add documentation site . PR [#111](https://github.com/matblack81/fastapi-router-versioning/pull/111) by [@matblack81](https://github.com/matblack81).
48
+
49
+ ### Internal
50
+
51
+ * ⬆ Bump the python-packages group with 9 updates. PR [#110](https://github.com/matblack81/fastapi-router-versioning/pull/110) by [@dependabot[bot]](https://github.com/apps/dependabot).
52
+ * ⬆ Bump the github-actions group with 3 updates. PR [#109](https://github.com/matblack81/fastapi-router-versioning/pull/109) by [@dependabot[bot]](https://github.com/apps/dependabot).
53
+ * ⬆ Bump pre-commit hooks. PR [#108](https://github.com/matblack81/fastapi-router-versioning/pull/108) by [@matblack81](https://github.com/matblack81).
54
+
55
+ ## 1.1.1 (2026-09-22)
56
+
57
+ ### Internal
58
+
59
+ * ⬆ Bump anyio from 4.14.1 to 4.14.2. PR [#106](https://github.com/matblack81/fastapi-router-versioning/pull/106) by [@dependabot[bot]](https://github.com/apps/dependabot).
60
+
61
+ ## 1.1.0 (2026-09-09)
62
+
63
+ ### Features
64
+
65
+ * ✨ Show each version's migration guide on /versions and the dashboard. PR [#101](https://github.com/matblack81/fastapi-router-versioning/pull/101) by [@matblack81](https://github.com/matblack81).
66
+ * ✨ Signal route deprecation to clients with RFC 9745 Deprecation, RFC 8594 Sunset and Link headers. PR [#98](https://github.com/matblack81/fastapi-router-versioning/pull/98) by [@matblack81](https://github.com/matblack81).
67
+ * ✨ Add an HTML dashboard listing all active API versions. PR [#97](https://github.com/matblack81/fastapi-router-versioning/pull/97) by [@matblack81](https://github.com/matblack81).
68
+ * ✨ Make the /versions discovery endpoint path configurable. PR [#95](https://github.com/matblack81/fastapi-router-versioning/pull/95) by [@matblack81](https://github.com/matblack81).
69
+
70
+ ### Refactors
71
+
72
+ * ♻️ Default versions_route_path and versions_dashboard_path to their paths instead of None. PR [#104](https://github.com/matblack81/fastapi-router-versioning/pull/104) by [@matblack81](https://github.com/matblack81).
73
+
74
+ ### Docs
75
+
76
+ * 💡 Review the comments and docstrings across package, tests and examples. PR [#103](https://github.com/matblack81/fastapi-router-versioning/pull/103) by [@matblack81](https://github.com/matblack81).
77
+ * 📝 Complete the README reference and make its wording plainer. PR [#100](https://github.com/matblack81/fastapi-router-versioning/pull/100) by [@matblack81](https://github.com/matblack81).
78
+ * 📝 Document the deprecation headers in the README. PR [#99](https://github.com/matblack81/fastapi-router-versioning/pull/99) by [@matblack81](https://github.com/matblack81).
79
+
80
+ ### Internal
81
+
82
+ * ♻️ Split versioner.py into single-responsibility private modules. PR [#102](https://github.com/matblack81/fastapi-router-versioning/pull/102) by [@matblack81](https://github.com/matblack81).
83
+ * 🐛 Fix test-redistribute collection error from anyio's deprecated BlockingPortal alias. PR [#96](https://github.com/matblack81/fastapi-router-versioning/pull/96) by [@matblack81](https://github.com/matblack81).
84
+ * ⬆ Bump the python-packages group with 4 updates. PR [#94](https://github.com/matblack81/fastapi-router-versioning/pull/94) by [@dependabot[bot]](https://github.com/apps/dependabot).
85
+ * ⬆ Bump re-actors/alls-green from 1.2.2 to 1.3.0 in the github-actions group. PR [#93](https://github.com/matblack81/fastapi-router-versioning/pull/93) by [@dependabot[bot]](https://github.com/apps/dependabot).
86
+ * ⬆ Bump pre-commit hooks. PR [#92](https://github.com/matblack81/fastapi-router-versioning/pull/92) by [@matblack81](https://github.com/matblack81).
87
+ * ⬆ Bump fastapi from 0.140.0 to 0.141.1. PR [#91](https://github.com/matblack81/fastapi-router-versioning/pull/91) by [@dependabot[bot]](https://github.com/apps/dependabot).
88
+ * ⬆ Bump the python-packages group with 11 updates. PR [#90](https://github.com/matblack81/fastapi-router-versioning/pull/90) by [@dependabot[bot]](https://github.com/apps/dependabot).
89
+ * ⬆ Bump the github-actions group with 2 updates. PR [#89](https://github.com/matblack81/fastapi-router-versioning/pull/89) by [@dependabot[bot]](https://github.com/apps/dependabot).
90
+ * 👷 Replace actions/labeler with Latest Changes App auto-labeling. PR [#87](https://github.com/matblack81/fastapi-router-versioning/pull/87) by [@matblack81](https://github.com/matblack81).
91
+
92
+ ## 1.0.3 (2026-08-13)
93
+
94
+ ### Fixes
95
+
96
+ * 🐛 Fix tag metadata missing from versioned schemas when tags use an Enum. PR [#81](https://github.com/matblack81/fastapi-router-versioning/pull/81) by [@matblack81](https://github.com/matblack81).
97
+ * 🐛 Distinguish an unset webhook_routers from one provided but empty. PR [#80](https://github.com/matblack81/fastapi-router-versioning/pull/80) by [@matblack81](https://github.com/matblack81).
98
+ * 🐛 Read route attributes from the merged RouteContext instead of the original route. PR [#79](https://github.com/matblack81/fastapi-router-versioning/pull/79) by [@matblack81](https://github.com/matblack81).
99
+ * 🐛 Preserve custom route_class when mounting versioned routes. PR [#78](https://github.com/matblack81/fastapi-router-versioning/pull/78) by [@matblack81](https://github.com/matblack81).
100
+
101
+ ### Refactors
102
+
103
+ * ♻️ Move prefix and /versions bookkeeping off app.state into a private registry. PR [#84](https://github.com/matblack81/fastapi-router-versioning/pull/84) by [@matblack81](https://github.com/matblack81).
104
+
105
+ ### Internal
106
+
107
+ * ♻️ Reorganize versioner tests into docs, lifecycle, webhooks, and errors files. PR [#85](https://github.com/matblack81/fastapi-router-versioning/pull/85) by [@matblack81](https://github.com/matblack81).
108
+ * ✅ Cover versionize() on a router with no routes. PR [#83](https://github.com/matblack81/fastapi-router-versioning/pull/83) by [@matblack81](https://github.com/matblack81).
109
+ * ✅ Cover default_version type validation on construction. PR [#82](https://github.com/matblack81/fastapi-router-versioning/pull/82) by [@matblack81](https://github.com/matblack81).
110
+
111
+ ## 1.0.2 (2026-08-12)
112
+
113
+ ### Internal
114
+
115
+ * ✅ Cover examples/ with an import-and-schema smoke test and align their run instructions. PR [#76](https://github.com/matblack81/fastapi-router-versioning/pull/76) by [@matblack81](https://github.com/matblack81).
116
+ * ♻️ Standardize examples with a run instruction docstring, drop the main blocks. PR [#75](https://github.com/matblack81/fastapi-router-versioning/pull/75) by [@matblack81](https://github.com/matblack81).
117
+ * 👷 Sync CI, pre-commit, and release scripts workflows with the latest template. PR [#74](https://github.com/matblack81/fastapi-router-versioning/pull/74) by [@matblack81](https://github.com/matblack81).
118
+ * 🐛 Fix release date defaulting to the date the script was imported. PR [#73](https://github.com/matblack81/fastapi-router-versioning/pull/73) by [@matblack81](https://github.com/matblack81).
119
+ * 🐛 Fix partial release state when release notes write fails. PR [#72](https://github.com/matblack81/fastapi-router-versioning/pull/72) by [@matblack81](https://github.com/matblack81).
120
+ * 🐛 Reject invalid bump types and cover prepare_release's untested error paths. PR [#71](https://github.com/matblack81/fastapi-router-versioning/pull/71) by [@matblack81](https://github.com/matblack81).
121
+ * 🐛 Fix partial release state when release notes update fails. PR [#70](https://github.com/matblack81/fastapi-router-versioning/pull/70) by [@matblack81](https://github.com/matblack81).
122
+ * ⬆️ Bump tiangolo/latest-changes to 0.7.1. PR [#69](https://github.com/matblack81/fastapi-router-versioning/pull/69) by [@matblack81](https://github.com/matblack81).
123
+ * ✅ Prove PR test changes actually catch a regression before merging. PR [#68](https://github.com/matblack81/fastapi-router-versioning/pull/68) by [@matblack81](https://github.com/matblack81).
124
+ * ⬆ Bump fastapi from 0.139.2 to 0.140.0. PR [#67](https://github.com/matblack81/fastapi-router-versioning/pull/67) by [@dependabot[bot]](https://github.com/apps/dependabot).
125
+ * ⬆ Bump the python-packages group with 5 updates. PR [#66](https://github.com/matblack81/fastapi-router-versioning/pull/66) by [@dependabot[bot]](https://github.com/apps/dependabot).
126
+ * ⬆ Bump zizmorcore/zizmor-action from 0.6.0 to 0.6.1 in the github-actions group. PR [#65](https://github.com/matblack81/fastapi-router-versioning/pull/65) by [@dependabot[bot]](https://github.com/apps/dependabot).
127
+
128
+ ## 1.0.1 (2026-08-01)
129
+
130
+ ### Fixes
131
+
132
+ * 🐛 Fix missing OpenAPI validation in docs URL checks when versioning is enabled. PR [#61](https://github.com/matblack81/fastapi-router-versioning/pull/61) by [@matblack81](https://github.com/matblack81).
133
+ * 🐛 Fix versionize() failures blocking any retry on the same app. PR [#58](https://github.com/matblack81/fastapi-router-versioning/pull/58) by [@matblack81](https://github.com/matblack81).
134
+ * 🐛 Fix OpenAPI schema caching to handle /latest alias independently. PR [#57](https://github.com/matblack81/fastapi-router-versioning/pull/57) by [@matblack81](https://github.com/matblack81).
135
+ * 🐛 Fix include_version_openapi_route not disabling docs UIs. PR [#55](https://github.com/matblack81/fastapi-router-versioning/pull/55) by [@matblack81](https://github.com/matblack81).
136
+ * 🐛 Fix duplicate route registration for multi-method endpoints. PR [#54](https://github.com/matblack81/fastapi-router-versioning/pull/54) by [@matblack81](https://github.com/matblack81).
137
+ * 🐛 Fix deprecation never becoming observable when deprecate_in is the only lifecycle change. PR [#53](https://github.com/matblack81/fastapi-router-versioning/pull/53) by [@matblack81](https://github.com/matblack81).
138
+ * 🐛 Fix route removal deleting its replacement instead of the removed route. PR [#52](https://github.com/matblack81/fastapi-router-versioning/pull/52) by [@matblack81](https://github.com/matblack81).
139
+
140
+ ### Refactors
141
+
142
+ * ♻️ Refactor `_add_versions_route` to support multiple version model providers. PR [#60](https://github.com/matblack81/fastapi-router-versioning/pull/60) by [@matblack81](https://github.com/matblack81).
143
+ * 🐛 Simplify `versionize()` error handling and remove rollback logic. PR [#59](https://github.com/matblack81/fastapi-router-versioning/pull/59) by [@matblack81](https://github.com/matblack81).
144
+
145
+ ### Docs
146
+
147
+ * 📝 Update README with examples for permanent deprecation, multi-method takeover, and shared `/versions` behavior. PR [#63](https://github.com/matblack81/fastapi-router-versioning/pull/63) by [@matblack81](https://github.com/matblack81).
148
+ * ♻️ Add permanent deprecation and multi-method takeover examples to semver_app. PR [#62](https://github.com/matblack81/fastapi-router-versioning/pull/62) by [@matblack81](https://github.com/matblack81).
149
+
150
+ ## 1.0.0 (2026-07-28)
151
+
152
+ 🎉 First stable release of fastapi-router-versioning.
153
+
154
+ ## 0.3.0 (2026-07-28)
155
+
156
+ ### Breaking Changes
157
+
158
+ * ♻️ Remove built-in validation error override in favor of fastapi-validation-override. PR [#46](https://github.com/matblack81/fastapi-router-versioning/pull/46) by [@matblack81](https://github.com/matblack81).
159
+
160
+ ### Internal
161
+
162
+ * ⬆ Bump fastapi from 0.139.0 to 0.139.2. PR [#49](https://github.com/matblack81/fastapi-router-versioning/pull/49) by [@dependabot[bot]](https://github.com/apps/dependabot).
163
+ * ⬆ Bump the python-packages group with 7 updates. PR [#48](https://github.com/matblack81/fastapi-router-versioning/pull/48) by [@dependabot[bot]](https://github.com/apps/dependabot).
164
+ * ⬆ Bump the github-actions group with 5 updates. PR [#47](https://github.com/matblack81/fastapi-router-versioning/pull/47) by [@dependabot[bot]](https://github.com/apps/dependabot).
165
+
166
+ ## 0.2.7 (2026-07-18)
167
+
168
+ ### Internal
169
+
170
+ * ⬆ Bump pre-commit hooks. PR [#44](https://github.com/matblack81/fastapi-router-versioning/pull/44) by [@matblack81](https://github.com/matblack81).
171
+ * ⬆ Bump the python-packages group across 1 directory with 5 updates. PR [#42](https://github.com/matblack81/fastapi-router-versioning/pull/42) by [@dependabot[bot]](https://github.com/apps/dependabot).
172
+ * ⬆ Bump the github-actions group across 1 directory with 2 updates. PR [#41](https://github.com/matblack81/fastapi-router-versioning/pull/41) by [@dependabot[bot]](https://github.com/apps/dependabot).
173
+ * 👷 Replace Dependabot pre-commit ecosystem with custom bump workflow. PR [#43](https://github.com/matblack81/fastapi-router-versioning/pull/43) by [@matblack81](https://github.com/matblack81).
174
+
175
+ ## 0.2.6 (2026-07-11)
176
+
177
+ ### Refactors
178
+
179
+ * ♻️ Use fastapi-native imports instead of importing from starlette directly. PR [#38](https://github.com/matblack81/fastapi-router-versioning/pull/38) by [@matblack81](https://github.com/matblack81).
180
+
181
+ ## 0.2.5 (2026-07-10)
182
+
183
+ ### Fixes
184
+
185
+ * 🐛 Fix misleading self-collision error in RouterVersioner prefix claiming. PR [#36](https://github.com/matblack81/fastapi-router-versioning/pull/36) by [@matblack81](https://github.com/matblack81).
186
+
187
+ ## 0.2.4 (2026-07-09)
188
+
189
+ ### Internal
190
+
191
+ * 🔧 Integrate Codecov for coverage tracking and update README. PR [#34](https://github.com/matblack81/fastapi-router-versioning/pull/34) by [@matblack81](https://github.com/matblack81).
192
+
193
+ ## 0.2.3 (2026-07-09)
194
+
195
+ ### Docs
196
+ * 📝 Rewrite README with PyPI-safe links and corrected project metadata. PR [#27](https://github.com/matblack81/fastapi-router-versioning/pull/27) by [@matblack81](https://github.com/matblack81).
197
+
198
+ ### Internal
199
+
200
+ * ⬆ bump the python-packages group with 2 updates. PR [#30](https://github.com/matblack81/fastapi-router-versioning/pull/30) by [@dependabot[bot]](https://github.com/apps/dependabot).
201
+ * ⬆ bump https://github.com/crate-ci/typos from v1.48.0 to 5.0.7 in the pre-commit group. PR [#29](https://github.com/matblack81/fastapi-router-versioning/pull/29) by [@dependabot[bot]](https://github.com/apps/dependabot).
202
+ * ⬆ bump dorny/paths-filter from 4.0.1 to 4.0.2 in the github-actions group. PR [#31](https://github.com/matblack81/fastapi-router-versioning/pull/31) by [@dependabot[bot]](https://github.com/apps/dependabot).
203
+ * ⬆ bump fastapi from 0.138.1 to 0.139.0. PR [#32](https://github.com/matblack81/fastapi-router-versioning/pull/32) by [@dependabot[bot]](https://github.com/apps/dependabot).
204
+ * 🔧 Overhaul CI/CD workflows for labeling, releases, and coverage tracking. PR [#28](https://github.com/matblack81/fastapi-router-versioning/pull/28) by [@matblack81](https://github.com/matblack81).
205
+
206
+ ## 0.2.2 (2026-07-01)
207
+
208
+ ### Fixes
209
+
210
+ * 🐛 Fix root OpenAPI schema not reflecting validation_error_code. PR [#21](https://github.com/matblack81/fastapi-router-versioning/pull/21) by [@matblack81](https://github.com/matblack81).
211
+ * 🐛 Fix silent conflicts from misconfigured RouterVersioner instances sharing an app. PR [#20](https://github.com/matblack81/fastapi-router-versioning/pull/20) by [@matblack81](https://github.com/matblack81).
212
+
213
+ ### Internal
214
+
215
+ * 👷 Add a regression test for `RouterVersioner` under a real `app.mount()` sub-application, and `examples/mounted_subapps_app.py` demonstrating the same scenario. PR [#22](https://github.com/matblack81/fastapi-router-versioning/pull/22) by [@matblack81](https://github.com/matblack81).
216
+
217
+ ### Refactors
218
+
219
+ * ♻️ Reorder RouterVersioner methods to match their call graph. PR [#23](https://github.com/matblack81/fastapi-router-versioning/pull/23) by [@matblack81](https://github.com/matblack81).
220
+
221
+ ## 0.2.1 (2026-06-26)
222
+
223
+ ### Fixes
224
+
225
+ * 🐛 Fix `api_version` signature to enforce `deprecate_in` and `remove_in` as keyword-only arguments, aligning the implementation with the documented signature. PR [#18](https://github.com/matblack81/fastapi-router-versioning/pull/18) by [@matblack81](https://github.com/matblack81).
226
+
227
+ ## 0.2.0 (2026-06-26)
228
+
229
+ ### Features
230
+
231
+ * ✨ Add `validation_error_code` parameter to `RouterVersioner` to override the HTTP status code returned for request validation errors (default: `422`). The OpenAPI schema is updated automatically to reflect the custom code. PR [#16](https://github.com/matblack81/fastapi-router-versioning/pull/16) by [@matblack81](https://github.com/matblack81).
232
+ * ✨ Add `handle_validation_exceptions` parameter to `RouterVersioner`: when `False`, only the OpenAPI schema is updated, leaving the exception handler to the user. PR [#16](https://github.com/matblack81/fastapi-router-versioning/pull/16) by [@matblack81](https://github.com/matblack81).
233
+
234
+ ### Fixes
235
+
236
+ * 🐛 Fix Python 3.14 classifier not actually added to `pyproject.toml` in 0.1.2. PR [#15](https://github.com/matblack81/fastapi-router-versioning/pull/15) by [@matblack81](https://github.com/matblack81).
237
+
238
+ ## 0.1.2 (2026-06-25)
239
+
240
+ ### Internal
241
+
242
+ * 👷 Add Python 3.14 classifier to `pyproject.toml` to align with the versions already covered by CI.
243
+
244
+ ### Docs
245
+
246
+ * 📝 Update README and `pyproject.toml` to clarify package description and improve documentation consistency. PR [#12](https://github.com/matblack81/fastapi-router-versioning/pull/12) by [@matblack81](https://github.com/matblack81).
247
+
248
+ ## 0.1.1 (2026-06-24)
249
+
250
+ ### Features
251
+
252
+ * ✨ Add per-version OpenAPI schema caching: schemas are generated once and cached, reducing overhead on repeated requests. PR [#5](https://github.com/matblack81/fastapi-router-versioning/pull/5) by [@matblack81](https://github.com/matblack81).
253
+ * ✨ Track which routes belong to each version to invalidate the cache automatically when the route set changes. PR [#5](https://github.com/matblack81/fastapi-router-versioning/pull/5) by [@matblack81](https://github.com/matblack81).
254
+
255
+ ### Fixes
256
+
257
+ * 🐛 Fix WebSocket routes not being handled correctly in `versioned_routers` when the cache was active. PR [#5](https://github.com/matblack81/fastapi-router-versioning/pull/5) by [@matblack81](https://github.com/matblack81).
258
+ * 🐛 Improve OpenAPI schema cache resilience: cache is now safely bypassed on unexpected errors instead of raising. PR [#5](https://github.com/matblack81/fastapi-router-versioning/pull/5) by [@matblack81](https://github.com/matblack81).
259
+
260
+ ### Internal
261
+
262
+ * 👷 Add `prepare-release.yml` workflow and `scripts/prepare_release.py` for automated version bumping and release PR creation. PR [#6](https://github.com/matblack81/fastapi-router-versioning/pull/6) by [@matblack81](https://github.com/matblack81).
263
+ * 👷 Add `changes` job to `test.yml` and `test-redistribute.yml` to skip CI when no relevant files are modified. PR [#10](https://github.com/matblack81/fastapi-router-versioning/pull/10) by [@matblack81](https://github.com/matblack81).
264
+
265
+ ## 0.1.0 (2025-06-24)
266
+
267
+ 🚀 First official public release of **fastapi-router-versioning**.
268
+
269
+ Router-based API versioning for FastAPI, with declarative route lifecycle, per-version OpenAPI schemas, and isolated documentation — without altering the core application structure.
270
+
271
+ ### Features
272
+
273
+ * ✨ SemVer & CalVer support: route versioning using `(major, minor)` tuples or lexicographically sortable arbitrary strings.
274
+ * ✨ Declarative route lifecycle: introduce, deprecate (`deprecate_in`), and remove (`remove_in`) routes across versions.
275
+ * ✨ Per-version documentation: isolated Swagger UI, ReDoc, and `openapi.json` for each active version.
276
+ * ✨ OpenAPI schema hook: modify the filtered schema per version via `openapi_hook`.
277
+ * ✨ Independent webhook versioning via `webhook_routers`, with propagation of per-route OpenAPI Callbacks.
278
+ * ✨ Latest-version alias: expose the highest active version under a stable configurable prefix.
279
+ * ✨ Self-hosted docs: full control over Swagger/ReDoc static assets and option to disable Google Fonts.
280
+ * ✨ Reverse proxy aware: resolves and injects the ASGI `root_path` at request time.
@@ -1,6 +1,6 @@
1
1
  from ._versions import VersionFormat, VersionInfo, VersionT, api_version
2
2
  from .versioner import RouterVersioner
3
3
 
4
- __version__ = "1.2.1"
4
+ __version__ = "1.2.2"
5
5
 
6
6
  __all__ = ["RouterVersioner", "api_version", "VersionFormat", "VersionInfo", "VersionT"]
@@ -22,12 +22,13 @@ def iter_routes_flat(routes: list[Any]) -> Iterator[Any]:
22
22
  # RouteContext merges path/tags/deps via __getattr__; use the context directly.
23
23
  yield route_ctx
24
24
  elif isinstance(original, APIWebSocketRoute):
25
- # For WebSockets, RouteContext.__getattr__ does NOT merge parent prefixes into path.
26
- # _route_context._EffectiveRouteContext holds the fully resolved starlette_route
27
- # (with all include_router prefixes applied). Fall back to original for direct routes.
28
- rc = getattr(route_ctx, "_route_context", None)
29
- starlette_route = getattr(rc, "starlette_route", None) if rc is not None else None
30
- yield starlette_route if starlette_route is not None else original
25
+ if route_ctx.path:
26
+ yield route_ctx
27
+ else:
28
+ # FastAPI 0.137.2-0.143.0 resolve a nested WebSocket context to an empty path,
29
+ # name and dependencies (fixed in 0.143.1). The fully resolved route is only on
30
+ # the private _route_context; those releases are frozen, so it cannot move.
31
+ yield route_ctx._route_context.starlette_route
31
32
  else:
32
33
  yield original # pragma: no cover
33
34
 
@@ -73,7 +73,7 @@ docs = [
73
73
  # scripts/docs_screenshots.py: takes the screenshots of the docs in a real browser
74
74
  screenshots = [
75
75
  "playwright>=1.49.0",
76
- "pillow>=11.3.0",
76
+ "pillow>=13.0.0; python_version >= '3.11'",
77
77
  "uvicorn>=0.49.0",
78
78
  ]
79
79
 
@@ -148,6 +148,7 @@ keep-runtime-typing = true
148
148
 
149
149
  [tool.typos.default.extend-identifiers]
150
150
  alls = "alls"
151
+ certifi = "certifi"
151
152
 
152
153
  [tool.pytest.ini_options]
153
154
  minversion = "9.0"