Releases: tartiflette/tartiflette-aiohttp
Releases · tartiflette/tartiflette-aiohttp
1.4.1 - 2021-11-15
[1.4.1] 2021-11-15
Changed
-
Tests Dependencies updates
- pytest 6.2.5
- ytest-cov 3.0.0
- pytest-asyncio 0.16.0
- pylint==2.11.1
- xenon==0.8.0
- isort==5.10.1
-
Support for aiohttp 3.8.0, thanks David Baumgold
Fixed
- Typo in internal package naming, thanks David Baumgold
1.4.0
1.3.1
1.3.0
[1.3.0] - 2020-07-31
Added
- Added a way to hook the response formatting stage of the request execution. Simply register a callable looking like:
def a_method(req: aiohttp.web.Request, data: Dict[str, Any], ctx: Dict[str, Any]) -> aiohttp.web.Response:
pass
This is done via the register_graphql_handler(..., response_formatter= a_method)
.
Changed
-
ISSUE-94 - Changed the context_factory from a simple async method to an asynccontextmanager decorated one - Thanks @jugdizh
-
Test platform:
- pytest from 5.3.4 -> 6.0.1
- pytest-asyncio from 0.10.0 -> 0.14.0
- pytest-cov from 2.8.1 -> 2.10.0
- pylint from 2.4.4 -> 2.5.3
Fixed
- ISSUE-76 - Fix subscrition handling of client disconnection - Thanks @daveoconnor
1.2.0
[1.2.0] - 2020-01-29
Added
- Possibility to set header to the response directly from the resolver using
set_response_headers
method.
from tartiflette_aiohttp import set_response_headers
@Resolver("Query.X")
async def resolver_x(parent_result, args, ctx, info):
# do things
set_response_headers({"Header": "Value", "AnotherHeader": "AnotherValue"})
return result
Note that this feature uses ContextVar and will only works for python 3.7.1 and later.
Changed
- pytest updated to 5.3.4
- pylint updated to 2.4.4
1.1.1
[1.1.1] - 2019-10-15
Changed
- Github actions worflow. There is now only one.
- xenon updated to 0.7.0
- pytest updated to 5.2.1
- pytest-cov updated to 2.8.1
1.1.0
[1.1.0] -- 2019-10-02
Added
- ISSUE-55 - Add
a new optionalcontext_factory
parameter to theregister_graphql_handlers
function. This parameter can take a coroutine function which will be called on
each request with the following signature:async def context_factory( context: Dict[str, Any], req: "aiohttp.web.Request" ) -> Dict[str, Any]: """ Generates a new context. :param context: the value filled in through the `executor_context` parameter :param req: the incoming aiohttp request instance :type context: Dict[str, Any] :type req: aiohttp.web.Request :return: the context for the incoming request :rtype: Dict[str, Any] """
The aim of this function will be to returns the context which will be forwarded
to the Tartiflette engine on the execute
or subscribe
method.
1.0.0
[1.0.0] -- 2019-09-12
Changed
- Bump
subscriptions-transport-ws
from0.7.0
to0.8.3
- Bump
graphiql
from0.12.0
to0.14.2
- Update
aiohttp
requirement from>=3.5.4,<3.6.0
to>=3.5.4,<3.7.0
- Bump
pytest
from5.1.1
to5.1.2
- Update
tartiflette
requirement from>=0.12.0,<0.13.0
to>=0.12.0,<2.0.0
- ISSUE-49 thrown by @aljinovic
Fixed
- Fix
RuntimeError
when subscription connection is reset - ISSUE-50 thrown by @jonypawks - Determines the appropriate
ws
protocol to use depending on current used protocol - ISSUE-20 thrown by @bkcsfi
0.8.5
[0.8.5] -- 2019-09-04
Fixed
- Properly injects the
executor_context
into theaiohttp
subscription handler #25 thrown by @jonypawks
0.8.2
[0.8.2] -- 2019-07-03
Changed
- Update dev dependancies
- Update to tartiflette 0.12.x