@netlify/build 35.0.4 → 35.0.6

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/lib/log/stream.js CHANGED
@@ -1,7 +1,5 @@
1
- import { promisify } from 'util';
1
+ import { setTimeout } from 'timers/promises';
2
2
  import { logsAreBuffered } from './logger.js';
3
- // TODO: replace with `timers/promises` after dropping Node < 15.0.0
4
- const pSetTimeout = promisify(setTimeout);
5
3
  // We try to use `stdio: inherit` because it keeps `stdout/stderr` as `TTY`,
6
4
  // which solves many problems. However we can only do it in build.command.
7
5
  // Plugins have several events, so need to be switch on and off instead.
@@ -36,7 +34,7 @@ export const pipePluginOutput = function (childProcess, logs, standardStreams) {
36
34
  // Stop streaming/buffering plugin step output
37
35
  export const unpipePluginOutput = async function (childProcess, logs, listeners, standardStreams) {
38
36
  // Let `childProcess` `stdout` and `stderr` flush before stopping redirecting
39
- await pSetTimeout(0);
37
+ await setTimeout(0);
40
38
  if (!logsAreBuffered(logs)) {
41
39
  return unstreamOutput(childProcess, standardStreams);
42
40
  }
@@ -1,10 +1,9 @@
1
- import { promisify } from 'util';
1
+ import { setTimeout } from 'timers/promises';
2
2
  import { addErrorInfo } from '../error/info.js';
3
3
  import { addPluginLoadErrorStatus } from '../status/load_error.js';
4
4
  import { measureDuration } from '../time/main.js';
5
5
  import { callChild } from './ipc.js';
6
6
  import { captureStandardError } from './system_log.js';
7
- const pSetTimeout = promisify(setTimeout);
8
7
  // Retrieve all plugins steps
9
8
  // Can use either a module name or a file path to the plugin.
10
9
  export const loadPlugins = async function ({ pluginsOptions, childProcesses, packageJson, timers, logs, debug, verbose, netlifyConfig, featureFlags, systemLog, }) {
@@ -68,7 +67,7 @@ const loadPlugin = async function ({ packageName, pluginPackageJson, pluginPacka
68
67
  catch (error) {
69
68
  if (featureFlags.netlify_build_plugin_system_log) {
70
69
  // Wait for stderr to be flushed.
71
- await pSetTimeout(0);
70
+ await setTimeout(0);
72
71
  }
73
72
  addErrorInfo(error, {
74
73
  plugin: {
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'module';
2
2
  import { platform } from 'os';
3
+ import { setTimeout } from 'timers/promises';
3
4
  import { fileURLToPath, pathToFileURL } from 'url';
4
- import { promisify } from 'util';
5
5
  import { trace } from '@opentelemetry/api';
6
6
  import { execaNode } from 'execa';
7
7
  import { gte, satisfies } from 'semver';
@@ -13,7 +13,6 @@ import { callChild, getEventFromChild } from './ipc.js';
13
13
  import { getSpawnInfo } from './options.js';
14
14
  import { captureStandardError } from './system_log.js';
15
15
  const CHILD_MAIN_FILE = fileURLToPath(new URL('child/main.js', import.meta.url));
16
- const pSetTimeout = promisify(setTimeout);
17
16
  const require = createRequire(import.meta.url);
18
17
  // Start child processes used by all plugins
19
18
  // We fire plugins through child processes so that:
@@ -94,7 +93,7 @@ const startPlugin = async function ({ pluginDir, nodeVersion, nodePath, buildDir
94
93
  catch (error) {
95
94
  if (featureFlags.netlify_build_plugin_system_log) {
96
95
  // Wait for stderr to be flushed.
97
- await pSetTimeout(0);
96
+ await setTimeout(0);
98
97
  }
99
98
  const spawnInfo = getSpawnInfo();
100
99
  addErrorInfo(error, spawnInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "35.0.4",
3
+ "version": "35.0.6",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -67,16 +67,16 @@
67
67
  "license": "MIT",
68
68
  "dependencies": {
69
69
  "@bugsnag/js": "^8.0.0",
70
- "@netlify/blobs": "^10.0.7",
71
- "@netlify/cache-utils": "^6.0.3",
72
- "@netlify/config": "^24.0.1",
73
- "@netlify/edge-bundler": "14.5.0",
74
- "@netlify/functions-utils": "^6.2.1",
70
+ "@netlify/blobs": "^10.0.8",
71
+ "@netlify/cache-utils": "^6.0.4",
72
+ "@netlify/config": "^24.0.2",
73
+ "@netlify/edge-bundler": "14.5.1",
74
+ "@netlify/functions-utils": "^6.2.2",
75
75
  "@netlify/git-utils": "^6.0.2",
76
76
  "@netlify/opentelemetry-utils": "^2.0.1",
77
77
  "@netlify/plugins-list": "^6.80.0",
78
78
  "@netlify/run-utils": "^6.0.2",
79
- "@netlify/zip-it-and-ship-it": "14.1.1",
79
+ "@netlify/zip-it-and-ship-it": "14.1.2",
80
80
  "@sindresorhus/slugify": "^2.0.0",
81
81
  "ansi-escapes": "^7.0.0",
82
82
  "ansis": "^4.1.0",
@@ -151,5 +151,5 @@
151
151
  "engines": {
152
152
  "node": ">=18.14.0"
153
153
  },
154
- "gitHead": "6c0a42f34965ccca2564cf7b3c5a4d458debbe50"
154
+ "gitHead": "8ed57149cfca0fc645f7139f04810bd305575a60"
155
155
  }