Skip to content

refactor(naming): introduce generateLogicalId factory method#762

Open
VirtueMe wants to merge 1 commit intomasterfrom
refactor/708_naming-factory
Open

refactor(naming): introduce generateLogicalId factory method#762
VirtueMe wants to merge 1 commit intomasterfrom
refactor/708_naming-factory

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

Closes #758

Summary

  • Add generateLogicalId(name, suffix) factory to lib/naming.js, centralising the repeated getNormalizedFunctionName(name) + suffix pattern
  • Refactor 9 get*LogicalId() methods to delegate to the factory — public API unchanged, no callers affected
  • Add 2 tests covering the factory with and without a suffix

Test plan

  • All 19 naming tests pass
  • Full suite (548 tests) passes
  • No callers of get*LogicalId() methods require changes

Part of #708

🤖 Generated with Claude Code

- Add generateLogicalId(name, suffix) to centralise the repeated
  getNormalizedFunctionName(name) + suffix pattern
- Refactor 9 get*LogicalId methods to delegate to the factory
- Add 2 tests for the new factory method (19/19 passing)

Part of #708

🤖 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@762

commit: 975e01e

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(naming): introduce generateLogicalId factory method

1 participant