Releases: BeeSolve/kit-on-lambda
Release list
v0.8.3
Patch Changes
-
77df48f: Short-circuit keep-active pings in the shipped Lambda handlers so they no longer trigger a spurious SvelteKit render.
The
SvelteKitconstruct already tags its handler for warming viaLambdaKeepActive, but the node and bun handler templates passed the keep-active ping event straight intoawsRequest/server.respond, rendering a garbage request on every warm invocation.- Wrap the node handler with
keptActiveat the event level. - Wrap the bun handler with
keptActivearoundasHttpV2Handler, since the ping arrives as a raw Lambda event rather than as an HTTP request. - Add handler tests asserting a keep-active ping short-circuits without calling
server.respond.
- Wrap the node handler with
v0.8.2
Patch Changes
-
895d32d: Document
paths.relative: falseas the recommended way to configure asset paths, so the CloudFront distribution URL is no longer required at build time.The
SvelteKitconstruct already routes root-absolute asset paths (/_app/*, top-level static files) to S3 via per-directory CloudFront behaviors, so emitting root-absolute URLs is sufficient and avoids the first-deploy chicken-and-egg problem of needing the distribution URL before it exists.- Add an "Asset paths —
paths.relativevspaths.assets" section explaining both approaches and their trade-offs. - Present
paths.assets(absolute CloudFront URL) as an optional alternative for cross-origin/separate-domain asset serving, rather than a requirement. - Update the Option 1/2/3
svelte.config.jsexamples to usepaths: { relative: false }. - Add a troubleshooting entry for missing styles/scripts on nested routes (assets 404).
- Add an "Asset paths —
v0.8.1
Patch Changes
-
3038bec: Upgrade
@beesolve/lint-configto 0.3.0 and add the newly-requiredoxlint-tsgolintpeer dependency, which enables type-aware linting.Resolve the findings the stricter rules surface in the shipped handler/stream templates and tests:
- Replace
process.env as Record<string, string>casts with adefinedEnv()helper that filters out undefined values. - Use
HttpMethod.ANYinstead of"ANY" as neverin the CDK tests. - Drop redundant result-type assertions on the single-arm Bun handler result, and narrow the Node handler's
v1 | v2result union via small typed helpers. - Prefix intentional fire-and-forget calls (
mock.module,server.stop) withvoidto satisfyno-floating-promises.
- Replace