Add release dates to TypeScript version selector in playground#3469
Draft
Add release dates to TypeScript version selector in playground#3469
Conversation
- Created release_data.ts with version and date information from npm - Updated sandbox to export releaseInfo - Modified playground to display release dates in version dropdown Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
- Modified downloadReleases.js to include release dates from npm - Generated release_data.ts with version and date information - Script now includes releaseInfo object with dates Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
- Updated script to use SupportedReleaseVersions type for releaseInfo - Ensures type safety between releaseInfo keys and supported versions Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
- Changed date field in ReleaseInfo to allow null values - Updated script to use null for missing dates (e.g., beta/RC versions) - Improves type safety and explicit handling of missing data Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add release dates to version selector in playground
Add release dates to TypeScript version selector in playground
Dec 4, 2025
| "5.9.3": { version: "5.9.3", date: "2025-09-30T21:19:38.784Z" } | ||
| } | ||
|
|
||
| export const supportedReleases: ReleaseVersions[] = [ |
There was a problem hiding this comment.
Copilot please use an as const array and derive ReleaseVersions using typeof supportedReleases[number].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The playground version selector now displays release dates alongside version numbers to provide context about when each TypeScript version was published.
Changes
Data Layer
downloadReleases.jsto fetch release dates from npm registry and generaterelease_data.tswith version/date mappingsReleaseInfointerface withversion: stringanddate: string | null(null for beta/RC without dates yet)SupportedReleaseVersionstype for type-safe releaseInfo keysSandbox
releaseInfofrom sandbox to make date information available to playgroundPlayground
"5.6.3 (Oct 8, 2024)"usingtoLocaleDateString('en-US')Example
Version dropdown now shows:
Regenerate with:
pnpm run --filter=@typescript/sandbox bootstrapWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
playgroundcdn.typescriptlang.org/usr/local/bin/node node script/downloadReleases.js nfig/composer/veinstall grep 2.5.3/node_modules/lmdb/node_modules/.bin/../../../../../node-gyp-build-optional-packages@5.0.3/node_modules/node-gyp-build-optional-packages/build-test.js on.*date ugins.ts /snap/bin/grep on.*date n /opt/pipx_bin/grep grep -l on.*date opy/en/Playground/Tooling/Mobile Support.ts p/bin/grep on.*date _files.ts grep grep(dns block)/usr/local/bin/node node script/downloadReleases.js ules/.pnpm/rxjs@build ules/.pnpm/rxjs@--tsconfig ules�� ules/.pnpm/rxjs@6.6.7/node_modules/rxjs/fetch/index.js ules/.pnpm/rxjs@6.6.7/node_modules/rxjs/index.d.ts Website/node_modules/.pnpm/eslin/home/REDACTED/work/TypeScript-Website/TypeScript-Website/node_mod--porcelain Website/node_modnode Website/node_mod/home/REDACTED/work/TypeScript-Website/TypeScript-Website/packages/san�� Website/node_modules/.pnpm/eslin--noprofile Website/node_modules/.pnpm/eslin/home/REDACTED/work/TypeScript-Website/TypeScript-Website/node_modules/.pnpm/cssst/home/REDACTED/work/TypeScript-Website/TypeScript-Website/node_modules/.pnpm/ramda--norc Webs�� Website/node_modules/.pnpm/eslin/home/REDACTED/work/TypeScript-Website/TypeScript-Website/node_modbash Website/node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/src/internal/observable/dom/ajax.ts Website/node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/src/internal/observable/dom/WebSocketSub--noprofile Website/node_modbash Website/node_mod--norc Website/node_mod--noprofile Website/node_modules/.pnpm/rxjs@time(dns block)typescript-api.vercel.app/usr/bin/curl curl -s REDACTED grep 2.5.2/node_modules/lmdb/node_modules/.bin/../../../../../node-gyp-build-optional-packages@5.0.3/node_modules/node-gyp-build-optional-packages/build-test.js on.*date opy/en/TypeScript/Primitives/Unknown and Never.ts ules/.pnpm/core-js@3.37.1/node_modules/core-js/node_modules/.bin/node on.*date c/copy/en/tsconf-e @18.3.1__flfdymwczvzjjewgfdgpfbffle/node_modules/gatsby/node_modules/.bin/node grep -l on.*date opy/en/4-4/New JS Features/Errors for High Confidence Errors.ts ules/.pnpm/sharp@0.28.1/node_modules/sharp/node_modules/.bin/getconf on.*date wJS.ts /opt/pipx_bin/grep grep(dns block)unpkg.com/usr/local/bin/node node scripts/postinstall.js rgo/bin/grep grep -l on.*date ugins.ts ules/.bin/node on.*date n /home/REDACTED/.local/bin/grep grep -l on.*date opy/en/Playground/Tooling/Mobile Support.ts nfig/composer/vendor/bin/grep on.*date _files.ts n/node-gyp-build-optional-packages grep(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.