@netlify/config 25.2.3 → 25.2.4

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 CronParser from 'cron-parser';
1
+ import { CronExpressionParser } from 'cron-parser';
2
2
  import isPlainObj from 'is-plain-obj';
3
3
  import validateNpmPackageName from 'validate-npm-package-name';
4
4
  import { validations as edgeFunctionValidations, EDGE_FUNCTIONS_PROPERTIES } from '../edge_functions.js';
@@ -10,7 +10,7 @@ import { functionsDirectoryCheck, isArrayOfObjects, isArrayOfStrings, isBoolean,
10
10
  */
11
11
  const isValidCronExpression = (cron) => {
12
12
  try {
13
- CronParser.parseExpression(cron);
13
+ CronExpressionParser.parse(cron);
14
14
  return true;
15
15
  }
16
16
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "25.2.3",
3
+ "version": "25.2.4",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -21,11 +21,9 @@
21
21
  "scripts": {
22
22
  "prebuild": "rm -rf lib",
23
23
  "build": "tsc",
24
- "test": "ava && vitest run",
25
- "test:dev": "ava -w",
26
- "test:ci": "npm run test:ci:ava && npm run test:ci:vitest",
27
- "test:ci:ava": "c8 -r lcovonly -r text -r json ava",
28
- "test:ci:vitest": "vitest run"
24
+ "test": "vitest run",
25
+ "test:dev": "vitest",
26
+ "test:ci": "vitest run --coverage --reporter=default"
29
27
  },
30
28
  "keywords": [
31
29
  "javascript",
@@ -63,8 +61,8 @@
63
61
  "@netlify/api": "^15.1.2",
64
62
  "@netlify/headers-parser": "^10.1.1",
65
63
  "@netlify/redirect-parser": "^16.1.1",
66
- "chalk": "^5.0.0",
67
- "cron-parser": "^4.1.0",
64
+ "chalk": "^6.0.0",
65
+ "cron-parser": "^5.0.0",
68
66
  "deepmerge": "^4.2.2",
69
67
  "dot-prop": "^9.0.0",
70
68
  "execa": "^8.0.0",
@@ -87,8 +85,7 @@
87
85
  },
88
86
  "devDependencies": {
89
87
  "@types/node": "^22.12.0",
90
- "ava": "^5.0.0",
91
- "c8": "^10.0.0",
88
+ "@vitest/coverage-v8": "^3.2.6",
92
89
  "has-ansi": "^6.0.0",
93
90
  "is-ci": "^4.0.0",
94
91
  "tmp-promise": "^3.0.2",
@@ -97,5 +94,5 @@
97
94
  "engines": {
98
95
  "node": ">=22.12.0"
99
96
  },
100
- "gitHead": "aaee524cfed2fc082e6cb7268ce7230071b39068"
97
+ "gitHead": "d30dc9ad0c79ea23f01354f2487187d3398f5de2"
101
98
  }