@mastra/next 0.2.22 → 0.2.23-alpha.1

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.
Files changed (2) hide show
  1. package/README.md +2 -7
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -33,13 +33,8 @@ createNextRouteHandler({
33
33
 
34
34
  ## Documentation
35
35
 
36
- `createNextRouteHandler()` returns handlers for every HTTP method supported by the Mastra server. It initializes the underlying Hono adapter on the first request, so the handler object can be exported synchronously from the route module.
37
-
38
- The adapter reads the server configuration from the Mastra instance, including custom API routes, route authentication settings, MCP options, and `bodySizeLimit`. Next.js deployments default to a 4.5 MB request body limit unless the Mastra server configuration overrides it.
39
-
40
- Use the `tools` option to register additional server tools that are not already part of the Mastra instance. The `prefix` defaults to `/api` and must correspond to the URL segment before the App Router catch-all parameter.
41
-
42
- Authentication and custom route `requiresAuth` settings are forwarded to the shared Mastra Hono server adapter. An in-memory task store backs A2A task operations, so use this adapter with the lifecycle and persistence constraints of the target Next.js hosting environment in mind.
36
+ - [Next.js reference](https://mastra.ai/reference/server/next-adapter)
37
+ - [Guide](https://mastra.ai/integrations/frameworks/next-js)
43
38
 
44
39
  ## Changelog
45
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/next",
3
- "version": "0.2.22",
3
+ "version": "0.2.23-alpha.1",
4
4
  "description": "Mastra Next.js server adapter — drop your Mastra instance into a Next.js app",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@mastra/server": "1.64.0",
24
- "@mastra/hono": "1.7.6"
23
+ "@mastra/server": "1.65.0-alpha.1",
24
+ "@mastra/hono": "1.7.7-alpha.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "22.20.1",
@@ -32,7 +32,7 @@
32
32
  "vitest": "4.1.10",
33
33
  "@internal/lint": "0.0.130",
34
34
  "@internal/types-builder": "0.0.105",
35
- "@mastra/core": "1.64.0"
35
+ "@mastra/core": "1.65.0-alpha.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@mastra/core": ">=1.50.0-0 <2.0.0-0",