@mastra/inngest 1.3.0 → 1.3.1-alpha.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 CHANGED
@@ -1,5 +1,48 @@
1
1
  # @mastra/inngest
2
2
 
3
+ ## 1.3.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed peer dependency ranges so packages that use the Mastra server require a compatible Mastra core version. ([#16208](https://github.com/mastra-ai/mastra/pull/16208))
8
+
9
+ - Updated the `serve` and `createServe` JSDoc adapter examples to register Inngest at `/inngest/api` instead of `/api/inngest`, matching the Inngest deployment guide and in-repo example projects. ([#16186](https://github.com/mastra-ai/mastra/pull/16186))
10
+
11
+ **Why**
12
+
13
+ Mastra reserves the `/api` prefix for built-in routes (agents, workflows, memory). Custom `apiRoutes[].path` values that start with the server's `apiPrefix` (default `/api`) are rejected at startup, so the previous JSDoc snippets threw `Custom API route "/api/inngest" must not start with "/api"` when copy-pasted into a current Mastra project.
14
+
15
+ **Migration**
16
+
17
+ If you registered Inngest with the previous guide or JSDoc example:
18
+
19
+ ```ts
20
+ // Before
21
+ apiRoutes: [
22
+ {
23
+ path: '/api/inngest',
24
+ method: 'ALL',
25
+ createHandler: async ({ mastra }) => serve({ mastra, inngest }),
26
+ },
27
+ ];
28
+
29
+ // After
30
+ apiRoutes: [
31
+ {
32
+ path: '/inngest/api',
33
+ method: 'ALL',
34
+ createHandler: async ({ mastra }) => serve({ mastra, inngest }),
35
+ },
36
+ ];
37
+ ```
38
+
39
+ Update the dev server URL (`npx inngest-cli dev -u http://localhost:4111/inngest/api`) and, in production, set the **URL** field on your Inngest app to match.
40
+
41
+ If you cannot change the path, set `server.apiPrefix` (for example `/_mastra`) to relocate the built-in routes and remember to update `server.auth.protected` and any `MastraClient` `apiPrefix` to match. See the [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest) for the full walkthrough.
42
+
43
+ - Updated dependencies [[`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60)]:
44
+ - @mastra/core@1.33.0-alpha.0
45
+
3
46
  ## 1.3.0
4
47
 
5
48
  ### Minor Changes