Skip to content

fix(envs): allow version() to return Promise<string>#10226

Open
GiladShoham wants to merge 1 commit intomasterfrom
fix/service-handler-async-version
Open

fix(envs): allow version() to return Promise<string>#10226
GiladShoham wants to merge 1 commit intomasterfrom
fix/service-handler-async-version

Conversation

@GiladShoham
Copy link
Member

Allow ServiceHandler.version() to return a Promise<string> in addition to a synchronous string, enabling async version resolution.

Copilot AI review requested due to automatic review settings March 15, 2026 23:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Envs service handler contract to support asynchronous service version resolution, allowing implementers to compute a version string lazily (e.g., via dynamic imports or reading from the filesystem).

Changes:

  • Broadened ServiceHandler.version() return type to string | Promise<string>.

* version of the service. optional.
*/
version?: () => string;
version?: () => string | Promise<string>;
@GiladShoham GiladShoham enabled auto-merge (squash) March 15, 2026 23:34
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.

3 participants