Skip to content

Releases: tartiflette/tartiflette-aiohttp

1.4.1 - 2021-11-15

15 Nov 10:12
Compare
Choose a tag to compare

[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

1.4.0

15 Dec 07:26
b1f95bb
Compare
Choose a tag to compare

[1.4.0] - 2020-12-14

Added

  • ISSUE-123 -
    Add an optional subscription_keep_alive_interval parameter to the
    register_graphql_handlers function. When provided, a keep alive message will
    be send to the client each subscription_keep_alive_interval seconds.

1.3.1

24 Sep 14:07
a41c660
Compare
Choose a tag to compare

[1.3.1] - 2020-09-24

Changed

  • Test platform:
    • pytest to 6.0.2
    • pytest-cov to 2.10.1
    • pylint to 2.6.0
    • isort to 5.5.3
    • black to 20.8b1
    • xenon to 0.7.1

Fixed

  • ISSUE-112 - Fix async context generator with subscription.

1.3.0

01 Aug 19:56
b21e710
Compare
Choose a tag to compare

[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

1.2.0

29 Jan 16:03
1e53380
Compare
Choose a tag to compare

[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

15 Oct 08:00
fc58d0a
Compare
Choose a tag to compare

[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

03 Oct 06:56
c76fda1
Compare
Choose a tag to compare

[1.1.0] -- 2019-10-02

Added

  • ISSUE-55 - Add
    a new optional context_factory parameter to the register_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

12 Sep 15:29
7c47d50
Compare
Choose a tag to compare

[1.0.0] -- 2019-09-12

Changed

  • Bump subscriptions-transport-ws from 0.7.0 to 0.8.3
  • Bump graphiql from 0.12.0 to 0.14.2
  • Update aiohttp requirement from >=3.5.4,<3.6.0 to >=3.5.4,<3.7.0
  • Bump pytest from 5.1.1 to 5.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

05 Sep 07:35
85d349d
Compare
Choose a tag to compare

[0.8.5] -- 2019-09-04

Fixed

  • Properly injects the executor_context into the aiohttp subscription handler #25 thrown by @jonypawks

0.8.2

04 Jul 08:18
4068332
Compare
Choose a tag to compare

[0.8.2] -- 2019-07-03

Changed

  • Update dev dependancies
  • Update to tartiflette 0.12.x