@netlify/plugin-nextjs 5.2.0 → 5.2.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/dist/build/content/prerendered.js +10 -7
- package/dist/build/image-cdn.js +14 -25
- package/dist/esm-chunks/{package-ZBRSUKN7.js → package-SCUAWNXR.js} +21 -21
- package/dist/run/handlers/tracing.js +27022 -10456
- package/dist/run/next.cjs +55 -86
- package/edge-runtime/lib/response.ts +3 -2
- package/package.json +1 -1
|
@@ -78,6 +78,7 @@ var Queue = class {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// node_modules/p-limit/index.js
|
|
81
|
+
import { AsyncResource } from "async_hooks";
|
|
81
82
|
function pLimit(concurrency) {
|
|
82
83
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
83
84
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
@@ -90,9 +91,9 @@ function pLimit(concurrency) {
|
|
|
90
91
|
queue.dequeue()();
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
|
-
const run = async (
|
|
94
|
+
const run = async (function_, resolve, arguments_) => {
|
|
94
95
|
activeCount++;
|
|
95
|
-
const result = (async () =>
|
|
96
|
+
const result = (async () => function_(...arguments_))();
|
|
96
97
|
resolve(result);
|
|
97
98
|
try {
|
|
98
99
|
await result;
|
|
@@ -100,8 +101,10 @@ function pLimit(concurrency) {
|
|
|
100
101
|
}
|
|
101
102
|
next();
|
|
102
103
|
};
|
|
103
|
-
const enqueue = (
|
|
104
|
-
queue.enqueue(
|
|
104
|
+
const enqueue = (function_, resolve, arguments_) => {
|
|
105
|
+
queue.enqueue(
|
|
106
|
+
AsyncResource.bind(run.bind(void 0, function_, resolve, arguments_))
|
|
107
|
+
);
|
|
105
108
|
(async () => {
|
|
106
109
|
await Promise.resolve();
|
|
107
110
|
if (activeCount < concurrency && queue.size > 0) {
|
|
@@ -109,8 +112,8 @@ function pLimit(concurrency) {
|
|
|
109
112
|
}
|
|
110
113
|
})();
|
|
111
114
|
};
|
|
112
|
-
const generator = (
|
|
113
|
-
enqueue(
|
|
115
|
+
const generator = (function_, ...arguments_) => new Promise((resolve) => {
|
|
116
|
+
enqueue(function_, resolve, arguments_);
|
|
114
117
|
});
|
|
115
118
|
Object.defineProperties(generator, {
|
|
116
119
|
activeCount: {
|
|
@@ -120,7 +123,7 @@ function pLimit(concurrency) {
|
|
|
120
123
|
get: () => queue.size
|
|
121
124
|
},
|
|
122
125
|
clearQueue: {
|
|
123
|
-
value
|
|
126
|
+
value() {
|
|
124
127
|
queue.clear();
|
|
125
128
|
}
|
|
126
129
|
}
|
package/dist/build/image-cdn.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
|
-
__require,
|
|
10
9
|
__toESM
|
|
11
10
|
} from "../esm-chunks/chunk-5JVNISGM.js";
|
|
12
11
|
|
|
@@ -223,20 +222,21 @@ var require_utils = __commonJS({
|
|
|
223
222
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
224
223
|
exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
225
224
|
exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
225
|
+
exports.isWindows = () => {
|
|
226
|
+
if (typeof navigator !== "undefined" && navigator.platform) {
|
|
227
|
+
const platform = navigator.platform.toLowerCase();
|
|
228
|
+
return platform === "win32" || platform === "windows";
|
|
229
|
+
}
|
|
230
|
+
if (typeof process !== "undefined" && process.platform) {
|
|
231
|
+
return process.platform === "win32";
|
|
232
|
+
}
|
|
233
|
+
return false;
|
|
234
|
+
};
|
|
226
235
|
exports.removeBackslashes = (str) => {
|
|
227
236
|
return str.replace(REGEX_REMOVE_BACKSLASH, (match) => {
|
|
228
237
|
return match === "\\" ? "" : match;
|
|
229
238
|
});
|
|
230
239
|
};
|
|
231
|
-
exports.supportsLookbehinds = () => {
|
|
232
|
-
if (typeof process !== "undefined") {
|
|
233
|
-
const segs = process.version.slice(1).split(".").map(Number);
|
|
234
|
-
if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
|
|
235
|
-
return true;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
return false;
|
|
239
|
-
};
|
|
240
240
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
241
241
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
242
242
|
if (idx === -1)
|
|
@@ -753,8 +753,8 @@ var require_parse = __commonJS({
|
|
|
753
753
|
if (tok.value || tok.output)
|
|
754
754
|
append(tok);
|
|
755
755
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
756
|
+
prev.output = (prev.output || prev.value) + tok.value;
|
|
756
757
|
prev.value += tok.value;
|
|
757
|
-
prev.output = (prev.output || "") + tok.value;
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
760
|
tok.prev = prev;
|
|
@@ -1091,9 +1091,6 @@ var require_parse = __commonJS({
|
|
|
1091
1091
|
if (prev && prev.type === "paren") {
|
|
1092
1092
|
const next = peek();
|
|
1093
1093
|
let output = value;
|
|
1094
|
-
if (next === "<" && !utils.supportsLookbehinds()) {
|
|
1095
|
-
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
1096
|
-
}
|
|
1097
1094
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
|
|
1098
1095
|
output = `\\${value}`;
|
|
1099
1096
|
}
|
|
@@ -1532,24 +1529,16 @@ var require_picomatch = __commonJS({
|
|
|
1532
1529
|
var require_picomatch2 = __commonJS({
|
|
1533
1530
|
"node_modules/picomatch/index.js"(exports, module) {
|
|
1534
1531
|
"use strict";
|
|
1535
|
-
var os = __require("os");
|
|
1536
1532
|
var pico = require_picomatch();
|
|
1537
|
-
var
|
|
1533
|
+
var utils = require_utils();
|
|
1538
1534
|
function picomatch(glob, options, returnState = false) {
|
|
1539
1535
|
if (options && (options.windows === null || options.windows === void 0)) {
|
|
1540
|
-
options = { ...options, windows: isWindows };
|
|
1536
|
+
options = { ...options, windows: utils.isWindows() };
|
|
1541
1537
|
}
|
|
1542
1538
|
return pico(glob, options, returnState);
|
|
1543
1539
|
}
|
|
1540
|
+
Object.assign(picomatch, pico);
|
|
1544
1541
|
module.exports = picomatch;
|
|
1545
|
-
module.exports.test = pico.test;
|
|
1546
|
-
module.exports.matchBase = pico.matchBase;
|
|
1547
|
-
module.exports.isMatch = pico.isMatch;
|
|
1548
|
-
module.exports.parse = pico.parse;
|
|
1549
|
-
module.exports.scan = pico.scan;
|
|
1550
|
-
module.exports.compileRe = pico.compileRe;
|
|
1551
|
-
module.exports.toRegex = pico.toRegex;
|
|
1552
|
-
module.exports.makeRe = pico.makeRe;
|
|
1553
1542
|
}
|
|
1554
1543
|
});
|
|
1555
1544
|
|
|
@@ -8,7 +8,7 @@ import "./chunk-5JVNISGM.js";
|
|
|
8
8
|
|
|
9
9
|
// package.json
|
|
10
10
|
var name = "@netlify/plugin-nextjs";
|
|
11
|
-
var version = "5.2.
|
|
11
|
+
var version = "5.2.1";
|
|
12
12
|
var description = "Run Next.js seamlessly on Netlify";
|
|
13
13
|
var main = "./dist/index.js";
|
|
14
14
|
var type = "module";
|
|
@@ -58,21 +58,21 @@ var homepage = "https://github.com/netlify/next-runtime-minimal#readme";
|
|
|
58
58
|
var devDependencies = {
|
|
59
59
|
"@fastly/http-compute-js": "1.1.4",
|
|
60
60
|
"@netlify/blobs": "^7.3.0",
|
|
61
|
-
"@netlify/build": "^29.41.
|
|
61
|
+
"@netlify/build": "^29.41.2",
|
|
62
62
|
"@netlify/edge-bundler": "^12.0.0",
|
|
63
|
-
"@netlify/edge-functions": "^2.
|
|
63
|
+
"@netlify/edge-functions": "^2.6.0",
|
|
64
64
|
"@netlify/eslint-config-node": "^7.0.1",
|
|
65
65
|
"@netlify/functions": "^2.5.1",
|
|
66
|
-
"@netlify/serverless-functions-api": "^1.
|
|
67
|
-
"@netlify/zip-it-and-ship-it": "^9.32.
|
|
66
|
+
"@netlify/serverless-functions-api": "^1.18.0",
|
|
67
|
+
"@netlify/zip-it-and-ship-it": "^9.32.1",
|
|
68
68
|
"@opentelemetry/api": "^1.8.0",
|
|
69
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
70
|
-
"@opentelemetry/resources": "^1.
|
|
71
|
-
"@opentelemetry/sdk-node": "^0.
|
|
72
|
-
"@opentelemetry/sdk-trace-node": "^1.
|
|
73
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
74
|
-
"@playwright/test": "^1.
|
|
75
|
-
"@types/node": "^20.
|
|
69
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.51.0",
|
|
70
|
+
"@opentelemetry/resources": "^1.24.0",
|
|
71
|
+
"@opentelemetry/sdk-node": "^0.51.0",
|
|
72
|
+
"@opentelemetry/sdk-trace-node": "^1.24.0",
|
|
73
|
+
"@opentelemetry/semantic-conventions": "^1.24.0",
|
|
74
|
+
"@playwright/test": "^1.43.1",
|
|
75
|
+
"@types/node": "^20.12.7",
|
|
76
76
|
"@types/picomatch": "^2.3.3",
|
|
77
77
|
"@types/uuid": "^9.0.6",
|
|
78
78
|
"@vercel/nft": "^0.26.0",
|
|
@@ -81,24 +81,24 @@ var devDependencies = {
|
|
|
81
81
|
esbuild: "^0.20.0",
|
|
82
82
|
execa: "^8.0.1",
|
|
83
83
|
"fast-glob": "^3.3.2",
|
|
84
|
-
"fs-monkey": "^1.0.
|
|
85
|
-
"get-port": "^7.
|
|
86
|
-
"lambda-local": "^2.
|
|
87
|
-
memfs: "^4.
|
|
84
|
+
"fs-monkey": "^1.0.6",
|
|
85
|
+
"get-port": "^7.1.0",
|
|
86
|
+
"lambda-local": "^2.2.0",
|
|
87
|
+
memfs: "^4.9.2",
|
|
88
88
|
"mock-require": "^3.0.3",
|
|
89
89
|
msw: "^2.0.7",
|
|
90
90
|
next: "^14.0.4",
|
|
91
91
|
os: "^0.1.2",
|
|
92
92
|
outdent: "^0.8.0",
|
|
93
|
-
"p-limit": "^
|
|
93
|
+
"p-limit": "^5.0.0",
|
|
94
94
|
"path-to-regexp": "^6.2.1",
|
|
95
|
-
picomatch: "^
|
|
95
|
+
picomatch: "^4.0.2",
|
|
96
96
|
prettier: "^3.2.5",
|
|
97
97
|
semver: "^7.6.0",
|
|
98
|
-
typescript: "^5.
|
|
99
|
-
unionfs: "^4.5.
|
|
98
|
+
typescript: "^5.4.5",
|
|
99
|
+
unionfs: "^4.5.4",
|
|
100
100
|
uuid: "^9.0.1",
|
|
101
|
-
vitest: "^1.
|
|
101
|
+
vitest: "^1.5.3"
|
|
102
102
|
};
|
|
103
103
|
var clean_package = {
|
|
104
104
|
indent: 2,
|