netlify-cli 8.10.0 → 8.11.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,23 +1,23 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.10.0",
3
+ "version": "8.11.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.10.0",
9
+ "version": "8.11.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^26.1.6",
13
+ "@netlify/build": "^26.2.0",
14
14
  "@netlify/config": "^17.0.3",
15
- "@netlify/framework-info": "^8.0.2",
15
+ "@netlify/framework-info": "^9.0.0",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
17
17
  "@netlify/plugin-edge-handlers": "^3.0.4",
18
- "@netlify/plugins-list": "^6.3.0",
18
+ "@netlify/plugins-list": "^6.3.1",
19
19
  "@netlify/routing-local-proxy": "^0.34.1",
20
- "@netlify/zip-it-and-ship-it": "^5.4.1",
20
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
21
21
  "@octokit/rest": "^18.0.0",
22
22
  "@sindresorhus/slugify": "^1.1.0",
23
23
  "ansi-escapes": "^5.0.0",
@@ -2387,9 +2387,9 @@
2387
2387
  }
2388
2388
  },
2389
2389
  "node_modules/@netlify/build": {
2390
- "version": "26.1.6",
2391
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.6.tgz",
2392
- "integrity": "sha512-1JCVWHMww0QT5ss5Se7M87q8JFdbfdugsa8C9RNmosHRKfNj9i0WoFejHeLGJLm+py0tUiXr6+G/0U7IJecauQ==",
2390
+ "version": "26.2.0",
2391
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.2.0.tgz",
2392
+ "integrity": "sha512-2yNzdO0nCRIZ5TLB7WUlis2NTSonVjairWnd1s/Tt9SBF3L3Z+IU/xSiXgAwYZ/xe+tkziUltwrx9l8rxm2VGw==",
2393
2393
  "dependencies": {
2394
2394
  "@bugsnag/js": "^7.0.0",
2395
2395
  "@netlify/cache-utils": "^4.0.0",
@@ -2399,8 +2399,9 @@
2399
2399
  "@netlify/plugin-edge-handlers": "^3.0.4",
2400
2400
  "@netlify/plugins-list": "^6.3.0",
2401
2401
  "@netlify/run-utils": "^4.0.0",
2402
- "@netlify/zip-it-and-ship-it": "^5.4.1",
2402
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
2403
2403
  "@sindresorhus/slugify": "^1.1.0",
2404
+ "@types/node": "^16.0.0",
2404
2405
  "ansi-escapes": "^4.3.2",
2405
2406
  "chalk": "^4.1.2",
2406
2407
  "clean-stack": "^3.0.1",
@@ -2439,6 +2440,7 @@
2439
2440
  "supports-color": "^8.0.0",
2440
2441
  "tmp-promise": "^3.0.2",
2441
2442
  "ts-node": "^10.4.0",
2443
+ "typescript": "^4.5.4",
2442
2444
  "update-notifier": "^5.0.0",
2443
2445
  "uuid": "^8.0.0",
2444
2446
  "yargs": "^17.3.1"
@@ -2461,6 +2463,11 @@
2461
2463
  "url": "https://github.com/sindresorhus/is?sponsor=1"
2462
2464
  }
2463
2465
  },
2466
+ "node_modules/@netlify/build/node_modules/@types/node": {
2467
+ "version": "16.11.21",
2468
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.21.tgz",
2469
+ "integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A=="
2470
+ },
2464
2471
  "node_modules/@netlify/build/node_modules/ansi-escapes": {
2465
2472
  "version": "4.3.2",
2466
2473
  "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
@@ -2795,9 +2802,9 @@
2795
2802
  }
2796
2803
  },
