@vercel/build-utils 13.4.2 → 13.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/CHANGELOG.md +21 -0
- package/dist/framework-helpers.d.ts +1 -1
- package/dist/framework-helpers.js +1 -0
- package/dist/index.js +1 -0
- package/dist/python.d.ts +1 -0
- package/dist/types.d.ts +5 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 13.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add django experimental framework. ([#15196](https://github.com/vercel/vercel/pull/15196))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`cb79f6f8080fddd3673a8911566085e0265b060b`](https://github.com/vercel/vercel/commit/cb79f6f8080fddd3673a8911566085e0265b060b)]:
|
|
12
|
+
- @vercel/python-analysis@0.7.0
|
|
13
|
+
|
|
14
|
+
## 13.4.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [services] ([#15093](https://github.com/vercel/vercel/pull/15093))
|
|
19
|
+
- consolidate `workspace` and `entrypoint` from `experimentalServices` `vercel.json` schema
|
|
20
|
+
- make `framework` config in service optional -- infer framework from service workspace when not explicitly provided
|
|
21
|
+
- Updated dependencies [[`fc56fb91b4dafabe0f68f86efeabbaf98b2642bc`](https://github.com/vercel/vercel/commit/fc56fb91b4dafabe0f68f86efeabbaf98b2642bc)]:
|
|
22
|
+
- @vercel/python-analysis@0.6.0
|
|
23
|
+
|
|
3
24
|
## 13.4.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@ import { Builder } from '.';
|
|
|
3
3
|
* List of backend frameworks supported by the experimental backends feature
|
|
4
4
|
*/
|
|
5
5
|
export declare const BACKEND_FRAMEWORKS: readonly ["express", "hono", "h3", "koa", "nestjs", "fastify", "elysia"];
|
|
6
|
-
export declare const PYTHON_FRAMEWORKS: readonly ["fastapi", "flask", "python"];
|
|
6
|
+
export declare const PYTHON_FRAMEWORKS: readonly ["fastapi", "flask", "django", "python"];
|
|
7
7
|
export declare const RUNTIME_FRAMEWORKS: readonly ["python"];
|
|
8
8
|
/**
|
|
9
9
|
* List of framework-specific backend builders that get replaced by UNIFIED_BACKEND_BUILDER
|
package/dist/index.js
CHANGED
|
@@ -25066,6 +25066,7 @@ var BACKEND_FRAMEWORKS = [
|
|
|
25066
25066
|
var PYTHON_FRAMEWORKS = [
|
|
25067
25067
|
"fastapi",
|
|
25068
25068
|
"flask",
|
|
25069
|
+
"django",
|
|
25069
25070
|
"python"
|
|
25070
25071
|
// Generic Python framework preset
|
|
25071
25072
|
];
|
package/dist/python.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import FileFsRef from './file-fs-ref';
|
|
|
2
2
|
/**
|
|
3
3
|
* Check if a Python file is a valid entrypoint by detecting:
|
|
4
4
|
* - A top-level 'app' callable (Flask, FastAPI, Sanic, WSGI/ASGI, etc.)
|
|
5
|
+
* - A top-level 'application' callable (Django)
|
|
5
6
|
* - A top-level 'handler' class (BaseHTTPRequestHandler subclass)
|
|
6
7
|
*/
|
|
7
8
|
export declare function isPythonEntrypoint(file: FileFsRef | {
|
package/dist/types.d.ts
CHANGED
|
@@ -482,6 +482,7 @@ export interface Service {
|
|
|
482
482
|
buildCommand?: string;
|
|
483
483
|
installCommand?: string;
|
|
484
484
|
routePrefix?: string;
|
|
485
|
+
routePrefixSource?: 'configured' | 'generated';
|
|
485
486
|
schedule?: string;
|
|
486
487
|
topic?: string;
|
|
487
488
|
consumer?: string;
|
|
@@ -631,16 +632,12 @@ export type ServiceType = 'web' | 'cron' | 'worker';
|
|
|
631
632
|
export interface ExperimentalServiceConfig {
|
|
632
633
|
type?: ServiceType;
|
|
633
634
|
/**
|
|
634
|
-
*
|
|
635
|
-
*
|
|
635
|
+
* Service entrypoint, relative to the project root.
|
|
636
|
+
* Can be either a file path (runtime entrypoint) or a directory path
|
|
637
|
+
* (service workspace for framework-based services).
|
|
638
|
+
* @example "apps/web", "services/api/src/index.ts", "services/fastapi/main.py"
|
|
636
639
|
*/
|
|
637
640
|
entrypoint?: string;
|
|
638
|
-
/**
|
|
639
|
-
* Path to the directory containing the service's manifest file
|
|
640
|
-
* (package.json, pyproject.toml, etc.).
|
|
641
|
-
* Defaults to "." (project root) if not specified.
|
|
642
|
-
*/
|
|
643
|
-
workspace?: string;
|
|
644
641
|
/** Framework to use */
|
|
645
642
|
framework?: string;
|
|
646
643
|
/** Builder to use, e.g. @vercel/node, @vercel/python */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/now-build-utils"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@vercel/python-analysis": "0.
|
|
14
|
+
"@vercel/python-analysis": "0.7.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@iarna/toml": "2.2.3",
|