netlify-cli 17.9.0 → 17.10.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.
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "17.9.0",
3
+ "version": "17.10.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "17.9.0",
9
+ "version": "17.10.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
13
  "@bugsnag/js": "7.20.2",
14
14
  "@fastify/static": "6.10.2",
15
15
  "@netlify/blobs": "6.3.1",
16
- "@netlify/build": "29.29.4",
17
- "@netlify/build-info": "7.11.1",
16
+ "@netlify/build": "29.31.0",
17
+ "@netlify/build-info": "7.11.3",
18
18
  "@netlify/config": "20.10.0",
19
19
  "@netlify/edge-bundler": "10.1.3",
20
20
  "@netlify/local-functions-proxy": "1.1.1",
@@ -819,9 +819,9 @@
819
819
  }
820
820
  },
821
821
  "node_modules/@netlify/build": {
822
- "version": "29.29.4",
823
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.29.4.tgz",
824
- "integrity": "sha512-Df0f5M4FN3uUrYImvVOY6SRON+YgsWwBoeJKsNUso3EIAPjCXNLoGYExH1LE/LmS6MgDbYQcm/jKndhTVY0sIA==",
822
+ "version": "29.31.0",
823
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.31.0.tgz",
824
+ "integrity": "sha512-XtUXnj3LtdWxcgP4kz1k0creF9bZa7eGNh85B89sw4V99Mtsn1Sl89yAZJkEH6rtuGJIs1eiQ261nlhUZ6+C6Q==",
825
825
  "dependencies": {
826
826
  "@bugsnag/js": "^7.0.0",
827
827
  "@honeycombio/opentelemetry-node": "^0.5.0",
@@ -899,9 +899,9 @@
899
899
  }
900
900
  },
