Skip to content

Commit

Permalink
Release 🍓 0.159.0
Browse files Browse the repository at this point in the history
  • Loading branch information
botberry committed Feb 22, 2023
1 parent e3af31a commit dfde19a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
CHANGELOG
=========

0.159.0 - 2023-02-22
--------------------

This release changes how extension hooks are defined. The new style hooks are
more flexible and allow to run code before and after the execution.

The old style hooks are still supported but will be removed in future releases.

**Before:**

```python
def on_executing_start(self): # Called before the execution start
...


def on_executing_end(self): # Called after the execution ends
...
```

**After**

```python
def on_execute(self):
# This part is called before the execution start
yield
# This part is called after the execution ends
```

Contributed by [ניר](https://github.com/nrbnlulu) via [PR #2428](https://github.com/strawberry-graphql/strawberry/pull/2428/)


0.158.2 - 2023-02-21
--------------------

Expand Down
26 changes: 0 additions & 26 deletions RELEASE.md

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "strawberry-graphql"
packages = [ { include = "strawberry" } ]
version = "0.158.2"
version = "0.159.0"
description = "A library for creating GraphQL APIs"
authors = ["Patrick Arminio <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit dfde19a

Please sign in to comment.