@vercel/functions 3.5.0-canary.20260211174907.cdd2da6 → 3.5.0

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,47 @@
1
1
  # @vercel/functions
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c56f851: Upgrade to TypeScript 5.9
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [c56f851]
12
+ - @vercel/oidc@3.4.0
13
+
14
+ ## 3.4.6
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [bf07448]
19
+ - @vercel/oidc@3.3.1
20
+
21
+ ## 3.4.5
22
+
23
+ ### Patch Changes
24
+
25
+ - 56c9f89: add missing prettier dev dependency
26
+ - Updated dependencies [24686d0]
27
+ - Updated dependencies [56c9f89]
28
+ - @vercel/oidc@3.3.0
29
+
30
+ ## 3.4.4
31
+
32
+ ### Patch Changes
33
+
34
+ - Pin `typedoc-plugin-markdown` to `3.15.2` and `typedoc-plugin-mdn-links` to `3.0.3` to match the version used by `@vercel/edge`. The previous `4.1.2` version requires `typedoc@0.26.x` as a peer dependency but was paired with `typedoc@0.24.6`, which caused CI failures whenever pnpm hoisted the 4.x plugin (the plugin calls `app.internationalization.addTranslations`, which does not exist in typedoc 0.24). The choice of which plugin version got hoisted was non-deterministic, which is why the failure appeared as flaky `Build @vercel/<pkg>` steps in CI. ([#16072](https://github.com/vercel/vercel/pull/16072))
35
+
36
+ - Updated dependencies [[`2aa78415831fe89d1b21dd89704706bd1ad5e78d`](https://github.com/vercel/vercel/commit/2aa78415831fe89d1b21dd89704706bd1ad5e78d)]:
37
+ - @vercel/oidc@3.2.1
38
+
39
+ ## 3.4.3
40
+
41
+ ### Patch Changes
42
+
43
+ - [functions] Revert "[functions] URL encode cache tags" ([#15213](https://github.com/vercel/vercel/pull/15213))
44
+
3
45
  ## 3.4.2
4
46
 
5
47
  ### Patch Changes
package/cache/index.js CHANGED
@@ -37,21 +37,6 @@ const defaultKeyHashFunction = (key) => {
37
37
  return (hash >>> 0).toString(16);
38
38
  };
39
39
  const defaultNamespaceSeparator = "$";
40
- function encodeTags(tags) {
41
- return tags.map(encodeURIComponent);
42
- }
43
- function encodeTag(tag) {
44
- return Array.isArray(tag) ? encodeTags(tag) : encodeURIComponent(tag);
45
- }
46
- function encodeOptions(options) {
47
- if (!options) {
48
- return void 0;
49
- }
50
- if (options.tags && options.tags.length > 0) {
51
- return { ...options, tags: encodeTags(options.tags) };
52
- }
53
- return options;
54
- }
55
40
  let inMemoryCacheInstance = null;
56
41
  let buildCacheInstance = null;
57
42
  const getCache = (cacheOptions) => {
@@ -86,17 +71,13 @@ function wrapWithKeyTransformation(resolveCache, makeKey) {
86
71
  return resolveCache().get(makeKey(key));
87
72
  },
88
73
  set: (key, value, options) => {
89
- const encodedOptions = encodeOptions(options);
90
- if (encodedOptions) {
91
- return resolveCache().set(makeKey(key), value, encodedOptions);
92
- }
93
- return resolveCache().set(makeKey(key), value);
74
+ return resolveCache().set(makeKey(key), value, options);
94
75
  },
95
76
  delete: (key) => {
96
77
  return resolveCache().delete(makeKey(key));
97
78
  },
98
79
  expireTag: (tag) => {
99
- return resolveCache().expireTag(encodeTag(tag));
80
+ return resolveCache().expireTag(tag);
100
81
  }
101
82
  };
102
83
  }
@@ -261,7 +261,7 @@ An instance of the Vercel Runtime Cache.
261
261
 
262
262
  #### Defined in
263
263
 
264
- [packages/functions/src/cache/index.ts:55](https://github.com/vercel/vercel/blob/main/packages/functions/src/cache/index.ts#L55)
264
+ [packages/functions/src/cache/index.ts:33](https://github.com/vercel/vercel/blob/main/packages/functions/src/cache/index.ts#L33)
265
265
 
266
266
  ---
267
267
 
@@ -35,7 +35,7 @@ var import_oidc = require("@vercel/oidc");
35
35
  async function loadAwsCredentialProviderWebIdentity() {
36
36
  try {
37
37
  return await import("@aws-sdk/credential-provider-web-identity");
38
- } catch (err) {
38
+ } catch (_err) {
39
39
  throw new Error(
40
40
  "package '@aws-sdk/credential-provider-web-identity' not found"
41
41
  );
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "require": "./middleware.js"
31
31
  }
32
32
  },
33
- "version": "3.5.0-canary.20260211174907.cdd2da6",
33
+ "version": "3.5.0",
34
34
  "repository": {
35
35
  "directory": "packages/functions",
36
36
  "type": "git",
@@ -49,11 +49,11 @@
49
49
  "mariadb": "3.4.5",
50
50
  "mongodb": "6.18.0",
51
51
  "mysql2": "3.14.2",
52
+ "prettier": "3.8.3",
52
53
  "tinyspawn": "1.3.1",
53
54
  "typedoc": "0.24.6",
54
- "typedoc-plugin-markdown": "4.1.2",
55
- "typedoc-plugin-mdn-links": "3.2.3",
56
- "typescript": "4.9.5",
55
+ "typedoc-plugin-markdown": "3.15.2",
56
+ "typedoc-plugin-mdn-links": "3.0.3",
57
57
  "vitest": "2.0.1"
58
58
  },
59
59
  "peerDependencies": {
@@ -72,7 +72,7 @@
72
72
  "access": "public"
73
73
  },
74
74
  "dependencies": {
75
- "@vercel/oidc": "3.3.0-canary.20260211174907.cdd2da6"
75
+ "@vercel/oidc": "3.4.0"
76
76
  },
77
77
  "scripts": {
78
78
  "pretest": "pnpm run build:code",