901
901
  "node_modules/@netlify/build-info": {
902
- "version": "7.11.1",
903
- "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.1.tgz",
904
- "integrity": "sha512-JnsFgY22eOT++VRGoLHQDWzp1cvWFgsxiIk+/y3VgdmUQdugeKn5HeUYfWkBOau4xTCu53MKhtuVm8DkLpH19g==",
902
+ "version": "7.11.3",
903
+ "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.3.tgz",
904
+ "integrity": "sha512-lnJsJcoFSZIIB+4tOU/rdPjPn2+TP896B9y23z5THyACeN/e2I0Y7Y+d+BzHgFDcJBwqFpIehEs2jf8wPb9CHw==",
905
905
  "dependencies": {
906
906
  "@bugsnag/js": "^7.20.0",
907
907
  "dot-prop": "^7.2.0",
@@ -17116,9 +17116,9 @@
17116
17116
  "integrity": "sha512-JjLz3WW7Wp6NVwQtDxPpWio4L3u9pnnDXnQ7Q16zgAFE9IA1rSjZVSsyOQrtkiBQIxaJ1Zr5eky8vrXJ5mdRWg=="
17117
17117
  },
17118
17118
  "@netlify/build": {
17119
- "version": "29.29.4",
17120
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.29.4.tgz",
17121
- "integrity": "sha512-Df0f5M4FN3uUrYImvVOY6SRON+YgsWwBoeJKsNUso3EIAPjCXNLoGYExH1LE/LmS6MgDbYQcm/jKndhTVY0sIA==",
17119
+ "version": "29.31.0",
17120
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.31.0.tgz",
17121
+ "integrity": "sha512-XtUXnj3LtdWxcgP4kz1k0creF9bZa7eGNh85B89sw4V99Mtsn1Sl89yAZJkEH6rtuGJIs1eiQ261nlhUZ6+C6Q==",
17122
17122
  "requires": {
17123
17123
  "@bugsnag/js": "^7.0.0",
17124
17124
  "@honeycombio/opentelemetry-node": "^0.5.0",
@@ -17419,9 +17419,9 @@
17419
17419
  }
17420
17420
  },
17421
17421
  "@netlify/build-info": {
17422
- "version": "7.11.1",
17423
- "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.1.tgz",
17424
- "integrity": "sha512-JnsFgY22eOT++VRGoLHQDWzp1cvWFgsxiIk+/y3VgdmUQdugeKn5HeUYfWkBOau4xTCu53MKhtuVm8DkLpH19g==",
17422
+ "version": "7.11.3",
17423
+ "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.3.tgz",
17424
+ "integrity": "sha512-lnJsJcoFSZIIB+4tOU/rdPjPn2+TP896B9y23z5THyACeN/e2I0Y7Y+d+BzHgFDcJBwqFpIehEs2jf8wPb9CHw==",
17425
17425
  "requires": {
17426
17426
  "@bugsnag/js": "^7.20.0",
17427
17427
  "dot-prop": "^7.2.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "17.9.0",
4
+ "version": "17.10.1",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -46,8 +46,8 @@
46
46
  "@bugsnag/js": "7.20.2",
47
47
  "@fastify/static": "6.10.2",
48
48
  "@netlify/blobs": "6.3.1",
49
- "@netlify/build": "29.29.4",
50
- "@netlify/build-info": "7.11.1",
49
+ "@netlify/build": "29.31.0",
50
+ "@netlify/build-info": "7.11.3",
51
51
  "@netlify/config": "20.10.0",
52
52
  "@netlify/edge-bundler": "10.1.3",
53
53
  "@netlify/local-functions-proxy": "1.1.1",
@@ -313,6 +313,36 @@ const deployProgressCb = function () {
313
313
  }
314
314
  };
315
315
  };
316
+ const uploadDeployBlobs = async ({ cachedConfig, deployId, options, silent, siteId, }) => {
317
+ const statusCb = silent ? () => { } : deployProgressCb();
318
+ statusCb({
319
+ type: 'blobs-uploading',
320
+ msg: 'Uploading blobs to deploy store...\n',
321
+ phase: 'start',
322
+ });
323
+ const [token] = await getToken(false);
324
+ const { success } = await runCoreSteps(['blobs_upload'], {
325
+ ...options,
326
+ quiet: silent,
327
+ cachedConfig,
328
+ deployId,
329
+ siteId,
330
+ token,
331
+ });
332
+ if (!success) {
333
+ statusCb({
334
+ type: 'blobs-uploading',
335
+ msg: 'Deploy aborted due to error while uploading blobs to deploy store',
336
+ phase: 'error',
337
+ });
338
+ error('Error while uploading blobs to deploy store');
339
+ }
340
+ statusCb({
341
+ type: 'blobs-uploading',
342
+ msg: 'Finished uploading blobs to deploy store',
343
+ phase: 'stop',
344
+ });
345
+ };
316
346
  const runDeploy = async ({
317
347
  // @ts-expect-error TS(7031) FIXME: Binding element 'alias' implicitly has an 'any' ty... Remove this comment to see the full error message
318
348
  alias,
@@ -332,6 +362,8 @@ deployToProduction,
332
362
  functionsConfig,
333
363
  // @ts-expect-error TS(7031) FIXME: Binding element 'functionsFolder' implicitly has a... Remove this comment to see the full error message
334
364
  functionsFolder,
365
+ // @ts-expect-error TS(7031) FIXME: Binding element 'options' implicitly has an 'a... Remove this comment to see the full error message
366
+ options,
335
367
  // @ts-expect-error TS(7031) FIXME: Binding element 'packagePath' implicitly has an 'a... Remove this comment to see the full error message
336
368
  packagePath,
337
369
  // @ts-expect-error TS(7031) FIXME: Binding element 'silent' implicitly has an 'any' t... Remove this comment to see the full error message
@@ -380,6 +412,7 @@ title, }) => {
380
412
  minimal: true,
381
413
  });
382
414
  config.headers = headers;
415
+ uploadDeployBlobs({ deployId, siteId, silent, options, cachedConfig: command.netlify.cachedConfig });
383
416
  results = await deploySite(api, siteId, deployFolder, {
384
417
  config,
385
418
  // @ts-expect-error TS(2322) FIXME: Type 'any[]' is not assignable to type 'never[]'.
@@ -617,6 +650,7 @@ workingDir, }) => {
617
650
  functionsConfig,
618
651
  // pass undefined functionsFolder if doesn't exist
619
652
  functionsFolder: functionsFolderStat && functionsFolder,
653
+ options,
620
654
  packagePath: command.workspacePackage,
621
655
  silent: options.json || options.silent,
622
656
  site,
@@ -81,7 +81,7 @@ export default class NetlifyFunction {
81
81
  return '.mts';
82
82
  }
83
83
  if (extension === '.js') {
84
- return '.js';
84
+ return '.mjs';
85
85
  }
86
86
  }
87
87
  hasValidName() {
@@ -142,7 +142,7 @@ export default async function handler({ config, directory, errorExit, func, meta
142
142
  }
143
143
  else {
144
144
  // We must use esbuild for certain file extensions.
145
- const mustTranspile = ['.js', '.ts', '.mts', '.cts'].includes(path.extname(func.mainFile));
145
+ const mustTranspile = ['.mjs', '.ts', '.mts', '.cts'].includes(path.extname(func.mainFile));
146
146
  const mustUseEsbuild = hasTypeModule || mustTranspile;
147
147
  if (mustUseEsbuild && !functionsConfig['*'].nodeBundler) {
148
148
  functionsConfig['*'].nodeBundler = 'esbuild';