sanity 5.30.1-next.2 → 5.30.1-next.4

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.
@@ -1,4 +1,4 @@
1
- var version = "5.30.1-next.2+edcca08c0f";
1
+ var version = "5.30.1-next.4+a18294a4c0";
2
2
  let buildVersion;
3
3
  try {
4
4
  buildVersion = process.env.PKG_BUILD_VERSION;
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "5.30.1-next.2+edcca08c0f";
10
+ "5.30.1-next.4+a18294a4c0";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -38593,13 +38593,17 @@ function resolveAssetPolicyLoader(client, libraryId) {
38593
38593
  const existingLoader = loaders.get(libraryId);
38594
38594
  if (existingLoader)
38595
38595
  return existingLoader;
38596
- const mediaLibraryClient = createMediaLibraryClient(client, libraryId), loader = new DataLoader((assetIds) => fetchAccessPoliciesBatch({
38597
- assetIds,
38598
- client: mediaLibraryClient,
38599
- libraryId
38600
- }), {
38601
- cache: !1
38602
- });
38596
+ const mediaLibraryClient = createMediaLibraryClient(client, libraryId), loader = new DataLoader(
38597
+ (assetIds) => fetchAccessPoliciesBatch({
38598
+ assetIds,
38599
+ client: mediaLibraryClient,
38600
+ libraryId
38601
+ }),
38602
+ {
38603
+ cache: !1
38604
+ }
38605
+ // only batch per tick, rely on QuickLRU for caching
38606
+ );
38603
38607
  return loaders.set(libraryId, loader), loader;
38604
38608
  }
38605
38609
  function enqueueAssetAccessPolicyFetch(assetRef, client) {