@mastra/deployer 1.84.0-alpha.0 → 1.84.0-alpha.2

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.
@@ -3,7 +3,7 @@ name: mastra-deployer
3
3
  description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/deployer"
6
- version: "1.84.0-alpha.0"
6
+ version: "1.84.0-alpha.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.84.0-alpha.0",
2
+ "version": "1.84.0-alpha.2",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deployer": {
@@ -15,7 +15,7 @@ Integration guides:
15
15
 
16
16
  ## With Next.js on Vercel
17
17
 
18
- If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/integrations/frameworks/next-js) and plan to deploy to Vercel, add `serverExternalPackages: ["@mastra/*"]` to your `next.config.ts`:
18
+ If you've integrated Mastra with Next.js and plan to deploy to Vercel, make sure your `next.config.ts` sets `serverExternalPackages: ["@mastra/*"]`. The [Next.js guide](https://mastra.ai/integrations/frameworks/next-js) adds it during setup. If your config doesn't have it, add it:
19
19
 
20
20
  ```typescript
21
21
  import type { NextConfig } from 'next'
@@ -36,7 +36,7 @@ require("hono/utils/handler");
36
36
  require("hono/utils/url");
37
37
  require("hono/validator");
38
38
  let hono_http_exception = require("hono/http-exception");
39
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.6/fdc2ef0c1fce27248082afaacb1b446b5df0c539a71d22f10b0596ee5aa343f0/node_modules/@hono/node-server/dist/index.mjs
39
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.7/d37d8e9854efcb85ff6794b845814f31e34d2e58bc3f5c9fc3aeb2b22a17d7d8/node_modules/@hono/node-server/dist/index.mjs
40
40
  var RequestError = class extends Error {
41
41
  constructor(message, options) {
42
42
  super(message, options);
@@ -1362,7 +1362,7 @@ const serve = (options, listeningListener) => {
1362
1362
  });
1363
1363
  return server;
1364
1364
  };
1365
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.6/fdc2ef0c1fce27248082afaacb1b446b5df0c539a71d22f10b0596ee5aa343f0/node_modules/@hono/node-server/dist/utils/stream.mjs
1365
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.7/d37d8e9854efcb85ff6794b845814f31e34d2e58bc3f5c9fc3aeb2b22a17d7d8/node_modules/@hono/node-server/dist/utils/stream.mjs
1366
1366
  const pr54206Applied = () => {
1367
1367
  const [major, minor] = process$1.versions.node.split(".").map((component) => parseInt(component));
1368
1368
  return major >= 23 || major === 22 && minor >= 7 || major === 20 && minor >= 18;
@@ -1420,7 +1420,7 @@ const createStreamBody = (stream$2, useNativeReadableToWeb = useReadableToWeb) =
1420
1420
  }
1421
1421
  });
1422
1422
  };
1423
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.6/fdc2ef0c1fce27248082afaacb1b446b5df0c539a71d22f10b0596ee5aa343f0/node_modules/@hono/node-server/dist/serve-static.mjs
1423
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.7/d37d8e9854efcb85ff6794b845814f31e34d2e58bc3f5c9fc3aeb2b22a17d7d8/node_modules/@hono/node-server/dist/serve-static.mjs
1424
1424
  const COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i;
1425
1425
  const ENCODINGS = {
1426
1426
  br: ".br",
@@ -1494,8 +1494,8 @@ const serveStatic = (options = { root: "" }) => {
1494
1494
  let filename;
1495
1495
  if (optionPath) filename = optionPath;
1496
1496
  else try {
1497
- if (!options.allowPercentInPath && c.req.path.includes("%")) throw new Error();
1498
1497
  filename = tryDecodeURI(c.req.path);
1498
+ if (c.req.path.includes("%") && (!options.allowPercentInPath || filename !== c.req.path.replace(/%25/g, "%"))) throw new Error();
1499
1499
  if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) throw new Error();
1500
1500
  } catch {
1501
1501
  await options.onNotFound?.(c.req.path, c);
@@ -1564,7 +1564,7 @@ const serveStatic = (options = { root: "" }) => {
1564
1564
  return result;
1565
1565
  };
1566
1566
  };
1567
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/2d64a3444a8e781b9d0909ff286ca728dbe5419d9721688c851938b2e50a9382/node_modules/@hono/swagger-ui/dist/index.js
1567
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/6b2f93a98b68e035f9c65ac036a7e9a1e168da026400bf3800b3492ae5194a4b/node_modules/@hono/swagger-ui/dist/index.js
1568
1568
  const RENDER_TYPE = {
1569
1569
  STRING_ARRAY: "string_array",
1570
1570
  STRING: "string",
@@ -4152,7 +4152,7 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
4152
4152
  });
4153
4153
  }
4154
4154
  };
4155
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/6ca93514d06afdfd0d7befe948e629b04e66fbf3f0241f2ac71dd8ec9b8121b7/node_modules/hono-openapi/dist/index.js
4155
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/94b1b2009d93c0da7774cf58002b69bcd48659897de9b7413e5e1cfe9bef6108/node_modules/hono-openapi/dist/index.js
4156
4156
  const uniqueSymbol = Symbol.for("hono-openapi");
4157
4157
  function describeRoute(spec) {
4158
4158
  const middleware = async (_c, next) => {