netlify 27.5.0 → 27.5.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.
@@ -112,8 +112,8 @@ export declare const getRunBuildOptions: ({ cachedConfig, currentDir, defaultCon
112
112
  export declare const logsAreBuffered: (logs: unknown) => logs is Logs;
113
113
  export declare const runBuild: (options: RunBuildOptions) => Promise<{
114
114
  exitCode: number;
115
- newConfig: NetlifyConfig;
116
- configMutations: Record<string, string>;
115
+ newConfig?: NetlifyConfig;
116
+ configMutations?: Awaited<ReturnType<typeof build>>['configMutations'];
117
117
  logs?: Logs;
118
118
  }>;
119
119
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Buffer } from 'buffer';
2
2
  import { basename, extname } from 'path';
3
3
  import { version as nodeVersion } from 'process';
4
- import CronParser from 'cron-parser';
4
+ import { CronExpressionParser } from 'cron-parser';
5
5
  import semver from 'semver';
6
6
  import { logAndThrowError } from '../../utils/command-helpers.js';
7
7
  import { BACKGROUND } from '../../utils/functions/get-functions.js';
@@ -11,7 +11,7 @@ const V2_MIN_NODE_VERSION = '20.12.2';
11
11
  // Returns a new set with all elements of `setA` that don't exist in `setB`.
12
12
  const difference = (setA, setB) => new Set([...setA].filter((item) => !setB.has(item)));
13
13
  const getNextRun = function (schedule) {
14
- const cron = CronParser.parseExpression(schedule, {
14
+ const cron = CronExpressionParser.parse(schedule, {
15
15
  tz: 'Etc/UTC',
16
16
  });
17
17
  return cron.next().toDate();
@@ -101,7 +101,7 @@ export async function runNetlifyBuild({ command, env = {}, options, settings, ti
101
101
  useStaticServer: true,
102
102
  dist: undefined,
103
103
  };
104
- if (!options.dir && netlifyConfig?.build?.publish) {
104
+ if (!options.dir && netlifyConfig?.build.publish) {
105
105
  settingsOverrides.dist = netlifyConfig.build.publish;
106
106
  }
107
107
  await devCommand({ netlifyConfig, settingsOverrides });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify",
3
- "version": "27.5.0",
3
+ "version": "27.5.1",
4
4
  "description": "Netlify command line tool",
5
5
  "keywords": [
6
6
  "api",
@@ -55,9 +55,9 @@
55
55
  "@netlify/ai": "^1.0.1",
56
56
  "@netlify/api": "^15.1.2",
57
57
  "@netlify/blobs": "^11.0.3",
58
- "@netlify/build": "^36.4.6",
58
+ "@netlify/build": "^36.4.7",
59
59
  "@netlify/build-info": "^11.3.0",
60
- "@netlify/config": "^25.2.3",
60
+ "@netlify/config": "^25.2.4",
61
61
  "@netlify/dev": "^5.0.5",
62
62
  "@netlify/dev-utils": "^6.0.1",
63
63
  "@netlify/edge-bundler": "^16.0.4",
@@ -84,7 +84,7 @@
84
84
  "comment-json": "^5.0.0",
85
85
  "content-type": "^1.0.5",
86
86
  "cookie": "^2.0.0",
87
- "cron-parser": "^4.9.0",
87
+ "cron-parser": "^5.0.0",
88
88
  "debug": "^4.4.3",
89
89
  "decache": "^4.6.2",
90
90
  "dot-prop": "^10.1.0",
@@ -134,13 +134,13 @@
134
134
  "parse-github-url": "^1.0.3",
135
135
  "pg": "^8.20.0",
136
136
  "prettyjson": "^1.2.5",
137
- "raw-body": "^3.0.1",
137
+ "raw-body": "^4.0.0",
138
138
  "read-package-up": "^12.0.0",
139
139
  "readdirp": "^5.0.0",
140
140
  "semver": "^7.7.2",
141
141
  "source-map-support": "^0.5.21",
142
142
  "terminal-link": "^5.0.0",
143
- "toml": "^3.0.0",
143
+ "toml": "^4.0.0",
144
144
  "tomlify-j0.4": "^3.0.0",
145
145
  "ulid": "^3.0.1",
146
146
  "update-notifier": "^7.3.1",
@@ -218,6 +218,11 @@
218
218
  "engines": {
219
219
  "node": ">=22.13.0"
220
220
  },
221
- "packageManager": "npm@10.9.4+sha512.3a7506f37e85c1ba1021baad79f0cd9724748131f321fc117c4dc3ba235ec01be7327584a41d15117c01945560aa9373220628fcc1e1dddd877a5fe9b336a900",
221
+ "packageManager": "npm@11.19.1+sha512.cedb312b1b7f92421a02cfb68b4194e88f8346651dacd6acc5364a25ef5309d4a32b19616a1ff8aff865e7280c0fa5c0835a99f5cd93368991e2a80ec9da75d2",
222
+ "allowScripts": {
223
+ "esbuild": true,
224
+ "sharp@0.34.5": true,
225
+ "unix-dgram": true
226
+ },
222
227
  "main": "./dist/index.js"
223
228
  }