graphiti 1.13.0 → 1.13.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b0c2234b78e4616fea8ab95f8b6f044d18aa4feafb103cb4eb7d0fed35f8dd6
4
- data.tar.gz: 2b276253a3b5b802dbf143ccd6fdc7d17287ee542c60f352ab939a33f16da233
3
+ metadata.gz: '00079e4b8294e1599af72b809255cd45241c9ce730b52da2bd2cb0f43ca1896d'
4
+ data.tar.gz: bd94a8f30ac9c6ba15faee254c86399d08b43ff0c7583b667100a6d07a3f6428
5
5
  SHA512:
6
- metadata.gz: 01ac700f8481142c1842488db436df2bedc508acabf3bde7fcd4d9e0e1a9882ab0df8c23ac5473b68a8ab1717b6041a34fde6b18125d269ccad88f23d8a3f3aa
7
- data.tar.gz: be85a9c17b7b1df85c5ff755b4aebfeb6bd814e4a88a87b926f05056d776f5b77ec643ab1c8800e155cf541149c30d9c343471ef9427b0dcc69ae6c2e79b3295
6
+ metadata.gz: 9691a12e9e2f38d3f3efa1988166d8d721fbda285a4a5b66e9bd532817029d745a4787cd6b62260e800a8de213b86ed4ac0ddf67e92bfa0db4fa22fa6c25d402
7
+ data.tar.gz: fb40fdeb2791635ec48d512a0eeae788bfaf6472c8f9de23894d166610c702acb3bad6728b69647b4934ab2bb2ac814ac1dd767d4aaccb240e6d5981c18414bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.13.1](https://github.com/graphiti-api/graphiti/compare/v1.13.0...v1.13.1) (2026-08-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * accept a single value for array filters ([#517](https://github.com/graphiti-api/graphiti/issues/517)) ([23f3e80](https://github.com/graphiti-api/graphiti/commit/23f3e80b583b0bf0843d8bb9334970ae56d83299))
9
+ * typecast null values in filter lists ([#515](https://github.com/graphiti-api/graphiti/issues/515)) ([3dcf4c8](https://github.com/graphiti-api/graphiti/commit/3dcf4c868abb12eb6b6d59cd0814b227d4838ece))
10
+
3
11
  # [1.13.0](https://github.com/graphiti-api/graphiti/compare/v1.12.2...v1.13.0) (2026-07-30)
4
12
 
5
13
 
@@ -209,7 +209,9 @@ module Graphiti
209
209
  end
210
210
 
211
211
  def parse_string_null(filter, value)
212
- return if value == "null" && filter[:allow_nil]
212
+ return value unless filter[:allow_nil]
213
+ return value.map { |item| item == "null" ? nil : item } if value.is_a?(Array)
214
+ return if value == "null"
213
215
 
214
216
  value
215
217
  end
@@ -82,6 +82,10 @@ module Graphiti
82
82
  Dry::Types["params.hash"][input]
83
83
  }
84
84
 
85
+ ParamArray = Dry::Types["strict.array"].constructor { |input|
86
+ input.is_a?(String) ? [input] : input
87
+ }
88
+
85
89
  REQUIRED_KEYS = [:params, :read, :write, :kind, :description]
86
90
 
87
91
  def self.map
@@ -193,7 +197,7 @@ module Graphiti
193
197
 
194
198
  arrays[:"array_of_#{name.to_s.pluralize}"] = {
195
199
  canonical_name: name,
196
- params: Dry::Types["strict.array"].of(map[:params]),
200
+ params: ParamArray.of(map[:params]),
197
201
  read: Dry::Types["strict.array"].of(map[:read]),
198
202
  test: Dry::Types["strict.array"].of(map[:test]),
199
203
  write: Dry::Types["strict.array"].of(map[:write]),
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.13.0"
2
+ VERSION = "1.13.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-30 00:00:00.000000000 Z
11
+ date: 2026-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable