Skip to content

Version Packages#152

Merged
floydspace merged 1 commit intomainfrom
changeset-release/main
Apr 28, 2025
Merged

Version Packages#152
floydspace merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@effect-aws/lambda@1.4.0

Minor Changes

  • #86 f3c17c8 Thanks @floydspace! - add an option to make lambda handler from platform httpApi, for instance

    import { LambdaHandler } from "@effect-aws/lambda";
    import { HttpApi, HttpApiBuilder, HttpServer } from "@effect/platform";
    import { Layer } from "effect";
    
    class MyApi extends HttpApi.make("api") {}
    
    const MyApiLive = HttpApiBuilder.api(MyApi);
    
    //              ┌─── Handler<LambdaEvent, LambdaResult>
    //              ▼
    export const handler = LambdaHandler.fromHttpApi(
      Layer.mergeAll(
        MyApiLive,
        // you could also use NodeHttpServer.layerContext, depending on your
        // server's platform
        HttpServer.layerContext,
      ),
    );

@floydspace floydspace merged commit 212e6d7 into main Apr 28, 2025
@floydspace floydspace deleted the changeset-release/main branch April 28, 2025 00:49
@godu godu mentioned this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant