netlify-cli 27.16.0 → 27.16.2

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.
@@ -57,6 +57,7 @@ export const debugFetch = async (url, init) => {
57
57
  };
58
58
  export const fetchHistoricalLogs = async ({ baseUrl, accessToken, from, to, deployId, }) => {
59
59
  const entries = [];
60
+ const requestedCursors = new Set();
60
61
  let cursor;
61
62
  do {
62
63
  const parsedUrl = new URL(baseUrl);
@@ -79,7 +80,13 @@ export const fetchHistoricalLogs = async ({ baseUrl, accessToken, from, to, depl
79
80
  }
80
81
  const body = (await response.json());
81
82
  entries.push(...(body.logs ?? []));
82
- cursor = body.pagination?.next;
83
+ cursor = body.next;
84
+ if (cursor) {
85
+ if (requestedCursors.has(cursor)) {
86
+ throw new Error(`Failed to fetch logs: pagination repeated cursor ${cursor}`);
87
+ }
88
+ requestedCursors.add(cursor);
89
+ }
83
90
  } while (cursor);
84
91
  return entries;
85
92
  };
@@ -258,7 +258,9 @@ const runHistoricalMode = async ({ sources, client, siteId, accessToken, deployI
258
258
  to,
259
259
  deployId,
260
260
  });
261
- allEntries.push(...entries);
261
+ for (const entry of entries) {
262
+ allEntries.push(entry);
263
+ }
262
264
  }
263
265
  }
264
266
  if (sources.includes('edge-functions')) {
@@ -270,7 +272,9 @@ const runHistoricalMode = async ({ sources, client, siteId, accessToken, deployI
270
272
  deployId,
271
273
  filterNames: edgeFunctionNames,
272
274
  });
273
- allEntries.push(...entries);
275
+ for (const entry of entries) {
276
+ allEntries.push(entry);
277
+ }
274
278
  }
275
279
  let serverLogsTruncated = false;
276
280
  if (sources.includes('server')) {
@@ -15,6 +15,6 @@
15
15
  "test": "echo \"Error: no test specified\" && exit 1"
16
16
  },
17
17
  "dependencies": {
18
- "@netlify/functions": "^6.0.2"
18
+ "@netlify/functions": "^6.0.3"
19
19
  }
20
20
  }
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@netlify/database": "latest",
13
- "@netlify/functions": "^6.0.2",
13
+ "@netlify/functions": "^6.0.3",
14
14
  "@types/node": "^22.0.0",
15
15
  "typescript": "^4.5.5"
16
16
  }
@@ -41,12 +41,12 @@
41
41
  }
42
42
  },
43
43
  "node_modules/@netlify/functions": {
44
- "version": "6.0.2",
45
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.2.tgz",
46
- "integrity": "sha512-JqbPgAOt2GAwzCEitdEWAHOn6AkZ0Rna401wdAyuDIBiDv9M03b3Cu5mGH7/eHOmIXfZIcN1pG35flHjfu6asQ==",
44
+ "version": "6.0.3",
45
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
46
+ "integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
47
47
  "license": "MIT",
48
48
  "dependencies": {
49
- "@netlify/types": "3.2.0"
49
+ "@netlify/types": "3.3.0"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22.12.0"
@@ -62,9 +62,9 @@
62
62
  }
63
63
  },
64
64
  "node_modules/@netlify/types": {
65
- "version": "3.2.0",
66
- "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.2.0.tgz",
67
- "integrity": "sha512-PVvY1EEN9i2Er0LQoiyNG7i/BnwnttLuZqIkBnhL2Jrcj3P5N/NcGkv1i20MJ2ngNGSPQcT7tagDmF3V6BsdWg==",
65
+ "version": "3.3.0",
66
+ "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
67
+ "integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
68
68
  "license": "MIT",
69
69
  "engines": {
70
70
  "node": ">=22.12.0"
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@netlify/database": "latest",
19
- "@netlify/functions": "^6.0.2",
19
+ "@netlify/functions": "^6.0.3",
20
20
  "@types/node": "^22.0.0",
21
21
  "typescript": "^4.5.5"
22
22
  }
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@netlify/database": "latest",
13
- "@netlify/functions": "^6.0.2",
13
+ "@netlify/functions": "^6.0.3",
14
14
  "@types/node": "^22.0.0",
15
15
  "drizzle-orm": "beta",
16
16
  "typescript": "^4.5.5"
@@ -42,12 +42,12 @@
42
42
  }
43
43
  },
44
44
  "node_modules/@netlify/functions": {
45
- "version": "6.0.2",
46
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.2.tgz",
47
- "integrity": "sha512-JqbPgAOt2GAwzCEitdEWAHOn6AkZ0Rna401wdAyuDIBiDv9M03b3Cu5mGH7/eHOmIXfZIcN1pG35flHjfu6asQ==",
45
+ "version": "6.0.3",
46
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
47
+ "integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
48
48
  "license": "MIT",
49
49
  "dependencies": {
50
- "@netlify/types": "3.2.0"
50
+ "@netlify/types": "3.3.0"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=22.12.0"
@@ -63,9 +63,9 @@
63
63
  }
64
64
  },
65
65
  "node_modules/@netlify/types": {
66
- "version": "3.2.0",
67
- "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.2.0.tgz",
68
- "integrity": "sha512-PVvY1EEN9i2Er0LQoiyNG7i/BnwnttLuZqIkBnhL2Jrcj3P5N/NcGkv1i20MJ2ngNGSPQcT7tagDmF3V6BsdWg==",
66
+ "version": "3.3.0",
67
+ "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
68
+ "integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
69
69
  "license": "MIT",
70
70
  "engines": {
71
71
  "node": ">=22.12.0"
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@netlify/database": "latest",
20
- "@netlify/functions": "^6.0.2",
20
+ "@netlify/functions": "^6.0.3",
21
21
  "@types/node": "^22.0.0",
22
22
  "drizzle-orm": "beta",
23
23
  "typescript": "^4.5.5"
@@ -9,26 +9,26 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@netlify/functions": "^6.0.2",
12
+ "@netlify/functions": "^6.0.3",
13
13
  "@types/node": "^22.0.0",
14
14
  "typescript": "^4.0.0"
15
15
  }
16
16
  },
17
17
  "node_modules/@netlify/functions": {
18
- "version": "6.0.2",
19
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.2.tgz",
20
- "integrity": "sha512-JqbPgAOt2GAwzCEitdEWAHOn6AkZ0Rna401wdAyuDIBiDv9M03b3Cu5mGH7/eHOmIXfZIcN1pG35flHjfu6asQ==",
18
+ "version": "6.0.3",
19
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
20
+ "integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
21
21
  "dependencies": {
22
- "@netlify/types": "3.2.0"
22
+ "@netlify/types": "3.3.0"
23
23
  },
24
24
  "engines": {
25
25
  "node": ">=22.12.0"
26
26
  }
27
27
  },
28
28
  "node_modules/@netlify/types": {
29
- "version": "3.2.0",
30
- "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.2.0.tgz",
31
- "integrity": "sha512-PVvY1EEN9i2Er0LQoiyNG7i/BnwnttLuZqIkBnhL2Jrcj3P5N/NcGkv1i20MJ2ngNGSPQcT7tagDmF3V6BsdWg==",
29
+ "version": "3.3.0",
30
+ "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
31
+ "integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
32
32
  "engines": {
33
33
  "node": ">=22.12.0"
34
34
  }
@@ -61,17 +61,17 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@netlify/functions": {
64
- "version": "6.0.2",
65
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.2.tgz",
66
- "integrity": "sha512-JqbPgAOt2GAwzCEitdEWAHOn6AkZ0Rna401wdAyuDIBiDv9M03b3Cu5mGH7/eHOmIXfZIcN1pG35flHjfu6asQ==",
64
+ "version": "6.0.3",
65
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
66
+ "integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
67
67
  "requires": {
68
- "@netlify/types": "3.2.0"
68
+ "@netlify/types": "3.3.0"
69
69
  }
70
70
  },
