@netlify/build 33.4.5 → 33.4.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/core/build.js CHANGED
@@ -1,4 +1,3 @@
1
- import { supportedRuntimes } from '@netlify/framework-info';
2
1
  import { addAttributesToActiveSpan } from '@netlify/opentelemetry-utils';
3
2
  import { getErrorInfo } from '../error/info.js';
4
3
  import { startErrorMonitor } from '../error/monitor/start.js';
@@ -20,6 +19,10 @@ import { doDryRun } from './dry.js';
20
19
  import { warnOnLingeringProcesses } from './lingering.js';
21
20
  import { warnOnMissingSideFiles } from './missing_side_file.js';
22
21
  import { normalizeFlags } from './normalize_flags.js';
22
+ const supportedRuntimes = {
23
+ next: { package: '@netlify/plugin-nextjs', skipFlag: 'NETLIFY_NEXT_PLUGIN_SKIP' },
24
+ gatsby: { package: '@netlify/plugin-gatsby', skipFlag: 'NETLIFY_GATSBY_PLUGIN_SKIP' },
25
+ };
23
26
  // Performed on build start. Must be kept small and unlikely to fail since it
24
27
  // does not have proper error handling. Error handling relies on `errorMonitor`
25
28
  // being built, which relies itself on flags being normalized.
@@ -51,15 +51,8 @@ const isValidPluginsList = function (pluginsList) {
51
51
  const normalizePluginsList = function (pluginsList) {
52
52
  return Object.fromEntries(pluginsList.map(normalizePluginItem));
53
53
  };
54
- /**
55
- * `version` in `plugins.json` is the latest version.
56
- * A `compatibility` array of objects can be added to specify conditions to
57
- * apply different versions.
58
- * `netlify/plugins` ensures that `compatibility`:
59
- * - Has the proper shape.
60
- * - Is sorted from the highest to lowest version.
61
- * - Does not include the latest `version`.
62
- */
54
+ // When `compatability` array is present it takes precedence, otherwise top-level `version` field is used as latest version
55
+ // Plugin data comes from @netlify/plugins
63
56
  const normalizePluginItem = function ({ package: packageName, version, compatibility = [] }) {
64
57
  const versions = compatibility.length === 0 ? [{ version }] : compatibility;
65
58
  const versionsA = versions.map(normalizeCompatVersion);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "33.4.5",
3
+ "version": "33.4.6",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -67,11 +67,10 @@
67
67
  "license": "MIT",
68
68
  "dependencies": {
69
69
  "@bugsnag/js": "^8.0.0",
70
- "@netlify/blobs": "^9.1.6",
70
+ "@netlify/blobs": "^10.0.0",
71
71
  "@netlify/cache-utils": "^6.0.3",
72
72
  "@netlify/config": "^23.0.10",
73
73
  "@netlify/edge-bundler": "14.0.6",
74
- "@netlify/framework-info": "^10.0.5",
75
74
  "@netlify/functions-utils": "^6.0.10",
76
75
  "@netlify/git-utils": "^6.0.2",
77
76
  "@netlify/opentelemetry-utils": "^2.0.1",
@@ -128,11 +127,12 @@
128
127
  "@netlify/nock-udp": "^5.0.1",
129
128
  "@opentelemetry/api": "~1.8.0",
130
129
  "@opentelemetry/sdk-trace-base": "~1.24.0",
131
- "@types/node": "^18.0.0",
130
+ "@types/node": "^18.19.111",
132
131
  "atob": "^2.1.2",
133
132
  "ava": "^5.0.0",
134
133
  "c8": "^10.0.0",
135
134
  "cpy": "^11.0.0",
135
+ "cpy-cli": "^5.0.0",
136
136
  "get-node": "^14.2.1",
137
137
  "get-port": "^7.0.0",
138
138
  "has-ansi": "^6.0.0",
@@ -157,5 +157,5 @@
157
157
  "engines": {
158
158
  "node": ">=18.14.0"
159
159
  },
160
- "gitHead": "1a41d31d5a79a167a3e50c446de48ba60b161cbb"
160
+ "gitHead": "26f76a720b12a59fa65c638d73fddbc2259fa2d8"
161
161
  }