Skip to content

refactor(apiGateway): replace .then() chain with CompilationPipeline#765

Open
VirtueMe wants to merge 1 commit intomasterfrom
refactor/761_apigw-compilation-pipeline
Open

refactor(apiGateway): replace .then() chain with CompilationPipeline#765
VirtueMe wants to merge 1 commit intomasterfrom
refactor/761_apigw-compilation-pipeline

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

Closes #761

Summary

  • Add CompilationPipeline class (native Promise, no Bluebird) that runs an ordered list of step method names sequentially on a given context — steps are reorderable and conditionally includable without touching index.js
  • Replace 12-step hardcoded BbPromise .then() chain with a named string array + apiGatewayPipeline.run(this)

Test plan

  • 4 new CompilationPipeline unit tests pass (ordering, context binding, async sequencing, empty pipeline)
  • All 137 existing API Gateway tests pass
  • Full suite passes
  • No changes to plugin configuration or public API

Part of #708

🤖 Generated with Claude Code

- Add CompilationPipeline class that runs an ordered list of step method
  names sequentially on a given context (uses native Promise, not Bluebird)
- Replace 12-step hardcoded .then() chain in index.js with
  apiGatewayPipeline.run(this) — steps are now a named string array
- Add 4 unit tests covering ordering, context binding, async sequencing,
  and empty pipeline

Part of #761

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@765

commit: 2c00f6d

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.

refactor(apiGateway): replace hardcoded .then() chain with CompilationPipeline

1 participant