@netlify/build 27.15.4 → 27.15.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "27.15.
|
|
3
|
+
"version": "27.15.7",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@bugsnag/js": "^7.0.0",
|
|
59
|
-
"@netlify/edge-bundler": "^1.
|
|
59
|
+
"@netlify/edge-bundler": "^1.14.0",
|
|
60
60
|
"@netlify/cache-utils": "^4.0.0",
|
|
61
61
|
"@netlify/config": "^18.2.2",
|
|
62
62
|
"@netlify/functions-utils": "^4.2.4",
|
|
@@ -10,7 +10,9 @@ export const logRuntime = (logs, pluginOptions) => {
|
|
|
10
10
|
|
|
11
11
|
// Once we have more runtimes, this hardcoded check should be removed
|
|
12
12
|
if (runtimes.length > 1) {
|
|
13
|
-
|
|
13
|
+
const [nextRuntime] = runtimes
|
|
14
|
+
|
|
15
|
+
logSubHeader(logs, `Using Next.js Runtime - v${nextRuntime.pluginPackageJson.version}`)
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -33,7 +33,7 @@ export const getExpectedVersion = async function ({ versions, nodeVersion, packa
|
|
|
33
33
|
// - After their first successful run, plugins are pinned by their major
|
|
34
34
|
// version which is passed as `pinnedVersion` to the next builds.
|
|
35
35
|
// When the plugin does not have a `pinnedVersion`, we use the most recent
|
|
36
|
-
// `compatibility` entry
|
|
36
|
+
// `compatibility` entry with a successful condition.
|
|
37
37
|
// When the plugin has a `pinnedVersion`, we do not use the `compatibility`
|
|
38
38
|
// conditions. Instead, we just use the most recent entry with a `version`
|
|
39
39
|
// matching `pinnedVersion`.
|
|
@@ -42,7 +42,11 @@ export const getExpectedVersion = async function ({ versions, nodeVersion, packa
|
|
|
42
42
|
// - Otherwise, use `latestVersion`
|
|
43
43
|
const getCompatibleEntry = async function ({ versions, nodeVersion, packageJson, buildDir, pinnedVersion }) {
|
|
44
44
|
if (pinnedVersion !== undefined) {
|
|
45
|
-
|
|
45
|
+
const matchingVersion = versions.find(({ version }) =>
|
|
46
|
+
semver.satisfies(version, pinnedVersion, { includePrerelease: true }),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return matchingVersion || { version: pinnedVersion }
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
const versionsWithConditions = versions.filter(hasConditions)
|