vercel-cli 41.1.0__py3-none-any.whl → 46.1.1__py3-none-any.whl

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.

Potentially problematic release.


This version of vercel-cli might be problematic. Click here for more details.

Files changed (30) hide show
  1. vercel_cli/vendor/README.md +1 -1
  2. vercel_cli/vendor/dist/index.js +72501 -59234
  3. vercel_cli/vendor/node_modules/.package-lock.json +12 -6
  4. vercel_cli/vendor/node_modules/@vercel/build-utils/CHANGELOG.md +168 -0
  5. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.d.ts +1 -0
  6. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.js +7 -1
  7. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/run-user-scripts.d.ts +11 -12
  8. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/run-user-scripts.js +220 -87
  9. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-prefixed-env-vars.js +4 -1
  10. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.js +393 -155
  11. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.d.ts +44 -4
  12. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.js +91 -3
  13. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/prerender.d.ts +12 -1
  14. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/prerender.js +3 -2
  15. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/schemas.d.ts +41 -0
  16. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/schemas.js +43 -1
  17. vercel_cli/vendor/node_modules/@vercel/build-utils/dist/types.d.ts +41 -10
  18. vercel_cli/vendor/node_modules/@vercel/build-utils/package.json +3 -2
  19. vercel_cli/vendor/node_modules/@vercel/detect-agent/LICENSE +202 -0
  20. vercel_cli/vendor/node_modules/@vercel/detect-agent/dist/index.d.ts +1 -0
  21. vercel_cli/vendor/node_modules/@vercel/detect-agent/dist/index.js +66 -0
  22. vercel_cli/vendor/node_modules/@vercel/detect-agent/package.json +31 -0
  23. vercel_cli/vendor/node_modules/@vercel/python/dist/index.js +29 -37
  24. vercel_cli/vendor/node_modules/@vercel/python/package.json +2 -2
  25. vercel_cli/vendor/node_modules/@vercel/python/vc_init.py +8 -7
  26. vercel_cli/vendor/package.json +4 -3
  27. {vercel_cli-41.1.0.dist-info → vercel_cli-46.1.1.dist-info}/METADATA +1 -1
  28. {vercel_cli-41.1.0.dist-info → vercel_cli-46.1.1.dist-info}/RECORD +30 -26
  29. {vercel_cli-41.1.0.dist-info → vercel_cli-46.1.1.dist-info}/WHEEL +0 -0
  30. {vercel_cli-41.1.0.dist-info → vercel_cli-46.1.1.dist-info}/entry_points.txt +0 -0
@@ -3,15 +3,21 @@
3
3
  "requires": true,
4
4
  "packages": {
5
5
  "node_modules/@vercel/build-utils": {
6
- "version": "9.3.0",
7
- "resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-9.3.0.tgz",
8
- "integrity": "sha512-+O0egPVgo3Ks72308DjUGxkAo12ZrHPfklMhq8xe7CoILLMg9k+aPsKykCtWz1uFWpFD9+UVDuTcuENC4Q60WQ==",
6
+ "version": "11.0.2",
7
+ "resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-11.0.2.tgz",
8
+ "integrity": "sha512-Y48OT9IsvAFU21LJ3m5SbrXpQaD++h4v4nQoQjCUDZORxXzPf3doVQfrQBBIX45xoSkfq/Fuq0VNF0yRbJw/aA==",
9
+ "license": "Apache-2.0"
10
+ },
11
+ "node_modules/@vercel/detect-agent": {
12
+ "version": "0.2.0",
13
+ "resolved": "https://registry.npmjs.org/@vercel/detect-agent/-/detect-agent-0.2.0.tgz",
14
+ "integrity": "sha512-qf10Q2UwlbJAcWVqQGkyp9OlLBn9Aj2VVE0M4mTDe0gpB7Fo8qycTJLccDbHeyLrWnT6Q12sVy9ZYHas7B+rwg==",
9
15
  "license": "Apache-2.0"
10
16
  },
11
17
  "node_modules/@vercel/python": {
12
- "version": "4.7.1",
13
- "resolved": "https://registry.npmjs.org/@vercel/python/-/python-4.7.1.tgz",
14
- "integrity": "sha512-H4g/5e8unII4oQ+KN5IUvTZSzHmj+lLYDkAK15QGYgAxBtE/mHUvEZpPPo7DPUDIyfq8ybWB1bmk7H5kEahubQ==",
18
+ "version": "5.0.0",
19
+ "resolved": "https://registry.npmjs.org/@vercel/python/-/python-5.0.0.tgz",
20
+ "integrity": "sha512-JHpYKQ8d478REzmF7NcJTJcncFziJhVOwzan8wW4F1RJOHGDBTPkATAgi4CPQIijToRamPCkgeECzNOvLUDR+w==",
15
21
  "license": "Apache-2.0"
16
22
  }
17
23
  }
