Add release dates to TypeScript version selector in playground #3469
+119
−4
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/../../../../../[email protected]/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/[email protected]/node_modules/rxjs/fetch/index.js ules/.pnpm/[email protected]/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/[email protected]/node_modules/rxjs/src/internal/observable/dom/ajax.ts Website/node_modules/.pnpm/[email protected]/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/../../../../../[email protected]/node_modules/node-gyp-build-optional-packages/build-test.js on.*date opy/en/TypeScript/Primitives/Unknown and Never.ts ules/.pnpm/[email protected]/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/[email protected]/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.