@netlify/build 31.0.0 → 31.0.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.
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-package-up';
1
+ import { PackageJson } from 'read-pkg-up';
2
2
  import { FeatureFlags } from '../core/feature_flags.js';
3
3
  import { SystemLogger } from '../plugins_core/types.js';
4
4
  import { PluginVersion } from './list.js';
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-package-up';
1
+ import { PackageJson } from 'read-pkg-up';
2
2
  /**
3
3
  * Load plugin's `manifest.yml`
4
4
  */
@@ -39,30 +39,23 @@ const addPluginNodeVersion = async function ({ featureFlags, pluginOptions, plug
39
39
  }
40
40
  if (featureFlags.build_warn_upcoming_system_version_change &&
41
41
  !semver.satisfies(userNodeVersion, UPCOMING_MINIMUM_REQUIRED_NODE_VERSION)) {
42
- logWarningSubHeader(logs, `Warning: Starting January 30, 2024 plugin "${packageName}" will be executed with Node.js version 20.`);
43
- logWarning(logs, ` We're upgrading our system node version on that day, which means the plugin cannot be executed with your defined Node.js version ${userNodeVersion}.
44
-
45
- Please make sure your plugin supports being run on Node.js 20.
46
-
47
- Read more about our minimum required version in our ${link('forums announcement', 'https://answers.netlify.com/t/build-plugin-update-system-node-js-version-upgrade-to-20/108633')}`);
48
42
  if (pluginPath) {
49
43
  const pluginDir = dirname(pluginPath);
50
44
  const { packageJson: pluginPackageJson } = await getPackageJson(pluginDir);
51
45
  // Ensure Node.js version is compatible with plugin's `engines.node`
52
46
  const pluginNodeVersionRange = pluginPackageJson?.engines?.node;
53
47
  if (!pluginNodeVersionRange) {
54
- systemLog(`plugin "${packageName}" might be affected by node.js 20 change`);
48
+ systemLog(`plugin "${packageName}" does not specify node support range`);
55
49
  }
56
- else if (semver.satisfies('20.0.0', pluginNodeVersionRange)) {
57
- systemLog(`plugin "${packageName}" probably not affected by node.js 20 change`);
50
+ else if (semver.satisfies('22.0.0', pluginNodeVersionRange)) {
51
+ systemLog(`plugin "${packageName}" node support range includes v22`);
58
52
  }
59
53
  else {
60
- logWarning(logs, `In its package.json, the plugin says it's incompatible with Node.js 20 (version range: "${pluginNodeVersionRange}"). Please upgrade the plugin, so it can be used with Node.js 20.`);
61
- systemLog(`plugin "${packageName}" will be affected by node.js 20 change`);
54
+ systemLog(`plugin "${packageName}" node support range does NOT include v22`);
62
55
  }
63
56
  }
64
57
  else {
65
- systemLog(`plugin "${packageName}" might be affected by node.js 20 change, pluginPath not available to determine its compatibility`);
58
+ systemLog(`plugin "${packageName}" pluginPath not available`);
66
59
  }
67
60
  }
68
61
  if (semver.satisfies(userNodeVersion, MINIMUM_REQUIRED_NODE_VERSION)) {
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-package-up';
1
+ import { PackageJson } from 'read-pkg-up';
2
2
  export declare const getPluginsOptions: any;
3
3
  /**
4
4
  * Retrieve information about @netlify/build when an error happens there and not
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-package-up';
1
+ import { PackageJson } from 'read-pkg-up';
2
2
  import { type PluginVersion } from './list.js';
3
3
  type ConditionContext = {
4
4
  nodeVersion: string;
@@ -1,4 +1,4 @@
1
- import type { PackageJson } from 'read-package-up';
1
+ import type { PackageJson } from 'read-pkg-up';
2
2
  export type RootPackageJson = {
3
3
  name: string;
4
4
  version: string;
@@ -1,4 +1,4 @@
1
- import { Options, PackageJson } from 'read-package-up';
1
+ import { Options, PackageJson } from 'read-pkg-up';
2
2
  type PackageResult = {
3
3
  packageJson: PackageJson;
4
4
  packageDir?: string;
@@ -1,5 +1,5 @@
1
1
  import { dirname } from 'path';
2
- import { readPackageUp } from 'read-package-up';
2
+ import { readPackageUp } from 'read-pkg-up';
3
3
  /**
4
4
  * Retrieve `package.json` from a specific directory
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "31.0.0",
3
+ "version": "31.0.2",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -70,14 +70,14 @@
70
70
  "@netlify/blobs": "^8.1.2",
71
71
  "@netlify/cache-utils": "^5.2.0",
72
72
  "@netlify/config": "^21.0.7",
73
- "@netlify/edge-bundler": "13.0.0",
74
- "@netlify/framework-info": "^9.9.2",
75
- "@netlify/functions-utils": "^5.3.13",
73
+ "@netlify/edge-bundler": "13.0.2",
74
+ "@netlify/framework-info": "^9.9.3",
75
+ "@netlify/functions-utils": "^5.3.14",
76
76
  "@netlify/git-utils": "^5.2.0",
77
77
  "@netlify/opentelemetry-utils": "^1.3.1",
78
78
  "@netlify/plugins-list": "^6.80.0",
79
79
  "@netlify/run-utils": "^5.2.0",
80
- "@netlify/zip-it-and-ship-it": "10.0.4",
80
+ "@netlify/zip-it-and-ship-it": "10.0.5",
81
81
  "@sindresorhus/slugify": "^2.0.0",
82
82
  "ansi-escapes": "^6.0.0",
83
83
  "chalk": "^5.0.0",
@@ -110,7 +110,7 @@
110
110
  "pkg-dir": "^7.0.0",
111
111
  "pretty-ms": "^8.0.0",
112
112
  "ps-list": "^8.0.0",
113
- "read-package-up": "^11.0.0",
113
+ "read-pkg-up": "^9.0.0",
114
114
  "readdirp": "^3.4.0",
115
115
  "resolve": "^2.0.0-next.5",
116
116
  "rfdc": "^1.3.0",
@@ -159,5 +159,5 @@
159
159
  "engines": {
160
160
  "node": "^14.16.0 || >=16.0.0"
161
161
  },
162
- "gitHead": "8d10878db3be9cfefe3162fd155c76595aba045e"
162
+ "gitHead": "a425e1f3fa5c06caa41ef232aad60891c2273e06"
163
163
  }