2797
2804
  "node_modules/@netlify/framework-info": {
2798
- "version": "8.0.2",
2799
- "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-8.0.2.tgz",
2800
- "integrity": "sha512-lRI4On9XVEuAtwOGtUEbljAUhyR8SLBHKxVYJ6SQ7TM8XGEZkPB23/2q7OktGTMK+qqK/QS1DohuahNFw8+pqQ==",
2805
+ "version": "9.0.0",
2806
+ "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.0.0.tgz",
2807
+ "integrity": "sha512-I4TzDRKmFaagcLCwmFeSr5tPsfT/fxBBaPpDv192fb468R4WbI0TVfTAqlTGJEmc6cHllXpgbVNCRvpeJAP7Fw==",
2801
2808
  "dependencies": {
2802
2809
  "ajv": "^8.0.0",
2803
2810
  "filter-obj": "^2.0.1",
@@ -3093,9 +3100,9 @@
3093
3100
  }
3094
3101
  },
3095
3102
  "node_modules/@netlify/plugins-list": {
3096
- "version": "6.3.0",
3097
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz",
3098
- "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg==",
3103
+ "version": "6.3.1",
3104
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz",
3105
+ "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A==",
3099
3106
  "engines": {
3100
3107
  "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3101
3108
  }
@@ -3171,9 +3178,9 @@
3171
3178
  }
3172
3179
  },
3173
3180
  "node_modules/@netlify/zip-it-and-ship-it": {
3174
- "version": "5.4.1",
3175
- "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.4.1.tgz",
3176
- "integrity": "sha512-ArusY1DrK+neNs1EF8vHbBHCBP4PI9fFVQxH1Zcuz0rvF9Q1vCiG2g8nL6JsJTW4eUibvy96BGD22egOvxpxtA==",
3181
+ "version": "5.5.0",
3182
+ "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.5.0.tgz",
3183
+ "integrity": "sha512-V7hVGr8xwdiPF7kmH+TSvekorjFI/OTYe34dlEvEmPhEuDG3LejRjy2XzQ0hW5TpFXvd4V+JRPH4jMh85Xt6qg==",
3177
3184
  "dependencies": {
3178
3185
  "@babel/parser": "^7.15.7",
3179
3186
  "@netlify/esbuild": "^0.13.6",
@@ -23702,9 +23709,9 @@
23702
23709
  }
23703
23710
  },
23704
23711
  "@netlify/build": {
23705
- "version": "26.1.6",
23706
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.6.tgz",
23707
- "integrity": "sha512-1JCVWHMww0QT5ss5Se7M87q8JFdbfdugsa8C9RNmosHRKfNj9i0WoFejHeLGJLm+py0tUiXr6+G/0U7IJecauQ==",
23712
+ "version": "26.2.0",
23713
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.2.0.tgz",
23714
+ "integrity": "sha512-2yNzdO0nCRIZ5TLB7WUlis2NTSonVjairWnd1s/Tt9SBF3L3Z+IU/xSiXgAwYZ/xe+tkziUltwrx9l8rxm2VGw==",
23708
23715
  "requires": {
23709
23716
  "@bugsnag/js": "^7.0.0",
23710
23717
  "@netlify/cache-utils": "^4.0.0",
@@ -23714,8 +23721,9 @@
23714
23721
  "@netlify/plugin-edge-handlers": "^3.0.4",
23715
23722
  "@netlify/plugins-list": "^6.3.0",
23716
23723
  "@netlify/run-utils": "^4.0.0",
23717
- "@netlify/zip-it-and-ship-it": "^5.4.1",
23724
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
23718
23725
  "@sindresorhus/slugify": "^1.1.0",
23726
+ "@types/node": "^16.0.0",
23719
23727
  "ansi-escapes": "^4.3.2",
23720
23728
  "chalk": "^4.1.2",
23721
23729
  "clean-stack": "^3.0.1",
@@ -23754,6 +23762,7 @@
23754
23762
  "supports-color": "^8.0.0",
23755
23763
  "tmp-promise": "^3.0.2",
23756
23764
  "ts-node": "^10.4.0",
23765
+ "typescript": "^4.5.4",
23757
23766
  "update-notifier": "^5.0.0",
23758
23767
  "uuid": "^8.0.0",
23759
23768
  "yargs": "^17.3.1"
@@ -23764,6 +23773,11 @@
23764
23773
  "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-2.1.1.tgz",
23765
23774
  "integrity": "sha512-/aPsuoj/1Dw/kzhkgz+ES6TxG0zfTMGLwuK2ZG00k/iJzYHTLCE8mVU8EPqEOp/lmxPoq1C1C9RYToRKb2KEfg=="
23766
23775
  },
23776
+ "@types/node": {
23777
+ "version": "16.11.21",
23778
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.21.tgz",
23779
+ "integrity": "sha512-Pf8M1XD9i1ksZEcCP8vuSNwooJ/bZapNmIzpmsMaL+jMI+8mEYU3PKvs+xDNuQcJWF/x24WzY4qxLtB0zNow9A=="
23780
+ },
23767
23781
  "ansi-escapes": {
23768
23782
  "version": "4.3.2",
23769
23783
  "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
@@ -24021,9 +24035,9 @@
24021
24035
  }
24022
24036
  },