@@ -1,5 +1,173 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 11.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add support for the supportsCancellation function flag ([#13807](https://github.com/vercel/vercel/pull/13807))
8
+
9
+ ## 11.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix 404 status for /api routes when using Hono with the vercel dev server ([#13706](https://github.com/vercel/vercel/pull/13706))
14
+
15
+ ## 11.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - Add support for vlt as a package manager ([#13591](https://github.com/vercel/vercel/pull/13591))
20
+
21
+ ## 10.6.7
22
+
23
+ ### Patch Changes
24
+
25
+ - Reverting support for `preferredRegion` ([#13566](https://github.com/vercel/vercel/pull/13566))
26
+
27
+ ## 10.6.6
28
+
29
+ ### Patch Changes
30
+
31
+ - Deprecate Node.js 18.x with warning ([#13549](https://github.com/vercel/vercel/pull/13549))
32
+
33
+ ## 10.6.5
34
+
35
+ ### Patch Changes
36
+
37
+ - rename experimental maxAttempts to maxDeliveries ([#13534](https://github.com/vercel/vercel/pull/13534))
38
+
39
+ ## 10.6.4
40
+
41
+ ### Patch Changes
42
+
43
+ - simplify experimental triggers ([#13527](https://github.com/vercel/vercel/pull/13527))
44
+
45
+ ## 10.6.3
46
+
47
+ ### Patch Changes
48
+
49
+ - make POST method required ([#13518](https://github.com/vercel/vercel/pull/13518))
50
+
51
+ - Update more handling for experimentalTriggers ([#13517](https://github.com/vercel/vercel/pull/13517))
52
+
53
+ ## 10.6.2
54
+
55
+ ### Patch Changes
56
+
57
+ - Add CloudEventTrigger support for Lambda functions ([#13503](https://github.com/vercel/vercel/pull/13503))
58
+
59
+ ## 10.6.1
60
+
61
+ ### Patch Changes
62
+
63
+ - next package uses @vercel/routing-utils HasField rather than redefining & stricter validation. ([#13409](https://github.com/vercel/vercel/pull/13409))
64
+
65
+ - Make architecture a defined property on Lambda classes to apply when creating ([#13398](https://github.com/vercel/vercel/pull/13398))
66
+
67
+ - [env-vars] expose VERCEL_PROJECT_ID as NEXT_PUBLIC_VERCEL_PROJECT_ID ([#13431](https://github.com/vercel/vercel/pull/13431))
68
+
69
+ ## 10.6.0
70
+
71
+ ### Minor Changes
72
+
73
+ - provide a more verbose error when package.json is not valid ([#13346](https://github.com/vercel/vercel/pull/13346))
74
+
75
+ - Allow configuring functions `architecture` via the `vercel.json` configuration ([#13344](https://github.com/vercel/vercel/pull/13344))
76
+
77
+ ## 10.5.1
78
+
79
+ ### Patch Changes
80
+
81
+ - Display warning when yarn dynamic require error may happen ([#13143](https://github.com/vercel/vercel/pull/13143))
82
+
83
+ - [build-utils] increase max memory limit ([#13162](https://github.com/vercel/vercel/pull/13162))
84
+
85
+ ## 10.5.0
86
+
87
+ ### Minor Changes
88
+
89
+ - Disable yarn global cache before installs so build cache caches deps ([#13144](https://github.com/vercel/vercel/pull/13144))
90
+
91
+ ## 10.4.0
92
+
93
+ ### Minor Changes
94
+
95
+ - Expose pnpm6 within the detected package manager path for future versions of the build container ([#13132](https://github.com/vercel/vercel/pull/13132))
96
+
97
+ ## 10.3.2
98
+
99
+ ### Patch Changes
100
+
101
+ - Add support for expire values in Next.js prerender manifest ([#13087](https://github.com/vercel/vercel/pull/13087))
102
+
103
+ - Detect yarn version from lockfile version ([#13118](https://github.com/vercel/vercel/pull/13118))
104
+
105
+ ## 10.3.1
106
+
107
+ ### Patch Changes
108
+
109
+ - Parse yarn.lock file version ([#13114](https://github.com/vercel/vercel/pull/13114))
110
+
111
+ - [env-vars] expose VERCEL_DEPLOYMENT_ID as NEXT_PUBLIC_VERCEL_DEPLOYMENT_ID ([#13115](https://github.com/vercel/vercel/pull/13115))
112
+
113
+ - Fix vitest-e2e glob to include integration.test.ts ([#13097](https://github.com/vercel/vercel/pull/13097))
114
+
115
+ ## 10.3.0
116
+
117
+ ### Minor Changes
118
+
119
+ - Delay pnpm@10 preferred date ([#13100](https://github.com/vercel/vercel/pull/13100))
120
+
121
+ ### Patch Changes
122
+
123
+ - Type-check tests ([#13096](https://github.com/vercel/vercel/pull/13096))
124
+
125
+ ## 10.2.0
126
+
127
+ ### Minor Changes
128
+
129
+ - Detect v9 pnpm lock files as pnpm 10 for new projects ([#13072](https://github.com/vercel/vercel/pull/13072))
130
+
131
+ ### Patch Changes
132
+
133
+ - Improve build log messages surrounding pnpm 10 ([#13088](https://github.com/vercel/vercel/pull/13088))
134
+
135
+ - [build-utils] extract checkIfAlreadyInstalled helper to clarify intent ([#13060](https://github.com/vercel/vercel/pull/13060))
136
+
137
+ - Allow pnpm 10 to use package.json#packageManager without an engines error ([#13083](https://github.com/vercel/vercel/pull/13083))
138
+
139
+ ## 10.1.0
140
+
141
+ ### Minor Changes
142
+
143
+ - [envs] add `VERCEL_TARGET_ENV` to prefixed env vars ([#13069](https://github.com/vercel/vercel/pull/13069))
144
+
145
+ ## 10.0.1
146
+
147
+ ### Patch Changes
148
+
149
+ - [build-utils] Move `runNpmInstallSema` closer to where it's used ([#13061](https://github.com/vercel/vercel/pull/13061))
150
+
151
+ - [build-utils] extract getInstallCommandForPackageManager to module scope ([#13058](https://github.com/vercel/vercel/pull/13058))
152
+
153
+ - [build-utils] remove redundant sema release ([#13059](https://github.com/vercel/vercel/pull/13059))
154
+
155
+ - Revert support pnpm 10 ([#13064](https://github.com/vercel/vercel/pull/13064))
156
+
157
+ ## 10.0.0
158
+
159
+ ### Major Changes
160
+
161
+ - Detect v9 pnpm lockfiles as pnpm 10 generated ([#12852](https://github.com/vercel/vercel/pull/12852))
162
+
163
+ ## 9.3.1
164
+
165
+ ### Patch Changes
166
+
167
+ - [build-utils] extract install command specific logic into helper ([#13049](https://github.com/vercel/vercel/pull/13049))
168
+
169
+ - [build-utils] remove dead node 16 check ([#13047](https://github.com/vercel/vercel/pull/13047))
170
+
3
171
  ## 9.3.0
4
172
 
5
173
  ### Minor Changes
@@ -1,6 +1,7 @@
1
1
  import { NodeVersion } from '../types';
2
2
  export type NodeVersionMajor = ReturnType<typeof getOptions>[number]['major'];
3
3
  export declare const NODE_VERSIONS: NodeVersion[];
4
+ export declare function getNodeVersionByMajor(major: number): NodeVersion | undefined;
4
5
  declare function getOptions(): NodeVersion[];
5
6
  export declare function getAvailableNodeVersions(): NodeVersionMajor[];
6
7
  export declare function getLatestNodeVersion(availableVersions?: NodeVersionMajor[]): NodeVersion;
@@ -32,6 +32,7 @@ __export(node_version_exports, {
32
32
  getAvailableNodeVersions: () => getAvailableNodeVersions,
33
33
  getDiscontinuedNodeVersions: () => getDiscontinuedNodeVersions,
34
34
  getLatestNodeVersion: () => getLatestNodeVersion,
35
+ getNodeVersionByMajor: () => getNodeVersionByMajor,
35
36
  getSupportedNodeVersion: () => getSupportedNodeVersion
36
37
  });
37
38
  module.exports = __toCommonJS(node_version_exports);
@@ -54,7 +55,8 @@ const NODE_VERSIONS = [
54
55
  new import_types.NodeVersion({
55
56
  major: 18,
56
57
  range: "18.x",
57
- runtime: "nodejs18.x"
58
+ runtime: "nodejs18.x",
59
+ discontinueDate: /* @__PURE__ */ new Date("2025-09-01")
58
60
  }),
59
61
  new import_types.NodeVersion({
60
62
  major: 16,
@@ -87,6 +89,9 @@ const NODE_VERSIONS = [
87
89
  discontinueDate: /* @__PURE__ */ new Date("2020-01-06")
88
90
  })
89
91
  ];
92
+ function getNodeVersionByMajor(major) {
93
+ return NODE_VERSIONS.find((v) => v.major === major);
94
+ }
90
95
  function getOptions() {
91
96
  return NODE_VERSIONS;
92
97
  }
@@ -176,5 +181,6 @@ async function getSupportedNodeVersion(engineRange, isAuto = false, availableVer
176
181
  getAvailableNodeVersions,
177
182
  getDiscontinuedNodeVersions,
178
183
  getLatestNodeVersion,
184
+ getNodeVersionByMajor,
179
185
  getSupportedNodeVersion
180
186
  });
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { SpawnOptions } from 'child_process';
3
3
  import { Meta, PackageJson, NodeVersion, Config } from '../types';
4
- export type CliType = 'yarn' | 'npm' | 'pnpm' | 'bun';
4
+ export type CliType = 'yarn' | 'npm' | 'pnpm' | 'bun' | 'vlt';
5
5
  export interface ScanParentDirsResult {
6
6
  /**
7
7
  * "yarn", "npm", or "pnpm" depending on the presence of lockfiles.
@@ -92,12 +92,12 @@ export declare function usingCorepack(env: {
92
92
  [x: string]: string | undefined;
93
93
  }, packageJsonPackageManager: string | undefined, turboSupportsCorepackHome: boolean | undefined): boolean;
94
94
  export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>;
95
- export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, nodeVersion?: NodeVersion): Promise<boolean>;
95
+ export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, nodeVersion?: NodeVersion, projectCreatedAt?: number): Promise<boolean>;
96
96
  /**
97
97
  * Prepares the input environment based on the used package manager and lockfile
98
98
  * versions.
99
99
  */
100
- export declare function getEnvForPackageManager({ cliType, lockfileVersion, packageJsonPackageManager, nodeVersion, env, packageJsonEngines, turboSupportsCorepackHome, }: {
100
+ export declare function getEnvForPackageManager({ cliType, lockfileVersion, packageJsonPackageManager, nodeVersion, env, packageJsonEngines, turboSupportsCorepackHome, projectCreatedAt, }: {
101
101
  cliType: CliType;
102
102
  lockfileVersion: number | undefined;
103
103
  packageJsonPackageManager?: string | undefined;
@@ -107,20 +107,23 @@ export declare function getEnvForPackageManager({ cliType, lockfileVersion, pack
107
107
  };
108
108
  packageJsonEngines?: PackageJson.Engines;
109
109
  turboSupportsCorepackHome?: boolean | undefined;
110
+ projectCreatedAt?: number | undefined;
110
111
  }): {
111
112
  [x: string]: string | undefined;
112
113
  };
114
+ export declare const PNPM_10_PREFERRED_AT: Date;
113
115
  /**
114
116
  * Helper to get the binary paths that link to the used package manager.
115
117
  * Note: Make sure it doesn't contain any `console.log` calls.
116
118
  */
117
- export declare function getPathOverrideForPackageManager({ cliType, lockfileVersion, corepackPackageManager, corepackEnabled, packageJsonEngines, }: {
119
+ export declare function getPathOverrideForPackageManager({ cliType, lockfileVersion, corepackPackageManager, corepackEnabled, packageJsonEngines, projectCreatedAt, }: {
118
120
  cliType: CliType;
119
121
  lockfileVersion: number | undefined;
120
122
  corepackPackageManager: string | undefined;
121
123
  nodeVersion: NodeVersion | undefined;
122
124
  corepackEnabled?: boolean;
123
125
  packageJsonEngines?: PackageJson.Engines;
126
+ projectCreatedAt?: number;
124
127
  }): {
125
128
  /**
126
129
  * Which lockfile was detected.
@@ -136,16 +139,11 @@ export declare function getPathOverrideForPackageManager({ cliType, lockfileVers
136
139
  */
137
140
  path: string | undefined;
138
141
  };
139
- export declare function detectPackageManager(cliType: CliType, lockfileVersion: number | undefined): {
142
+ export declare function detectPackageManager(cliType: CliType, lockfileVersion: number | undefined, projectCreatedAt?: number): {
140
143
  path: string;
141
144
  detectedLockfile: string;
142
145
  detectedPackageManager: string;
143
146
  pnpmVersionRange: string;
144
- } | {
145
- path: undefined;
146
- detectedLockfile: string;
147
- detectedPackageManager: string;
148
- pnpmVersionRange: string;
149
147
  } | {
150
148
  path: string;
151
149
  detectedLockfile: string;
@@ -189,13 +187,14 @@ export declare function getPathForPackageManager({ cliType, lockfileVersion, nod
189
187
  */
190
188
  yarnNodeLinker: string | undefined;
191
189
  };
192
- export declare function runCustomInstallCommand({ destPath, installCommand, nodeVersion, spawnOpts, }: {
190
+ export declare function runCustomInstallCommand({ destPath, installCommand, nodeVersion, spawnOpts, projectCreatedAt, }: {
193
191
  destPath: string;
194
192
  installCommand: string;
195
193
  nodeVersion: NodeVersion;
196
194
  spawnOpts?: SpawnOptions;
195
+ projectCreatedAt?: number;
197
196
  }): Promise<void>;
198
- export declare function runPackageJsonScript(destPath: string, scriptNames: string | Iterable<string>, spawnOpts?: SpawnOptions): Promise<boolean>;
197
+ export declare function runPackageJsonScript(destPath: string, scriptNames: string | Iterable<string>, spawnOpts?: SpawnOptions, projectCreatedAt?: number): Promise<boolean>;
199
198
  export declare function runBundleInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta): Promise<void>;
200
199
  export declare function runPipInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta): Promise<void>;
201
200
  export declare function getScriptName(pkg: Pick<PackageJson, 'scripts'> | null | undefined, possibleNames: Iterable<string>): string | undefined;