Skip to content

Commit 7cf9aa0

Browse files
authored
Cleanup "ts=Nightly", aka "ts=next" (microsoft#3156)
1 parent 7cdd061 commit 7cf9aa0

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

packages/documentation/copy/en/release-notes/TypeScript 4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ if (!obj.prop) {
417417
}
418418
```
419419

420-
[Try running the following example](https://www.typescriptlang.org/play?ts=Nightly#code/MYewdgzgLgBCBGArGBeGBvAsAKBnmA5gKawAOATiKQBQCUGO+TMokIANkQHTsgHUAiYlChFyMABYBDCDHIBXMANoBuHI2Z4A9FpgAlIqXZTgRGAFsiAQg2byJeeTAwAslKgSu5KWAAmIczoYAB4YAAYuAFY1XHwAXwAaWxgIEhgKKmoAfQA3KXYALhh4EA4iH3osWM1WCDKePkFUkTFJGTlFZRimOJw4mJwAM0VgKABLcBhB0qCqplr63n4BcjGCCVgIMd8zIjz2eXciXy7k+yhHZygFIhje7BwFzgblgBUJMdlwM3yAdykAJ6yBSQGAeMzNUTkU7YBCILgZUioOBIBGUJEAHwxUxmqnU2Ce3CWgnenzgYDMACo6pZxpYIJSOqDwSkSFCYXC0VQYFi0NMQHQVEA) to see how that differs from _always_ performing the assignment.
420+
[Try running the following example](https://www.typescriptlang.org/play?ts=next#code/MYewdgzgLgBCBGArGBeGBvAsAKBnmA5gKawAOATiKQBQCUGO+TMokIANkQHTsgHUAiYlChFyMABYBDCDHIBXMANoBuHI2Z4A9FpgAlIqXZTgRGAFsiAQg2byJeeTAwAslKgSu5KWAAmIczoYAB4YAAYuAFY1XHwAXwAaWxgIEhgKKmoAfQA3KXYALhh4EA4iH3osWM1WCDKePkFUkTFJGTlFZRimOJw4mJwAM0VgKABLcBhB0qCqplr63n4BcjGCCVgIMd8zIjz2eXciXy7k+yhHZygFIhje7BwFzgblgBUJMdlwM3yAdykAJ6yBSQGAeMzNUTkU7YBCILgZUioOBIBGUJEAHwxUxmqnU2Ce3CWgnenzgYDMACo6pZxpYIJSOqDwSkSFCYXC0VQYFi0NMQHQVEA) to see how that differs from _always_ performing the assignment.
421421

422422
```ts twoslash
423423
const obj = {

packages/playground-handbook/copy/en/TypeScript Versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ The dropdown shows the highest patch version for a TypeScript release, but that
88

99
Setting a TypeScript version will append `?ts=[version]` to your URL and reload. For example, setting the TypeScript version to 4.3.5 will add `?ts=4.3.5` to the URL, which is an OK segue to the overview of the [URL's structure](/play#handbook-10).
1010

11-
There's one special case where `?ts=Nightly` will find the latest version of the TypeScript which was built for the Playground and use that.
11+
There's one special case where `?ts=next` will find the latest version of the TypeScript which was built for the Playground and use that.

packages/playground-handbook/copy/en/URL Structure.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ Then the query string tend to be about changing the state of the Playground setu
2626

2727
There are two special cases for the `ts` option:
2828

29-
- `ts=Nightly` where it will switch to most recently the nightly version.
30-
31-
- `ts=dev` where it uses your [local developer's build of TypeScript](https://github.com/microsoft/TypeScript/blob/main/scripts/createPlaygroundBuild.js)
29+
- `ts=next`: Use the most recent [nightly build](https://www.typescriptlang.org/docs/handbook/nightly-builds.html).
30+
- `ts=dev`: Use your [local developer's build of TypeScript](https://github.com/microsoft/TypeScript/blob/main/scripts/createPlaygroundBuild.js)
3231

3332
- `?flag=value` - Any compiler flag referenced in can be set from a query
3433
- `?filetype=js|ts|dts` - Tells the Playground to set the editor's language

packages/playground/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Then queries tend to be about changing the state of the Playground setup from th
3737

3838
There are two special cases for the `ts` option:
3939

40-
- `ts=Nightly` where it will switch to most recently the nightly version.
41-
- `ts=dev` where it uses your [local developer's build of TypeScript](https://github.com/microsoft/TypeScript/blob/main/scripts/createPlaygroundBuild.js)
40+
- `ts=next`: Use the most recent [nightly build](https://www.typescriptlang.org/docs/handbook/nightly-builds.html).
41+
- `ts=dev`: Use your [local developer's build of TypeScript](https://github.com/microsoft/TypeScript/blob/main/scripts/createPlaygroundBuild.js)
4242

4343
- `?flag=value` - Any compiler flag referenced in can be set from a query
4444
- `?filetype=js|ts|dts` - Tells the Playground to set the editor's type

packages/typescriptlang-org/src/pages/dev/bug-workbench.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const Play: React.FC<Props> = (props) => {
5353

5454
let tsVersionParam = params.get("ts")
5555
// handle the nightly lookup
56-
if (!tsVersionParam || tsVersionParam && tsVersionParam === "Nightly" || tsVersionParam === "next") {
56+
if (!tsVersionParam || tsVersionParam === "Nightly" || tsVersionParam === "next") {
5757
// The CDN is configured to have a short TTL on the indexes directory.
5858
const nightlyLookup = await fetch("https://playgroundcdn.typescriptlang.org/indexes/next.json", { cache: "no-cache" })
5959
const nightlyJSON = await nightlyLookup.json()

packages/typescriptlang-org/src/templates/play.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const Play: React.FC<Props> = (props) => {
7979

8080
let tsVersionParam = params.get("ts")
8181
// handle the nightly lookup
82-
if (tsVersionParam && tsVersionParam === "Nightly" || tsVersionParam === "next") {
82+
if (tsVersionParam === "Nightly" || tsVersionParam === "next") {
8383
// The CDN is configured to have a short TTL on the indexes directory.
8484
const nightlyLookup = await fetch("https://playgroundcdn.typescriptlang.org/indexes/next.json", { cache: "no-cache" })
8585
const nightlyJSON = await nightlyLookup.json()

0 commit comments

Comments
 (0)