Skip to content

Use envconfig for tutorial clients - #37

Merged
THardy98 merged 1 commit into
mainfrom
fix/envconfig-onboarding
Sep 3, 2026
Merged

THardy98 merged 1 commit into
mainfrom
fix/envconfig-onboarding

Conversation

@THardy98

@THardy98 THardy98 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

What was changed

The workflow client and Worker now load connection settings through the official @temporalio/envconfig package. Both explicitly retain localhost:7233 and the default Namespace when configuration values are absent, and the Worker closes its new native connection during shutdown.

Temporal packages are aligned at the Node 18-compatible ~1.14.1 release, and the README documents profile selection.

Why?

The template previously relied only on implicit local defaults, so the Cloud profile created during onboarding was ignored. The SDK now owns profile selection, environment precedence, API-key authentication, TLS, and missing-profile errors; the template supplies only explicit local defaults.

This focused change supersedes #20 and #28.

Checklist

  1. Closes: N/A

  2. How was this tested:

    • npm install --package-lock-only --ignore-scripts
    • npm run build
    • npm run lint
    • mise exec node@20 -- npm test
    • npx prettier --check README.md package.json src/client.ts src/worker.ts
  3. Any docs updates needed?

    • Updated the README with envconfig usage and local defaults.

@THardy98
THardy98 marked this pull request as ready for review September 2, 2026 16:41
@THardy98
THardy98 requested a review from a team as a code owner September 2, 2026 16:41
@THardy98
THardy98 merged commit 7ec1c00 into main Sep 3, 2026
3 checks passed
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.

1 participant