Skip to content

Fix TypeScript package major-minor version - #63940

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:fix-version
Aug 21, 2026
Merged

Fix TypeScript package major-minor version#63940
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
jakebailey:fix-version

Conversation

@jakebailey

Copy link
Copy Markdown
Member

This hardcoded version was wrong.

Perhaps instead of being hardcoded, we should derive it from something, but it has to be a literal in the d.ts, so, not bothering.

(Needed because dtslint needs this info for local TS versions)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 TypeScript package’s major-minor version to 7.1.

Changes:

  • Corrects runtime and declaration version exports.
  • Adds a compiler-version consistency test.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/typescript/test/version.test.ts Tests the runtime version export.
packages/typescript/lib/version.d.cts Updates the declared version to 7.1.
packages/typescript/lib/version.cjs Updates the runtime version to 7.1.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/typescript/test/version.test.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, the literal in the declaration file is why I didn't just import it from package.json, but we could generate it. This is fine though.

@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Aug 21, 2026
@jakebailey

Copy link
Copy Markdown
Member Author

Updated to also test the other version, just to be safe for now.

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Aug 21, 2026
Merged via the queue into microsoft:main with commit 3bbdc6c Aug 21, 2026
23 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the fix-version branch August 21, 2026 19:15
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants