@netlify/config 24.6.0 → 25.0.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.
@@ -1,5 +1,5 @@
1
- import { NetlifyAPI } from '@netlify/api';
2
1
  import * as z from 'zod';
2
+ import type { NetlifyAPI } from '@netlify/api';
3
3
  import { ModeOption, TestOptions } from '../types/options.js';
4
4
  type GetSiteInfoOptions = {
5
5
  siteId: string;
@@ -15,8 +15,8 @@ type GetSiteInfoOptions = {
15
15
  extensionApiBaseUrl: string;
16
16
  };
17
17
  export type Extension = {
18
- author: string | undefined;
19
- extension_token: string | undefined;
18
+ author?: string | undefined;
19
+ extension_token?: string | undefined;
20
20
  has_build: boolean;
21
21
  name: string;
22
22
  slug: string;
@@ -53,8 +53,8 @@ export type MinimalAccount = {
53
53
  members_count: number;
54
54
  };
55
55
  declare const ExtensionResponseSchema: z.ZodArray<z.ZodObject<{
56
- author: z.ZodDefault<z.ZodOptional<z.ZodString>>;
57
- extension_token: z.ZodDefault<z.ZodOptional<z.ZodString>>;
56
+ author: z.ZodOptional<z.ZodString>;
57
+ extension_token: z.ZodOptional<z.ZodString>;
58
58
  has_build: z.ZodBoolean;
59
59
  name: z.ZodString;
60
60
  slug: z.ZodString;
@@ -90,8 +90,8 @@ const ExtensionResponseSchema = z.array(z.object({
90
90
  // path. They might call the Netlify API expecting to have an API token available to them when
91
91
  // they really don't. For the time being, I've added instrumentation to Jigsaw to help us figure
92
92
  // out if this is dead code or actually supports current users.
93
- author: z.string().optional().default(undefined),
94
- extension_token: z.string().optional().default(undefined),
93
+ author: z.string().optional(),
94
+ extension_token: z.string().optional(),
95
95
  has_build: z.boolean(),
96
96
  name: z.string(),
97
97
  slug: z.string(),
@@ -1,2 +1,2 @@
1
1
  /** Retrieve normalized property name */
2
- export declare const getPropName: (keys: string[]) => string;
2
+ export declare const getPropName: (keys: (string | number)[]) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "24.6.0",
3
+ "version": "25.0.1",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -59,9 +59,9 @@
59
59
  "license": "MIT",
60
60
  "dependencies": {
61
61
  "@iarna/toml": "^2.2.5",
62
- "@netlify/api": "^14.0.19",
63
- "@netlify/headers-parser": "^9.0.3",
64
- "@netlify/redirect-parser": "^15.0.4",
62
+ "@netlify/api": "^15.0.1",
63
+ "@netlify/headers-parser": "^10.0.0",
64
+ "@netlify/redirect-parser": "^16.0.0",
65
65
  "chalk": "^5.0.0",
66
66
  "cron-parser": "^4.1.0",
67
67
  "deepmerge": "^4.2.2",
@@ -85,7 +85,7 @@
85
85
  "zod": "^4.0.5"
86
86
  },
87
87
  "devDependencies": {
88
- "@types/node": "^18.19.111",
88
+ "@types/node": "^22.12.0",
89
89
  "ava": "^5.0.0",
90
90
  "c8": "^10.0.0",
91
91
  "has-ansi": "^6.0.0",
@@ -94,7 +94,7 @@
94
94
  "typescript": "^5.0.0"
95
95
  },
96
96
  "engines": {
97
- "node": ">=18.14.0"
97
+ "node": ">=22.12.0"
98
98
  },
99
- "gitHead": "b41ec05a2415f75122ef97422bf6d0ba3cd3ed63"
99
+ "gitHead": "5824c3308718e079a24ab1a4cb4fc53b2ee66cf1"
100
100
  }