@vercel/functions 3.1.0 → 3.1.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.
- package/CHANGELOG.md +9 -0
- package/db-connections/index.js +2 -1
- package/docs/modules/index.md +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @vercel/functions
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Stronger detection of Vercel Runtime to reduce warnings ([#13776](https://github.com/vercel/vercel/pull/13776))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`da6ca6d80915221b7f60cd711e4fada41a828e4c`](https://github.com/vercel/vercel/commit/da6ca6d80915221b7f60cd711e4fada41a828e4c), [`da6ca6d80915221b7f60cd711e4fada41a828e4c`](https://github.com/vercel/vercel/commit/da6ca6d80915221b7f60cd711e4fada41a828e4c), [`da6ca6d80915221b7f60cd711e4fada41a828e4c`](https://github.com/vercel/vercel/commit/da6ca6d80915221b7f60cd711e4fada41a828e4c)]:
|
|
10
|
+
- @vercel/oidc@3.0.1
|
|
11
|
+
|
|
3
12
|
## 3.1.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/db-connections/index.js
CHANGED
|
@@ -61,7 +61,8 @@ let idleTimeoutResolve = () => {
|
|
|
61
61
|
const bootTime = Date.now();
|
|
62
62
|
const maximumDuration = 15 * 60 * 1e3 - 1e3;
|
|
63
63
|
function waitUntilIdleTimeout(dbPool) {
|
|
64
|
-
if (!process.env.VERCEL_URL
|
|
64
|
+
if (!process.env.VERCEL_URL || // This is not set during builds where we don't need to wait for idle connections using the mechanism
|
|
65
|
+
!process.env.VERCEL_REGION) {
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
68
|
if (idleTimeout) {
|
package/docs/modules/index.md
CHANGED
|
@@ -56,7 +56,7 @@ attachDatabasePool(pgPool);
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[packages/functions/src/db-connections/index.ts:
|
|
59
|
+
[packages/functions/src/db-connections/index.ts:225](https://github.com/vercel/vercel/blob/main/packages/functions/src/db-connections/index.ts#L225)
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
@@ -101,7 +101,7 @@ Use attachDatabasePool instead.
|
|
|
101
101
|
|
|
102
102
|
#### Defined in
|
|
103
103
|
|
|
104
|
-
[packages/functions/src/db-connections/index.ts:
|
|
104
|
+
[packages/functions/src/db-connections/index.ts:225](https://github.com/vercel/vercel/blob/main/packages/functions/src/db-connections/index.ts#L225)
|
|
105
105
|
|
|
106
106
|
---
|
|
107
107
|
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"require": "./middleware.js"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
"version": "3.1.
|
|
33
|
+
"version": "3.1.1",
|
|
34
34
|
"repository": {
|
|
35
35
|
"directory": "packages/functions",
|
|
36
36
|
"type": "git",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@vercel/oidc": "3.0.
|
|
75
|
+
"@vercel/oidc": "3.0.1"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"pretest": "pnpm run build:code",
|