24023
24037
  "@netlify/framework-info": {
24024
- "version": "8.0.2",
24025
- "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-8.0.2.tgz",
24026
- "integrity": "sha512-lRI4On9XVEuAtwOGtUEbljAUhyR8SLBHKxVYJ6SQ7TM8XGEZkPB23/2q7OktGTMK+qqK/QS1DohuahNFw8+pqQ==",
24038
+ "version": "9.0.0",
24039
+ "resolved": "https://registry.npmjs.org/@netlify/framework-info/-/framework-info-9.0.0.tgz",
24040
+ "integrity": "sha512-I4TzDRKmFaagcLCwmFeSr5tPsfT/fxBBaPpDv192fb468R4WbI0TVfTAqlTGJEmc6cHllXpgbVNCRvpeJAP7Fw==",
24027
24041
  "requires": {
24028
24042
  "ajv": "^8.0.0",
24029
24043
  "filter-obj": "^2.0.1",
@@ -24194,9 +24208,9 @@
24194
24208
  }
24195
24209
  },
24196
24210
  "@netlify/plugins-list": {
24197
- "version": "6.3.0",
24198
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz",
24199
- "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg=="
24211
+ "version": "6.3.1",
24212
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz",
24213
+ "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A=="
24200
24214
  },
24201
24215
  "@netlify/routing-local-proxy": {
24202
24216
  "version": "0.34.1",
@@ -24242,9 +24256,9 @@
24242
24256
  }
24243
24257
  },
24244
24258
  "@netlify/zip-it-and-ship-it": {
24245
- "version": "5.4.1",
24246
- "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.4.1.tgz",
24247
- "integrity": "sha512-ArusY1DrK+neNs1EF8vHbBHCBP4PI9fFVQxH1Zcuz0rvF9Q1vCiG2g8nL6JsJTW4eUibvy96BGD22egOvxpxtA==",
24259
+ "version": "5.5.0",
24260
+ "resolved": "https://registry.npmjs.org/@netlify/zip-it-and-ship-it/-/zip-it-and-ship-it-5.5.0.tgz",
24261
+ "integrity": "sha512-V7hVGr8xwdiPF7kmH+TSvekorjFI/OTYe34dlEvEmPhEuDG3LejRjy2XzQ0hW5TpFXvd4V+JRPH4jMh85Xt6qg==",
24248
24262
  "requires": {
24249
24263
  "@babel/parser": "^7.15.7",
24250
24264
  "@netlify/esbuild": "^0.13.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "8.10.0",
4
+ "version": "8.11.1",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -76,14 +76,14 @@
76
76
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \".*.{js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!.github/**/*.md\""
77
77
  },
78
78
  "dependencies": {
79
- "@netlify/build": "^26.1.6",
79
+ "@netlify/build": "^26.2.0",
80
80
  "@netlify/config": "^17.0.3",
81
- "@netlify/framework-info": "^8.0.2",
81
+ "@netlify/framework-info": "^9.0.0",
82
82
  "@netlify/local-functions-proxy": "^1.1.1",
83
83
  "@netlify/plugin-edge-handlers": "^3.0.4",
84
- "@netlify/plugins-list": "^6.3.0",
84
+ "@netlify/plugins-list": "^6.3.1",
85
85
  "@netlify/routing-local-proxy": "^0.34.1",
86
- "@netlify/zip-it-and-ship-it": "^5.4.1",
86
+ "@netlify/zip-it-and-ship-it": "^5.5.0",
87
87
  "@octokit/rest": "^18.0.0",
88
88
  "@sindresorhus/slugify": "^1.1.0",
89
89
  "ansi-escapes": "^5.0.0",
@@ -9,15 +9,15 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@netlify/functions": "^0.10.0",
13
- "@types/node": "^14.18.5",
12
+ "@netlify/functions": "^0.11.0",
13
+ "@types/node": "^14.0.0",
14
14
  "typescript": "^4.0.0"
15
15
  }
16
16
  },
