@vercel/build-utils 13.4.2 → 13.4.3

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 13.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [services] ([#15093](https://github.com/vercel/vercel/pull/15093))
8
+ - consolidate `workspace` and `entrypoint` from `experimentalServices` `vercel.json` schema
9
+ - make `framework` config in service optional -- infer framework from service workspace when not explicitly provided
10
+ - Updated dependencies [[`fc56fb91b4dafabe0f68f86efeabbaf98b2642bc`](https://github.com/vercel/vercel/commit/fc56fb91b4dafabe0f68f86efeabbaf98b2642bc)]:
11
+ - @vercel/python-analysis@0.6.0
12
+
3
13
  ## 13.4.2
4
14
 
5
15
  ### 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
@@ -43,6 +43,7 @@ const BACKEND_FRAMEWORKS = [
43
43
  const PYTHON_FRAMEWORKS = [
44
44
  "fastapi",
45
45
  "flask",
46
+ "django",
46
47
  "python"
47
48
  // Generic Python framework preset
48
49
  ];
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
- * Entry file for the service, relative to the workspace directory.
635
- * @example "src/index.ts", "main.py", "api/server.go"
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.4.2",
3
+ "version": "13.4.3",
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.5.0"
14
+ "@vercel/python-analysis": "0.6.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@iarna/toml": "2.2.3",