Skip to content

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

Merged
zirkelc merged 1 commit intomasterfrom
refactor/761_apigw-compilation-pipeline
Apr 17, 2026
Merged

refactor(apiGateway): replace .then() chain with CompilationPipeline#765
zirkelc merged 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

@zirkelc zirkelc merged commit 24758e3 into master Apr 17, 2026
4 checks passed
@zirkelc zirkelc deleted the refactor/761_apigw-compilation-pipeline branch April 17, 2026 11:50
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

2 participants