Skip to content

I updated the version dropdown logic in TypeScript-Website/packages/p…#3488

Closed
samay-hash wants to merge 1 commit into
microsoft:v2from
samay-hash:v2
Closed

I updated the version dropdown logic in TypeScript-Website/packages/p…#3488
samay-hash wants to merge 1 commit into
microsoft:v2from
samay-hash:v2

Conversation

@samay-hash

Copy link
Copy Markdown

I finished adding release dates to each TypeScript release in the Playground.

What I changed,
I updated the version dropdown logic in TypeScript-Website/packages/playground/src/index.ts so that development builds now correctly show their release dates.

Instead of trying to load dates from JSON files, I added logic that:
Detects version strings with the pattern -dev.YYYYMMDD

Extracts the date from the version

Displays it in the format:
(YYYY-MM-DD)
the issues was The existing code attempted to fetch release dates from releases.json and pre-releases.json, and those files only contain version numbers but Development builds already include the date inside the version string but that information wasn’t being parsed or shown in the UI.

…layground/src/index.ts so that development builds now correctly show their release dates.
@samay-hash

Copy link
Copy Markdown
Author

agree

@samay-hash samay-hash closed this Jul 19, 2026
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