graphql-anycable 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/graphql/anycable/config.rb +0 -8
- data/lib/graphql/anycable/railtie.rb +8 -0
- data/lib/graphql/anycable/version.rb +1 -1
- 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: 8eacc1ccd4d1c59606ade3479520714b0aab25b2107b84d5147cc47c49a692d7
|
|
4
|
+
data.tar.gz: e1f4d1342578f7f0f0068ed7047758fc1a358441028407d790da2cc09967fc50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5c875158053244e4c7d49e5886b771f9ef0a70180b3ed61e5083698ad00bf2ed2cbc62eeca93effaa35a0d034822b4da3b46504619057d5435e9b398145914a
|
|
7
|
+
data.tar.gz: b1675532c18609d4bae817292e5604e51ac84d6a327ee84618b3463d0b3a7139f777ece788c503a0226d7c7a184b60950827c687c7cc96c2f3b3dc9d100cde96
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 1.1.4 - 2022-07-28
|
|
11
|
+
|
|
12
|
+
- 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))
|
|
13
|
+
|
|
14
|
+
However, now deprecation warning won't be shown if graphql-anycable is used not in Ruby on Rails application.
|
|
15
|
+
|
|
10
16
|
## 1.1.3 - 2022-03-11
|
|
11
17
|
|
|
12
18
|
### 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
|
|
@@ -9,6 +9,14 @@ module GraphQL
|
|
|
9
9
|
path = File.expand_path(__dir__)
|
|
10
10
|
Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f }
|
|
11
11
|
end
|
|
12
|
+
|
|
13
|
+
config.after_initialize do
|
|
14
|
+
if GraphQL::AnyCable.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
|
+
end
|
|
12
20
|
end
|
|
13
21
|
end
|
|
14
22
|
end
|
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.4
|
|
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-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: anycable
|