graphql-schema_comparator 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ec082ccd9621ae89f5a9ed29c027cbff4a785a3bac913bd5000b3e1a914f43d
4
- data.tar.gz: f6924765894399193664e370a2464327c20e1ed0c9f35d252699893c75706736
3
+ metadata.gz: 9b44c88f5ca678f250a1f7a90021d7ae5cae95a899b524ed8551878329de7e53
4
+ data.tar.gz: d49d50b3d029030a09170773db81b493f7ffb781006238129bfb17bcdf625301
5
5
  SHA512:
6
- metadata.gz: 326440a4c85adbadc3c0fafb262653e88226a55cec0a1d336a750270925a334bdfbcbfeec62e36dfa5f08d4179e8a2304622fc0e34520695de1c67ee20833a0c
7
- data.tar.gz: '069cf716049a9746cb88825734d968112ed512312c12d69da39a6d019f1257d9c74357cae5d7756bdfc5c9f8bea2f2ab8ec0bfbe21664b2e7e1e7c24d046b37e'
6
+ metadata.gz: a0d2435ef322c736c666d634e735720313d2befc4768dcdfb744209fce67d43bcc523c09c051c581de456fdcc82ff687dd072102088704f52a694ca13076052e
7
+ data.tar.gz: 8850e901ebe67bbc4400fb20617ab59cf33ddaf45469008a3cc7bbc27609fbef488747ffb4b6db95af4f0c4572f03fbf43fba9cd5d38eb4adef896ca58624256
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2 (September 15 2022)
4
+
5
+ ### Bug Fix
6
+
7
+ - Fix field argument removed message (#51)
8
+ - Fix safe type change comparison (#53)
9
+
3
10
  ## 1.1.1 (January 7 2022)
4
11
 
5
12
  ### Bug Fix
@@ -4,7 +4,7 @@ module GraphQL
4
4
  module SafeTypeChange
5
5
  def safe_change_for_field?(old_type, new_type)
6
6
  if !old_type.kind.wraps? && !new_type.kind.wraps?
7
- old_type == new_type
7
+ old_type.graphql_name == new_type.graphql_name
8
8
  elsif new_type.kind.non_null?
9
9
  of_type = old_type.kind.non_null? ? old_type.of_type : old_type
10
10
  safe_change_for_field?(of_type, new_type.of_type)
@@ -18,7 +18,7 @@ module GraphQL
18
18
 
19
19
  def safe_change_for_input_value?(old_type, new_type)
20
20
  if !old_type.kind.wraps? && !new_type.kind.wraps?
21
- old_type == new_type
21
+ old_type.graphql_name == new_type.graphql_name
22
22
  elsif old_type.kind.list? && new_type.kind.list?
23
23
  safe_change_for_input_value?(old_type.of_type, new_type.of_type)
24
24
  elsif old_type.kind.non_null?
@@ -169,7 +169,7 @@ module GraphQL
169
169
  end
170
170
 
171
171
  def message
172
- "Argument `#{argument.graphql_name}: #{argument.type.graphql_name}` was removed from field `#{object_type.graphql_name}.#{field.graphql_name}`"
172
+ "Argument `#{argument.graphql_name}: #{argument.type.to_type_signature}` was removed from field `#{object_type.graphql_name}.#{field.graphql_name}`"
173
173
  end
174
174
 
175
175
  def path
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module SchemaComparator
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-schema_comparator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Giroux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql