@beignet/next 0.0.26 → 0.0.28
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 +25 -0
- package/README.md +351 -203
- package/dist/index.d.ts +91 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +128 -21
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/routes-server/SKILL.md +9 -10
- package/src/index.ts +800 -200
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @beignet/next
|
|
2
2
|
|
|
3
|
+
## 0.0.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 57504c5: Add `server.rawRoute(...)`: build handlers for routes that cannot be contracts — third-party callbacks, signature-verified webhooks, streaming endpoints — that still run the full pipeline (hooks, context creation, instrumentation, framework error mapping) with the request body left unconsumed. The Next.js webhook, payment webhook, schedule, and outbox drain route factories now run through this pipeline automatically when the server exposes `rawRoute`, with a new `pipeline` option for route identity and hook metadata.
|
|
8
|
+
- Updated dependencies [f21e8af]
|
|
9
|
+
- Updated dependencies [57504c5]
|
|
10
|
+
- @beignet/web@0.0.28
|
|
11
|
+
|
|
12
|
+
## 0.0.27
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- f2461a9: Add lazy Next route server loaders and update generated route files and package docs to avoid booting providers during production build imports.
|
|
17
|
+
- 88200a0: Cron, webhook, payment webhook, and outbox drain route factories now build app
|
|
18
|
+
context from the real request via `server.createRequestContext(...)` instead
|
|
19
|
+
of `next/headers`, so route files run under `bun test` with a plain `Request`
|
|
20
|
+
and request/trace headers propagate into context creation. Webhook routes read
|
|
21
|
+
the raw body first and rehydrate the request for the context factory, so
|
|
22
|
+
signature verification never races context creation over one body stream. The
|
|
23
|
+
`server` option accepts any object exposing `createRequestContext`
|
|
24
|
+
(`NextRouteServer<Ctx>`); existing `server: getServer` call sites keep working
|
|
25
|
+
unchanged.
|
|
26
|
+
- @beignet/web@0.0.27
|
|
27
|
+
|
|
3
28
|
## 0.0.26
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|