server-act 1.8.1 → 1.8.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.
package/dist/index.d.cts CHANGED
@@ -52,7 +52,9 @@ interface ActionBuilder<TParams extends ActionParams> {
52
52
  _context: TParams["_context"] extends UnsetMarker ? TNewContext : Prettify<TParams["_context"] & TNewContext>;
53
53
  }>;
54
54
  /**
55
- * tRPC-style middleware that forwards context via `next()`.
55
+ * Registers middleware in the action pipeline.
56
+ * Call `next()` to continue, optionally passing `ctx` to merge additional
57
+ * context for downstream middleware and the action handler.
56
58
  */
57
59
  use: <TNextContext extends Record<string, unknown>>(middleware: UseMiddlewareFunction<NormalizeContext<TParams["_context"]>, TNextContext>) => ActionBuilder<{
58
60
  _input: TParams["_input"];
package/dist/index.d.mts CHANGED
@@ -52,7 +52,9 @@ interface ActionBuilder<TParams extends ActionParams> {
52
52
  _context: TParams["_context"] extends UnsetMarker ? TNewContext : Prettify<TParams["_context"] & TNewContext>;
53
53
  }>;
54
54
  /**
55
- * tRPC-style middleware that forwards context via `next()`.
55
+ * Registers middleware in the action pipeline.
56
+ * Call `next()` to continue, optionally passing `ctx` to merge additional
57
+ * context for downstream middleware and the action handler.
56
58
  */
57
59
  use: <TNextContext extends Record<string, unknown>>(middleware: UseMiddlewareFunction<NormalizeContext<TParams["_context"]>, TNextContext>) => ActionBuilder<{
58
60
  _input: TParams["_input"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "server-act",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "keywords": [
5
5
  "action",
6
6
  "next",