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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/graphiti/scoping/filter.rb +3 -1
- data/lib/graphiti/types.rb +5 -1
- data/lib/graphiti/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: '00079e4b8294e1599af72b809255cd45241c9ce730b52da2bd2cb0f43ca1896d'
|
|
4
|
+
data.tar.gz: bd94a8f30ac9c6ba15faee254c86399d08b43ff0c7583b667100a6d07a3f6428
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
data/lib/graphiti/types.rb
CHANGED
|
@@ -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:
|
|
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]),
|
data/lib/graphiti/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jsonapi-serializable
|