@vercel/fs-detectors 5.18.3 → 5.19.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.
@@ -27,8 +27,7 @@ export declare function detectServices(options: DetectServicesOptions): Promise<
27
27
  * Build Output API builders, etc.) are not given synthetic routes here.
28
28
  *
29
29
  * - Worker and queue-triggered job services:
30
- * Internal queue callback routes under `/_svc/{serviceName}/workers/{entry}/{handler}`
31
- * that rewrite to `/_svc/{serviceName}/index`.
30
+ * Use private path routing. The generated function is not publicly accessible.
32
31
  *
33
32
  * - Schedule-triggered job services:
34
33
  * Internal cron callback routes under `/_svc/{serviceName}/crons/{entry}/{handler}`
@@ -256,20 +256,6 @@ function generateServicesRoutes(services) {
256
256
  }
257
257
  }
258
258
  }
259
- const workerServices = services.filter(import_build_utils.isQueueTriggeredService);
260
- for (const service of workerServices) {
261
- const workerEntrypoint = service.entrypoint || service.builder.src || "index";
262
- const workerPath = (0, import_utils.getInternalServiceWorkerPath)(
263
- service.name,
264
- workerEntrypoint
265
- );
266
- const functionPath = (0, import_utils.getInternalServiceFunctionPath)(service.name);
267
- workers.push({
268
- src: `^${escapeRegex(workerPath)}$`,
269
- dest: functionPath,
270
- check: true
271
- });
272
- }
273
259
  const cronServices = services.filter(import_build_utils.isScheduleTriggeredService);
274
260
  for (const service of cronServices) {
275
261
  const cronPrefix = (0, import_utils.getInternalServiceCronPathPrefix)(service.name);
@@ -520,7 +520,6 @@ async function resolveConfiguredService(options) {
520
520
  }
521
521
  }
522
522
  const topics = type === "worker" ? (0, import_build_utils.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : void 0;
523
- const consumer = type === "worker" ? config.consumer || "default" : config.consumer;
524
523
  let builderUse;
525
524
  let builderSrc;
526
525
  const frameworkDefinition = config.framework ? frameworksBySlug.get(config.framework) : void 0;
@@ -604,7 +603,6 @@ async function resolveConfiguredService(options) {
604
603
  schedule: config.schedule,
605
604
  handlerFunction: moduleAttrParsed?.attrName,
606
605
  topics,
607
- consumer,
608
606
  envPrefix: config.envPrefix
609
607
  };
610
608
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.18.3",
3
+ "version": "5.19.0",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
+ "@vercel/error-utils": "2.0.3",
24
+ "@vercel/build-utils": "13.19.0",
23
25
  "@vercel/frameworks": "3.24.1",
24
- "@vercel/routing-utils": "6.1.1",
25
- "@vercel/build-utils": "13.18.0",
26
- "@vercel/error-utils": "2.0.3"
26
+ "@vercel/routing-utils": "6.1.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/glob": "7.2.0",