@vercel/functions 2.2.3 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @vercel/functions
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Only warn runtime cache unavailable once ([#13560](https://github.com/vercel/vercel/pull/13560))
8
+
9
+ - Reverting support for `preferredRegion` ([#13566](https://github.com/vercel/vercel/pull/13566))
10
+
3
11
  ## 2.2.3
4
12
 
5
13
  ### Patch Changes
package/cache/index.js CHANGED
@@ -81,6 +81,7 @@ function wrapWithKeyTransformation(resolveCache, makeKey) {
81
81
  }
82
82
  };
83
83
  }
84
+ let warnedCacheUnavailable = false;
84
85
  function getCacheImplementation(debug) {
85
86
  if (!inMemoryCacheInstance) {
86
87
  inMemoryCacheInstance = new import_in_memory_cache.InMemoryCache();
@@ -97,9 +98,12 @@ function getCacheImplementation(debug) {
97
98
  });
98
99
  }
99
100
  if (!RUNTIME_CACHE_ENDPOINT || !RUNTIME_CACHE_HEADERS) {
100
- console.warn(
101
- "Runtime Cache unavailable in this environment. Falling back to in-memory cache."
102
- );
101
+ if (!warnedCacheUnavailable) {
102
+ console.warn(
103
+ "Runtime Cache unavailable in this environment. Falling back to in-memory cache."
104
+ );
105
+ warnedCacheUnavailable = true;
106
+ }
103
107
  return inMemoryCacheInstance;
104
108
  }
105
109
  if (!buildCacheInstance) {
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "require": "./middleware.js"
27
27
  }
28
28
  },
29
- "version": "2.2.3",
29
+ "version": "2.2.4",
30
30
  "repository": {
31
31
  "directory": "packages/functions",
32
32
  "type": "git",