Skip to content

Conversation

@THardy98
Copy link
Contributor

@THardy98 THardy98 commented Oct 7, 2025

What was changed

Created envconfig package, functionality that allows users to configure Connection or NativeConnection backed clients (or just the connection itself for that matter).

Why?

Allows users to configure connections/clients from config files instead of source code.

  1. Closes [Feature Request] Environment Configuration #1727

  2. How was this tested:
    Integration test suite at test-envconfig.ts

  3. Any docs updates needed?
    Yes

@THardy98 THardy98 requested a review from a team as a code owner October 7, 2025 22:28
Copy link
Member

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

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

Mostly questions. Not sure I have enough context to approve

ConfigDataSource,
} from './types';

export { fromTomlConfig, fromTomlProfile, toTomlConfig, toTomlProfile, loadConfigData } from './utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to expose all of those functions publicly? If so, we'll also need to expose the Toml* types.

But I'd preach to avoid conflating the public API surface at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. We have followed a pattern across SDKs to allow users to convert to/from TOML representations on their own.

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case, we'll need to also export the Toml* interfaces and remove the @internal annotation on those.

@THardy98 THardy98 requested a review from mjameswh October 21, 2025 16:03
Copy link
Contributor

@mjameswh mjameswh left a comment

Choose a reason for hiding this comment

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

A few more details; see comments. But ok to merge once you've handled those.

@THardy98 THardy98 merged commit f024a84 into main Oct 24, 2025
119 of 127 checks passed
@THardy98 THardy98 deleted the ts_env_config branch October 24, 2025 18:51
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.

[Feature Request] Environment Configuration

3 participants