diff --git a/CHANGELOG.md b/CHANGELOG.md index cc0b0801..9c54e5df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added docker-compose.route_dependencies_env.yml that gives an example using the STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251) ### Changed +- Updated to stac-fastapi 3.0.0a4. [#275](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/275) - Converted Basic auth to a route dependency and merged with new route depndencies method. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251) - Updated docker-compose.basic_auth_protected.yml to use STAC_FASTAPI_ROUTE_DEPENDENCIES environment variable. [#251](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/251) diff --git a/stac_fastapi/core/setup.py b/stac_fastapi/core/setup.py index 80376031..bb894b9b 100644 --- a/stac_fastapi/core/setup.py +++ b/stac_fastapi/core/setup.py @@ -10,9 +10,9 @@ "attrs>=23.2.0", "pydantic[dotenv]", "stac_pydantic>=3", - "stac-fastapi.types==3.0.0a3", - "stac-fastapi.api==3.0.0a3", - "stac-fastapi.extensions==3.0.0a3", + "stac-fastapi.types==3.0.0a4", + "stac-fastapi.api==3.0.0a4", + "stac-fastapi.extensions==3.0.0a4", "orjson", "overrides", "geojson-pydantic", diff --git a/stac_fastapi/core/stac_fastapi/core/route_dependencies.py b/stac_fastapi/core/stac_fastapi/core/route_dependencies.py index acf06a86..29dcc58b 100644 --- a/stac_fastapi/core/stac_fastapi/core/route_dependencies.py +++ b/stac_fastapi/core/stac_fastapi/core/route_dependencies.py @@ -5,6 +5,7 @@ import json import logging import os +from typing import List from fastapi import Depends from jsonschema import validate @@ -156,7 +157,7 @@ def get_route_dependencies(route_dependencies_env: str = "") -> list: route_dependencies_env = os.environ.get( "STAC_FASTAPI_ROUTE_DEPENDENCIES", route_dependencies_env ) - route_dependencies: list[tuple] = [] + route_dependencies: List[tuple] = [] if not route_dependencies_env: _LOGGER.info("Authentication skipped.")