Skip to content

Commit

Permalink
New version 0.2.1 -> 0.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
prokher committed Aug 16, 2019
1 parent 821c506 commit 0500de0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@

# Changelog

## [0.3.0] - 2019-08-17

### Added

- Support for GraphQL middleware, look at the
`GraphqlWsConsumer.middleware` setting.
- Example reworked to illustrate how to authenticate clients.

### Changed

- Channels `scope` is now stored in `info.context.scope` as `dict`.
(Previously `info.context` was a copy of `scope` wrapped into the
`types.SimpleNamespace`). The thing is the GraphQL `info.context` and
Channels `scope` are different things. The `info.context` is a storage
for a single GraphQL operation, while `scope` is a storage for the
whole WebSocket connection. For example now use
`info.context.scope["user"]` to get access to the Django user model.

## [0.2.1] - 2019-08-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

[tool.poetry]
name = "django-channels-graphql-ws"
version = "0.2.1"
version = "0.3.0"
description = """Django Channels based WebSocket GraphQL server with \
Graphene-like subscriptions"""
authors = ["Alexander A. Prokhorov <[email protected]>"]
Expand Down

0 comments on commit 0500de0

Please sign in to comment.