graphql-anycable 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/graphql/anycable/config.rb +0 -8
- data/lib/graphql/anycable/version.rb +1 -1
- data/lib/graphql-anycable.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ca5a3b41eb78aa4576b57f089f7f10ef2d8a86b5d1dfc8fe0742074b7c65f6a
|
4
|
+
data.tar.gz: 7adef9ef6f064e3e38e70ba785f1deaba9af93e1149850743dd120e7bd079e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f0e4124e5b3c5eba6bd1996fa84a743e4c850553189a71661655e327877c360ee511bda4426d72e5bcbb940cb6625de2e445a427b3d1ff6fc44e07aeacc3af
|
7
|
+
data.tar.gz: 6375ad885634e2f5f50ef60d7a5bc36e64d295143f704e817bdf8234f7bd6ec343677824bd5442c7a3e91af97a6c4a297a50f4ce93261e28d26ce9bf7726a6a2
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## Unreleased
|
9
9
|
|
10
|
+
## 1.1.5 - 2022-10-26
|
11
|
+
|
12
|
+
- Fix that deprecation warning about `config.use_client_provided_uniq_id` again, so it can be issued outside of Rails. [@gsamokovarov] ([#27](https://github.com/anycable/graphql-anycable/pull/27))
|
13
|
+
|
14
|
+
## 1.1.4 - 2022-07-28
|
15
|
+
|
16
|
+
- Fix deprecation warning about using client-side channel ids shown even if deprecated functionality was disabled in application code (not via config file or environment variable). [@gsamokovarov] ([#26](https://github.com/anycable/graphql-anycable/pull/26))
|
17
|
+
|
18
|
+
However, now deprecation warning won't be shown if graphql-anycable is used not in Ruby on Rails application.
|
19
|
+
|
10
20
|
## 1.1.3 - 2022-03-11
|
11
21
|
|
12
22
|
### Changed
|
@@ -12,14 +12,6 @@ module GraphQL
|
|
12
12
|
attr_config use_redis_object_on_cleanup: true
|
13
13
|
attr_config handle_legacy_subscriptions: false
|
14
14
|
attr_config use_client_provided_uniq_id: true
|
15
|
-
|
16
|
-
on_load do
|
17
|
-
next unless use_client_provided_uniq_id?
|
18
|
-
|
19
|
-
warn "[Deprecated] Using client provided channel uniq IDs could lead to unexpected behaviour, " \
|
20
|
-
" please, set GraphQL::AnyCable.config.use_client_provided_uniq_id = false or GRAPHQL_ANYCABLE_USE_CLIENT_PROVIDED_UNIQ_ID=false, " \
|
21
|
-
" and update the `#unsubscribed` callback code according to the latest docs."
|
22
|
-
end
|
23
15
|
end
|
24
16
|
end
|
25
17
|
end
|
data/lib/graphql-anycable.rb
CHANGED
@@ -11,6 +11,12 @@ require_relative "graphql/subscriptions/anycable_subscriptions"
|
|
11
11
|
module GraphQL
|
12
12
|
module AnyCable
|
13
13
|
def self.use(schema, **options)
|
14
|
+
if config.use_client_provided_uniq_id?
|
15
|
+
warn "[Deprecated] Using client provided channel uniq IDs could lead to unexpected behaviour, " \
|
16
|
+
"please, set GraphQL::AnyCable.config.use_client_provided_uniq_id = false or GRAPHQL_ANYCABLE_USE_CLIENT_PROVIDED_UNIQ_ID=false, " \
|
17
|
+
"and update the `#unsubscribed` callback code according to the latest docs."
|
18
|
+
end
|
19
|
+
|
14
20
|
schema.use GraphQL::Subscriptions::AnyCableSubscriptions, **options
|
15
21
|
end
|
16
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-anycable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anycable
|