diff --git a/.changeset/sveltekit-3-migration.md b/.changeset/pre/sveltekit-3-migration.md similarity index 100% rename from .changeset/sveltekit-3-migration.md rename to .changeset/pre/sveltekit-3-migration.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 20feb33..cc9aec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # kit-on-lambda +## 0.9.0-beta.0 + +### Minor Changes + +- e1001b4: Migrate the adapter to SvelteKit 3 (beta). This release targets SvelteKit 3 only and drops SvelteKit 2 support. + + - Bump the `@sveltejs/kit` peer dependency to `^3.0.0`. + - Replace the removed `builder.generateManifest` + `"SERVER"`/`"MANIFEST"` string-substitution flow with `builder.generateServerInstance(...)`. The emitted server module exports a `server` object (from `create_server`), so the node and bun handler/stream entries now `import { server } from "SERVER"` and call `server.init(...)` / `server.respond(...)` directly instead of constructing the deprecated `Server` class. + - Read `paths.base` from the flattened `builder.config.paths.base` (`builder.config.kit` was removed). + - Replace the deprecated `builder.mkdirp` / `builder.rimraf` with `node:fs`. + - Update server instrumentation to the new flow: call `builder.createInstrumentationInitializer(...)`, include the initializer in the bundle, then pass its path to `builder.instrument(...)`. + ## 0.8.4 ### Patch Changes diff --git a/package.json b/package.json index d4be24e..0eb9753 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kit-on-lambda", - "version": "0.8.4", + "version": "0.9.0-beta.0", "description": "SvelteKit adapter for AWS Lambda for Node.js and Bun runtimes", "keywords": [ "adapter",