temporalio / temporalio/sdk-typescript

Validate single version of packages

Open
#1,010 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
917
Forks
224
Avg merge
3d 16h
Merged PRs (30d)
43

Description

Is your feature request related to a problem? Please describe.

Users run into errors when they accidentally have multiple versions of our packages installed, for example this.

Describe the solution you'd like

Roey:

  • we should add some validation for this, e.g. export the version from worker-interface.ts and check on the worker side
  • We should also verify in the workflow context that only 1 version of @temporalio/workflow is imported

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading worker-interface.ts and the workflow context mentioned in the issue to understand where package versions are exposed and loaded. Trace how the worker and workflow code interact, then define validation for multiple package versions; done means accidental duplicate versions are detected in both described areas.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.