71
71
  "@netlify/types": {
72
- "version": "3.2.0",
73
- "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.2.0.tgz",
74
- "integrity": "sha512-PVvY1EEN9i2Er0LQoiyNG7i/BnwnttLuZqIkBnhL2Jrcj3P5N/NcGkv1i20MJ2ngNGSPQcT7tagDmF3V6BsdWg=="
72
+ "version": "3.3.0",
73
+ "resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
74
+ "integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg=="
75
75
  },
76
76
  "@types/node": {
77
77
  "version": "22.18.11",
@@ -14,7 +14,7 @@
14
14
  "test": "echo \"Error: no test specified\" && exit 1"
15
15
  },
16
16
  "dependencies": {
17
- "@netlify/functions": "^6.0.2",
17
+ "@netlify/functions": "^6.0.3",
18
18
  "@types/node": "^22.0.0",
19
19
  "typescript": "^4.0.0"
20
20
  }
@@ -15,7 +15,7 @@
15
15
  "test": "echo \"Error: no test specified\" && exit 1"
16
16
  },
17
17
  "dependencies": {
18
- "@netlify/functions": "^6.0.2",
18
+ "@netlify/functions": "^6.0.3",
19
19
  "@types/node": "^22.0.0",
20
20
  "typescript": "^4.5.5"
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "27.16.0",
3
+ "version": "27.16.2",
4
4
  "description": "Netlify command line tool",
5
5
  "keywords": [
6
6
  "api",
@@ -55,12 +55,12 @@
55
55
  "@fastify/static": "^10.0.0",
56
56
  "@inquirer/prompts": "^8.7.2",
57
57
  "@netlify/ai": "^1.0.2",
58
- "@netlify/api": "^15.1.4",
59
- "@netlify/blobs": "^11.1.6",
60
- "@netlify/build": "^37.7.1",
58
+ "@netlify/api": "^15.1.5",
59
+ "@netlify/blobs": "^11.1.7",
60
+ "@netlify/build": "^37.7.2",
61
61
  "@netlify/build-info": "^11.3.1",
62
- "@netlify/config": "^25.5.0",
63
- "@netlify/dev": "^5.1.10",
62
+ "@netlify/config": "^25.5.1",
63
+ "@netlify/dev": "^5.1.12",
64
64
  "@netlify/dev-utils": "^6.0.4",
65
65
  "@netlify/edge-bundler": "^16.2.0",
66
66
  "@netlify/edge-functions": "^4.0.3",
@@ -70,7 +70,7 @@
70
70
  "@netlify/local-functions-proxy": "^2.0.3",
71
71
  "@netlify/redirect-matcher": "^0.7.0",
72
72
  "@netlify/redirect-parser": "^16.1.1",
73
- "@netlify/server-dev": "^0.1.4",
73
+ "@netlify/server-dev": "^0.1.5",
74
74
  "@netlify/zip-it-and-ship-it": "^16.6.0",
75
75
  "@opentelemetry/api": "~1.9.0",
76
76
  "@pnpm/tabtab": "^0.5.4",
@@ -155,7 +155,7 @@
155
155
  "@netlify/functions": "^6.0.3",
156
156
  "@netlify/types": "^3.3.0",
157
157
  "@sindresorhus/slugify": "^3.0.0",
158
- "@tsconfig/node22": "22.0.5",
158
+ "@tsconfig/node22": "22.0.6",
159
159
  "@tsconfig/recommended": "^1.0.13",
160
160
  "@types/backoff": "^2.5.5",
161
161
  "@types/debug": "^4.1.12",
@@ -196,7 +196,7 @@
196
196
  "memfs": "^4.56.10",
197
197
  "nock": "^14.0.10",
198
198
  "npm-run-all2": "^8.0.4",
199
- "oxfmt": "0.73.0",
199
+ "oxfmt": "0.74.0",
200
200
  "p-timeout": "^7.0.0",
201
201
  "picomatch": "^4.0.4",
202
202
  "pkg-pr-new": "^0.0.86",