@netlify/config 24.4.3 → 24.5.0

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/files.js CHANGED
@@ -18,7 +18,7 @@ const FILE_PATH_CONFIG_PROPS = [
18
18
  'functions.*.deno_import_map',
19
19
  'build.publish',
20
20
  'build.edge_functions',
21
- 'db.migrations.path',
21
+ 'database.migrations.path',
22
22
  ];
23
23
  /**
24
24
  * Make configuration paths relative to `buildDir` and converts them to
@@ -96,9 +96,9 @@ const DEFAULT_PATHS = [
96
96
  propName: 'build.edge_functions',
97
97
  },
98
98
  {
99
- getConfig: (directory) => ({ db: { migrations: { path: directory } } }),
100
- defaultPath: 'netlify/db/migrations',
101
- propName: 'db.migrations.path',
99
+ getConfig: (directory) => ({ database: { migrations: { path: directory } } }),
100
+ defaultPath: 'netlify/database/migrations',
101
+ propName: 'database.migrations.path',
102
102
  },
103
103
  ];
104
104
  const addDefaultPath = ({ repositoryRoot, packagePath, baseRel, defaultPath, getConfig, propName, }) => {
@@ -101,7 +101,7 @@ export const PRE_NORMALIZE_VALIDATIONS: ({
101
101
  check: typeof isPlainObj;
102
102
  message: string;
103
103
  example: () => {
104
- db: {
104
+ database: {
105
105
  migrations: {
106
106
  path: string;
107
107
  };
@@ -310,7 +310,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
310
310
  check: (value: any) => value is string;
311
311
  message: string;
312
312
  example: () => {
313
- db: {
313
+ database: {
314
314
  migrations: {
315
315
  path: string;
316
316
  };
@@ -105,16 +105,16 @@ export const PRE_NORMALIZE_VALIDATIONS = [
105
105
  }),
106
106
  },
107
107
  {
108
- property: 'db',
108
+ property: 'database',
109
109
  check: isPlainObj,
110
110
  message: 'must be a plain object.',
111
- example: () => ({ db: { migrations: { path: 'netlify/db/migrations' } } }),
111
+ example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
112
112
  },
113
113
  {
114
- property: 'db.migrations',
114
+ property: 'database.migrations',
115
115
  check: isPlainObj,
116
116
  message: 'must be a plain object.',
117
- example: () => ({ db: { migrations: { path: 'netlify/db/migrations' } } }),
117
+ example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
118
118
  },
119
119
  ];
120
120
  const EXAMPLE_PORT = 80;
@@ -265,10 +265,10 @@ export const POST_NORMALIZE_VALIDATIONS = [
265
265
  }),
266
266
  },
267
267
  {
268
- property: 'db.migrations.path',
268
+ property: 'database.migrations.path',
269
269
  check: isString,
270
270
  message: 'must be a string.',
271
- example: () => ({ db: { migrations: { path: 'netlify/db/migrations' } } }),
271
+ example: () => ({ database: { migrations: { path: 'netlify/database/migrations' } } }),
272
272
  },
273
273
  ...edgeFunctionValidations,
274
274
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "24.4.3",
3
+ "version": "24.5.0",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -59,7 +59,7 @@
59
59
  "license": "MIT",
60
60
  "dependencies": {
61
61
  "@iarna/toml": "^2.2.5",
62
- "@netlify/api": "^14.0.17",
62
+ "@netlify/api": "^14.0.18",
63
63
  "@netlify/headers-parser": "^9.0.3",
64
64
  "@netlify/redirect-parser": "^15.0.4",
65
65
  "chalk": "^5.0.0",
@@ -96,5 +96,5 @@
96
96
  "engines": {
97
97
  "node": ">=18.14.0"
98
98
  },
99
- "gitHead": "047f4ed6f320efe5ce93230e13e128784c5cafd0"
99
+ "gitHead": "c77982ba1d1886e81f1a517318fcf93123f2a260"
100
100
  }