graphql-anycable 1.1.4 → 1.1.5
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 +4 -0
- data/lib/graphql/anycable/railtie.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,10 @@ 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
|
+
|
|
10
14
|
## 1.1.4 - 2022-07-28
|
|
11
15
|
|
|
12
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))
|
|
@@ -9,14 +9,6 @@ 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
|
|
20
12
|
end
|
|
21
13
|
end
|
|
22
14
|
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
|