17
17
  "node_modules/@netlify/functions": {
18
- "version": "0.10.0",
19
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz",
20
- "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==",
18
+ "version": "0.11.0",
19
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz",
20
+ "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==",
21
21
  "dependencies": {
22
22
  "is-promise": "^4.0.0"
23
23
  },
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@netlify/functions": {
53
- "version": "0.10.0",
54
- "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz",
55
- "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==",
53
+ "version": "0.11.0",
54
+ "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz",
55
+ "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==",
56
56
  "requires": {
57
57
  "is-promise": "^4.0.0"
58
58
  }
@@ -14,7 +14,7 @@
14
14
  "author": "Netlify",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@netlify/functions": "^0.10.0",
17
+ "@netlify/functions": "^0.11.0",
18
18
  "@types/node": "^14.0.0",
19
19
  "typescript": "^4.0.0"
20
20
  }
@@ -13,6 +13,7 @@ const normalizeFunctionsConfig = ({ functionsConfig = {}, projectRoot }) =>
13
13
  nodeBundler: config.node_bundler === 'esbuild' ? 'esbuild_zisi' : config.node_bundler,
14
14
  processDynamicNodeImports: true,
15
15
  schedule: config.schedule,
16
+ zipGo: true,
16
17
  },
17
18
  }),
18
19
  {},
@@ -3,7 +3,7 @@ const { EOL } = require('os')
3
3
  const path = require('path')
4
4
  const process = require('process')
5
5
 
6
- const { getFramework, listFrameworks } = require('@netlify/framework-info')
6
+ const frameworkInfoPromise = import('@netlify/framework-info')
7
7
  const fuzzy = require('fuzzy')
8
8
  const getPort = require('get-port')
9
9
  const isPlainObject = require('is-plain-obj')
@@ -182,6 +182,7 @@ const getSettingsFromFramework = (framework) => {
182
182
  const hasDevCommand = (framework) => Array.isArray(framework.dev.commands) && framework.dev.commands.length !== 0
183
183
 
184
184
  const detectFrameworkSettings = async ({ projectDir }) => {
185
+ const { listFrameworks } = await frameworkInfoPromise
185
186
  const projectFrameworks = await listFrameworks({ projectDir })
186
187
  const frameworks = projectFrameworks.filter((framework) => hasDevCommand(framework))
187
188
 
@@ -276,6 +277,7 @@ const mergeSettings = async ({ devConfig, frameworkSettings = {} }) => {
276
277
  */
277
278
  const handleForcedFramework = async ({ devConfig, projectDir }) => {
278
279
  // this throws if `devConfig.framework` is not a supported framework
280
+ const { getFramework } = await frameworkInfoPromise
279
281
  const frameworkSettings = getSettingsFromFramework(await getFramework(devConfig.framework, { projectDir }))
280
282
  return mergeSettings({ devConfig, frameworkSettings })
281
283
  }
@@ -1,7 +1,8 @@
1
1
  // @ts-check
2
- const { listFrameworks } = require('@netlify/framework-info')
2
+ const frameworkInfoPromise = import('@netlify/framework-info')
3
3
 
4
4
  const getFrameworkInfo = async ({ baseDirectory, nodeVersion }) => {
5
+ const { listFrameworks } = await frameworkInfoPromise
5
6
  const frameworks = await listFrameworks({ projectDir: baseDirectory, nodeVersion })
6
7
  // several frameworks can be detected - first one has highest priority
7
8
  if (frameworks.length !== 0) {