graphiti 2.2.1 → 2.2.2

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: 30c83060dec6dbefde24170e461c2d2a82447ef77f050acf78cfd3a9dd46b1e6
4
- data.tar.gz: 16bb19c4b54461098992d5a318e812bcf74f1b6a2cb49683a43d61f888599426
3
+ metadata.gz: 185e66f29378e7e50a478f273bd0c3d2b7cf8116aa3d61668d05d34761ab8d27
4
+ data.tar.gz: 1a7286d5912d8133adb83a2c8bb330cd6876d088a88aab8abc01cee08dfbb251
5
5
  SHA512:
6
- metadata.gz: df3aa94529b3e261db005cb09533a3edb838c26187daac12863dcc2d71e2663b43f2784a58bace69c60781e97de42dd2a087b4a87159559cd9ba64d7b61cb055
7
- data.tar.gz: bce4cb95504b17925469722ec53669c9ac0126ebc1b507b00ea65829f7b9ce3294f9123b6558fa7cd9f1aaaadedca7c1de4720a5014da20a52136c2ab6c7e1a6
6
+ metadata.gz: 43fc294150c26b1b09ca78290dc864171538f5d988b736d5cbd5db4c77b9979d0a3077ef738452a783b4d9a7668331e7f32a67a1fe657c6a858bc0a77e7c3ae4
7
+ data.tar.gz: 0a7b8ca5bc7ffba5365a1b74c2bc195b6ec56349344eb0ca44445580b0ef9db30654fc030ab135684024d872488d6652bd214d6a67619182f76fb5d4b5038732
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [2.2.2](https://github.com/graphiti-api/graphiti/compare/v2.2.1...v2.2.2) (2026-10-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * nested includes dropped by sideload_allowlist ([#549](https://github.com/graphiti-api/graphiti/issues/549)) ([96b05df](https://github.com/graphiti-api/graphiti/commit/96b05df9b4514d946c639ed157b08e99e37b3ac0))
9
+ * render fresh included records after an update ([#552](https://github.com/graphiti-api/graphiti/issues/552)) ([aba46ac](https://github.com/graphiti-api/graphiti/commit/aba46acf22414fbc3922e579b44ebdcde6f4c9b4))
10
+
3
11
  ## [2.2.1](https://github.com/graphiti-api/graphiti/compare/v2.2.0...v2.2.1) (2026-10-17)
4
12
 
5
13
 
@@ -289,7 +289,7 @@ module Graphiti
289
289
  allowlist = allowlist[@resource.current_action] if allowlist
290
290
  end
291
291
 
292
- scrubbed = allowlist ? Util::IncludeParams.scrub(requested, allowlist) : requested
292
+ scrubbed = (top_level? && allowlist) ? Util::IncludeParams.scrub(requested, allowlist) : requested
293
293
 
294
294
  scrubbed.filter do |key, value|
295
295
  sideload = @resource.class.sideload(key)
@@ -211,6 +211,7 @@ module Graphiti
211
211
  # adapters will cause N+1 validation calls, so lets explicitly
212
212
  # switch to a lookup context.
213
213
  Graphiti.with_context(Graphiti.context[:object], :show) do
214
+ @query.entity_map.clear
214
215
  @scope.resolve_sideloads([@data])
215
216
  end
216
217
  end
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond