bun-plugin-stx 0.2.230 → 0.2.231

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/serve.d.ts CHANGED
@@ -260,6 +260,18 @@ export declare interface MiddlewareContext {
260
260
  cookies: Record<string, string>
261
261
  redirect: (to: string, status?: number) => Response
262
262
  }
263
+ /**
264
+ * The slice of Crosswind this server calls, taken from the package's own types
265
+ * rather than restated here.
266
+ *
267
+ * `CSSGenerator` has to be a constructor type, because it is `new`-ed below.
268
+ * Widening it to `unknown` satisfies the no-explicit-any rule and still fails to
269
+ * compile (`new (unknown)` is TS18046) — that is how d84349dd74 turned main red.
270
+ * Restating the shape by hand is the other trap: a stale hand-written copy is
271
+ * what made this hard to see in the first place (see the deleted
272
+ * `cwcss-crosswind.d.ts`). `typeof import` cannot drift from the real engine.
273
+ */
274
+ declare type CrosswindEngine = Pick<typeof import('@cwcss/crosswind'), 'CSSGenerator' | 'config'>;
263
275
  /**
264
276
  * Middleware handler — a Laravel-style gate that either passes through
265
277
  * (returns `void`/`null`/`undefined`) or terminates the pipeline by
package/dist/serve.js CHANGED
@@ -10510,7 +10510,7 @@ ${html}`;
10510
10510
  }
10511
10511
  const content = await getRoute(path, reqCtx);
10512
10512
  if (reqCtx.actionRedirect) {
10513
- const redirectResponse = actionRedirectResponse(reqCtx.actionRedirect, reqCtx.actionCookies);
10513
+ const redirectResponse = actionRedirectResponse(reqCtx.actionRedirect, reqCtx.actionCookies, reqCtx.responseHeaders);
10514
10514
  for (const [key, value] of Object.entries(corsHeaders))
10515
10515
  redirectResponse.headers.set(key, value);
10516
10516
  return redirectResponse;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.230",
4
+ "version": "0.2.231",
5
5
  "description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",